ezekiel-cli 5.8.2

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 (854) hide show
  1. package/.editorconfig +24 -0
  2. package/.eslintrc +40 -0
  3. package/.prettierignore +1 -0
  4. package/README.md +139 -0
  5. package/bin/insites-cli-archive.js +35 -0
  6. package/bin/insites-cli-audit.js +5 -0
  7. package/bin/insites-cli-data-clean.js +69 -0
  8. package/bin/insites-cli-data-export.js +111 -0
  9. package/bin/insites-cli-data-import.js +105 -0
  10. package/bin/insites-cli-data.js +15 -0
  11. package/bin/insites-cli-deploy.js +43 -0
  12. package/bin/insites-cli-env-add.js +107 -0
  13. package/bin/insites-cli-env-list.js +22 -0
  14. package/bin/insites-cli-env.js +12 -0
  15. package/bin/insites-cli-gui-serve.js +47 -0
  16. package/bin/insites-cli-gui.js +8 -0
  17. package/bin/insites-cli-init.js +44 -0
  18. package/bin/insites-cli-logs.js +124 -0
  19. package/bin/insites-cli-logsv2-alerts-add.js +34 -0
  20. package/bin/insites-cli-logsv2-alerts-list.js +24 -0
  21. package/bin/insites-cli-logsv2-alerts-trigger.js +25 -0
  22. package/bin/insites-cli-logsv2-alerts.js +11 -0
  23. package/bin/insites-cli-logsv2-reports.js +36 -0
  24. package/bin/insites-cli-logsv2-search.js +40 -0
  25. package/bin/insites-cli-logsv2-searchAround.js +29 -0
  26. package/bin/insites-cli-logsv2.js +11 -0
  27. package/bin/insites-cli-modules-init.js +54 -0
  28. package/bin/insites-cli-modules-list.js +28 -0
  29. package/bin/insites-cli-modules-pull.js +43 -0
  30. package/bin/insites-cli-modules-remove.js +26 -0
  31. package/bin/insites-cli-modules-version.js +60 -0
  32. package/bin/insites-cli-modules.js +13 -0
  33. package/bin/insites-cli-pull.js +42 -0
  34. package/bin/insites-cli-sync.js +30 -0
  35. package/bin/insites-cli.js +53 -0
  36. package/gui/graphql/babel.config.js +21 -0
  37. package/gui/graphql/package-lock.json +4772 -0
  38. package/gui/graphql/package.json +28 -0
  39. package/gui/graphql/public/105.js +7 -0
  40. package/gui/graphql/public/178.js +1 -0
  41. package/gui/graphql/public/198.js +1 -0
  42. package/gui/graphql/public/441.js +4 -0
  43. package/gui/graphql/public/471.js +1 -0
  44. package/gui/graphql/public/480.js +24 -0
  45. package/gui/graphql/public/481.js +1 -0
  46. package/gui/graphql/public/571.js +12 -0
  47. package/gui/graphql/public/573.js +8 -0
  48. package/gui/graphql/public/574.js +1 -0
  49. package/gui/graphql/public/584.js +38 -0
  50. package/gui/graphql/public/588.js +1 -0
  51. package/gui/graphql/public/662.js +8 -0
  52. package/gui/graphql/public/724.js +1 -0
  53. package/gui/graphql/public/739.js +1 -0
  54. package/gui/graphql/public/744.js +1 -0
  55. package/gui/graphql/public/768.js +1 -0
  56. package/gui/graphql/public/79.js +1 -0
  57. package/gui/graphql/public/845.js +2 -0
  58. package/gui/graphql/public/863.js +1 -0
  59. package/gui/graphql/public/896.js +1 -0
  60. package/gui/graphql/public/92.js +2 -0
  61. package/gui/graphql/public/98.js +1 -0
  62. package/gui/graphql/public/980.js +1 -0
  63. package/gui/graphql/public/995.js +1 -0
  64. package/gui/graphql/public/index.html +12 -0
  65. package/gui/graphql/public/main.css +27 -0
  66. package/gui/graphql/public/main.js +2230 -0
  67. package/gui/graphql/public/main.js.LICENSE.txt +39 -0
  68. package/gui/graphql/src/index.jsx +139 -0
  69. package/gui/graphql/webpack.config.js +52 -0
  70. package/gui/liquid/public/index.html +82 -0
  71. package/gui/v1/build/_app/immutable/assets/0.251ef76d.css +1 -0
  72. package/gui/v1/build/_app/immutable/assets/10.ee72ee6d.css +1 -0
  73. package/gui/v1/build/_app/immutable/assets/12.f6879dba.css +1 -0
  74. package/gui/v1/build/_app/immutable/assets/13.bf080bcc.css +1 -0
  75. package/gui/v1/build/_app/immutable/assets/15.0e0670ce.css +1 -0
  76. package/gui/v1/build/_app/immutable/assets/2.4a46c382.css +1 -0
  77. package/gui/v1/build/_app/immutable/assets/4.73dde45b.css +1 -0
  78. package/gui/v1/build/_app/immutable/assets/6.6bcda092.css +1 -0
  79. package/gui/v1/build/_app/immutable/assets/7.c0038863.css +1 -0
  80. package/gui/v1/build/_app/immutable/assets/9.6957ad32.css +1 -0
  81. package/gui/v1/build/_app/immutable/assets/Aside.66c2d12f.css +1 -0
  82. package/gui/v1/build/_app/immutable/assets/JSONTree.507a2dde.css +1 -0
  83. package/gui/v1/build/_app/immutable/assets/JSONTree.79010849.css +1 -0
  84. package/gui/v1/build/_app/immutable/assets/_layout.4a46c382.css +1 -0
  85. package/gui/v1/build/_app/immutable/assets/_layout.6bcda092.css +1 -0
  86. package/gui/v1/build/_app/immutable/assets/_layout.73dde45b.css +1 -0
  87. package/gui/v1/build/_app/immutable/assets/_layout.85c17bd0.css +1 -0
  88. package/gui/v1/build/_app/immutable/assets/_page.0e0670ce.css +1 -0
  89. package/gui/v1/build/_app/immutable/assets/_page.425c1d28.css +1 -0
  90. package/gui/v1/build/_app/immutable/assets/_page.6957ad32.css +1 -0
  91. package/gui/v1/build/_app/immutable/assets/_page.bf080bcc.css +1 -0
  92. package/gui/v1/build/_app/immutable/assets/_page.c0038863.css +1 -0
  93. package/gui/v1/build/_app/immutable/assets/_page.ee72ee6d.css +1 -0
  94. package/gui/v1/build/_app/immutable/chunks/Aside.c28a1ec5.js +1 -0
  95. package/gui/v1/build/_app/immutable/chunks/Icon.1db6668c.js +1 -0
  96. package/gui/v1/build/_app/immutable/chunks/JSONTree.641da795.js +2 -0
  97. package/gui/v1/build/_app/immutable/chunks/backgroundJob.0f2693c5.js +53 -0
  98. package/gui/v1/build/_app/immutable/chunks/graphql.6101590b.js +1 -0
  99. package/gui/v1/build/_app/immutable/chunks/index.50c00146.js +1 -0
  100. package/gui/v1/build/_app/immutable/chunks/index.5744cd58.js +1 -0
  101. package/gui/v1/build/_app/immutable/chunks/index.88325b8f.js +4 -0
  102. package/gui/v1/build/_app/immutable/chunks/index.c35021d1.js +1 -0
  103. package/gui/v1/build/_app/immutable/chunks/singletons.b6d4da89.js +1 -0
  104. package/gui/v1/build/_app/immutable/chunks/state.adc829f2.js +1 -0
  105. package/gui/v1/build/_app/immutable/chunks/stores.71f75302.js +1 -0
  106. package/gui/v1/build/_app/immutable/chunks/table.71e66f99.js +16 -0
  107. package/gui/v1/build/_app/immutable/chunks/tryParseJSON.f125f883.js +1 -0
  108. package/gui/v1/build/_app/immutable/chunks/user.039256f6.js +31 -0
  109. package/gui/v1/build/_app/immutable/entry/app.44548b11.js +1 -0
  110. package/gui/v1/build/_app/immutable/entry/start.4e385061.js +3 -0
  111. package/gui/v1/build/_app/immutable/nodes/0.d27a86c9.js +1 -0
  112. package/gui/v1/build/_app/immutable/nodes/1.532e414a.js +1 -0
  113. package/gui/v1/build/_app/immutable/nodes/10.962850d6.js +26 -0
  114. package/gui/v1/build/_app/immutable/nodes/11.d0e2eb78.js +1 -0
  115. package/gui/v1/build/_app/immutable/nodes/12.6449d2bf.js +74 -0
  116. package/gui/v1/build/_app/immutable/nodes/13.d3883433.js +1 -0
  117. package/gui/v1/build/_app/immutable/nodes/14.b1e09778.js +1 -0
  118. package/gui/v1/build/_app/immutable/nodes/15.af2c20ae.js +1 -0
  119. package/gui/v1/build/_app/immutable/nodes/2.4d90d0b8.js +9 -0
  120. package/gui/v1/build/_app/immutable/nodes/3.06f6ef98.js +1 -0
  121. package/gui/v1/build/_app/immutable/nodes/4.32a26935.js +1 -0
  122. package/gui/v1/build/_app/immutable/nodes/5.06f6ef98.js +1 -0
  123. package/gui/v1/build/_app/immutable/nodes/6.57fec5aa.js +7 -0
  124. package/gui/v1/build/_app/immutable/nodes/7.ae78c23b.js +13 -0
  125. package/gui/v1/build/_app/immutable/nodes/8.f57c5fbf.js +1 -0
  126. package/gui/v1/build/_app/immutable/nodes/9.374909fd.js +1 -0
  127. package/gui/v1/build/_app/version.json +1 -0
  128. package/gui/v1/build/favicon.png +0 -0
  129. package/gui/v1/build/icon/apple-touch-icon-114x114.png +0 -0
  130. package/gui/v1/build/icon/apple-touch-icon-120x120.png +0 -0
  131. package/gui/v1/build/icon/apple-touch-icon-144x144.png +0 -0
  132. package/gui/v1/build/icon/apple-touch-icon-152x152.png +0 -0
  133. package/gui/v1/build/icon/apple-touch-icon-57x57.png +0 -0
  134. package/gui/v1/build/icon/apple-touch-icon-60x60.png +0 -0
  135. package/gui/v1/build/icon/apple-touch-icon-72x72.png +0 -0
  136. package/gui/v1/build/icon/apple-touch-icon-76x76.png +0 -0
  137. package/gui/v1/build/icon/code.txt +20 -0
  138. package/gui/v1/build/icon/favicon-128.png +0 -0
  139. package/gui/v1/build/icon/favicon-16x16.png +0 -0
  140. package/gui/v1/build/icon/favicon-196x196.png +0 -0
  141. package/gui/v1/build/icon/favicon-32x32.png +0 -0
  142. package/gui/v1/build/icon/favicon-96x96.png +0 -0
  143. package/gui/v1/build/icon/favicon.ico +0 -0
  144. package/gui/v1/build/icon/mstile-144x144.png +0 -0
  145. package/gui/v1/build/icon/mstile-150x150.png +0 -0
  146. package/gui/v1/build/icon/mstile-310x150.png +0 -0
  147. package/gui/v1/build/icon/mstile-310x310.png +0 -0
  148. package/gui/v1/build/icon/mstile-70x70.png +0 -0
  149. package/gui/v1/build/index.html +35 -0
  150. package/gui/v1/build/insites-logo-old.png +0 -0
  151. package/gui/v1/build/insites-logo.png +0 -0
  152. package/gui/v1/build/prism.js +8 -0
  153. package/gui/v1/package-lock.json +1616 -0
  154. package/gui/v1/package.json +27 -0
  155. package/gui/v1/playwright.config.js +10 -0
  156. package/gui/v1/pnpm-lock.yaml +992 -0
  157. package/gui/v1/src/app.html +12 -0
  158. package/gui/v1/src/lib/api/backgroundJob.js +124 -0
  159. package/gui/v1/src/lib/api/constant.js +68 -0
  160. package/gui/v1/src/lib/api/graphql.js +57 -0
  161. package/gui/v1/src/lib/api/logs.js +45 -0
  162. package/gui/v1/src/lib/api/record.js +286 -0
  163. package/gui/v1/src/lib/api/table.js +45 -0
  164. package/gui/v1/src/lib/api/user.js +78 -0
  165. package/gui/v1/src/lib/backgroundJob/Delete.svelte +61 -0
  166. package/gui/v1/src/lib/backgroundJob/Retry.svelte +45 -0
  167. package/gui/v1/src/lib/database/Create.svelte +324 -0
  168. package/gui/v1/src/lib/database/Delete.svelte +61 -0
  169. package/gui/v1/src/lib/database/Filters.svelte +155 -0
  170. package/gui/v1/src/lib/database/Sort.svelte +110 -0
  171. package/gui/v1/src/lib/database/Table.svelte +261 -0
  172. package/gui/v1/src/lib/database/Tables.svelte +276 -0
  173. package/gui/v1/src/lib/parseValue.js +51 -0
  174. package/gui/v1/src/lib/relativeTime.js +33 -0
  175. package/gui/v1/src/lib/state.js +190 -0
  176. package/gui/v1/src/lib/tryParseJSON.js +32 -0
  177. package/gui/v1/src/lib/ui/Aside.svelte +176 -0
  178. package/gui/v1/src/lib/ui/Code.svelte +50 -0
  179. package/gui/v1/src/lib/ui/ConnectionIndicator.svelte +133 -0
  180. package/gui/v1/src/lib/ui/Header.svelte +252 -0
  181. package/gui/v1/src/lib/ui/Icon.svelte +55 -0
  182. package/gui/v1/src/lib/ui/JSONTree.svelte +77 -0
  183. package/gui/v1/src/lib/ui/Notifications.svelte +111 -0
  184. package/gui/v1/src/lib/ui/forms/Toggle.svelte +114 -0
  185. package/gui/v1/src/routes/+layout.svelte +25 -0
  186. package/gui/v1/src/routes/+page.svelte +511 -0
  187. package/gui/v1/src/routes/backgroundJobs/+layout.svelte +366 -0
  188. package/gui/v1/src/routes/backgroundJobs/+page.svelte +0 -0
  189. package/gui/v1/src/routes/backgroundJobs/[type]/[id]/+page.svelte +157 -0
  190. package/gui/v1/src/routes/constants/+layout.svelte +1 -0
  191. package/gui/v1/src/routes/constants/+page.svelte +382 -0
  192. package/gui/v1/src/routes/database/+layout.svelte +67 -0
  193. package/gui/v1/src/routes/database/+page.svelte +3 -0
  194. package/gui/v1/src/routes/database/table/[id]/+page.svelte +219 -0
  195. package/gui/v1/src/routes/logs/+layout.svelte +1 -0
  196. package/gui/v1/src/routes/logs/+page.svelte +512 -0
  197. package/gui/v1/src/routes/users/+layout.svelte +252 -0
  198. package/gui/v1/src/routes/users/+page.svelte +4 -0
  199. package/gui/v1/src/routes/users/[id]/+page.svelte +127 -0
  200. package/gui/v1/src/style/button.css +141 -0
  201. package/gui/v1/src/style/code.css +4 -0
  202. package/gui/v1/src/style/config.css +186 -0
  203. package/gui/v1/src/style/forms.css +55 -0
  204. package/gui/v1/src/style/general.css +53 -0
  205. package/gui/v1/src/style/reset.css +75 -0
  206. package/gui/v1/static/favicon.png +0 -0
  207. package/gui/v1/static/icon/apple-touch-icon-114x114.png +0 -0
  208. package/gui/v1/static/icon/apple-touch-icon-120x120.png +0 -0
  209. package/gui/v1/static/icon/apple-touch-icon-144x144.png +0 -0
  210. package/gui/v1/static/icon/apple-touch-icon-152x152.png +0 -0
  211. package/gui/v1/static/icon/apple-touch-icon-57x57.png +0 -0
  212. package/gui/v1/static/icon/apple-touch-icon-60x60.png +0 -0
  213. package/gui/v1/static/icon/apple-touch-icon-72x72.png +0 -0
  214. package/gui/v1/static/icon/apple-touch-icon-76x76.png +0 -0
  215. package/gui/v1/static/icon/code.txt +20 -0
  216. package/gui/v1/static/icon/favicon-128.png +0 -0
  217. package/gui/v1/static/icon/favicon-16x16.png +0 -0
  218. package/gui/v1/static/icon/favicon-196x196.png +0 -0
  219. package/gui/v1/static/icon/favicon-32x32.png +0 -0
  220. package/gui/v1/static/icon/favicon-96x96.png +0 -0
  221. package/gui/v1/static/icon/favicon.ico +0 -0
  222. package/gui/v1/static/icon/mstile-144x144.png +0 -0
  223. package/gui/v1/static/icon/mstile-150x150.png +0 -0
  224. package/gui/v1/static/icon/mstile-310x150.png +0 -0
  225. package/gui/v1/static/icon/mstile-310x310.png +0 -0
  226. package/gui/v1/static/icon/mstile-70x70.png +0 -0
  227. package/gui/v1/static/insites-logo-old.png +0 -0
  228. package/gui/v1/static/insites-logo.png +0 -0
  229. package/gui/v1/static/prism.js +8 -0
  230. package/gui/v1/svelte.config.js +12 -0
  231. package/gui/v1/vite.config.js +9 -0
  232. package/gui/v2/.env.local.sample +1 -0
  233. package/gui/v2/.eslintrc.json +3 -0
  234. package/gui/v2/README.md +36 -0
  235. package/gui/v2/jsconfig.json +7 -0
  236. package/gui/v2/next.config.mjs +8 -0
  237. package/gui/v2/out/404/index.html +1 -0
  238. package/gui/v2/out/404.html +1 -0
  239. package/gui/v2/out/_next/static/chunks/1255.653490595d3fc3e0.js +1 -0
  240. package/gui/v2/out/_next/static/chunks/156-d7f9f402651cf1ce.js +1 -0
  241. package/gui/v2/out/_next/static/chunks/1607-f540467bd5a5afbb.js +1 -0
  242. package/gui/v2/out/_next/static/chunks/1846.1d14172e53de7bd5.js +1 -0
  243. package/gui/v2/out/_next/static/chunks/2380.950327f4432936af.js +1 -0
  244. package/gui/v2/out/_next/static/chunks/2572.bec81f6c42bcb825.js +1 -0
  245. package/gui/v2/out/_next/static/chunks/2650.fe9586a828cdca9d.js +1 -0
  246. package/gui/v2/out/_next/static/chunks/3331.562d592a07589250.js +1 -0
  247. package/gui/v2/out/_next/static/chunks/3510.61b58fad9f502d34.js +1 -0
  248. package/gui/v2/out/_next/static/chunks/363642f4-2accd15316551dfa.js +1 -0
  249. package/gui/v2/out/_next/static/chunks/4704.c49f871da8f25277.js +1 -0
  250. package/gui/v2/out/_next/static/chunks/49448ee7.02b7afe6f73c8f9d.js +1 -0
  251. package/gui/v2/out/_next/static/chunks/4d1bfaba-4c00fd5561f9a075.js +1 -0
  252. package/gui/v2/out/_next/static/chunks/5103.b86a80704c50b2cb.js +1 -0
  253. package/gui/v2/out/_next/static/chunks/5250-f85a6556cdac145c.js +1 -0
  254. package/gui/v2/out/_next/static/chunks/5253.6fc3f7a625a83de9.js +1 -0
  255. package/gui/v2/out/_next/static/chunks/6163.50329d0319b2e55b.js +1 -0
  256. package/gui/v2/out/_next/static/chunks/6262.57b323874390cc1b.js +1 -0
  257. package/gui/v2/out/_next/static/chunks/6442.5e49a9feebedaf1a.js +1 -0
  258. package/gui/v2/out/_next/static/chunks/6711.076ab1f536726d8d.js +1 -0
  259. package/gui/v2/out/_next/static/chunks/6729.9cc7e67fe8be26d8.js +1 -0
  260. package/gui/v2/out/_next/static/chunks/6744.73e5042f769356c2.js +1 -0
  261. package/gui/v2/out/_next/static/chunks/7058.e63b764d613d6d14.js +1 -0
  262. package/gui/v2/out/_next/static/chunks/714.039f29b090afd075.js +1 -0
  263. package/gui/v2/out/_next/static/chunks/720.b5dff7afd9961ccc.js +1 -0
  264. package/gui/v2/out/_next/static/chunks/7283.e2af380e1cb385c4.js +1 -0
  265. package/gui/v2/out/_next/static/chunks/7567.fb1e0ef7389df59d.js +1 -0
  266. package/gui/v2/out/_next/static/chunks/7604.12b8307c002ce3f4.js +1 -0
  267. package/gui/v2/out/_next/static/chunks/7612.f071dccc7f2b0711.js +1 -0
  268. package/gui/v2/out/_next/static/chunks/7737.6191e6708d094927.js +1 -0
  269. package/gui/v2/out/_next/static/chunks/7833.6ff3b0179c6aab2e.js +1 -0
  270. package/gui/v2/out/_next/static/chunks/7934.875b05fd89a8eeae.js +1 -0
  271. package/gui/v2/out/_next/static/chunks/7957.c1f316fb4f52b181.js +1 -0
  272. package/gui/v2/out/_next/static/chunks/7979.1ed8d3011a12e2f1.js +1 -0
  273. package/gui/v2/out/_next/static/chunks/8043.592171badd8f3ea1.js +57 -0
  274. package/gui/v2/out/_next/static/chunks/8047-327e12b999e88629.js +1 -0
  275. package/gui/v2/out/_next/static/chunks/8069-99e6658a6772ea80.js +1 -0
  276. package/gui/v2/out/_next/static/chunks/8414.c85352362d33de3e.js +1 -0
  277. package/gui/v2/out/_next/static/chunks/8700.4409d1a867db1bf3.js +1 -0
  278. package/gui/v2/out/_next/static/chunks/9121.b83f5b8780f6c093.js +1 -0
  279. package/gui/v2/out/_next/static/chunks/9336.17897c831ce187f3.js +1 -0
  280. package/gui/v2/out/_next/static/chunks/9479.f984522cec5ff059.js +1 -0
  281. package/gui/v2/out/_next/static/chunks/9557.471a0e1662abe246.js +1 -0
  282. package/gui/v2/out/_next/static/chunks/989.aa0766c8bb66a392.js +1 -0
  283. package/gui/v2/out/_next/static/chunks/app/background-job/page-0521f8d6e8ec9b55.js +1 -0
  284. package/gui/v2/out/_next/static/chunks/app/constants/page-f1397b414fe2e4c0.js +1 -0
  285. package/gui/v2/out/_next/static/chunks/app/database/layout-c1e28d1ae358bc77.js +1 -0
  286. package/gui/v2/out/_next/static/chunks/app/database/page-d2f667b24c673fbb.js +1 -0
  287. package/gui/v2/out/_next/static/chunks/app/error-3cf235b6b99c469f.js +1 -0
  288. package/gui/v2/out/_next/static/chunks/app/global-error-afc2c2c9b5e82f57.js +1 -0
  289. package/gui/v2/out/_next/static/chunks/app/graphql/page-ae7c858f41b54801.js +1 -0
  290. package/gui/v2/out/_next/static/chunks/app/layout-8194e46834cb4aba.js +1 -0
  291. package/gui/v2/out/_next/static/chunks/app/liquid/page-02caf239e75f472f.js +1 -0
  292. package/gui/v2/out/_next/static/chunks/app/loading-54414b5097331d64.js +1 -0
  293. package/gui/v2/out/_next/static/chunks/app/logs/layout-5f78d72b1b805625.js +1 -0
  294. package/gui/v2/out/_next/static/chunks/app/logs/page-ef7dd2b328d24734.js +1 -0
  295. package/gui/v2/out/_next/static/chunks/app/not-found-33cae8ec5bdcd26f.js +1 -0
  296. package/gui/v2/out/_next/static/chunks/app/page-73b1f8b1f7552d3f.js +1 -0
  297. package/gui/v2/out/_next/static/chunks/app/users/page-2195ac1594366ce4.js +1 -0
  298. package/gui/v2/out/_next/static/chunks/d9670eb5.68da5e9f84dd26cf.js +1 -0
  299. package/gui/v2/out/_next/static/chunks/fd9d1056-0e6b8922e4ebe23a.js +1 -0
  300. package/gui/v2/out/_next/static/chunks/framework-08aa667e5202eed8.js +33 -0
  301. package/gui/v2/out/_next/static/chunks/main-7b334683379129cf.js +1 -0
  302. package/gui/v2/out/_next/static/chunks/main-app-35b90d128e2e05cf.js +1 -0
  303. package/gui/v2/out/_next/static/chunks/pages/_app-57bdff7978360b1c.js +1 -0
  304. package/gui/v2/out/_next/static/chunks/pages/_error-29037c284dd0eec6.js +1 -0
  305. package/gui/v2/out/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js +1 -0
  306. package/gui/v2/out/_next/static/chunks/webpack-d07cc8d61c19af5d.js +1 -0
  307. package/gui/v2/out/_next/static/css/874c6e64ab8446a4.css +6 -0
  308. package/gui/v2/out/_next/static/css/88716ec5fc4aa1e3.css +15 -0
  309. package/gui/v2/out/_next/static/wmD1UwESxpzZj8pfiHFeB/_buildManifest.js +1 -0
  310. package/gui/v2/out/_next/static/wmD1UwESxpzZj8pfiHFeB/_ssgManifest.js +1 -0
  311. package/gui/v2/out/assets/icons/home-bg-job.png +0 -0
  312. package/gui/v2/out/assets/icons/home-constants.png +0 -0
  313. package/gui/v2/out/assets/icons/home-database.png +0 -0
  314. package/gui/v2/out/assets/icons/home-graphql.png +0 -0
  315. package/gui/v2/out/assets/icons/home-info-fill-light.png +0 -0
  316. package/gui/v2/out/assets/icons/home-info-light.png +0 -0
  317. package/gui/v2/out/assets/icons/home-liquid.png +0 -0
  318. package/gui/v2/out/assets/icons/home-logs.png +0 -0
  319. package/gui/v2/out/assets/icons/home-pin-fill-light.png +0 -0
  320. package/gui/v2/out/assets/icons/home-pin-light.png +0 -0
  321. package/gui/v2/out/assets/icons/home-support.png +0 -0
  322. package/gui/v2/out/assets/icons/home-users.png +0 -0
  323. package/gui/v2/out/assets/icons/menu-bg-job-dark.png +0 -0
  324. package/gui/v2/out/assets/icons/menu-bg-job-light.png +0 -0
  325. package/gui/v2/out/assets/icons/menu-console-dark.png +0 -0
  326. package/gui/v2/out/assets/icons/menu-console-light.png +0 -0
  327. package/gui/v2/out/assets/icons/menu-constants-dark.png +0 -0
  328. package/gui/v2/out/assets/icons/menu-constants-light.png +0 -0
  329. package/gui/v2/out/assets/icons/menu-database-dark.png +0 -0
  330. package/gui/v2/out/assets/icons/menu-database-light.png +0 -0
  331. package/gui/v2/out/assets/icons/menu-docs-dark.png +0 -0
  332. package/gui/v2/out/assets/icons/menu-docs-light.png +0 -0
  333. package/gui/v2/out/assets/icons/menu-graphql-dark.png +0 -0
  334. package/gui/v2/out/assets/icons/menu-graphql-light.png +0 -0
  335. package/gui/v2/out/assets/icons/menu-iia-dark.png +0 -0
  336. package/gui/v2/out/assets/icons/menu-iia-light.png +0 -0
  337. package/gui/v2/out/assets/icons/menu-liquid-dark.png +0 -0
  338. package/gui/v2/out/assets/icons/menu-liquid-light.png +0 -0
  339. package/gui/v2/out/assets/icons/menu-logs-dark.png +0 -0
  340. package/gui/v2/out/assets/icons/menu-logs-light.png +0 -0
  341. package/gui/v2/out/assets/icons/menu-support-dark.png +0 -0
  342. package/gui/v2/out/assets/icons/menu-support-light.png +0 -0
  343. package/gui/v2/out/assets/icons/menu-theme-dark.png +0 -0
  344. package/gui/v2/out/assets/icons/menu-theme-light.png +0 -0
  345. package/gui/v2/out/assets/icons/menu-users-dark.png +0 -0
  346. package/gui/v2/out/assets/icons/menu-users-light.png +0 -0
  347. package/gui/v2/out/assets/icons/search-icon-dark.svg +3 -0
  348. package/gui/v2/out/assets/ins-logo-dark.svg +35 -0
  349. package/gui/v2/out/assets/ins-logo-light.svg +35 -0
  350. package/gui/v2/out/background-job/index.html +1 -0
  351. package/gui/v2/out/background-job/index.txt +9 -0
  352. package/gui/v2/out/constants/index.html +1 -0
  353. package/gui/v2/out/constants/index.txt +11 -0
  354. package/gui/v2/out/database/index.html +1 -0
  355. package/gui/v2/out/database/index.txt +13 -0
  356. package/gui/v2/out/favicon.ico +0 -0
  357. package/gui/v2/out/favicon.png +0 -0
  358. package/gui/v2/out/graphql/index.html +1 -0
  359. package/gui/v2/out/graphql/index.txt +11 -0
  360. package/gui/v2/out/index.html +1 -0
  361. package/gui/v2/out/index.txt +11 -0
  362. package/gui/v2/out/liquid/index.html +1 -0
  363. package/gui/v2/out/liquid/index.txt +11 -0
  364. package/gui/v2/out/logs/index.html +1 -0
  365. package/gui/v2/out/logs/index.txt +13 -0
  366. package/gui/v2/out/next.svg +1 -0
  367. package/gui/v2/out/users/index.html +1 -0
  368. package/gui/v2/out/users/index.txt +11 -0
  369. package/gui/v2/out/vercel.svg +1 -0
  370. package/gui/v2/package-lock.json +9575 -0
  371. package/gui/v2/package.json +37 -0
  372. package/gui/v2/postcss.config.js +6 -0
  373. package/gui/v2/public/assets/icons/home-bg-job.png +0 -0
  374. package/gui/v2/public/assets/icons/home-constants.png +0 -0
  375. package/gui/v2/public/assets/icons/home-database.png +0 -0
  376. package/gui/v2/public/assets/icons/home-graphql.png +0 -0
  377. package/gui/v2/public/assets/icons/home-info-fill-light.png +0 -0
  378. package/gui/v2/public/assets/icons/home-info-light.png +0 -0
  379. package/gui/v2/public/assets/icons/home-liquid.png +0 -0
  380. package/gui/v2/public/assets/icons/home-logs.png +0 -0
  381. package/gui/v2/public/assets/icons/home-pin-fill-light.png +0 -0
  382. package/gui/v2/public/assets/icons/home-pin-light.png +0 -0
  383. package/gui/v2/public/assets/icons/home-support.png +0 -0
  384. package/gui/v2/public/assets/icons/home-users.png +0 -0
  385. package/gui/v2/public/assets/icons/menu-bg-job-dark.png +0 -0
  386. package/gui/v2/public/assets/icons/menu-bg-job-light.png +0 -0
  387. package/gui/v2/public/assets/icons/menu-console-dark.png +0 -0
  388. package/gui/v2/public/assets/icons/menu-console-light.png +0 -0
  389. package/gui/v2/public/assets/icons/menu-constants-dark.png +0 -0
  390. package/gui/v2/public/assets/icons/menu-constants-light.png +0 -0
  391. package/gui/v2/public/assets/icons/menu-database-dark.png +0 -0
  392. package/gui/v2/public/assets/icons/menu-database-light.png +0 -0
  393. package/gui/v2/public/assets/icons/menu-docs-dark.png +0 -0
  394. package/gui/v2/public/assets/icons/menu-docs-light.png +0 -0
  395. package/gui/v2/public/assets/icons/menu-graphql-dark.png +0 -0
  396. package/gui/v2/public/assets/icons/menu-graphql-light.png +0 -0
  397. package/gui/v2/public/assets/icons/menu-iia-dark.png +0 -0
  398. package/gui/v2/public/assets/icons/menu-iia-light.png +0 -0
  399. package/gui/v2/public/assets/icons/menu-liquid-dark.png +0 -0
  400. package/gui/v2/public/assets/icons/menu-liquid-light.png +0 -0
  401. package/gui/v2/public/assets/icons/menu-logs-dark.png +0 -0
  402. package/gui/v2/public/assets/icons/menu-logs-light.png +0 -0
  403. package/gui/v2/public/assets/icons/menu-support-dark.png +0 -0
  404. package/gui/v2/public/assets/icons/menu-support-light.png +0 -0
  405. package/gui/v2/public/assets/icons/menu-theme-dark.png +0 -0
  406. package/gui/v2/public/assets/icons/menu-theme-light.png +0 -0
  407. package/gui/v2/public/assets/icons/menu-users-dark.png +0 -0
  408. package/gui/v2/public/assets/icons/menu-users-light.png +0 -0
  409. package/gui/v2/public/assets/icons/search-icon-dark.svg +3 -0
  410. package/gui/v2/public/assets/ins-logo-dark.svg +35 -0
  411. package/gui/v2/public/assets/ins-logo-light.svg +35 -0
  412. package/gui/v2/public/favicon.png +0 -0
  413. package/gui/v2/public/next.svg +1 -0
  414. package/gui/v2/public/vercel.svg +1 -0
  415. package/gui/v2/src/app/background-job/page.js +35 -0
  416. package/gui/v2/src/app/constants/components/Field/Field.css +11 -0
  417. package/gui/v2/src/app/constants/components/Field/Field.js +52 -0
  418. package/gui/v2/src/app/constants/components/Filter.js +50 -0
  419. package/gui/v2/src/app/constants/components/Form/Form.css +3 -0
  420. package/gui/v2/src/app/constants/components/Form/Form.js +41 -0
  421. package/gui/v2/src/app/constants/page.js +40 -0
  422. package/gui/v2/src/app/database/components/Filters/FilterForm.js +70 -0
  423. package/gui/v2/src/app/database/components/Filters/FilterValue.js +68 -0
  424. package/gui/v2/src/app/database/components/Filters/Filters.js +72 -0
  425. package/gui/v2/src/app/database/components/Sidebar.js +46 -0
  426. package/gui/v2/src/app/database/components/Table.js +122 -0
  427. package/gui/v2/src/app/database/context.js +106 -0
  428. package/gui/v2/src/app/database/layout.js +10 -0
  429. package/gui/v2/src/app/database/page.js +31 -0
  430. package/gui/v2/src/app/error.js +25 -0
  431. package/gui/v2/src/app/favicon.ico +0 -0
  432. package/gui/v2/src/app/global-error.js +20 -0
  433. package/gui/v2/src/app/globals.css +30 -0
  434. package/gui/v2/src/app/graphql/graphql.js +71 -0
  435. package/gui/v2/src/app/graphql/page.js +11 -0
  436. package/gui/v2/src/app/layout.js +27 -0
  437. package/gui/v2/src/app/liquid/page.js +68 -0
  438. package/gui/v2/src/app/loading.js +7 -0
  439. package/gui/v2/src/app/logs/components/JsonTree.js +31 -0
  440. package/gui/v2/src/app/logs/components/LogMetadata/LogMetadata.js +61 -0
  441. package/gui/v2/src/app/logs/components/LogRow.js +62 -0
  442. package/gui/v2/src/app/logs/components/PinnedPanel/PinnedPanel.js +46 -0
  443. package/gui/v2/src/app/logs/components/Toolbar/ClearButton.js +10 -0
  444. package/gui/v2/src/app/logs/components/Toolbar/Filter.js +13 -0
  445. package/gui/v2/src/app/logs/components/Toolbar/MetaDataCheckbox.js +11 -0
  446. package/gui/v2/src/app/logs/components/Toolbar/ShowPinnedButton.js +8 -0
  447. package/gui/v2/src/app/logs/components/Toolbar/Toolbar.js +45 -0
  448. package/gui/v2/src/app/logs/context.js +66 -0
  449. package/gui/v2/src/app/logs/layout.js +10 -0
  450. package/gui/v2/src/app/logs/page.js +73 -0
  451. package/gui/v2/src/app/not-found.js +11 -0
  452. package/gui/v2/src/app/page.js +103 -0
  453. package/gui/v2/src/app/providers.js +18 -0
  454. package/gui/v2/src/app/users/components/UserDetails.js +38 -0
  455. package/gui/v2/src/app/users/page.js +121 -0
  456. package/gui/v2/src/components/CodeEditor/CodeEditor.css +12 -0
  457. package/gui/v2/src/components/CodeEditor/CodeEditor.js +76 -0
  458. package/gui/v2/src/components/layout/Header/Header.css +6 -0
  459. package/gui/v2/src/components/layout/Header/Header.js +139 -0
  460. package/gui/v2/src/constants/filters.js +32 -0
  461. package/gui/v2/src/constants/records.js +17 -0
  462. package/gui/v2/src/context/config.js +27 -0
  463. package/gui/v2/src/context/filters.js +22 -0
  464. package/gui/v2/src/context/menu.js +14 -0
  465. package/gui/v2/src/context/theme.js +29 -0
  466. package/gui/v2/src/hooks/config.js +6 -0
  467. package/gui/v2/src/hooks/constants.js +99 -0
  468. package/gui/v2/src/hooks/database.js +44 -0
  469. package/gui/v2/src/hooks/filters.js +30 -0
  470. package/gui/v2/src/hooks/menu.js +19 -0
  471. package/gui/v2/src/hooks/query.js +10 -0
  472. package/gui/v2/src/hooks/queryParams.js +20 -0
  473. package/gui/v2/src/hooks/recordQuery.js +109 -0
  474. package/gui/v2/src/hooks/theme.js +6 -0
  475. package/gui/v2/src/hooks/users.js +63 -0
  476. package/gui/v2/src/reducers/filter.js +28 -0
  477. package/gui/v2/src/reducers/menu.js +125 -0
  478. package/gui/v2/src/reducers/query.js +143 -0
  479. package/gui/v2/src/services/ConfigService.js +7 -0
  480. package/gui/v2/src/services/CoreService.js +68 -0
  481. package/gui/v2/src/services/GraphiQLService.js +14 -0
  482. package/gui/v2/src/services/LiquidService.js +7 -0
  483. package/gui/v2/src/services/LogService.js +7 -0
  484. package/gui/v2/src/services/RecordService.js +27 -0
  485. package/gui/v2/src/styles/app/database.css +10 -0
  486. package/gui/v2/src/styles/app/graphql.css +100 -0
  487. package/gui/v2/src/styles/app/liquid.css +4 -0
  488. package/gui/v2/src/styles/app/users.css +3 -0
  489. package/gui/v2/src/styles/general.css +31 -0
  490. package/gui/v2/src/styles/icons.css +7 -0
  491. package/gui/v2/src/styles/utils.css +103 -0
  492. package/gui/v2/src/styles/variables.css +94 -0
  493. package/gui/v2/tailwind.config.js +18 -0
  494. package/gui/v3/.cta.json +13 -0
  495. package/gui/v3/.cursorrules +7 -0
  496. package/gui/v3/.vscode/settings.json +18 -0
  497. package/gui/v3/README.md +300 -0
  498. package/gui/v3/components.json +21 -0
  499. package/gui/v3/index.html +17 -0
  500. package/gui/v3/out/assets/asn1-EdZsLKOL.js +1 -0
  501. package/gui/v3/out/assets/babel-C9dsZwsK.js +15 -0
  502. package/gui/v3/out/assets/clojure-BMjYHr_A.js +1 -0
  503. package/gui/v3/out/assets/codicon-DCmgc-ay.ttf +0 -0
  504. package/gui/v3/out/assets/constants-BTP7rcyh.js +1 -0
  505. package/gui/v3/out/assets/createLucideIcon-C36JZ1s3.js +21 -0
  506. package/gui/v3/out/assets/css-BnMrqG3P.js +1 -0
  507. package/gui/v3/out/assets/database-DV7gHS2m.js +106 -0
  508. package/gui/v3/out/assets/estree-DZUM3lmb.js +36 -0
  509. package/gui/v3/out/assets/format-Bs4upCOt.js +1 -0
  510. package/gui/v3/out/assets/graphql-7Dzro_xV.js +29 -0
  511. package/gui/v3/out/assets/graphql-Cg7bfA9N.js +6 -0
  512. package/gui/v3/out/assets/graphql-D05RS2Ys.js +29 -0
  513. package/gui/v3/out/assets/graphql-DeSRErpC.css +6 -0
  514. package/gui/v3/out/assets/graphql-Kf_-WQAL.js +335 -0
  515. package/gui/v3/out/assets/graphqlMode-BiZPK6IB.js +2 -0
  516. package/gui/v3/out/assets/icons/home-bg-job.png +0 -0
  517. package/gui/v3/out/assets/icons/home-constants.png +0 -0
  518. package/gui/v3/out/assets/icons/home-database.png +0 -0
  519. package/gui/v3/out/assets/icons/home-graphql.png +0 -0
  520. package/gui/v3/out/assets/icons/home-info-fill-light.png +0 -0
  521. package/gui/v3/out/assets/icons/home-info-light.png +0 -0
  522. package/gui/v3/out/assets/icons/home-liquid.png +0 -0
  523. package/gui/v3/out/assets/icons/home-logs.png +0 -0
  524. package/gui/v3/out/assets/icons/home-pin-fill-light.png +0 -0
  525. package/gui/v3/out/assets/icons/home-pin-light.png +0 -0
  526. package/gui/v3/out/assets/icons/home-support.png +0 -0
  527. package/gui/v3/out/assets/icons/home-users.png +0 -0
  528. package/gui/v3/out/assets/icons/menu-bg-job-dark.png +0 -0
  529. package/gui/v3/out/assets/icons/menu-bg-job-light.png +0 -0
  530. package/gui/v3/out/assets/icons/menu-console-dark.png +0 -0
  531. package/gui/v3/out/assets/icons/menu-console-light.png +0 -0
  532. package/gui/v3/out/assets/icons/menu-constants-dark.png +0 -0
  533. package/gui/v3/out/assets/icons/menu-constants-light.png +0 -0
  534. package/gui/v3/out/assets/icons/menu-database-dark.png +0 -0
  535. package/gui/v3/out/assets/icons/menu-database-light.png +0 -0
  536. package/gui/v3/out/assets/icons/menu-docs-dark.png +0 -0
  537. package/gui/v3/out/assets/icons/menu-docs-light.png +0 -0
  538. package/gui/v3/out/assets/icons/menu-graphql-dark.png +0 -0
  539. package/gui/v3/out/assets/icons/menu-graphql-light.png +0 -0
  540. package/gui/v3/out/assets/icons/menu-iia-dark.png +0 -0
  541. package/gui/v3/out/assets/icons/menu-iia-light.png +0 -0
  542. package/gui/v3/out/assets/icons/menu-liquid-dark.png +0 -0
  543. package/gui/v3/out/assets/icons/menu-liquid-light.png +0 -0
  544. package/gui/v3/out/assets/icons/menu-logs-dark.png +0 -0
  545. package/gui/v3/out/assets/icons/menu-logs-light.png +0 -0
  546. package/gui/v3/out/assets/icons/menu-support-dark.png +0 -0
  547. package/gui/v3/out/assets/icons/menu-support-light.png +0 -0
  548. package/gui/v3/out/assets/icons/menu-theme-dark.png +0 -0
  549. package/gui/v3/out/assets/icons/menu-theme-light.png +0 -0
  550. package/gui/v3/out/assets/icons/menu-users-dark.png +0 -0
  551. package/gui/v3/out/assets/icons/menu-users-light.png +0 -0
  552. package/gui/v3/out/assets/icons/search-icon-dark.svg +3 -0
  553. package/gui/v3/out/assets/index-AQmQqDwZ.js +68 -0
  554. package/gui/v3/out/assets/index-BkuncLX2.js +1 -0
  555. package/gui/v3/out/assets/index-Cf5jXmk6.css +1 -0
  556. package/gui/v3/out/assets/index-CizP5xBC.js +7 -0
  557. package/gui/v3/out/assets/index-DO4-OviR.js +1 -0
  558. package/gui/v3/out/assets/index-DuTWoEAJ.js +1 -0
  559. package/gui/v3/out/assets/index-Fzn1QYI7.js +41 -0
  560. package/gui/v3/out/assets/ins-logo-dark.svg +35 -0
  561. package/gui/v3/out/assets/ins-logo-light.svg +35 -0
  562. package/gui/v3/out/assets/javascript-qCveANmP.js +1 -0
  563. package/gui/v3/out/assets/jsonMode-D3_vpDO9.js +15 -0
  564. package/gui/v3/out/assets/liquid-eqk0BGFR.js +56 -0
  565. package/gui/v3/out/assets/lite-BCVbb_oz.js +2 -0
  566. package/gui/v3/out/assets/logs-DI6Go5dW.js +16 -0
  567. package/gui/v3/out/assets/mllike-CXdrOF99.js +1 -0
  568. package/gui/v3/out/assets/monaco-editor-C4cuflwX.js +722 -0
  569. package/gui/v3/out/assets/monaco-editor-D6kYW_CN.css +1 -0
  570. package/gui/v3/out/assets/mouseTarget-B_KnTiWf.js +9 -0
  571. package/gui/v3/out/assets/objectWithoutPropertiesLoose-Ls7qkcH1.js +1 -0
  572. package/gui/v3/out/assets/pug-DukmZTjD.js +1 -0
  573. package/gui/v3/out/assets/python-BuPzkPfP.js +1 -0
  574. package/gui/v3/out/assets/rpm-CTu-6PCP.js +1 -0
  575. package/gui/v3/out/assets/sql-D0XecflT.js +1 -0
  576. package/gui/v3/out/assets/standalone-BS_cqyLa.js +39 -0
  577. package/gui/v3/out/assets/table-D17Bwjdk.js +6 -0
  578. package/gui/v3/out/assets/toolkit-DToHxdMP.js +1 -0
  579. package/gui/v3/out/assets/ttcn-cfg-B9xdYoR4.js +1 -0
  580. package/gui/v3/out/assets/users-DI3wqkEI.js +1 -0
  581. package/gui/v3/out/favicon.png +0 -0
  582. package/gui/v3/out/index.html +41 -0
  583. package/gui/v3/out/logo192.png +0 -0
  584. package/gui/v3/out/logo512.png +0 -0
  585. package/gui/v3/out/manifest.json +25 -0
  586. package/gui/v3/out/monacoeditorwork/editor.worker.bundle.js +13519 -0
  587. package/gui/v3/out/monacoeditorwork/graphql.worker..bundle.js +32105 -0
  588. package/gui/v3/out/monacoeditorwork/json.worker.bundle.js +21320 -0
  589. package/gui/v3/out/robots.txt +3 -0
  590. package/gui/v3/package-lock.json +7193 -0
  591. package/gui/v3/package.json +69 -0
  592. package/gui/v3/public/assets/icons/home-bg-job.png +0 -0
  593. package/gui/v3/public/assets/icons/home-constants.png +0 -0
  594. package/gui/v3/public/assets/icons/home-database.png +0 -0
  595. package/gui/v3/public/assets/icons/home-graphql.png +0 -0
  596. package/gui/v3/public/assets/icons/home-info-fill-light.png +0 -0
  597. package/gui/v3/public/assets/icons/home-info-light.png +0 -0
  598. package/gui/v3/public/assets/icons/home-liquid.png +0 -0
  599. package/gui/v3/public/assets/icons/home-logs.png +0 -0
  600. package/gui/v3/public/assets/icons/home-pin-fill-light.png +0 -0
  601. package/gui/v3/public/assets/icons/home-pin-light.png +0 -0
  602. package/gui/v3/public/assets/icons/home-support.png +0 -0
  603. package/gui/v3/public/assets/icons/home-users.png +0 -0
  604. package/gui/v3/public/assets/icons/menu-bg-job-dark.png +0 -0
  605. package/gui/v3/public/assets/icons/menu-bg-job-light.png +0 -0
  606. package/gui/v3/public/assets/icons/menu-console-dark.png +0 -0
  607. package/gui/v3/public/assets/icons/menu-console-light.png +0 -0
  608. package/gui/v3/public/assets/icons/menu-constants-dark.png +0 -0
  609. package/gui/v3/public/assets/icons/menu-constants-light.png +0 -0
  610. package/gui/v3/public/assets/icons/menu-database-dark.png +0 -0
  611. package/gui/v3/public/assets/icons/menu-database-light.png +0 -0
  612. package/gui/v3/public/assets/icons/menu-docs-dark.png +0 -0
  613. package/gui/v3/public/assets/icons/menu-docs-light.png +0 -0
  614. package/gui/v3/public/assets/icons/menu-graphql-dark.png +0 -0
  615. package/gui/v3/public/assets/icons/menu-graphql-light.png +0 -0
  616. package/gui/v3/public/assets/icons/menu-iia-dark.png +0 -0
  617. package/gui/v3/public/assets/icons/menu-iia-light.png +0 -0
  618. package/gui/v3/public/assets/icons/menu-liquid-dark.png +0 -0
  619. package/gui/v3/public/assets/icons/menu-liquid-light.png +0 -0
  620. package/gui/v3/public/assets/icons/menu-logs-dark.png +0 -0
  621. package/gui/v3/public/assets/icons/menu-logs-light.png +0 -0
  622. package/gui/v3/public/assets/icons/menu-support-dark.png +0 -0
  623. package/gui/v3/public/assets/icons/menu-support-light.png +0 -0
  624. package/gui/v3/public/assets/icons/menu-theme-dark.png +0 -0
  625. package/gui/v3/public/assets/icons/menu-theme-light.png +0 -0
  626. package/gui/v3/public/assets/icons/menu-users-dark.png +0 -0
  627. package/gui/v3/public/assets/icons/menu-users-light.png +0 -0
  628. package/gui/v3/public/assets/icons/search-icon-dark.svg +3 -0
  629. package/gui/v3/public/assets/ins-logo-dark.svg +35 -0
  630. package/gui/v3/public/assets/ins-logo-light.svg +35 -0
  631. package/gui/v3/public/favicon.png +0 -0
  632. package/gui/v3/public/logo192.png +0 -0
  633. package/gui/v3/public/logo512.png +0 -0
  634. package/gui/v3/public/manifest.json +25 -0
  635. package/gui/v3/public/robots.txt +3 -0
  636. package/gui/v3/src/components/CodeEditor.tsx +100 -0
  637. package/gui/v3/src/components/commons/DatePicker.tsx +93 -0
  638. package/gui/v3/src/components/commons/DateRangeFilter.tsx +76 -0
  639. package/gui/v3/src/components/commons/InputBox.tsx +88 -0
  640. package/gui/v3/src/components/data/DataPagination.tsx +116 -0
  641. package/gui/v3/src/components/data/DataTable.tsx +84 -0
  642. package/gui/v3/src/components/layout/Header.tsx +42 -0
  643. package/gui/v3/src/components/layout/Layout.tsx +15 -0
  644. package/gui/v3/src/components/ui/alert.tsx +66 -0
  645. package/gui/v3/src/components/ui/badge.tsx +48 -0
  646. package/gui/v3/src/components/ui/button.tsx +59 -0
  647. package/gui/v3/src/components/ui/calendar.tsx +211 -0
  648. package/gui/v3/src/components/ui/card.tsx +92 -0
  649. package/gui/v3/src/components/ui/dropdown-menu.tsx +255 -0
  650. package/gui/v3/src/components/ui/hover-card.tsx +42 -0
  651. package/gui/v3/src/components/ui/input.tsx +21 -0
  652. package/gui/v3/src/components/ui/navigation-menu.tsx +168 -0
  653. package/gui/v3/src/components/ui/pagination.tsx +127 -0
  654. package/gui/v3/src/components/ui/popover.tsx +46 -0
  655. package/gui/v3/src/components/ui/resizable.tsx +54 -0
  656. package/gui/v3/src/components/ui/select.tsx +183 -0
  657. package/gui/v3/src/components/ui/separator.tsx +28 -0
  658. package/gui/v3/src/components/ui/sheet.tsx +137 -0
  659. package/gui/v3/src/components/ui/sidebar.tsx +724 -0
  660. package/gui/v3/src/components/ui/skeleton.tsx +13 -0
  661. package/gui/v3/src/components/ui/switch.tsx +29 -0
  662. package/gui/v3/src/components/ui/table.tsx +114 -0
  663. package/gui/v3/src/components/ui/tooltip.tsx +61 -0
  664. package/gui/v3/src/features/config/context.ts +21 -0
  665. package/gui/v3/src/features/config/hooks.ts +11 -0
  666. package/gui/v3/src/features/config/provider.tsx +33 -0
  667. package/gui/v3/src/features/config/services.ts +14 -0
  668. package/gui/v3/src/features/config/type.ts +7 -0
  669. package/gui/v3/src/features/database/components/DatabaseLayout.tsx +44 -0
  670. package/gui/v3/src/features/database/components/DatabaseLoader.tsx +3 -0
  671. package/gui/v3/src/features/database/components/DatabaseNotFound.tsx +6 -0
  672. package/gui/v3/src/features/database/components/DatabaseSidebar.tsx +60 -0
  673. package/gui/v3/src/features/database/components/LoadingIndicator.tsx +3 -0
  674. package/gui/v3/src/features/database/components/RecordsFilter.tsx +89 -0
  675. package/gui/v3/src/features/database/components/RecordsTable.tsx +64 -0
  676. package/gui/v3/src/features/database/components/RecordsViewer.tsx +39 -0
  677. package/gui/v3/src/features/database/graphql/queries.ts +64 -0
  678. package/gui/v3/src/features/database/hooks/useDatabaseColumns.ts +34 -0
  679. package/gui/v3/src/features/database/hooks/useRecords.ts +21 -0
  680. package/gui/v3/src/features/database/hooks/useSelectedTable.ts +14 -0
  681. package/gui/v3/src/features/database/hooks/useTables.ts +18 -0
  682. package/gui/v3/src/features/database/reducers/useRecordsVariable.ts +66 -0
  683. package/gui/v3/src/features/database/schema/records.ts +82 -0
  684. package/gui/v3/src/features/database/schema/tables.ts +51 -0
  685. package/gui/v3/src/features/graphiql/components/GraphiQL.tsx +21 -0
  686. package/gui/v3/src/features/graphiql/style.css +120 -0
  687. package/gui/v3/src/features/liquid/components/LiquidEditor.tsx +95 -0
  688. package/gui/v3/src/features/liquid/service.ts +13 -0
  689. package/gui/v3/src/features/logs/components/LogMessage.tsx +83 -0
  690. package/gui/v3/src/features/logs/components/LogsTable.tsx +121 -0
  691. package/gui/v3/src/features/logs/components/LogsViewer.tsx +30 -0
  692. package/gui/v3/src/features/logs/hooks/useLogs.tsx +59 -0
  693. package/gui/v3/src/features/logs/types/schema.ts +8 -0
  694. package/gui/v3/src/features/menu/components/GuiMenu.tsx +32 -0
  695. package/gui/v3/src/features/menu/components/InsitesMenu.tsx +56 -0
  696. package/gui/v3/src/features/menu/components/TileMenu.tsx +88 -0
  697. package/gui/v3/src/features/menu/constants.ts +99 -0
  698. package/gui/v3/src/features/menu/hooks.ts +11 -0
  699. package/gui/v3/src/features/menu/store.ts +26 -0
  700. package/gui/v3/src/features/menu/types.ts +16 -0
  701. package/gui/v3/src/features/theme/context.tsx +16 -0
  702. package/gui/v3/src/features/theme/hook.tsx +11 -0
  703. package/gui/v3/src/features/theme/provider.tsx +35 -0
  704. package/gui/v3/src/features/theme/store.ts +17 -0
  705. package/gui/v3/src/features/theme/types.ts +1 -0
  706. package/gui/v3/src/features/users/components/Users.tsx +77 -0
  707. package/gui/v3/src/features/users/types.ts +31 -0
  708. package/gui/v3/src/features/users/usernames.ts +45 -0
  709. package/gui/v3/src/hooks/use-mobile.ts +19 -0
  710. package/gui/v3/src/lib/api/constants.ts +1 -0
  711. package/gui/v3/src/lib/api/errors.ts +22 -0
  712. package/gui/v3/src/lib/api/request.ts +57 -0
  713. package/gui/v3/src/lib/api/types.ts +16 -0
  714. package/gui/v3/src/lib/graphql/hooks.ts +27 -0
  715. package/gui/v3/src/lib/graphql/request.ts +31 -0
  716. package/gui/v3/src/lib/graphql/schema/filters.ts +108 -0
  717. package/gui/v3/src/lib/graphql/schema/sorts.ts +10 -0
  718. package/gui/v3/src/lib/graphql/types.ts +29 -0
  719. package/gui/v3/src/lib/providers/entries.ts +21 -0
  720. package/gui/v3/src/lib/providers/index.tsx +10 -0
  721. package/gui/v3/src/lib/providers/queryClient.tsx +16 -0
  722. package/gui/v3/src/lib/providers/types.ts +9 -0
  723. package/gui/v3/src/lib/utils.ts +30 -0
  724. package/gui/v3/src/logo.svg +44 -0
  725. package/gui/v3/src/main.tsx +42 -0
  726. package/gui/v3/src/pages/ConstantPage.tsx +3 -0
  727. package/gui/v3/src/pages/DatabasePage.tsx +31 -0
  728. package/gui/v3/src/pages/GraphqlPage.tsx +9 -0
  729. package/gui/v3/src/pages/HomePage.tsx +36 -0
  730. package/gui/v3/src/pages/LiquidPage.tsx +5 -0
  731. package/gui/v3/src/pages/LogsPage.tsx +10 -0
  732. package/gui/v3/src/pages/Userspage.tsx +5 -0
  733. package/gui/v3/src/reportWebVitals.ts +13 -0
  734. package/gui/v3/src/routeTree.gen.ts +189 -0
  735. package/gui/v3/src/routes/__root.tsx +6 -0
  736. package/gui/v3/src/routes/constants.tsx +7 -0
  737. package/gui/v3/src/routes/database.tsx +6 -0
  738. package/gui/v3/src/routes/graphql.tsx +6 -0
  739. package/gui/v3/src/routes/index.tsx +6 -0
  740. package/gui/v3/src/routes/liquid.tsx +6 -0
  741. package/gui/v3/src/routes/logs.tsx +6 -0
  742. package/gui/v3/src/routes/users.tsx +6 -0
  743. package/gui/v3/src/styles.css +247 -0
  744. package/gui/v3/tsconfig.json +28 -0
  745. package/gui/v3/vite.config.ts +43 -0
  746. package/lib/ServerError.js +122 -0
  747. package/lib/apiRequest.js +15 -0
  748. package/lib/archive.js +126 -0
  749. package/lib/assets/insites-icon.png +0 -0
  750. package/lib/assets/manifest.js +34 -0
  751. package/lib/assets/packAssets.js +53 -0
  752. package/lib/assets.js +56 -0
  753. package/lib/audit/detailed.js +97 -0
  754. package/lib/audit/duplicateFile.js +31 -0
  755. package/lib/audit/extensions.js +53 -0
  756. package/lib/audit/fileName.js +20 -0
  757. package/lib/audit/filters.js +99 -0
  758. package/lib/audit/orphanedIncludes.js +85 -0
  759. package/lib/audit/tags.js +69 -0
  760. package/lib/audit.js +47 -0
  761. package/lib/data/fetchFiles.js +93 -0
  762. package/lib/data/isValidJSON.js +12 -0
  763. package/lib/data/uploadFiles.js +92 -0
  764. package/lib/data/waitForStatus.js +31 -0
  765. package/lib/deploy/directAssetsUploadStrategy.js +57 -0
  766. package/lib/deploy/strategy.js +8 -0
  767. package/lib/directories.js +23 -0
  768. package/lib/downloadFile.js +16 -0
  769. package/lib/duration.js +7 -0
  770. package/lib/files.js +96 -0
  771. package/lib/insites-apig.js +18 -0
  772. package/lib/insites-console.js +24 -0
  773. package/lib/logger/rainbow.js +11 -0
  774. package/lib/logger/simple.js +9 -0
  775. package/lib/logger.js +63 -0
  776. package/lib/logsv2/http.js +40 -0
  777. package/lib/modules.js +129 -0
  778. package/lib/portal.js +52 -0
  779. package/lib/pos-proxy.js +162 -0
  780. package/lib/prepareArchive.js +49 -0
  781. package/lib/presignUrl.js +71 -0
  782. package/lib/proxy.js +75 -0
  783. package/lib/push.js +62 -0
  784. package/lib/s3UploadFile.js +56 -0
  785. package/lib/server.js +123 -0
  786. package/lib/settings.js +42 -0
  787. package/lib/shouldBeSynced.js +89 -0
  788. package/lib/swagger-client.js +287 -0
  789. package/lib/templates.js +52 -0
  790. package/lib/updateNotifier.js +8 -0
  791. package/lib/utils/valid-file-path.js +21 -0
  792. package/lib/validators/directoryEmpty.js +12 -0
  793. package/lib/validators/directoryExists.js +12 -0
  794. package/lib/validators/email.js +8 -0
  795. package/lib/validators/existence.js +9 -0
  796. package/lib/validators/index.js +13 -0
  797. package/lib/validators/url.js +8 -0
  798. package/lib/watch-files-extensions.js +39 -0
  799. package/lib/watch.js +192 -0
  800. package/mock/app.js +45 -0
  801. package/mock/bin/www +91 -0
  802. package/mock/package-lock.json +2287 -0
  803. package/mock/package.json +18 -0
  804. package/mock/public/stylesheets/style.css +8 -0
  805. package/mock/responses/constants.js +39 -0
  806. package/mock/responses/databases.js +3589 -0
  807. package/mock/responses/logs.js +126 -0
  808. package/mock/responses/records.js +443 -0
  809. package/mock/responses/schemas.js +36896 -0
  810. package/mock/responses/users.js +194 -0
  811. package/mock/routes/api.js +53 -0
  812. package/mock/routes/index.js +13 -0
  813. package/mock/routes/users.js +9 -0
  814. package/mock/views/error.jade +6 -0
  815. package/mock/views/index.jade +5 -0
  816. package/mock/views/layout.jade +7 -0
  817. package/package.json +77 -0
  818. package/tests/archive.test.js +33 -0
  819. package/tests/deploy.test.js +26 -0
  820. package/tests/fixtures/archive/default/app/assets/images/insites-logo.svg +55 -0
  821. package/tests/fixtures/archive/default/app/views/pages/hello.liquid +4 -0
  822. package/tests/fixtures/archive/default/modules/testModule/public/views/pages/hello-test-module.liquid +4 -0
  823. package/tests/fixtures/archive/default/modules/testModule/public/views/partials/dir/subdir/foo.liquid +1 -0
  824. package/tests/fixtures/deploy/default/app/assets/images/insites-logo.svg +55 -0
  825. package/tests/fixtures/deploy/default/app/views/pages/index.liquid +6 -0
  826. package/tests/fixtures/deploy/default/app/views/partials/test.liquid +1 -0
  827. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/README.md +22 -0
  828. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/private/api_calls/.keep +0 -0
  829. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/private/assets/.keep +0 -0
  830. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/private/emails/.keep +0 -0
  831. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/private/graphql/.keep +0 -0
  832. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/private/model_schemas/.keep +0 -0
  833. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/private/smses/.keep +0 -0
  834. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/private/translations/.keep +0 -0
  835. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/private/views/layouts/.keep +0 -0
  836. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/private/views/pages/.keep +0 -0
  837. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/private/views/partials/.keep +0 -0
  838. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/public/api_calls/.keep +0 -0
  839. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/public/assets/.keep +0 -0
  840. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/public/emails/.keep +0 -0
  841. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/public/graphql/.keep +0 -0
  842. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/public/model_schemas/.keep +0 -0
  843. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/public/smses/.keep +0 -0
  844. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/public/translations/.keep +0 -0
  845. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/public/views/layouts/.keep +0 -0
  846. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/public/views/pages/.keep +0 -0
  847. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/public/views/pages/demo.json.liquid +4 -0
  848. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/public/views/partials/.keep +0 -0
  849. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/public/views/partials/components/.keep +0 -0
  850. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/public/views/partials/components/test.html.liquid +1 -0
  851. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/public/views/partials/components/test.liquid +1 -0
  852. package/tests/fixtures/deploy/default/modules/insites-cli-demo-module/template-values.json +7 -0
  853. package/tests/utils/cliPath.js +4 -0
  854. package/tests/utils/exec.js +12 -0
@@ -0,0 +1,335 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/graphql-7Dzro_xV.js","assets/index-AQmQqDwZ.js","assets/index-Cf5jXmk6.css","assets/toolkit-DToHxdMP.js","assets/index-Fzn1QYI7.js","assets/monaco-editor-C4cuflwX.js","assets/mouseTarget-B_KnTiWf.js","assets/monaco-editor-D6kYW_CN.css","assets/lite-BCVbb_oz.js","assets/babel-C9dsZwsK.js"])))=>i.map(i=>d[i]);
2
+ import{r as g,d as dE,j as y,P as Do,u as Ff,e as Gs,b as hE,$ as el,i as Lf,k as pE,p as mE,D as gE,a4 as bE,a5 as Of,_ as dr,o as qe,a6 as db,a7 as Rf,g as Pf,a8 as vE,a9 as yE,aa as xE,ab as EE,ac as _E,ad as TE,ae as wE,af as tc,a1 as Fn,ag as SE,ah as Zo,ai as kE,aj as hb,ak as tl,al as nl,am as AE,an as DE,O as nc,ao as NE,ap as CE,aq as IE,ar as FE,as as LE,M as OE}from"./index-AQmQqDwZ.js";import{R as RE,P as PE,C as ME,I as VE,T as $E}from"./toolkit-DToHxdMP.js";import{R as jE,h as BE,a as UE,F as qE}from"./index-Fzn1QYI7.js";var xu="Dialog",[pb,RR]=dE(xu),[zE,Zn]=pb(xu),mb=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:o=!0}=e,a=g.useRef(null),u=g.useRef(null),[l,c]=hE({prop:r,defaultProp:i??!1,onChange:s,caller:xu});return y.jsx(zE,{scope:t,triggerRef:a,contentRef:u,contentId:el(),titleId:el(),descriptionId:el(),open:l,onOpenChange:c,onOpenToggle:g.useCallback(()=>c(f=>!f),[c]),modal:o,children:n})};mb.displayName=xu;var gb="DialogTrigger",bb=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Zn(gb,n),s=Ff(t,i.triggerRef);return y.jsx(Do.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":$f(i.open),...r,ref:s,onClick:Gs(e.onClick,i.onOpenToggle)})});bb.displayName=gb;var Mf="DialogPortal",[HE,vb]=pb(Mf,{forceMount:void 0}),yb=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,s=Zn(Mf,t);return y.jsx(HE,{scope:t,forceMount:n,children:g.Children.map(r,o=>y.jsx(Lf,{present:n||s.open,children:y.jsx(pE,{asChild:!0,container:i,children:o})}))})};yb.displayName=Mf;var La="DialogOverlay",xb=g.forwardRef((e,t)=>{const n=vb(La,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=Zn(La,e.__scopeDialog);return s.modal?y.jsx(Lf,{present:r||s.open,children:y.jsx(WE,{...i,ref:t})}):null});xb.displayName=La;var GE=mE("DialogOverlay.RemoveScroll"),WE=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Zn(La,n);return y.jsx(jE,{as:GE,allowPinchZoom:!0,shards:[i.contentRef],children:y.jsx(Do.div,{"data-state":$f(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ai="DialogContent",Eb=g.forwardRef((e,t)=>{const n=vb(Ai,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=Zn(Ai,e.__scopeDialog);return y.jsx(Lf,{present:r||s.open,children:s.modal?y.jsx(QE,{...i,ref:t}):y.jsx(YE,{...i,ref:t})})});Eb.displayName=Ai;var QE=g.forwardRef((e,t)=>{const n=Zn(Ai,e.__scopeDialog),r=g.useRef(null),i=Ff(t,n.contentRef,r);return g.useEffect(()=>{const s=r.current;if(s)return BE(s)},[]),y.jsx(_b,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Gs(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Gs(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:Gs(e.onFocusOutside,s=>s.preventDefault())})}),YE=g.forwardRef((e,t)=>{const n=Zn(Ai,e.__scopeDialog),r=g.useRef(!1),i=g.useRef(!1);return y.jsx(_b,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=s.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),_b=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=e,a=Zn(Ai,n),u=g.useRef(null),l=Ff(t,u);return UE(),y.jsxs(y.Fragment,{children:[y.jsx(qE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:y.jsx(gE,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":$f(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(XE,{titleId:a.titleId}),y.jsx(ZE,{contentRef:u,descriptionId:a.descriptionId})]})]})}),Vf="DialogTitle",Tb=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Zn(Vf,n);return y.jsx(Do.h2,{id:i.titleId,...r,ref:t})});Tb.displayName=Vf;var wb="DialogDescription",Sb=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Zn(wb,n);return y.jsx(Do.p,{id:i.descriptionId,...r,ref:t})});Sb.displayName=wb;var kb="DialogClose",Ab=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Zn(kb,n);return y.jsx(Do.button,{type:"button",...r,ref:t,onClick:Gs(e.onClick,()=>i.onOpenChange(!1))})});Ab.displayName=kb;function $f(e){return e?"open":"closed"}var Db="DialogTitleWarning",[PR,Nb]=bE(Db,{contentName:Ai,titleName:Vf,docsSlug:"dialog"}),XE=({titleId:e})=>{const t=Nb(Db),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
3
+
4
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
5
+
6
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},JE="DialogDescriptionWarning",ZE=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Nb(JE).contentName}}.`;return g.useEffect(()=>{var s;const i=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},KE=mb,e6=bb,t6=yb,n6=xb,r6=Eb,i6=Tb,s6=Sb,o6=Ab;/**
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ *
12
+ * @lightSyntaxTransform
13
+ * @noflow
14
+ * @nolint
15
+ * @preventMunge
16
+ * @preserve-invariant-messages
17
+ */var rl,j0;function a6(){if(j0)return rl;j0=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,o=($,B)=>{for(var oe in B)t($,oe,{get:B[oe],enumerable:!0})},a=($,B,oe,de)=>{if(B&&typeof B=="object"||typeof B=="function")for(let V of r(B))!s.call($,V)&&V!==oe&&t($,V,{get:()=>B[V],enumerable:!(de=n(B,V))||de.enumerable});return $},u=($,B,oe)=>(oe=$!=null?e(i($)):{},a(!$||!$.__esModule?t(oe,"default",{value:$,enumerable:!0}):oe,$)),l=$=>a(t({},"__esModule",{value:!0}),$),c={};o(c,{$dispatcherGuard:()=>U,$makeReadOnly:()=>z,$reset:()=>D,$structuralCheck:()=>Q,c:()=>E,clearRenderCounterRegistry:()=>Z,renderCounterRegistry:()=>W,useRenderCounter:()=>M}),rl=l(c);var f=u(Of()),{useRef:d,useEffect:h,isValidElement:p}=f,b,v=(b=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)!=null?b:f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.memo_cache_sentinel"),x,E=typeof((x=f.__COMPILER_RUNTIME)==null?void 0:x.c)=="function"?f.__COMPILER_RUNTIME.c:function(B){return f.useMemo(()=>{const oe=new Array(B);for(let de=0;de<B;de++)oe[de]=_;return oe[_]=!0,oe},[])},T={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach($=>{T[$]=()=>{throw new Error(`[React] Unexpected React hook call (${$}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var k=null;T.useMemoCache=$=>{if(k==null)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return k.useMemoCache($)};function A($){return v.ReactCurrentDispatcher.current=$,v.ReactCurrentDispatcher.current}var I=[];function U($){const B=v.ReactCurrentDispatcher.current;if($===0){if(I.push(B),I.length===1&&(k=B),B===T)throw new Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");A(T)}else if($===1){const oe=I.pop();if(oe==null)throw new Error("React Compiler internal error: unexpected null in guard stack");I.length===0&&(k=null),A(oe)}else if($===2)I.push(B),A(k);else if($===3){const oe=I.pop();if(oe==null)throw new Error("React Compiler internal error: unexpected null in guard stack");A(oe)}else throw new Error("React Compiler internal error: unreachable block"+$)}function D($){for(let B=0;B<$.length;B++)$[B]=_}function z(){throw new Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var W=new Map;function Z(){for(const $ of W.values())$.forEach(B=>{B.count=0})}function O($,B){let oe=W.get($);oe==null&&(oe=new Set,W.set($,oe)),oe.add(B)}function N($,B){const oe=W.get($);oe!=null&&oe.delete(B)}function M($){const B=d(null);B.current!=null&&(B.current.count+=1),h(()=>{if(B.current==null){const oe={count:0};O($,oe),B.current=oe}return()=>{B.current!==null&&N($,B.current)}})}var q=new Set;function Q($,B,oe,de,V,re){function L(ie,H,ce,ae){const ke=`${de}:${re} [${V}] ${oe}${ce} changed from ${ie} to ${H} at depth ${ae}`;q.has(ke)||(q.add(ke),console.error(ke))}const ee=2;function ue(ie,H,ce,ae){if(!(ae>ee)){if(ie===H)return;if(typeof ie!=typeof H)L(`type ${typeof ie}`,`type ${typeof H}`,ce,ae);else if(typeof ie=="object"){const ke=Array.isArray(ie),we=Array.isArray(H);if(ie===null&&H!==null)L("null",`type ${typeof H}`,ce,ae);else if(H===null)L(`type ${typeof ie}`,"null",ce,ae);else if(ie instanceof Map)if(!(H instanceof Map))L("Map instance","other value",ce,ae);else if(ie.size!==H.size)L(`Map instance with size ${ie.size}`,`Map instance with size ${H.size}`,ce,ae);else for(const[R,C]of ie)H.has(R)?ue(C,H.get(R),`${ce}.get(${R})`,ae+1):L(`Map instance with key ${R}`,`Map instance without key ${R}`,ce,ae);else if(H instanceof Map)L("other value","Map instance",ce,ae);else if(ie instanceof Set)if(!(H instanceof Set))L("Set instance","other value",ce,ae);else if(ie.size!==H.size)L(`Set instance with size ${ie.size}`,`Set instance with size ${H.size}`,ce,ae);else for(const R of H)ie.has(R)||L(`Set instance without element ${R}`,`Set instance with element ${R}`,ce,ae);else if(H instanceof Set)L("other value","Set instance",ce,ae);else if(ke||we)if(ke!==we)L(`type ${ke?"array":"object"}`,`type ${we?"array":"object"}`,ce,ae);else if(ie.length!==H.length)L(`array with length ${ie.length}`,`array with length ${H.length}`,ce,ae);else for(let R=0;R<ie.length;R++)ue(ie[R],H[R],`${ce}[${R}]`,ae+1);else if(p(ie)||p(H))p(ie)!==p(H)?L(`type ${p(ie)?"React element":"object"}`,`type ${p(H)?"React element":"object"}`,ce,ae):ie.type!==H.type?L(`React element of type ${ie.type}`,`React element of type ${H.type}`,ce,ae):ue(ie.props,H.props,`[props of ${ce}]`,ae+1);else{for(const R in H)R in ie||L(`object without key ${R}`,`object with key ${R}`,ce,ae);for(const R in ie)R in H?ue(ie[R],H[R],`${ce}.${R}`,ae+1):L(`object with key ${R}`,`object without key ${R}`,ce,ae)}}else{if(typeof ie=="function")return;isNaN(ie)||isNaN(H)?isNaN(ie)!==isNaN(H)&&L(`${isNaN(ie)?"NaN":"non-NaN value"}`,`${isNaN(H)?"NaN":"non-NaN value"}`,ce,ae):ie!==H&&L(ie,H,ce,ae)}}}ue($,B,"",0)}return rl}var me=a6();const u6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),g.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),l6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),c6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),f6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),d6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 14 14",stroke:"currentColor",strokeWidth:3,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M1 1L12.9998 12.9997"}),g.createElement("path",{d:"M13 1L1.00079 13.0003"})),h6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),g.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),p6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),g.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),g.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),m6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),g.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),g6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),g.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),g.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),b6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"})),v6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),g.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"})),y6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),g.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),x6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),E6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),g.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),_6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),g.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),g.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5})),T6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5 6 6)"}),g.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),w6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),S6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),g.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),k6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),g.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),g.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),g.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),A6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),g.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),D6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"})),N6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z"})),C6=({title:e,titleId:t,...n})=>g.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),g.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),g.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),g.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),g.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"})),I6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),g.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),g.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),g.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1})),F6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),g.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2})),L6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"})),O6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"})),R6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5})),P6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})),M6=({title:e,titleId:t,...n})=>g.createElement("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"})),V6=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),g.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),$6=He(u6),j6=He(l6),B6=He(c6),U6=He(f6),jf=He(d6),q6=He(h6),z6=He(p6),H6=He(m6),G6=He(g6),W6=He(b6),Q6=He(v6),Y6=He(y6),X6=He(x6),J6=He(E6),Z6=He(_6),K6=He(T6),e_=He(w6),t_=He(S6),n_=He(k6),r_=He(A6),i_=He(D6),s_=He(N6),o_=He(C6),a_=He(I6),u_=He(F6),l_=He(L6),c_=He(O6),f_=He(R6),d_=He(P6),h_=He(M6),Ko=He(V6);function He(e){const t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon",n=r=>{const i=me.c(2);let s;return i[0]!==r?(s=y.jsx(e,{title:t,...r}),i[0]=r,i[1]=s):s=i[1],s};return n.displayName=e.name,n}class p_{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?ls.isErrorNoTelemetry(t)?new ls(t.message+`
18
+
19
+ `+t.stack):new Error(t.message+`
20
+
21
+ `+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const Cb=new p_;function il(e){Ib(e)||Cb.onUnexpectedError(e)}function MR(e){Ib(e)||Cb.onUnexpectedExternalError(e)}function VR(e){if(e instanceof Error){const{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:ls.isErrorNoTelemetry(e)}}return e}const Oa="Canceled";function Ib(e){return e instanceof m_?!0:e instanceof Error&&e.name===Oa&&e.message===Oa}class m_ extends Error{constructor(){super(Oa),this.name=this.message}}function $R(){const e=new Error(Oa);return e.name=e.message,e}function jR(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function BR(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class UR extends Error{constructor(t){super("NotSupported"),t&&(this.message=t)}}class ls extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof ls)return t;const n=new ls;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class Fb extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,Fb.prototype)}}function Lb(e,t){const n=this;let r=!1,i;return function(){return r||(r=!0,i=e.apply(n,arguments)),i}}var rc;(function(e){function t(T){return T&&typeof T=="object"&&typeof T[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*i(T){yield T}e.single=i;function s(T){return t(T)?T:i(T)}e.wrap=s;function o(T){return T||n}e.from=o;function*a(T){for(let k=T.length-1;k>=0;k--)yield T[k]}e.reverse=a;function u(T){return!T||T[Symbol.iterator]().next().done===!0}e.isEmpty=u;function l(T){return T[Symbol.iterator]().next().value}e.first=l;function c(T,k){let A=0;for(const I of T)if(k(I,A++))return!0;return!1}e.some=c;function f(T,k){for(const A of T)if(k(A))return A}e.find=f;function*d(T,k){for(const A of T)k(A)&&(yield A)}e.filter=d;function*h(T,k){let A=0;for(const I of T)yield k(I,A++)}e.map=h;function*p(T,k){let A=0;for(const I of T)yield*k(I,A++)}e.flatMap=p;function*b(...T){for(const k of T)yield*k}e.concat=b;function v(T,k,A){let I=A;for(const U of T)I=k(I,U);return I}e.reduce=v;function*_(T,k,A=T.length){for(k<0&&(k+=T.length),A<0?A+=T.length:A>T.length&&(A=T.length);k<A;k++)yield T[k]}e.slice=_;function x(T,k=Number.POSITIVE_INFINITY){const A=[];if(k===0)return[A,T];const I=T[Symbol.iterator]();for(let U=0;U<k;U++){const D=I.next();if(D.done)return[A,e.empty()];A.push(D.value)}return[A,{[Symbol.iterator](){return I}}]}e.consume=x;async function E(T){const k=[];for await(const A of T)k.push(A);return Promise.resolve(k)}e.asyncToArray=E})(rc||(rc={}));function qR(e){return e}function zR(e){return typeof e=="object"&&e!==null&&typeof e.dispose=="function"&&e.dispose.length===0}function Bf(e){if(rc.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function g_(...e){return so(()=>Bf(e))}function so(e){return{dispose:Lb(()=>{e()})}}const vu=class vu{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Bf(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?vu.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&this._toDispose.delete(t)}};vu.DISABLE_DISPOSED_WARNING=!1;let oo=vu;const $0=class $0{constructor(){this._store=new oo,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};$0.None=Object.freeze({dispose(){}});let Di=$0;class HR{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(t){var n;this._isDisposed||t===this._value||((n=this._value)==null||n.dispose(),this._value=t)}clear(){this.value=void 0}dispose(){var t;this._isDisposed=!0,(t=this._value)==null||t.dispose(),this._value=void 0}}class GR{constructor(t){this._disposable=t,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class WR{constructor(t){this.object=t}dispose(){}}class QR{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{Bf(this._store.values())}finally{this._store.clear()}}get(t){return this._store.get(t)}set(t,n,r=!1){var i;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),r||(i=this._store.get(t))==null||i.dispose(),this._store.set(t,n)}deleteAndDispose(t){var n;(n=this._store.get(t))==null||n.dispose(),this._store.delete(t)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}var Nr;let ct=(Nr=class{constructor(t){this.element=t,this.next=Nr.Undefined,this.prev=Nr.Undefined}},Nr.Undefined=new Nr(void 0),Nr);class b_{constructor(){this._first=ct.Undefined,this._last=ct.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ct.Undefined}clear(){let t=this._first;for(;t!==ct.Undefined;){const n=t.next;t.prev=ct.Undefined,t.next=ct.Undefined,t=n}this._first=ct.Undefined,this._last=ct.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new ct(t);if(this._first===ct.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==ct.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==ct.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==ct.Undefined&&t.next!==ct.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===ct.Undefined&&t.next===ct.Undefined?(this._first=ct.Undefined,this._last=ct.Undefined):t.next===ct.Undefined?(this._last=this._last.prev,this._last.next=ct.Undefined):t.prev===ct.Undefined&&(this._first=this._first.next,this._first.prev=ct.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==ct.Undefined;)yield t.element,t=t.next}}const v_=globalThis.performance&&typeof globalThis.performance.now=="function";class Uf{static create(t){return new Uf(t)}constructor(t){this._now=v_&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var Ra;(function(e){e.None=()=>Di.None;function t(O,N){return d(O,()=>{},0,void 0,!0,void 0,N)}e.defer=t;function n(O){return(N,M=null,q)=>{let Q=!1,$;return $=O(B=>{if(!Q)return $?$.dispose():Q=!0,N.call(M,B)},null,q),Q&&$.dispose(),$}}e.once=n;function r(O,N){return e.once(e.filter(O,N))}e.onceIf=r;function i(O,N,M){return c((q,Q=null,$)=>O(B=>q.call(Q,N(B)),null,$),M)}e.map=i;function s(O,N,M){return c((q,Q=null,$)=>O(B=>{N(B),q.call(Q,B)},null,$),M)}e.forEach=s;function o(O,N,M){return c((q,Q=null,$)=>O(B=>N(B)&&q.call(Q,B),null,$),M)}e.filter=o;function a(O){return O}e.signal=a;function u(...O){return(N,M=null,q)=>{const Q=g_(...O.map($=>$(B=>N.call(M,B))));return f(Q,q)}}e.any=u;function l(O,N,M,q){let Q=M;return i(O,$=>(Q=N(Q,$),Q),q)}e.reduce=l;function c(O,N){let M;const q={onWillAddFirstListener(){M=O(Q.fire,Q)},onDidRemoveLastListener(){M==null||M.dispose()}},Q=new an(q);return N==null||N.add(Q),Q.event}function f(O,N){return N instanceof Array?N.push(O):N&&N.add(O),O}function d(O,N,M=100,q=!1,Q=!1,$,B){let oe,de,V,re=0,L;const ee={leakWarningThreshold:$,onWillAddFirstListener(){oe=O(ie=>{re++,de=N(de,ie),q&&!V&&(ue.fire(de),de=void 0),L=()=>{const H=de;de=void 0,V=void 0,(!q||re>1)&&ue.fire(H),re=0},typeof M=="number"?(clearTimeout(V),V=setTimeout(L,M)):V===void 0&&(V=0,queueMicrotask(L))})},onWillRemoveListener(){Q&&re>0&&(L==null||L())},onDidRemoveLastListener(){L=void 0,oe.dispose()}},ue=new an(ee);return B==null||B.add(ue),ue.event}e.debounce=d;function h(O,N=0,M){return e.debounce(O,(q,Q)=>q?(q.push(Q),q):[Q],N,void 0,!0,void 0,M)}e.accumulate=h;function p(O,N=(q,Q)=>q===Q,M){let q=!0,Q;return o(O,$=>{const B=q||!N($,Q);return q=!1,Q=$,B},M)}e.latch=p;function b(O,N,M){return[e.filter(O,N,M),e.filter(O,q=>!N(q),M)]}e.split=b;function v(O,N=!1,M=[],q){let Q=M.slice(),$=O(de=>{Q?Q.push(de):oe.fire(de)});q&&q.add($);const B=()=>{Q==null||Q.forEach(de=>oe.fire(de)),Q=null},oe=new an({onWillAddFirstListener(){$||($=O(de=>oe.fire(de)),q&&q.add($))},onDidAddFirstListener(){Q&&(N?setTimeout(B):B())},onDidRemoveLastListener(){$&&$.dispose(),$=null}});return q&&q.add(oe),oe.event}e.buffer=v;function _(O,N){return(q,Q,$)=>{const B=N(new E);return O(function(oe){const de=B.evaluate(oe);de!==x&&q.call(Q,de)},void 0,$)}}e.chain=_;const x=Symbol("HaltChainable");class E{constructor(){this.steps=[]}map(N){return this.steps.push(N),this}forEach(N){return this.steps.push(M=>(N(M),M)),this}filter(N){return this.steps.push(M=>N(M)?M:x),this}reduce(N,M){let q=M;return this.steps.push(Q=>(q=N(q,Q),q)),this}latch(N=(M,q)=>M===q){let M=!0,q;return this.steps.push(Q=>{const $=M||!N(Q,q);return M=!1,q=Q,$?Q:x}),this}evaluate(N){for(const M of this.steps)if(N=M(N),N===x)break;return N}}function T(O,N,M=q=>q){const q=(...oe)=>B.fire(M(...oe)),Q=()=>O.on(N,q),$=()=>O.removeListener(N,q),B=new an({onWillAddFirstListener:Q,onDidRemoveLastListener:$});return B.event}e.fromNodeEventEmitter=T;function k(O,N,M=q=>q){const q=(...oe)=>B.fire(M(...oe)),Q=()=>O.addEventListener(N,q),$=()=>O.removeEventListener(N,q),B=new an({onWillAddFirstListener:Q,onDidRemoveLastListener:$});return B.event}e.fromDOMEventEmitter=k;function A(O){return new Promise(N=>n(O)(N))}e.toPromise=A;function I(O){const N=new an;return O.then(M=>{N.fire(M)},()=>{N.fire(void 0)}).finally(()=>{N.dispose()}),N.event}e.fromPromise=I;function U(O,N){return O(M=>N.fire(M))}e.forward=U;function D(O,N,M){return N(M),O(q=>N(q))}e.runAndSubscribe=D;class z{constructor(N,M){this._observable=N,this._counter=0,this._hasChanged=!1;const q={onWillAddFirstListener:()=>{N.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{N.removeObserver(this)}};this.emitter=new an(q),M&&M.add(this.emitter)}beginUpdate(N){this._counter++}handlePossibleChange(N){}handleChange(N,M){this._hasChanged=!0}endUpdate(N){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function W(O,N){return new z(O,N).emitter.event}e.fromObservable=W;function Z(O){return(N,M,q)=>{let Q=0,$=!1;const B={beginUpdate(){Q++},endUpdate(){Q--,Q===0&&(O.reportChanges(),$&&($=!1,N.call(M)))},handlePossibleChange(){},handleChange(){$=!0}};O.addObserver(B),O.reportChanges();const oe={dispose(){O.removeObserver(B)}};return q instanceof oo?q.add(oe):Array.isArray(q)&&q.push(oe),oe}}e.fromObservableLight=Z})(Ra||(Ra={}));const ns=class ns{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${ns._idPool++}`,ns.all.add(this)}start(t){this._stopWatch=new Uf,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};ns.all=new Set,ns._idPool=0;let ic=ns,y_=-1;const yu=class yu{constructor(t,n,r=(yu._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){var t;(t=this._stacks)==null||t.clear()}check(t,n){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;const[s,o]=this.getMostFrequentStack(),a=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${o}):`;console.warn(a),console.warn(s);const u=new x_(a,s);this._errorHandler(u)}return()=>{const s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,n=0;for(const[r,i]of this._stacks)(!t||n<i)&&(t=[r,i],n=i);return t}};yu._idPool=1;let sc=yu;class qf{static create(){const t=new Error;return new qf(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
22
+ `).slice(2).join(`
23
+ `))}}class x_ extends Error{constructor(t,n){super(t),this.name="ListenerLeakError",this.stack=n}}class E_ extends Error{constructor(t,n){super(t),this.name="ListenerRefusalError",this.stack=n}}class sl{constructor(t){this.value=t}}const __=2;class an{constructor(t){var n,r,i,s;this._size=0,this._options=t,this._leakageMon=(n=this._options)!=null&&n.leakWarningThreshold?new sc((t==null?void 0:t.onListenerError)??il,((r=this._options)==null?void 0:r.leakWarningThreshold)??y_):void 0,this._perfMon=(i=this._options)!=null&&i._profName?new ic(this._options._profName):void 0,this._deliveryQueue=(s=this._options)==null?void 0:s.deliveryQueue}dispose(){var t,n,r,i;this._disposed||(this._disposed=!0,((t=this._deliveryQueue)==null?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(r=(n=this._options)==null?void 0:n.onDidRemoveLastListener)==null||r.call(n),(i=this._leakageMon)==null||i.dispose())}get event(){return this._event??(this._event=(t,n,r)=>{var a,u,l,c,f;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const d=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(d);const h=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],p=new E_(`${d}. HINT: Stack shows most frequent listener (${h[1]}-times)`,h[0]);return(((a=this._options)==null?void 0:a.onListenerError)||il)(p),Di.None}if(this._disposed)return Di.None;n&&(t=t.bind(n));const i=new sl(t);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=qf.create(),s=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof sl?(this._deliveryQueue??(this._deliveryQueue=new Ob),this._listeners=[this._listeners,i]):this._listeners.push(i):((l=(u=this._options)==null?void 0:u.onWillAddFirstListener)==null||l.call(u,this),this._listeners=i,(f=(c=this._options)==null?void 0:c.onDidAddFirstListener)==null||f.call(c,this)),this._size++;const o=so(()=>{s==null||s(),this._removeListener(i)});return r instanceof oo?r.add(o):Array.isArray(r)&&r.push(o),o}),this._event}_removeListener(t){var s,o,a,u;if((o=(s=this._options)==null?void 0:s.onWillRemoveListener)==null||o.call(s,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(u=(a=this._options)==null?void 0:a.onDidRemoveLastListener)==null||u.call(a,this),this._size=0;return}const n=this._listeners,r=n.indexOf(t);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[r]=void 0;const i=this._deliveryQueue.current===this;if(this._size*__<=n.length){let l=0;for(let c=0;c<n.length;c++)n[c]?n[l++]=n[c]:i&&(this._deliveryQueue.end--,l<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=l}}_deliver(t,n){var i;if(!t)return;const r=((i=this._options)==null?void 0:i.onListenerError)||il;if(!r){t.value(n);return}try{t.value(n)}catch(s){r(s)}}_deliverQueue(t){const n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){var n,r,i,s;if((n=this._deliveryQueue)!=null&&n.current&&(this._deliverQueue(this._deliveryQueue),(r=this._perfMon)==null||r.stop()),(i=this._perfMon)==null||i.start(this._size),this._listeners)if(this._listeners instanceof sl)this._deliver(this._listeners,t);else{const o=this._deliveryQueue;o.enqueue(this,t,this._listeners.length),this._deliverQueue(o)}(s=this._perfMon)==null||s.stop()}hasListeners(){return this._size>0}}const YR=()=>new Ob;class Ob{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class T_ extends an{constructor(t){super(t),this._isPaused=0,this._eventQueue=new b_,this._mergeFn=t==null?void 0:t.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const t=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(t))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(t){this._size&&(this._isPaused!==0?this._eventQueue.push(t):super.fire(t))}}class XR extends T_{constructor(t){super(t),this._delay=t.delay??100}fire(t){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(t)}}class JR extends an{constructor(t){super(t),this._queuedEvents=[],this._mergeFn=t==null?void 0:t.merge}fire(t){this.hasListeners()&&(this._queuedEvents.push(t),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(n=>super.fire(n)),this._queuedEvents=[]}))}}class ZR{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new an({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(t){const n={event:t,listener:null};return this.events.push(n),this.hasListeners&&this.hook(n),so(Lb(()=>{this.hasListeners&&this.unhook(n);const i=this.events.indexOf(n);this.events.splice(i,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(t=>this.hook(t))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(t=>this.unhook(t))}hook(t){t.listener=t.event(n=>this.emitter.fire(n))}unhook(t){var n;(n=t.listener)==null||n.dispose(),t.listener=null}dispose(){var t;this.emitter.dispose();for(const n of this.events)(t=n.listener)==null||t.dispose();this.events=[]}}class KR{constructor(){this.data=[]}wrapEvent(t,n,r){return(i,s,o)=>t(a=>{const u=this.data[this.data.length-1];if(!n){u?u.buffers.push(()=>i.call(s,a)):i.call(s,a);return}const l=u;if(!l){i.call(s,n(r,a));return}l.items??(l.items=[]),l.items.push(a),l.buffers.length===0&&u.buffers.push(()=>{l.reducedResult??(l.reducedResult=r?l.items.reduce(n,r):l.items.reduce(n)),i.call(s,l.reducedResult)})},void 0,o)}bufferEvents(t){const n={buffers:new Array};this.data.push(n);const r=t();return this.data.pop(),n.buffers.forEach(i=>i()),r}}class eP{constructor(){this.listening=!1,this.inputEvent=Ra.None,this.inputEventListener=Di.None,this.emitter=new an({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(t){this.inputEvent=t,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=t(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const Rb=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Pa;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof ya?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ra.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Rb})})(Pa||(Pa={}));class ya{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Rb:(this._emitter||(this._emitter=new an),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Pb{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new ya),this._token}cancel(){this._token?this._token instanceof ya&&this._token.cancel():this._token=Pa.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)==null||n.dispose(),this._token?this._token instanceof ya&&this._token.dispose():this._token=Pa.None}}function tP(e){const t=new Pb;return e.add({dispose(){t.cancel()}}),t.token}class zf{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const xa=new zf,oc=new zf,ac=new zf,w_=new Array(230),S_=Object.create(null),k_=Object.create(null),Mb=[];for(let e=0;e<=193;e++)Mb[e]=-1;(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const i of t){const[s,o,a,u,l,c,f,d,h]=i;if(r[o]||(r[o]=!0,S_[a]=o,k_[a.toLowerCase()]=o,s&&(Mb[o]=u)),!n[u]){if(n[u]=!0,!l)throw new Error(`String representation missing for key code ${u} around scan code ${a}`);xa.define(u,l),oc.define(u,d||l),ac.define(u,h||d||l)}c&&(w_[c]=u)}})();var B0;(function(e){function t(a){return xa.keyCodeToStr(a)}e.toString=t;function n(a){return xa.strToKeyCode(a)}e.fromString=n;function r(a){return oc.keyCodeToStr(a)}e.toUserSettingsUS=r;function i(a){return ac.keyCodeToStr(a)}e.toUserSettingsGeneral=i;function s(a){return oc.strToKeyCode(a)||ac.strToKeyCode(a)}e.fromUserSettings=s;function o(a){if(a>=98&&a<=113)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return xa.keyCodeToStr(a)}e.toElectronAccelerator=o})(B0||(B0={}));function A_(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}function D_(){return globalThis._VSCODE_NLS_MESSAGES}function Vb(){return globalThis._VSCODE_NLS_LANGUAGE}const N_=Vb()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Ma(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],o=t[s];let a=r;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),N_&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function et(e,t,...n){return Ma(typeof e=="number"?$b(e,t):t,n)}function $b(e,t){var r;const n=(r=D_())==null?void 0:r[e];if(typeof n!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}function nP(e,t,...n){let r;typeof e=="number"?r=$b(e,t):r=t;const i=Ma(r,n);return{value:i,original:t===r?i:Ma(t,n)}}const Yi="en";let Va=!1,$a=!1,Ea=!1,jb=!1,Hf=!1,Gf=!1,Bb=!1,ea,_a=Yi,U0=Yi,C_,Bn;const Cr=globalThis;let Wt;var ub;typeof Cr.vscode<"u"&&typeof Cr.vscode.process<"u"?Wt=Cr.vscode.process:typeof process<"u"&&typeof((ub=process==null?void 0:process.versions)==null?void 0:ub.node)=="string"&&(Wt=process);var lb;const I_=typeof((lb=Wt==null?void 0:Wt.versions)==null?void 0:lb.electron)=="string",F_=I_&&(Wt==null?void 0:Wt.type)==="renderer";var cb;if(typeof Wt=="object"){Va=Wt.platform==="win32",$a=Wt.platform==="darwin",Ea=Wt.platform==="linux",Ea&&Wt.env.SNAP&&Wt.env.SNAP_REVISION,Wt.env.CI||Wt.env.BUILD_ARTIFACTSTAGINGDIRECTORY,ea=Yi,_a=Yi;const e=Wt.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);ea=t.userLocale,U0=t.osLocale,_a=t.resolvedLanguage||Yi,C_=(cb=t.languagePack)==null?void 0:cb.translationsConfigFile}catch{}jb=!0}else typeof navigator=="object"&&!F_?(Bn=navigator.userAgent,Va=Bn.indexOf("Windows")>=0,$a=Bn.indexOf("Macintosh")>=0,Gf=(Bn.indexOf("Macintosh")>=0||Bn.indexOf("iPad")>=0||Bn.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Ea=Bn.indexOf("Linux")>=0,Bb=(Bn==null?void 0:Bn.indexOf("Mobi"))>=0,Hf=!0,_a=Vb()||Yi,ea=navigator.language.toLowerCase(),U0=ea):console.error("Unable to resolve platform.");const ao=Va,L_=$a,rP=Ea,iP=jb,sP=Hf,O_=Hf&&typeof Cr.importScripts=="function",oP=O_?Cr.origin:void 0,aP=Gf,uP=Bb,br=Bn,lP=_a,R_=typeof Cr.postMessage=="function"&&!Cr.importScripts,cP=(()=>{if(R_){const e=[];Cr.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r<i;r++){const s=e[r];if(s.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),s.callback();return}}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),Cr.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),fP=$a||Gf?2:Va?1:3;let q0=!0,z0=!1;function dP(){if(!z0){z0=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2,q0=new Uint16Array(e.buffer)[0]===513}return q0}const P_=!!(br&&br.indexOf("Chrome")>=0),hP=!!(br&&br.indexOf("Firefox")>=0),pP=!!(!P_&&br&&br.indexOf("Safari")>=0),mP=!!(br&&br.indexOf("Edg/")>=0),gP=!!(br&&br.indexOf("Android")>=0);var H0={};let is;const ol=globalThis.vscode;var fb;if(typeof ol<"u"&&typeof ol.process<"u"){const e=ol.process;is={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof((fb=process==null?void 0:process.versions)==null?void 0:fb.node)=="string"?is={get platform(){return process.platform},get arch(){return process.arch},get env(){return H0},cwd(){return H0.VSCODE_CWD||process.cwd()}}:is={get platform(){return ao?"win32":L_?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const ja=is.cwd,M_=is.env,V_=is.platform,$_=65,j_=97,B_=90,U_=122,Xr=46,$t=47,on=92,Ur=58,q_=63;class Ub extends Error{constructor(t,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=t.indexOf(".")!==-1?"property":"argument";let o=`The "${t}" ${s} ${i} of type ${n}`;o+=`. Received type ${typeof r}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function z_(e,t){if(e===null||typeof e!="object")throw new Ub(t,"Object",e)}function dt(e,t){if(typeof e!="string")throw new Ub(t,"string",e)}const Vr=V_==="win32";function Ce(e){return e===$t||e===on}function uc(e){return e===$t}function qr(e){return e>=$_&&e<=B_||e>=j_&&e<=U_}function Ba(e,t,n,r){let i="",s=0,o=-1,a=0,u=0;for(let l=0;l<=e.length;++l){if(l<e.length)u=e.charCodeAt(l);else{if(r(u))break;u=$t}if(r(u)){if(!(o===l-1||a===1))if(a===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==Xr||i.charCodeAt(i.length-2)!==Xr){if(i.length>2){const c=i.lastIndexOf(n);c===-1?(i="",s=0):(i=i.slice(0,c),s=i.length-1-i.lastIndexOf(n)),o=l,a=0;continue}else if(i.length!==0){i="",s=0,o=l,a=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(o+1,l)}`:i=e.slice(o+1,l),s=l-o-1;o=l,a=0}else u===Xr&&a!==-1?++a:a=-1}return i}function H_(e){return e?`${e[0]==="."?"":"."}${e}`:""}function qb(e,t){z_(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${H_(t.ext)}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const Yt={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],dt(s,`paths[${i}]`),s.length===0)continue}else t.length===0?s=ja():(s=M_[`=${t}`]||ja(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===on)&&(s=`${t}\\`));const o=s.length;let a=0,u="",l=!1;const c=s.charCodeAt(0);if(o===1)Ce(c)&&(a=1,l=!0);else if(Ce(c))if(l=!0,Ce(s.charCodeAt(1))){let f=2,d=f;for(;f<o&&!Ce(s.charCodeAt(f));)f++;if(f<o&&f!==d){const h=s.slice(d,f);for(d=f;f<o&&Ce(s.charCodeAt(f));)f++;if(f<o&&f!==d){for(d=f;f<o&&!Ce(s.charCodeAt(f));)f++;(f===o||f!==d)&&(u=`\\\\${h}\\${s.slice(d,f)}`,a=f)}}}else a=1;else qr(c)&&s.charCodeAt(1)===Ur&&(u=s.slice(0,2),a=2,o>2&&Ce(s.charCodeAt(2))&&(l=!0,a=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${s.slice(a)}\\${n}`,r=l,l&&t.length>0)break}return n=Ba(n,!r,"\\",Ce),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){dt(e,"path");const t=e.length;if(t===0)return".";let n=0,r,i=!1;const s=e.charCodeAt(0);if(t===1)return uc(s)?"\\":e;if(Ce(s))if(i=!0,Ce(e.charCodeAt(1))){let a=2,u=a;for(;a<t&&!Ce(e.charCodeAt(a));)a++;if(a<t&&a!==u){const l=e.slice(u,a);for(u=a;a<t&&Ce(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&!Ce(e.charCodeAt(a));)a++;if(a===t)return`\\\\${l}\\${e.slice(u)}\\`;a!==u&&(r=`\\\\${l}\\${e.slice(u,a)}`,n=a)}}}else n=1;else qr(s)&&e.charCodeAt(1)===Ur&&(r=e.slice(0,2),n=2,t>2&&Ce(e.charCodeAt(2))&&(i=!0,n=3));let o=n<t?Ba(e.slice(n),!i,"\\",Ce):"";return o.length===0&&!i&&(o="."),o.length>0&&Ce(e.charCodeAt(t-1))&&(o+="\\"),r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){dt(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return Ce(n)||t>2&&qr(n)&&e.charCodeAt(1)===Ur&&Ce(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let s=0;s<e.length;++s){const o=e[s];dt(o,"path"),o.length>0&&(t===void 0?t=n=o:t+=`\\${o}`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&Ce(n.charCodeAt(0))){++i;const s=n.length;s>1&&Ce(n.charCodeAt(1))&&(++i,s>2&&(Ce(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&Ce(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return Yt.normalize(t)},relative(e,t){if(dt(e,"from"),dt(t,"to"),e===t)return"";const n=Yt.resolve(e),r=Yt.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===on;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===on;)s--;const o=s-i;let a=0;for(;a<t.length&&t.charCodeAt(a)===on;)a++;let u=t.length;for(;u-1>a&&t.charCodeAt(u-1)===on;)u--;const l=u-a,c=o<l?o:l;let f=-1,d=0;for(;d<c;d++){const p=e.charCodeAt(i+d);if(p!==t.charCodeAt(a+d))break;p===on&&(f=d)}if(d!==c){if(f===-1)return r}else{if(l>c){if(t.charCodeAt(a+d)===on)return r.slice(a+d+1);if(d===2)return r.slice(a+d)}o>c&&(e.charCodeAt(i+d)===on?f=d:d===2&&(f=3)),f===-1&&(f=0)}let h="";for(d=i+f+1;d<=s;++d)(d===s||e.charCodeAt(d)===on)&&(h+=h.length===0?"..":"\\..");return a+=f,h.length>0?`${h}${r.slice(a,u)}`:(r.charCodeAt(a)===on&&++a,r.slice(a,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=Yt.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===on){if(t.charCodeAt(1)===on){const n=t.charCodeAt(2);if(n!==q_&&n!==Xr)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(qr(t.charCodeAt(0))&&t.charCodeAt(1)===Ur&&t.charCodeAt(2)===on)return`\\\\?\\${t}`;return e},dirname(e){dt(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(t===1)return Ce(i)?e:".";if(Ce(i)){if(n=r=1,Ce(e.charCodeAt(1))){let a=2,u=a;for(;a<t&&!Ce(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&Ce(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&!Ce(e.charCodeAt(a));)a++;if(a===t)return e;a!==u&&(n=r=a+1)}}}}else qr(i)&&e.charCodeAt(1)===Ur&&(n=t>2&&Ce(e.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let a=t-1;a>=r;--a)if(Ce(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&dt(t,"suffix"),dt(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&qr(e.charCodeAt(0))&&e.charCodeAt(1)===Ur&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(s=e.length-1;s>=n;--s){const u=e.charCodeAt(s);if(Ce(u)){if(!i){n=s+1;break}}else a===-1&&(i=!1,a=s+1),o>=0&&(u===t.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=n;--s)if(Ce(e.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){dt(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===Ur&&qr(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const u=e.charCodeAt(a);if(Ce(u)){if(!s){r=a+1;break}continue}i===-1&&(s=!1,i=a+1),u===Xr?n===-1?n=a:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:qb.bind(null,"\\"),parse(e){dt(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(n===1)return Ce(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Ce(i)){if(r=1,Ce(e.charCodeAt(1))){let f=2,d=f;for(;f<n&&!Ce(e.charCodeAt(f));)f++;if(f<n&&f!==d){for(d=f;f<n&&Ce(e.charCodeAt(f));)f++;if(f<n&&f!==d){for(d=f;f<n&&!Ce(e.charCodeAt(f));)f++;f===n?r=f:f!==d&&(r=f+1)}}}}else if(qr(i)&&e.charCodeAt(1)===Ur){if(n<=2)return t.root=t.dir=e,t;if(r=2,Ce(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,o=r,a=-1,u=!0,l=e.length-1,c=0;for(;l>=r;--l){if(i=e.charCodeAt(l),Ce(i)){if(!u){o=l+1;break}continue}a===-1&&(u=!1,a=l+1),i===Xr?s===-1?s=l:c!==1&&(c=1):s!==-1&&(c=-1)}return a!==-1&&(s===-1||c===0||c===1&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),o>0&&o!==r?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},G_=(()=>{if(Vr){const e=/\\/g;return()=>{const t=ja().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>ja()})(),tn={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:G_();dt(i,`paths[${r}]`),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===$t)}return t=Ba(t,!n,"/",uc),n?`/${t}`:t.length>0?t:"."},normalize(e){if(dt(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===$t,n=e.charCodeAt(e.length-1)===$t;return e=Ba(e,!t,"/",uc),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return dt(e,"path"),e.length>0&&e.charCodeAt(0)===$t},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];dt(r,"path"),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":tn.normalize(t)},relative(e,t){if(dt(e,"from"),dt(t,"to"),e===t||(e=tn.resolve(e),t=tn.resolve(t),e===t))return"";const n=1,r=e.length,i=r-n,s=1,o=t.length-s,a=i<o?i:o;let u=-1,l=0;for(;l<a;l++){const f=e.charCodeAt(n+l);if(f!==t.charCodeAt(s+l))break;f===$t&&(u=l)}if(l===a)if(o>a){if(t.charCodeAt(s+l)===$t)return t.slice(s+l+1);if(l===0)return t.slice(s+l)}else i>a&&(e.charCodeAt(n+l)===$t?u=l:l===0&&(u=0));let c="";for(l=n+u+1;l<=r;++l)(l===r||e.charCodeAt(l)===$t)&&(c+=c.length===0?"..":"/..");return`${c}${t.slice(s+u)}`},toNamespacedPath(e){return e},dirname(e){if(dt(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===$t;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===$t){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&dt(t,"ext"),dt(e,"path");let n=0,r=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(s=e.length-1;s>=0;--s){const u=e.charCodeAt(s);if(u===$t){if(!i){n=s+1;break}}else a===-1&&(i=!1,a=s+1),o>=0&&(u===t.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===$t){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){dt(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a===$t){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),a===Xr?t===-1?t=o:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||r===-1||s===0||s===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:qb.bind(null,"/"),parse(e){dt(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===$t;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,o=-1,a=!0,u=e.length-1,l=0;for(;u>=r;--u){const c=e.charCodeAt(u);if(c===$t){if(!a){s=u+1;break}continue}o===-1&&(a=!1,o=u+1),c===Xr?i===-1?i=u:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){const c=s===0&&n?1:s;i===-1||l===0||l===1&&i===o-1&&i===s+1?t.base=t.name=e.slice(c,o):(t.name=e.slice(c,i),t.base=e.slice(c,o),t.ext=e.slice(i,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};tn.win32=Yt.win32=Yt;tn.posix=Yt.posix=tn;const bP=Vr?Yt.normalize:tn.normalize,vP=Vr?Yt.join:tn.join,yP=Vr?Yt.resolve:tn.resolve,xP=Vr?Yt.relative:tn.relative,EP=Vr?Yt.dirname:tn.dirname,_P=Vr?Yt.basename:tn.basename,TP=Vr?Yt.extname:tn.extname,wP=Vr?Yt.sep:tn.sep,W_=/^\w[\w\d+.-]*$/,Q_=/^\//,Y_=/^\/\//;function X_(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!W_.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!Q_.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Y_.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function J_(e,t){return!e&&!t?"file":e}function Z_(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==qn&&(t=qn+t):t=qn;break}return t}const Ze="",qn="/",K_=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let cs=class Ta{static isUri(t){return t instanceof Ta?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,r,i,s,o=!1){typeof t=="object"?(this.scheme=t.scheme||Ze,this.authority=t.authority||Ze,this.path=t.path||Ze,this.query=t.query||Ze,this.fragment=t.fragment||Ze):(this.scheme=J_(t,o),this.authority=n||Ze,this.path=Z_(this.scheme,r||Ze),this.query=i||Ze,this.fragment=s||Ze,X_(this,o))}get fsPath(){return lc(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:i,query:s,fragment:o}=t;return n===void 0?n=this.scheme:n===null&&(n=Ze),r===void 0?r=this.authority:r===null&&(r=Ze),i===void 0?i=this.path:i===null&&(i=Ze),s===void 0?s=this.query:s===null&&(s=Ze),o===void 0?o=this.fragment:o===null&&(o=Ze),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&o===this.fragment?this:new Ui(n,r,i,s,o)}static parse(t,n=!1){const r=K_.exec(t);return r?new Ui(r[2]||Ze,ta(r[4]||Ze),ta(r[5]||Ze),ta(r[7]||Ze),ta(r[9]||Ze),n):new Ui(Ze,Ze,Ze,Ze,Ze)}static file(t){let n=Ze;if(ao&&(t=t.replace(/\\/g,qn)),t[0]===qn&&t[1]===qn){const r=t.indexOf(qn,2);r===-1?(n=t.substring(2),t=qn):(n=t.substring(2,r),t=t.substring(r)||qn)}return new Ui("file",n,t,Ze,Ze)}static from(t,n){return new Ui(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return ao&&t.scheme==="file"?r=Ta.file(Yt.join(lc(t,!0),...n)).path:r=tn.join(t.path,...n),t.with({path:r})}toString(t=!1){return cc(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof Ta)return t;{const n=new Ui(t);return n._formatted=t.external??null,n._fsPath=t._sep===zb?t.fsPath??null:null,n}}else return t}};const zb=ao?1:void 0;class Ui extends cs{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=lc(this,!1)),this._fsPath}toString(t=!1){return t?cc(this,!0):(this._formatted||(this._formatted=cc(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=zb),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const Hb={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function G0(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r!==void 0&&(r+=e.charAt(s));else{r===void 0&&(r=e.substr(0,s));const a=Hb[o];a!==void 0?(i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=a):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r!==void 0?r:e}function e4(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=Hb[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function lc(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,ao&&(n=n.replace(/\//g,"\\")),n}function cc(e,t){const n=t?e4:G0;let r="",{scheme:i,authority:s,path:o,query:a,fragment:u}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=qn,r+=qn),s){let l=s.indexOf("@");if(l!==-1){const c=s.substr(0,l);s=s.substr(l+1),l=c.lastIndexOf(":"),l===-1?r+=n(c,!1,!1):(r+=n(c.substr(0,l),!1,!1),r+=":",r+=n(c.substr(l+1),!1,!0)),r+="@"}s=s.toLowerCase(),l=s.lastIndexOf(":"),l===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,l),!1,!0),r+=s.substr(l))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const l=o.charCodeAt(1);l>=65&&l<=90&&(o=`/${String.fromCharCode(l+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const l=o.charCodeAt(0);l>=65&&l<=90&&(o=`${String.fromCharCode(l+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),u&&(r+="#",r+=t?u:G0(u,!1,!1)),r}function Gb(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+Gb(e.substr(3)):e}}const W0=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ta(e){return e.match(W0)?e.replace(W0,t=>Gb(t)):e}let uo=class ci{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new ci(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return ci.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return ci.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return ci.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){const r=t.lineNumber|0,i=n.lineNumber|0;if(r===i){const s=t.column|0,o=n.column|0;return s-o}return r-i}clone(){return new ci(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new ci(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},hr=class xt{constructor(t,n,r,i){t>r||t===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return xt.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return xt.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return xt.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return xt.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return xt.plusRange(this,t)}static plusRange(t,n){let r,i,s,o;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),n.endLineNumber>t.endLineNumber?(s=n.endLineNumber,o=n.endColumn):n.endLineNumber===t.endLineNumber?(s=n.endLineNumber,o=Math.max(n.endColumn,t.endColumn)):(s=t.endLineNumber,o=t.endColumn),new xt(r,i,s,o)}intersectRanges(t){return xt.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,o=t.endColumn;const a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn;return r<a?(r=a,i=u):r===a&&(i=Math.max(i,u)),s>l?(s=l,o=c):s===l&&(o=Math.min(o,c)),r>s||r===s&&i>o?null:new xt(r,i,s,o)}equalsRange(t){return xt.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return xt.getEndPosition(this)}static getEndPosition(t){return new uo(t.endLineNumber,t.endColumn)}getStartPosition(){return xt.getStartPosition(this)}static getStartPosition(t){return new uo(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new xt(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new xt(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return xt.collapseToStart(this)}static collapseToStart(t){return new xt(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return xt.collapseToEnd(this)}static collapseToEnd(t){return new xt(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new xt(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new xt(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new xt(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,n){if(t&&n){const s=t.startLineNumber|0,o=n.startLineNumber|0;if(s===o){const a=t.startColumn|0,u=n.startColumn|0;if(a===u){const l=t.endLineNumber|0,c=n.endLineNumber|0;if(l===c){const f=t.endColumn|0,d=n.endColumn|0;return f-d}return l-c}return a-u}return s-o}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};class gn extends hr{constructor(t,n,r,i){super(t,n,r,i),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return gn.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new gn(this.startLineNumber,this.startColumn,t,n):new gn(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new uo(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new uo(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new gn(t,n,this.endLineNumber,this.endColumn):new gn(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new gn(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new gn(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new gn(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new gn(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,i=t.length;r<i;r++)if(!this.selectionsEqual(t[r],n[r]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,r,i,s){return s===0?new gn(t,n,r,i):new gn(r,i,t,n)}}function Wb(e){return typeof e=="string"}function SP(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function kP(e){const t=Object.getPrototypeOf(Uint8Array);return typeof e=="object"&&e instanceof t}function AP(e){return typeof e=="number"&&!isNaN(e)}function DP(e){return!!e&&typeof e[Symbol.iterator]=="function"}function NP(e){return e===!0||e===!1}function t4(e){return typeof e>"u"}function CP(e){return!Wf(e)}function Wf(e){return t4(e)||e===null}function IP(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function FP(e){if(Wf(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function n4(e){return typeof e=="function"}function LP(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++)r4(e[r],t[r])}function r4(e,t){if(Wb(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(n4(t)){try{if(e instanceof t)return}catch{}if(!Wf(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}const fc=Object.create(null);function m(e,t){if(Wb(t)){const n=fc[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return fc[e]=t,{id:e}}function OP(){return fc}const i4={add:m("add",6e4),plus:m("plus",6e4),gistNew:m("gist-new",6e4),repoCreate:m("repo-create",6e4),lightbulb:m("lightbulb",60001),lightBulb:m("light-bulb",60001),repo:m("repo",60002),repoDelete:m("repo-delete",60002),gistFork:m("gist-fork",60003),repoForked:m("repo-forked",60003),gitPullRequest:m("git-pull-request",60004),gitPullRequestAbandoned:m("git-pull-request-abandoned",60004),recordKeys:m("record-keys",60005),keyboard:m("keyboard",60005),tag:m("tag",60006),gitPullRequestLabel:m("git-pull-request-label",60006),tagAdd:m("tag-add",60006),tagRemove:m("tag-remove",60006),person:m("person",60007),personFollow:m("person-follow",60007),personOutline:m("person-outline",60007),personFilled:m("person-filled",60007),gitBranch:m("git-branch",60008),gitBranchCreate:m("git-branch-create",60008),gitBranchDelete:m("git-branch-delete",60008),sourceControl:m("source-control",60008),mirror:m("mirror",60009),mirrorPublic:m("mirror-public",60009),star:m("star",60010),starAdd:m("star-add",60010),starDelete:m("star-delete",60010),starEmpty:m("star-empty",60010),comment:m("comment",60011),commentAdd:m("comment-add",60011),alert:m("alert",60012),warning:m("warning",60012),search:m("search",60013),searchSave:m("search-save",60013),logOut:m("log-out",60014),signOut:m("sign-out",60014),logIn:m("log-in",60015),signIn:m("sign-in",60015),eye:m("eye",60016),eyeUnwatch:m("eye-unwatch",60016),eyeWatch:m("eye-watch",60016),circleFilled:m("circle-filled",60017),primitiveDot:m("primitive-dot",60017),closeDirty:m("close-dirty",60017),debugBreakpoint:m("debug-breakpoint",60017),debugBreakpointDisabled:m("debug-breakpoint-disabled",60017),debugHint:m("debug-hint",60017),terminalDecorationSuccess:m("terminal-decoration-success",60017),primitiveSquare:m("primitive-square",60018),edit:m("edit",60019),pencil:m("pencil",60019),info:m("info",60020),issueOpened:m("issue-opened",60020),gistPrivate:m("gist-private",60021),gitForkPrivate:m("git-fork-private",60021),lock:m("lock",60021),mirrorPrivate:m("mirror-private",60021),close:m("close",60022),removeClose:m("remove-close",60022),x:m("x",60022),repoSync:m("repo-sync",60023),sync:m("sync",60023),clone:m("clone",60024),desktopDownload:m("desktop-download",60024),beaker:m("beaker",60025),microscope:m("microscope",60025),vm:m("vm",60026),deviceDesktop:m("device-desktop",60026),file:m("file",60027),fileText:m("file-text",60027),more:m("more",60028),ellipsis:m("ellipsis",60028),kebabHorizontal:m("kebab-horizontal",60028),mailReply:m("mail-reply",60029),reply:m("reply",60029),organization:m("organization",60030),organizationFilled:m("organization-filled",60030),organizationOutline:m("organization-outline",60030),newFile:m("new-file",60031),fileAdd:m("file-add",60031),newFolder:m("new-folder",60032),fileDirectoryCreate:m("file-directory-create",60032),trash:m("trash",60033),trashcan:m("trashcan",60033),history:m("history",60034),clock:m("clock",60034),folder:m("folder",60035),fileDirectory:m("file-directory",60035),symbolFolder:m("symbol-folder",60035),logoGithub:m("logo-github",60036),markGithub:m("mark-github",60036),github:m("github",60036),terminal:m("terminal",60037),console:m("console",60037),repl:m("repl",60037),zap:m("zap",60038),symbolEvent:m("symbol-event",60038),error:m("error",60039),stop:m("stop",60039),variable:m("variable",60040),symbolVariable:m("symbol-variable",60040),array:m("array",60042),symbolArray:m("symbol-array",60042),symbolModule:m("symbol-module",60043),symbolPackage:m("symbol-package",60043),symbolNamespace:m("symbol-namespace",60043),symbolObject:m("symbol-object",60043),symbolMethod:m("symbol-method",60044),symbolFunction:m("symbol-function",60044),symbolConstructor:m("symbol-constructor",60044),symbolBoolean:m("symbol-boolean",60047),symbolNull:m("symbol-null",60047),symbolNumeric:m("symbol-numeric",60048),symbolNumber:m("symbol-number",60048),symbolStructure:m("symbol-structure",60049),symbolStruct:m("symbol-struct",60049),symbolParameter:m("symbol-parameter",60050),symbolTypeParameter:m("symbol-type-parameter",60050),symbolKey:m("symbol-key",60051),symbolText:m("symbol-text",60051),symbolReference:m("symbol-reference",60052),goToFile:m("go-to-file",60052),symbolEnum:m("symbol-enum",60053),symbolValue:m("symbol-value",60053),symbolRuler:m("symbol-ruler",60054),symbolUnit:m("symbol-unit",60054),activateBreakpoints:m("activate-breakpoints",60055),archive:m("archive",60056),arrowBoth:m("arrow-both",60057),arrowDown:m("arrow-down",60058),arrowLeft:m("arrow-left",60059),arrowRight:m("arrow-right",60060),arrowSmallDown:m("arrow-small-down",60061),arrowSmallLeft:m("arrow-small-left",60062),arrowSmallRight:m("arrow-small-right",60063),arrowSmallUp:m("arrow-small-up",60064),arrowUp:m("arrow-up",60065),bell:m("bell",60066),bold:m("bold",60067),book:m("book",60068),bookmark:m("bookmark",60069),debugBreakpointConditionalUnverified:m("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:m("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:m("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:m("debug-breakpoint-data-unverified",60072),debugBreakpointData:m("debug-breakpoint-data",60073),debugBreakpointDataDisabled:m("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:m("debug-breakpoint-log-unverified",60074),debugBreakpointLog:m("debug-breakpoint-log",60075),debugBreakpointLogDisabled:m("debug-breakpoint-log-disabled",60075),briefcase:m("briefcase",60076),broadcast:m("broadcast",60077),browser:m("browser",60078),bug:m("bug",60079),calendar:m("calendar",60080),caseSensitive:m("case-sensitive",60081),check:m("check",60082),checklist:m("checklist",60083),chevronDown:m("chevron-down",60084),chevronLeft:m("chevron-left",60085),chevronRight:m("chevron-right",60086),chevronUp:m("chevron-up",60087),chromeClose:m("chrome-close",60088),chromeMaximize:m("chrome-maximize",60089),chromeMinimize:m("chrome-minimize",60090),chromeRestore:m("chrome-restore",60091),circleOutline:m("circle-outline",60092),circle:m("circle",60092),debugBreakpointUnverified:m("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:m("terminal-decoration-incomplete",60092),circleSlash:m("circle-slash",60093),circuitBoard:m("circuit-board",60094),clearAll:m("clear-all",60095),clippy:m("clippy",60096),closeAll:m("close-all",60097),cloudDownload:m("cloud-download",60098),cloudUpload:m("cloud-upload",60099),code:m("code",60100),collapseAll:m("collapse-all",60101),colorMode:m("color-mode",60102),commentDiscussion:m("comment-discussion",60103),creditCard:m("credit-card",60105),dash:m("dash",60108),dashboard:m("dashboard",60109),database:m("database",60110),debugContinue:m("debug-continue",60111),debugDisconnect:m("debug-disconnect",60112),debugPause:m("debug-pause",60113),debugRestart:m("debug-restart",60114),debugStart:m("debug-start",60115),debugStepInto:m("debug-step-into",60116),debugStepOut:m("debug-step-out",60117),debugStepOver:m("debug-step-over",60118),debugStop:m("debug-stop",60119),debug:m("debug",60120),deviceCameraVideo:m("device-camera-video",60121),deviceCamera:m("device-camera",60122),deviceMobile:m("device-mobile",60123),diffAdded:m("diff-added",60124),diffIgnored:m("diff-ignored",60125),diffModified:m("diff-modified",60126),diffRemoved:m("diff-removed",60127),diffRenamed:m("diff-renamed",60128),diff:m("diff",60129),diffSidebyside:m("diff-sidebyside",60129),discard:m("discard",60130),editorLayout:m("editor-layout",60131),emptyWindow:m("empty-window",60132),exclude:m("exclude",60133),extensions:m("extensions",60134),eyeClosed:m("eye-closed",60135),fileBinary:m("file-binary",60136),fileCode:m("file-code",60137),fileMedia:m("file-media",60138),filePdf:m("file-pdf",60139),fileSubmodule:m("file-submodule",60140),fileSymlinkDirectory:m("file-symlink-directory",60141),fileSymlinkFile:m("file-symlink-file",60142),fileZip:m("file-zip",60143),files:m("files",60144),filter:m("filter",60145),flame:m("flame",60146),foldDown:m("fold-down",60147),foldUp:m("fold-up",60148),fold:m("fold",60149),folderActive:m("folder-active",60150),folderOpened:m("folder-opened",60151),gear:m("gear",60152),gift:m("gift",60153),gistSecret:m("gist-secret",60154),gist:m("gist",60155),gitCommit:m("git-commit",60156),gitCompare:m("git-compare",60157),compareChanges:m("compare-changes",60157),gitMerge:m("git-merge",60158),githubAction:m("github-action",60159),githubAlt:m("github-alt",60160),globe:m("globe",60161),grabber:m("grabber",60162),graph:m("graph",60163),gripper:m("gripper",60164),heart:m("heart",60165),home:m("home",60166),horizontalRule:m("horizontal-rule",60167),hubot:m("hubot",60168),inbox:m("inbox",60169),issueReopened:m("issue-reopened",60171),issues:m("issues",60172),italic:m("italic",60173),jersey:m("jersey",60174),json:m("json",60175),kebabVertical:m("kebab-vertical",60176),key:m("key",60177),law:m("law",60178),lightbulbAutofix:m("lightbulb-autofix",60179),linkExternal:m("link-external",60180),link:m("link",60181),listOrdered:m("list-ordered",60182),listUnordered:m("list-unordered",60183),liveShare:m("live-share",60184),loading:m("loading",60185),location:m("location",60186),mailRead:m("mail-read",60187),mail:m("mail",60188),markdown:m("markdown",60189),megaphone:m("megaphone",60190),mention:m("mention",60191),milestone:m("milestone",60192),gitPullRequestMilestone:m("git-pull-request-milestone",60192),mortarBoard:m("mortar-board",60193),move:m("move",60194),multipleWindows:m("multiple-windows",60195),mute:m("mute",60196),noNewline:m("no-newline",60197),note:m("note",60198),octoface:m("octoface",60199),openPreview:m("open-preview",60200),package:m("package",60201),paintcan:m("paintcan",60202),pin:m("pin",60203),play:m("play",60204),run:m("run",60204),plug:m("plug",60205),preserveCase:m("preserve-case",60206),preview:m("preview",60207),project:m("project",60208),pulse:m("pulse",60209),question:m("question",60210),quote:m("quote",60211),radioTower:m("radio-tower",60212),reactions:m("reactions",60213),references:m("references",60214),refresh:m("refresh",60215),regex:m("regex",60216),remoteExplorer:m("remote-explorer",60217),remote:m("remote",60218),remove:m("remove",60219),replaceAll:m("replace-all",60220),replace:m("replace",60221),repoClone:m("repo-clone",60222),repoForcePush:m("repo-force-push",60223),repoPull:m("repo-pull",60224),repoPush:m("repo-push",60225),report:m("report",60226),requestChanges:m("request-changes",60227),rocket:m("rocket",60228),rootFolderOpened:m("root-folder-opened",60229),rootFolder:m("root-folder",60230),rss:m("rss",60231),ruby:m("ruby",60232),saveAll:m("save-all",60233),saveAs:m("save-as",60234),save:m("save",60235),screenFull:m("screen-full",60236),screenNormal:m("screen-normal",60237),searchStop:m("search-stop",60238),server:m("server",60240),settingsGear:m("settings-gear",60241),settings:m("settings",60242),shield:m("shield",60243),smiley:m("smiley",60244),sortPrecedence:m("sort-precedence",60245),splitHorizontal:m("split-horizontal",60246),splitVertical:m("split-vertical",60247),squirrel:m("squirrel",60248),starFull:m("star-full",60249),starHalf:m("star-half",60250),symbolClass:m("symbol-class",60251),symbolColor:m("symbol-color",60252),symbolConstant:m("symbol-constant",60253),symbolEnumMember:m("symbol-enum-member",60254),symbolField:m("symbol-field",60255),symbolFile:m("symbol-file",60256),symbolInterface:m("symbol-interface",60257),symbolKeyword:m("symbol-keyword",60258),symbolMisc:m("symbol-misc",60259),symbolOperator:m("symbol-operator",60260),symbolProperty:m("symbol-property",60261),wrench:m("wrench",60261),wrenchSubaction:m("wrench-subaction",60261),symbolSnippet:m("symbol-snippet",60262),tasklist:m("tasklist",60263),telescope:m("telescope",60264),textSize:m("text-size",60265),threeBars:m("three-bars",60266),thumbsdown:m("thumbsdown",60267),thumbsup:m("thumbsup",60268),tools:m("tools",60269),triangleDown:m("triangle-down",60270),triangleLeft:m("triangle-left",60271),triangleRight:m("triangle-right",60272),triangleUp:m("triangle-up",60273),twitter:m("twitter",60274),unfold:m("unfold",60275),unlock:m("unlock",60276),unmute:m("unmute",60277),unverified:m("unverified",60278),verified:m("verified",60279),versions:m("versions",60280),vmActive:m("vm-active",60281),vmOutline:m("vm-outline",60282),vmRunning:m("vm-running",60283),watch:m("watch",60284),whitespace:m("whitespace",60285),wholeWord:m("whole-word",60286),window:m("window",60287),wordWrap:m("word-wrap",60288),zoomIn:m("zoom-in",60289),zoomOut:m("zoom-out",60290),listFilter:m("list-filter",60291),listFlat:m("list-flat",60292),listSelection:m("list-selection",60293),selection:m("selection",60293),listTree:m("list-tree",60294),debugBreakpointFunctionUnverified:m("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:m("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:m("debug-breakpoint-function-disabled",60296),debugStackframeActive:m("debug-stackframe-active",60297),circleSmallFilled:m("circle-small-filled",60298),debugStackframeDot:m("debug-stackframe-dot",60298),terminalDecorationMark:m("terminal-decoration-mark",60298),debugStackframe:m("debug-stackframe",60299),debugStackframeFocused:m("debug-stackframe-focused",60299),debugBreakpointUnsupported:m("debug-breakpoint-unsupported",60300),symbolString:m("symbol-string",60301),debugReverseContinue:m("debug-reverse-continue",60302),debugStepBack:m("debug-step-back",60303),debugRestartFrame:m("debug-restart-frame",60304),debugAlt:m("debug-alt",60305),callIncoming:m("call-incoming",60306),callOutgoing:m("call-outgoing",60307),menu:m("menu",60308),expandAll:m("expand-all",60309),feedback:m("feedback",60310),gitPullRequestReviewer:m("git-pull-request-reviewer",60310),groupByRefType:m("group-by-ref-type",60311),ungroupByRefType:m("ungroup-by-ref-type",60312),account:m("account",60313),gitPullRequestAssignee:m("git-pull-request-assignee",60313),bellDot:m("bell-dot",60314),debugConsole:m("debug-console",60315),library:m("library",60316),output:m("output",60317),runAll:m("run-all",60318),syncIgnored:m("sync-ignored",60319),pinned:m("pinned",60320),githubInverted:m("github-inverted",60321),serverProcess:m("server-process",60322),serverEnvironment:m("server-environment",60323),pass:m("pass",60324),issueClosed:m("issue-closed",60324),stopCircle:m("stop-circle",60325),playCircle:m("play-circle",60326),record:m("record",60327),debugAltSmall:m("debug-alt-small",60328),vmConnect:m("vm-connect",60329),cloud:m("cloud",60330),merge:m("merge",60331),export:m("export",60332),graphLeft:m("graph-left",60333),magnet:m("magnet",60334),notebook:m("notebook",60335),redo:m("redo",60336),checkAll:m("check-all",60337),pinnedDirty:m("pinned-dirty",60338),passFilled:m("pass-filled",60339),circleLargeFilled:m("circle-large-filled",60340),circleLarge:m("circle-large",60341),circleLargeOutline:m("circle-large-outline",60341),combine:m("combine",60342),gather:m("gather",60342),table:m("table",60343),variableGroup:m("variable-group",60344),typeHierarchy:m("type-hierarchy",60345),typeHierarchySub:m("type-hierarchy-sub",60346),typeHierarchySuper:m("type-hierarchy-super",60347),gitPullRequestCreate:m("git-pull-request-create",60348),runAbove:m("run-above",60349),runBelow:m("run-below",60350),notebookTemplate:m("notebook-template",60351),debugRerun:m("debug-rerun",60352),workspaceTrusted:m("workspace-trusted",60353),workspaceUntrusted:m("workspace-untrusted",60354),workspaceUnknown:m("workspace-unknown",60355),terminalCmd:m("terminal-cmd",60356),terminalDebian:m("terminal-debian",60357),terminalLinux:m("terminal-linux",60358),terminalPowershell:m("terminal-powershell",60359),terminalTmux:m("terminal-tmux",60360),terminalUbuntu:m("terminal-ubuntu",60361),terminalBash:m("terminal-bash",60362),arrowSwap:m("arrow-swap",60363),copy:m("copy",60364),personAdd:m("person-add",60365),filterFilled:m("filter-filled",60366),wand:m("wand",60367),debugLineByLine:m("debug-line-by-line",60368),inspect:m("inspect",60369),layers:m("layers",60370),layersDot:m("layers-dot",60371),layersActive:m("layers-active",60372),compass:m("compass",60373),compassDot:m("compass-dot",60374),compassActive:m("compass-active",60375),azure:m("azure",60376),issueDraft:m("issue-draft",60377),gitPullRequestClosed:m("git-pull-request-closed",60378),gitPullRequestDraft:m("git-pull-request-draft",60379),debugAll:m("debug-all",60380),debugCoverage:m("debug-coverage",60381),runErrors:m("run-errors",60382),folderLibrary:m("folder-library",60383),debugContinueSmall:m("debug-continue-small",60384),beakerStop:m("beaker-stop",60385),graphLine:m("graph-line",60386),graphScatter:m("graph-scatter",60387),pieChart:m("pie-chart",60388),bracket:m("bracket",60175),bracketDot:m("bracket-dot",60389),bracketError:m("bracket-error",60390),lockSmall:m("lock-small",60391),azureDevops:m("azure-devops",60392),verifiedFilled:m("verified-filled",60393),newline:m("newline",60394),layout:m("layout",60395),layoutActivitybarLeft:m("layout-activitybar-left",60396),layoutActivitybarRight:m("layout-activitybar-right",60397),layoutPanelLeft:m("layout-panel-left",60398),layoutPanelCenter:m("layout-panel-center",60399),layoutPanelJustify:m("layout-panel-justify",60400),layoutPanelRight:m("layout-panel-right",60401),layoutPanel:m("layout-panel",60402),layoutSidebarLeft:m("layout-sidebar-left",60403),layoutSidebarRight:m("layout-sidebar-right",60404),layoutStatusbar:m("layout-statusbar",60405),layoutMenubar:m("layout-menubar",60406),layoutCentered:m("layout-centered",60407),target:m("target",60408),indent:m("indent",60409),recordSmall:m("record-small",60410),errorSmall:m("error-small",60411),terminalDecorationError:m("terminal-decoration-error",60411),arrowCircleDown:m("arrow-circle-down",60412),arrowCircleLeft:m("arrow-circle-left",60413),arrowCircleRight:m("arrow-circle-right",60414),arrowCircleUp:m("arrow-circle-up",60415),layoutSidebarRightOff:m("layout-sidebar-right-off",60416),layoutPanelOff:m("layout-panel-off",60417),layoutSidebarLeftOff:m("layout-sidebar-left-off",60418),blank:m("blank",60419),heartFilled:m("heart-filled",60420),map:m("map",60421),mapHorizontal:m("map-horizontal",60421),foldHorizontal:m("fold-horizontal",60421),mapFilled:m("map-filled",60422),mapHorizontalFilled:m("map-horizontal-filled",60422),foldHorizontalFilled:m("fold-horizontal-filled",60422),circleSmall:m("circle-small",60423),bellSlash:m("bell-slash",60424),bellSlashDot:m("bell-slash-dot",60425),commentUnresolved:m("comment-unresolved",60426),gitPullRequestGoToChanges:m("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:m("git-pull-request-new-changes",60428),searchFuzzy:m("search-fuzzy",60429),commentDraft:m("comment-draft",60430),send:m("send",60431),sparkle:m("sparkle",60432),insert:m("insert",60433),mic:m("mic",60434),thumbsdownFilled:m("thumbsdown-filled",60435),thumbsupFilled:m("thumbsup-filled",60436),coffee:m("coffee",60437),snake:m("snake",60438),game:m("game",60439),vr:m("vr",60440),chip:m("chip",60441),piano:m("piano",60442),music:m("music",60443),micFilled:m("mic-filled",60444),repoFetch:m("repo-fetch",60445),copilot:m("copilot",60446),lightbulbSparkle:m("lightbulb-sparkle",60447),robot:m("robot",60448),sparkleFilled:m("sparkle-filled",60449),diffSingle:m("diff-single",60450),diffMultiple:m("diff-multiple",60451),surroundWith:m("surround-with",60452),share:m("share",60453),gitStash:m("git-stash",60454),gitStashApply:m("git-stash-apply",60455),gitStashPop:m("git-stash-pop",60456),vscode:m("vscode",60457),vscodeInsiders:m("vscode-insiders",60458),codeOss:m("code-oss",60459),runCoverage:m("run-coverage",60460),runAllCoverage:m("run-all-coverage",60461),coverage:m("coverage",60462),githubProject:m("github-project",60463),mapVertical:m("map-vertical",60464),foldVertical:m("fold-vertical",60464),mapVerticalFilled:m("map-vertical-filled",60465),foldVerticalFilled:m("fold-vertical-filled",60465),goToSearch:m("go-to-search",60466),percentage:m("percentage",60467),sortPercentage:m("sort-percentage",60467),attach:m("attach",60468)},s4={dialogError:m("dialog-error","error"),dialogWarning:m("dialog-warning","warning"),dialogInfo:m("dialog-info","info"),dialogClose:m("dialog-close","close"),treeItemExpanded:m("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:m("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:m("tree-filter-on-type-off","list-selection"),treeFilterClear:m("tree-filter-clear","close"),treeItemLoading:m("tree-item-loading","loading"),menuSelection:m("menu-selection","check"),menuSubmenu:m("menu-submenu","chevron-right"),menuBarMore:m("menubar-more","more"),scrollbarButtonLeft:m("scrollbar-button-left","triangle-left"),scrollbarButtonRight:m("scrollbar-button-right","triangle-right"),scrollbarButtonUp:m("scrollbar-button-up","triangle-up"),scrollbarButtonDown:m("scrollbar-button-down","triangle-down"),toolBarMore:m("toolbar-more","more"),quickInputBack:m("quick-input-back","arrow-left"),dropDownButton:m("drop-down-button",60084),symbolCustomColor:m("symbol-customcolor",60252),exportIcon:m("export",60332),workspaceUnspecified:m("workspace-unspecified",60355),newLine:m("newline",60394),thumbsDownFilled:m("thumbsdown-filled",60435),thumbsUpFilled:m("thumbsup-filled",60436),gitFetch:m("git-fetch",60445),lightbulbSparkleAutofix:m("lightbulb-sparkle-autofix",60447),debugBreakpointPending:m("debug-breakpoint-pending",60377)},ve={...i4,...s4};let Qb=class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new an,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,n){return this._tokenizationSupports.set(t,n),this.handleChange([t]),so(()=>{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){var i;(i=this._factories.get(t))==null||i.dispose();const r=new o4(this,t,n);return this._factories.set(t,r),so(()=>{const s=this._factories.get(t);!s||s!==r||(this._factories.delete(t),s.dispose())})}async getOrCreate(t){const n=this.get(t);if(n)return n;const r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;const r=this._factories.get(t);return!!(!r||r.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};class o4 extends Di{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}}let a4=class{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};class MP{constructor(t,n){this.tokens=t,this.endState=n,this._tokenizationResultBrand=void 0}}class VP{constructor(t,n){this.tokens=t,this.endState=n,this._encodedTokenizationResultBrand=void 0}}var Q0;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(Q0||(Q0={}));var Y0;(function(e){const t=new Map;t.set(0,ve.symbolMethod),t.set(1,ve.symbolFunction),t.set(2,ve.symbolConstructor),t.set(3,ve.symbolField),t.set(4,ve.symbolVariable),t.set(5,ve.symbolClass),t.set(6,ve.symbolStruct),t.set(7,ve.symbolInterface),t.set(8,ve.symbolModule),t.set(9,ve.symbolProperty),t.set(10,ve.symbolEvent),t.set(11,ve.symbolOperator),t.set(12,ve.symbolUnit),t.set(13,ve.symbolValue),t.set(15,ve.symbolEnum),t.set(14,ve.symbolConstant),t.set(15,ve.symbolEnum),t.set(16,ve.symbolEnumMember),t.set(17,ve.symbolKeyword),t.set(27,ve.symbolSnippet),t.set(18,ve.symbolText),t.set(19,ve.symbolColor),t.set(20,ve.symbolFile),t.set(21,ve.symbolReference),t.set(22,ve.symbolCustomColor),t.set(23,ve.symbolFolder),t.set(24,ve.symbolTypeParameter),t.set(25,ve.account),t.set(26,ve.issues);function n(s){let o=t.get(s);return o||(console.info("No codicon found for CompletionItemKind "+s),o=ve.symbolProperty),o}e.toIcon=n;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,o){let a=r.get(s);return typeof a>"u"&&!o&&(a=9),a}e.fromString=i})(Y0||(Y0={}));var X0;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(X0||(X0={}));class $P{constructor(t,n,r,i){this.range=t,this.text=n,this.completionKind=r,this.isSnippetText=i}equals(t){return hr.lift(this.range).equalsRange(t.range)&&this.text===t.text&&this.completionKind===t.completionKind&&this.isSnippetText===t.isSnippetText}}var J0;(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(J0||(J0={}));var Z0;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Z0||(Z0={}));var K0;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(K0||(K0={}));function jP(e){return e&&cs.isUri(e.uri)&&hr.isIRange(e.range)&&(hr.isIRange(e.originSelectionRange)||hr.isIRange(e.targetSelectionRange))}const u4={17:et("Array","array"),16:et("Boolean","boolean"),4:et("Class","class"),13:et("Constant","constant"),8:et("Constructor","constructor"),9:et("Enum","enumeration"),21:et("EnumMember","enumeration member"),23:et("Event","event"),7:et("Field","field"),0:et("File","file"),11:et("Function","function"),10:et("Interface","interface"),19:et("Key","key"),5:et("Method","method"),1:et("Module","module"),2:et("Namespace","namespace"),20:et("Null","null"),15:et("Number","number"),18:et("Object","object"),24:et("Operator","operator"),3:et("Package","package"),6:et("Property","property"),14:et("String","string"),22:et("Struct","struct"),25:et("TypeParameter","type parameter"),12:et("Variable","variable")};function BP(e,t){return et("symbolAriaLabel","{0} ({1})",e,u4[t])}var eh;(function(e){const t=new Map;t.set(0,ve.symbolFile),t.set(1,ve.symbolModule),t.set(2,ve.symbolNamespace),t.set(3,ve.symbolPackage),t.set(4,ve.symbolClass),t.set(5,ve.symbolMethod),t.set(6,ve.symbolProperty),t.set(7,ve.symbolField),t.set(8,ve.symbolConstructor),t.set(9,ve.symbolEnum),t.set(10,ve.symbolInterface),t.set(11,ve.symbolFunction),t.set(12,ve.symbolVariable),t.set(13,ve.symbolConstant),t.set(14,ve.symbolString),t.set(15,ve.symbolNumber),t.set(16,ve.symbolBoolean),t.set(17,ve.symbolArray),t.set(18,ve.symbolObject),t.set(19,ve.symbolKey),t.set(20,ve.symbolNull),t.set(21,ve.symbolEnumMember),t.set(22,ve.symbolStruct),t.set(23,ve.symbolEvent),t.set(24,ve.symbolOperator),t.set(25,ve.symbolTypeParameter);function n(r){let i=t.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=ve.symbolProperty),i}e.toIcon=n})(eh||(eh={}));var Jt;let UP=(Jt=class{static fromValue(t){switch(t){case"comment":return Jt.Comment;case"imports":return Jt.Imports;case"region":return Jt.Region}return new Jt(t)}constructor(t){this.value=t}},Jt.Comment=new Jt("comment"),Jt.Imports=new Jt("imports"),Jt.Region=new Jt("region"),Jt);var th;(function(e){e[e.AIGenerated=1]="AIGenerated"})(th||(th={}));var nh;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(nh||(nh={}));var rh;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(rh||(rh={}));var ih;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(ih||(ih={}));class qP{constructor(t){this.createSupport=t,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(t=>{t&&t.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const zP=new Qb,HP=new Qb;var sh;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(sh||(sh={}));var oh;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(oh||(oh={}));var ah;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(ah||(ah={}));var uh;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(uh||(uh={}));var lh;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(lh||(lh={}));var ch;(function(e){e[e.Deprecated=1]="Deprecated"})(ch||(ch={}));var fh;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(fh||(fh={}));var dh;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(dh||(dh={}));var hh;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(hh||(hh={}));var ph;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(ph||(ph={}));var mh;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(mh||(mh={}));var gh;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(gh||(gh={}));var bh;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"})(bh||(bh={}));var vh;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(vh||(vh={}));var yh;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(yh||(yh={}));var xh;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(xh||(xh={}));var Eh;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(Eh||(Eh={}));var _h;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(_h||(_h={}));var Th;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Th||(Th={}));var wh;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(wh||(wh={}));var Sh;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Sh||(Sh={}));var kh;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(kh||(kh={}));var pi;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(pi||(pi={}));var dc;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(dc||(dc={}));var hc;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(hc||(hc={}));var Ah;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Ah||(Ah={}));var Dh;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(Dh||(Dh={}));var Nh;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Nh||(Nh={}));var Ch;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Ch||(Ch={}));var Ih;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Ih||(Ih={}));var Fh;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(Fh||(Fh={}));var Lh;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Lh||(Lh={}));var Oh;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(Oh||(Oh={}));var Rh;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(Rh||(Rh={}));var Ph;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(Ph||(Ph={}));var Mh;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(Mh||(Mh={}));var Vh;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(Vh||(Vh={}));var $h;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})($h||($h={}));var pc;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(pc||(pc={}));var jh;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(jh||(jh={}));var Bh;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Bh||(Bh={}));var Uh;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(Uh||(Uh={}));var qh;(function(e){e[e.Deprecated=1]="Deprecated"})(qh||(qh={}));var zh;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(zh||(zh={}));var Hh;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(Hh||(Hh={}));var Gh;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Gh||(Gh={}));var Wh;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(Wh||(Wh={}));const rs=class rs{static chord(t,n){return A_(t,n)}};rs.CtrlCmd=2048,rs.Shift=1024,rs.Alt=512,rs.WinCtrl=256;let ur=rs;function GP(){return{editor:void 0,languages:void 0,CancellationTokenSource:Pb,Emitter:an,KeyCode:pi,KeyMod:ur,Position:uo,Range:hr,Selection:gn,SelectionDirection:pc,MarkerSeverity:dc,MarkerTag:hc,Uri:cs,Token:a4}}const Yb=typeof navigator<"u"&&navigator.userAgent.includes("Mac");function Ei(e,t="⌘"){return Yb?e.replace("Ctrl",t):e}const _t=Object.freeze({prettify:{key:"Shift-Ctrl-P",keybindings:[ur.Shift|ur.WinCtrl|pi.KeyP]},mergeFragments:{key:"Shift-Ctrl-M",keybindings:[ur.Shift|ur.WinCtrl|pi.KeyM]},runQuery:{key:"Ctrl-Enter",keybindings:[ur.CtrlCmd|pi.Enter]},autoComplete:{key:"Space"},copyQuery:{key:"Shift-Ctrl-C",keybindings:[ur.Shift|ur.WinCtrl|pi.KeyC]},refetchSchema:{key:"Shift-Ctrl-R"},searchInEditor:{key:"Ctrl-F"},searchInDocs:{key:"Ctrl-Alt-K"}}),pt={headers:"headers",visiblePlugin:"visiblePlugin",query:"query",variables:"variables",tabs:"tabState",persistHeaders:"shouldPersistHeaders",theme:"theme"},l4=`# Welcome to GraphiQL
24
+ #
25
+ # GraphiQL is an in-browser tool for writing, validating, and testing
26
+ # GraphQL queries.
27
+ #
28
+ # Type queries into this side of the screen, and you will see intelligent
29
+ # typeaheads aware of the current GraphQL type schema and live syntax and
30
+ # validation errors highlighted within the text.
31
+ #
32
+ # GraphQL queries typically start with a "{" character. Lines that start
33
+ # with a # are ignored.
34
+ #
35
+ # An example GraphQL query might look like:
36
+ #
37
+ # {
38
+ # field(arg: "value") {
39
+ # subField
40
+ # }
41
+ # }
42
+ #
43
+ # Keyboard shortcuts:
44
+ #
45
+ # Prettify query: ${_t.prettify.key} (or press the prettify button)
46
+ #
47
+ # Merge fragments: ${_t.mergeFragments.key} (or press the merge button)
48
+ #
49
+ # Run Query: ${Ei(_t.runQuery.key,"Cmd")} (or press the play button)
50
+ #
51
+ # Auto Complete: ${_t.autoComplete.key} (or just start typing)
52
+ #
53
+
54
+ `,Wn={prettify:{id:"graphql-prettify",label:"Prettify Editors",contextMenuGroupId:"graphql",keybindings:_t.prettify.keybindings},mergeFragments:{id:"graphql-merge",label:"Merge Fragments into Query",contextMenuGroupId:"graphql",keybindings:_t.mergeFragments.keybindings},runQuery:{id:"graphql-run",label:"Run Operation",contextMenuGroupId:"graphql",keybindings:_t.runQuery.keybindings},copyQuery:{id:"graphql-copy",label:"Copy Query",contextMenuGroupId:"graphql",keybindings:_t.copyQuery.keybindings}},ss={operation:"operation.graphql",schema:"schema.graphql",variables:"variables.json",requestHeaders:"request-headers.json",response:"response.json"},Xb={allowComments:!0,trailingCommas:"ignore"},mc={validateVariablesJSON:{},jsonDiagnosticSettings:{validate:!0,schemaValidation:"error",...Xb}},c4=async e=>{const[t,{printers:n},{parsers:r}]=await Promise.all([dr(()=>import("./standalone-BS_cqyLa.js"),[]),dr(()=>import("./graphql-D05RS2Ys.js"),[]),dr(()=>import("./graphql-7Dzro_xV.js").then(i=>i.g),__vite__mapDeps([0,1,2]))]);return t.format(e,{parser:"graphql",plugins:[{printers:n},{parsers:r}]})},gc={dark:"graphiql-DARK",light:"graphiql-LIGHT"},Ke={transparent:"#ffffff00",bg:{dark:"#212a3b",light:"#ffffffff"},primary:{dark:"#ff5794",light:"#d60590"},primaryBg:{dark:"#ff579419",light:"#d6059019"},secondary:{dark:"#b7c2d711",light:"#3b4b6811"}},Qh=e=>({"editor.background":Ke.transparent,"scrollbar.shadow":Ke.transparent,"textLink.foreground":Ke.primary[e],"textLink.activeForeground":Ke.primary[e],"editorLink.activeForeground":Ke.primary[e],"editorHoverWidget.background":Ke.bg[e],"list.hoverBackground":Ke.primaryBg[e],"list.highlightForeground":Ke.primary[e],"list.focusHighlightForeground":Ke.primary[e],"menu.background":Ke.bg[e],"editorSuggestWidget.background":Ke.bg[e],"editorSuggestWidget.selectedBackground":Ke.primaryBg[e],"editorSuggestWidget.selectedForeground":Ke.primary[e],"quickInput.background":Ke.bg[e],"quickInputList.focusForeground":e==="dark"?"#ffffff":"#444444","highlighted.label":Ke.primary[e],"quickInput.widget":Ke.primary[e],highlight:Ke.primary[e],"editorWidget.background":Ke.bg[e],"input.background":Ke.secondary[e],focusBorder:Ke.primary[e],"toolbar.hoverBackground":Ke.primaryBg[e],"inputOption.hoverBackground":Ke.primaryBg[e],"quickInputList.focusBackground":Ke.primaryBg[e],"editorWidget.resizeBorder":Ke.primary[e],"pickerGroup.foreground":Ke.primary[e],"menu.selectionBackground":Ke.primaryBg[e],"menu.selectionForeground":Ke.primary[e]}),Yh={dark:{base:"vs-dark",inherit:!0,colors:Qh("dark"),rules:[{token:"argument.identifier.gql",foreground:"#908aff"}]},light:{base:"vs",inherit:!0,colors:Qh("light"),rules:[{token:"argument.identifier.gql",foreground:"#6c69ce"}]}},Xh=e=>Symbol.iterator in e,Jh=e=>"entries"in e,Zh=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(const[i,s]of n)if(!Object.is(s,r.get(i)))return!1;return!0},f4=(e,t)=>{const n=e[Symbol.iterator](),r=t[Symbol.iterator]();let i=n.next(),s=r.next();for(;!i.done&&!s.done;){if(!Object.is(i.value,s.value))return!1;i=n.next(),s=r.next()}return!!i.done&&!!s.done};function d4(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:Xh(e)&&Xh(t)?Jh(e)&&Jh(t)?Zh(e,t):f4(e,t):Zh({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function Jb(e){const t=qe.useRef(void 0);return n=>{const r=e(n);return d4(t.current,r)?t.current:t.current=r}}var h4=Object.defineProperty,p4=Object.defineProperties,m4=Object.getOwnPropertyDescriptors,Kh=Object.getOwnPropertySymbols,g4=Object.prototype.hasOwnProperty,b4=Object.prototype.propertyIsEnumerable,bc=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ep=(e,t,n)=>t in e?h4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yn=(e,t)=>{for(var n in t||(t={}))g4.call(t,n)&&ep(e,n,t[n]);if(Kh)for(var n of Kh(t))b4.call(t,n)&&ep(e,n,t[n]);return e},lo=(e,t)=>p4(e,m4(t)),wa=function(e,t){this[0]=e,this[1]=t},v4=(e,t,n)=>{var r=(o,a,u,l)=>{try{var c=n[o](a),f=(a=c.value)instanceof wa,d=c.done;Promise.resolve(f?a[0]:a).then(h=>f?r(o==="return"?o:"next",a[1]?{done:h.done,value:h.value}:h,u,l):u({value:h,done:d})).catch(h=>r("throw",h,u,l))}catch(h){l(h)}},i=o=>s[o]=a=>new Promise((u,l)=>r(o,a,u,l)),s={};return n=n.apply(e,t),s[bc("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},y4=(e,t,n)=>(t=e[bc("asyncIterator")])?t.call(e):(e=e[bc("iterator")](),t={},n=(r,i)=>(i=e[r])&&(t[r]=s=>new Promise((o,a,u)=>(s=i.call(e,s),u=s.done,Promise.resolve(s.value).then(l=>o({value:l,done:u}),a)))),n("next"),n("return"),t);function x4(e){return typeof e=="object"&&e!==null&&typeof e.then=="function"}function E4(e){return new Promise((t,n)=>{const r=e.subscribe({next(i){t(i),r.unsubscribe()},error:n,complete(){n(new Error("no value resolved"))}})})}function Zb(e){return typeof e=="object"&&e!==null&&"subscribe"in e&&typeof e.subscribe=="function"}function Kb(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}async function _4(e){var t;const n=(t=("return"in e?e:e[Symbol.asyncIterator]()).return)==null?void 0:t.bind(e),r=await("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return n==null||n(),r.value}async function T4(e){const t=await e;return Kb(t)?_4(t):Zb(t)?E4(t):t}const w4="16.11.0",S4=Object.freeze({major:16,minor:11,patch:0,preReleaseTag:null});function Le(e,t){if(!!!e)throw new Error(t)}function xn(e){return typeof(e==null?void 0:e.then)=="function"}function En(e){return typeof e=="object"&&e!==null}function wt(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}const k4=/\r\n|[\n\r]/g;function Ua(e,t){let n=0,r=1;for(const i of e.body.matchAll(k4)){if(typeof i.index=="number"||wt(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function e2(e){return Qf(e.source,Ua(e.source,e.start))}function Qf(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=t.line===1?n:0,u=t.column+a,l=`${e.name}:${o}:${u}
55
+ `,c=r.split(/\r\n|[\n\r]/g),f=c[i];if(f.length>120){const d=Math.floor(u/80),h=u%80,p=[];for(let b=0;b<f.length;b+=80)p.push(f.slice(b,b+80));return l+tp([[`${o} |`,p[0]],...p.slice(1,d+1).map(b=>["|",b]),["|","^".padStart(h)],["|",p[d+1]]])}return l+tp([[`${o-1} |`,c[i-1]],[`${o} |`,f],["|","^".padStart(u)],[`${o+1} |`,c[i+1]]])}function tp(e){const t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(`
56
+ `)}function A4(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class G extends Error{constructor(t,...n){var r,i,s;const{nodes:o,source:a,positions:u,path:l,originalError:c,extensions:f}=A4(n);super(t),this.name="GraphQLError",this.path=l??void 0,this.originalError=c??void 0,this.nodes=np(Array.isArray(o)?o:o?[o]:void 0);const d=np((r=this.nodes)===null||r===void 0?void 0:r.map(p=>p.loc).filter(p=>p!=null));this.source=a??(d==null||(i=d[0])===null||i===void 0?void 0:i.source),this.positions=u??(d==null?void 0:d.map(p=>p.start)),this.locations=u&&a?u.map(p=>Ua(a,p)):d==null?void 0:d.map(p=>Ua(p.source,p.start));const h=En(c==null?void 0:c.extensions)?c==null?void 0:c.extensions:void 0;this.extensions=(s=f??h)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,G):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`
57
+
58
+ `+e2(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
59
+
60
+ `+Qf(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function np(e){return e===void 0||e.length===0?void 0:e}function D4(e){return e.toString()}function N4(e){return e.toJSON()}function Lt(e,t,n){return new G(`Syntax Error: ${n}`,{source:e,positions:[t]})}let t2=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},Yf=class{constructor(t,n,r,i,s,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=o,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}}};const n2={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"]},C4=new Set(Object.keys(n2));function vc(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&C4.has(t)}var Rt;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Rt||(Rt={}));var xe;(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"})(xe||(xe={}));var w;(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"})(w||(w={}));function yc(e){return e===9||e===32}function co(e){return e>=48&&e<=57}function r2(e){return e>=97&&e<=122||e>=65&&e<=90}function Xf(e){return r2(e)||e===95}function i2(e){return r2(e)||co(e)||e===95}function I4(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;o<e.length;++o){var s;const a=e[o],u=F4(a);u!==a.length&&(r=(s=r)!==null&&s!==void 0?s:o,i=o,o!==0&&u<n&&(n=u))}return e.map((o,a)=>a===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function F4(e){let t=0;for(;t<e.length&&yc(e.charCodeAt(t));)++t;return t}function L4(e){if(e==="")return!0;let t=!0,n=!1,r=!0,i=!1;for(let s=0;s<e.length;++s)switch(e.codePointAt(s)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!(t||r&&i)}function s2(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,s=r.length>1&&r.slice(1).every(h=>h.length===0||yc(h.charCodeAt(0))),o=n.endsWith('\\"""'),a=e.endsWith('"')&&!o,u=e.endsWith("\\"),l=a||u,c=!(t!=null&&t.minimize)&&(!i||e.length>70||l||s||o);let f="";const d=i&&yc(e.charCodeAt(0));return(c&&!d||s)&&(f+=`
61
+ `),f+=n,(c||l)&&(f+=`
62
+ `),'"""'+f+'"""'}var X;(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"})(X||(X={}));class Jf{constructor(t){const n=new Yf(X.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==X.EOF)do if(t.next)t=t.next;else{const n=O4(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===X.COMMENT);return t}}function o2(e){return e===X.BANG||e===X.DOLLAR||e===X.AMP||e===X.PAREN_L||e===X.PAREN_R||e===X.SPREAD||e===X.COLON||e===X.EQUALS||e===X.AT||e===X.BRACKET_L||e===X.BRACKET_R||e===X.BRACE_L||e===X.PIPE||e===X.BRACE_R}function Ts(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Eu(e,t){return a2(e.charCodeAt(t))&&u2(e.charCodeAt(t+1))}function a2(e){return e>=55296&&e<=56319}function u2(e){return e>=56320&&e<=57343}function Ni(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return X.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function At(e,t,n,r,i){const s=e.line,o=1+n-e.lineStart;return new Yf(t,n,r,s,o,i)}function O4(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const s=n.charCodeAt(i);switch(s){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return R4(e,i);case 33:return At(e,X.BANG,i,i+1);case 36:return At(e,X.DOLLAR,i,i+1);case 38:return At(e,X.AMP,i,i+1);case 40:return At(e,X.PAREN_L,i,i+1);case 41:return At(e,X.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return At(e,X.SPREAD,i,i+3);break;case 58:return At(e,X.COLON,i,i+1);case 61:return At(e,X.EQUALS,i,i+1);case 64:return At(e,X.AT,i,i+1);case 91:return At(e,X.BRACKET_L,i,i+1);case 93:return At(e,X.BRACKET_R,i,i+1);case 123:return At(e,X.BRACE_L,i,i+1);case 124:return At(e,X.PIPE,i,i+1);case 125:return At(e,X.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?B4(e,i):M4(e,i)}if(co(s)||s===45)return P4(e,i,s);if(Xf(s))return U4(e,i);throw Lt(e.source,i,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Ts(s)||Eu(n,i)?`Unexpected character: ${Ni(e,i)}.`:`Invalid character: ${Ni(e,i)}.`)}return At(e,X.EOF,r,r)}function R4(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const s=n.charCodeAt(i);if(s===10||s===13)break;if(Ts(s))++i;else if(Eu(n,i))i+=2;else break}return At(e,X.COMMENT,t,i,n.slice(t+1,i))}function P4(e,t,n){const r=e.source.body;let i=t,s=n,o=!1;if(s===45&&(s=r.charCodeAt(++i)),s===48){if(s=r.charCodeAt(++i),co(s))throw Lt(e.source,i,`Invalid number, unexpected digit after 0: ${Ni(e,i)}.`)}else i=al(e,i,s),s=r.charCodeAt(i);if(s===46&&(o=!0,s=r.charCodeAt(++i),i=al(e,i,s),s=r.charCodeAt(i)),(s===69||s===101)&&(o=!0,s=r.charCodeAt(++i),(s===43||s===45)&&(s=r.charCodeAt(++i)),i=al(e,i,s),s=r.charCodeAt(i)),s===46||Xf(s))throw Lt(e.source,i,`Invalid number, expected digit but got: ${Ni(e,i)}.`);return At(e,o?X.FLOAT:X.INT,t,i,r.slice(t,i))}function al(e,t,n){if(!co(n))throw Lt(e.source,t,`Invalid number, expected digit but got: ${Ni(e,t)}.`);const r=e.source.body;let i=t+1;for(;co(r.charCodeAt(i));)++i;return i}function M4(e,t){const n=e.source.body,r=n.length;let i=t+1,s=i,o="";for(;i<r;){const a=n.charCodeAt(i);if(a===34)return o+=n.slice(s,i),At(e,X.STRING,t,i+1,o);if(a===92){o+=n.slice(s,i);const u=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?V4(e,i):$4(e,i):j4(e,i);o+=u.value,i+=u.size,s=i;continue}if(a===10||a===13)break;if(Ts(a))++i;else if(Eu(n,i))i+=2;else throw Lt(e.source,i,`Invalid character within String: ${Ni(e,i)}.`)}throw Lt(e.source,i,"Unterminated string.")}function V4(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const s=n.charCodeAt(t+i++);if(s===125){if(i<5||!Ts(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|$s(s),r<0)break}throw Lt(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function $4(e,t){const n=e.source.body,r=rp(n,t+2);if(Ts(r))return{value:String.fromCodePoint(r),size:6};if(a2(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const i=rp(n,t+8);if(u2(i))return{value:String.fromCodePoint(r,i),size:12}}throw Lt(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function rp(e,t){return $s(e.charCodeAt(t))<<12|$s(e.charCodeAt(t+1))<<8|$s(e.charCodeAt(t+2))<<4|$s(e.charCodeAt(t+3))}function $s(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function j4(e,t){const 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:`
63
+ `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Lt(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function B4(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,s=t+3,o=s,a="";const u=[];for(;s<r;){const l=n.charCodeAt(s);if(l===34&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34){a+=n.slice(o,s),u.push(a);const c=At(e,X.BLOCK_STRING,t,s+3,I4(u).join(`
64
+ `));return e.line+=u.length-1,e.lineStart=i,c}if(l===92&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34&&n.charCodeAt(s+3)===34){a+=n.slice(o,s),o=s+1,s+=4;continue}if(l===10||l===13){a+=n.slice(o,s),u.push(a),l===13&&n.charCodeAt(s+1)===10?s+=2:++s,a="",o=s,i=s;continue}if(Ts(l))++s;else if(Eu(n,s))s+=2;else throw Lt(e.source,s,`Invalid character within String: ${Ni(e,s)}.`)}throw Lt(e.source,s,"Unterminated string.")}function U4(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const s=n.charCodeAt(i);if(i2(s))++i;else break}return At(e,X.NAME,t,i,n.slice(t,i))}const q4=10,l2=2;function J(e){return _u(e,[])}function _u(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return z4(e,t);default:return String(e)}}function z4(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(H4(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:_u(r,n)}else if(Array.isArray(e))return W4(e,n);return G4(e,n)}function H4(e){return typeof e.toJSON=="function"}function G4(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>l2?"["+Q4(e)+"]":"{ "+n.map(([i,s])=>i+": "+_u(s,t)).join(", ")+" }"}function W4(e,t){if(e.length===0)return"[]";if(t.length>l2)return"[Array]";const n=Math.min(q4,e.length),r=e.length-n,i=[];for(let s=0;s<n;++s)i.push(_u(e[s],t));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function Q4(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const Y4=globalThis.process&&!0,Kn=Y4?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;const i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===s){const o=J(t);throw new Error(`Cannot use ${i} "${o}" from another module or realm.
65
+
66
+ Ensure that there is only one instance of "graphql" in the node_modules
67
+ directory. If different versions of "graphql" are the dependencies of other
68
+ relied on modules, use "resolutions" to ensure only one version is installed.
69
+
70
+ https://yarnpkg.com/en/docs/selective-version-resolutions
71
+
72
+ Duplicate "graphql" modules cannot be used at the same time since different
73
+ versions may have different capabilities and behavior. The data from one
74
+ version used in the function from another could produce confusing and
75
+ spurious results.`)}}return!1};class Tu{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Le(!1,`Body must be a string. Received: ${J(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Le(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Le(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function c2(e){return Kn(e,Tu)}function $r(e,t){const n=new wu(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function f2(e,t){const n=new wu(e,t);n.expectToken(X.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(X.EOF),r}function X4(e,t){const n=new wu(e,t);n.expectToken(X.SOF);const r=n.parseConstValueLiteral();return n.expectToken(X.EOF),r}function J4(e,t){const n=new wu(e,t);n.expectToken(X.SOF);const r=n.parseTypeReference();return n.expectToken(X.EOF),r}class wu{constructor(t,n={}){const r=c2(t)?t:new Tu(t);this._lexer=new Jf(r),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(X.NAME);return this.node(t,{kind:w.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:w.DOCUMENT,definitions:this.many(X.SOF,this.parseDefinition,X.EOF)})}parseDefinition(){if(this.peek(X.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===X.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw Lt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(X.BRACE_L))return this.node(t,{kind:w.OPERATION_DEFINITION,operation:Rt.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(X.NAME)&&(r=this.parseName()),this.node(t,{kind:w.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(X.NAME);switch(t.value){case"query":return Rt.QUERY;case"mutation":return Rt.MUTATION;case"subscription":return Rt.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(X.PAREN_L,this.parseVariableDefinition,X.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:w.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(X.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(X.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(X.DOLLAR),this.node(t,{kind:w.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:w.SELECTION_SET,selections:this.many(X.BRACE_L,this.parseSelection,X.BRACE_R)})}parseSelection(){return this.peek(X.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(X.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:w.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(X.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(X.PAREN_L,n,X.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(X.COLON),this.node(n,{kind:w.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(X.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(X.NAME)?this.node(t,{kind:w.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:w.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:w.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:w.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case X.BRACKET_L:return this.parseList(t);case X.BRACE_L:return this.parseObject(t);case X.INT:return this.advanceLexer(),this.node(n,{kind:w.INT,value:n.value});case X.FLOAT:return this.advanceLexer(),this.node(n,{kind:w.FLOAT,value:n.value});case X.STRING:case X.BLOCK_STRING:return this.parseStringLiteral();case X.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:w.BOOLEAN,value:!0});case"false":return this.node(n,{kind:w.BOOLEAN,value:!1});case"null":return this.node(n,{kind:w.NULL});default:return this.node(n,{kind:w.ENUM,value:n.value})}case X.DOLLAR:if(t)if(this.expectToken(X.DOLLAR),this._lexer.token.kind===X.NAME){const r=this._lexer.token.value;throw Lt(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:w.STRING,value:t.value,block:t.kind===X.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:w.LIST,values:this.any(X.BRACKET_L,n,X.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:w.OBJECT,fields:this.any(X.BRACE_L,n,X.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(X.COLON),this.node(n,{kind:w.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(X.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(X.AT),this.node(n,{kind:w.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(X.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(X.BRACKET_R),n=this.node(t,{kind:w.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(X.BANG)?this.node(t,{kind:w.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:w.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(X.STRING)||this.peek(X.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(X.BRACE_L,this.parseOperationTypeDefinition,X.BRACE_R);return this.node(t,{kind:w.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(X.COLON);const r=this.parseNamedType();return this.node(t,{kind:w.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:w.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:w.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(X.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(X.BRACE_L,this.parseFieldDefinition,X.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(X.COLON);const s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:w.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(X.PAREN_L,this.parseInputValueDef,X.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(X.COLON);const i=this.parseTypeReference();let s;this.expectOptionalToken(X.EQUALS)&&(s=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(t,{kind:w.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:w.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:w.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(X.EQUALS)?this.delimitedMany(X.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:w.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(X.BRACE_L,this.parseEnumValueDefinition,X.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:w.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Lt(this._lexer.source,this._lexer.token.start,`${na(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:w.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(X.BRACE_L,this.parseInputValueDef,X.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===X.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(X.BRACE_L,this.parseOperationTypeDefinition,X.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:w.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:w.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:w.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:w.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:w.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:w.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:w.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(X.AT);const r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(t,{kind:w.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(X.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(xe,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new t2(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Lt(this._lexer.source,n.start,`Expected ${d2(t)}, found ${na(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===X.NAME&&n.value===t)this.advanceLexer();else throw Lt(this._lexer.source,n.start,`Expected "${t}", found ${na(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===X.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return Lt(this._lexer.source,n.start,`Unexpected ${na(n)}.`)}any(t,n,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==X.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw Lt(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function na(e){const t=e.value;return d2(e.kind)+(t!=null?` "${t}"`:"")}function d2(e){return o2(e)?`"${e}"`:e}const Z4=5;function Ir(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const s=r.map(u=>`"${u}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}const o=s.slice(0,Z4),a=o.pop();return i+o.join(", ")+", or "+a+"?"}function ip(e){return e}function Fr(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function Qr(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function kr(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function No(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),s=t.charCodeAt(r);if(ra(i)&&ra(s)){let o=0;do++n,o=o*10+i-xc,i=e.charCodeAt(n);while(ra(i)&&o>0);let a=0;do++r,a=a*10+s-xc,s=t.charCodeAt(r);while(ra(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}const xc=48,K4=57;function ra(e){return!isNaN(e)&&xc<=e&&e<=K4}function ti(e,t){const n=Object.create(null),r=new e5(e),i=Math.floor(e.length*.4)+1;for(const s of t){const o=r.measure(s,i);o!==void 0&&(n[s]=o)}return Object.keys(n).sort((s,o)=>{const a=n[s]-n[o];return a!==0?a:No(s,o)})}class e5{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=sp(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;const r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=sp(r),s=this._inputArray;if(i.length<s.length){const c=i;i=s,s=c}const o=i.length,a=s.length;if(o-a>n)return;const u=this._rows;for(let c=0;c<=a;c++)u[0][c]=c;for(let c=1;c<=o;c++){const f=u[(c-1)%3],d=u[c%3];let h=d[0]=c;for(let p=1;p<=a;p++){const b=i[c-1]===s[p-1]?0:1;let v=Math.min(f[p]+1,d[p-1]+1,f[p-1]+b);if(c>1&&p>1&&i[c-1]===s[p-2]&&i[c-2]===s[p-1]){const _=u[(c-2)%3][p-2];v=Math.min(v,_+1)}v<h&&(h=v),d[p]=v}if(h>n)return}const l=u[o%3][a];return l<=n?l:void 0}}function sp(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function $n(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}function t5(e){return`"${e.replace(n5,r5)}"`}const n5=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function r5(e){return i5[e.charCodeAt(0)]}const i5=["\\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"],mi=Object.freeze({});function nn(e,t,n=n2){const r=new Map;for(const _ of Object.values(w))r.set(_,fs(t,_));let i,s=Array.isArray(e),o=[e],a=-1,u=[],l=e,c,f;const d=[],h=[];do{a++;const _=a===o.length,x=_&&u.length!==0;if(_){if(c=h.length===0?void 0:d[d.length-1],l=f,f=h.pop(),x)if(s){l=l.slice();let T=0;for(const[k,A]of u){const I=k-T;A===null?(l.splice(I,1),T++):l[I]=A}}else{l={...l};for(const[T,k]of u)l[T]=k}a=i.index,o=i.keys,u=i.edits,s=i.inArray,i=i.prev}else if(f){if(c=s?a:o[a],l=f[c],l==null)continue;d.push(c)}let E;if(!Array.isArray(l)){var p,b;vc(l)||Le(!1,`Invalid AST Node: ${J(l)}.`);const T=_?(p=r.get(l.kind))===null||p===void 0?void 0:p.leave:(b=r.get(l.kind))===null||b===void 0?void 0:b.enter;if(E=T==null?void 0:T.call(t,l,c,f,d,h),E===mi)break;if(E===!1){if(!_){d.pop();continue}}else if(E!==void 0&&(u.push([c,E]),!_))if(vc(E))l=E;else{d.pop();continue}}if(E===void 0&&x&&u.push([c,l]),_)d.pop();else{var v;i={inArray:s,index:a,keys:o,edits:u,prev:i},s=Array.isArray(l),o=s?l:(v=n[l.kind])!==null&&v!==void 0?v:[],a=-1,u=[],f&&h.push(f),f=l}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:e}function Zf(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(w)){let i=!1;const s=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let u=0;u<e.length;++u){const{enter:l,leave:c}=fs(e[u],r);i||(i=l!=null||c!=null),s[u]=l,o[u]=c}if(!i)continue;const a={enter(...u){const l=u[0];for(let f=0;f<e.length;f++)if(t[f]===null){var c;const d=(c=s[f])===null||c===void 0?void 0:c.apply(e[f],u);if(d===!1)t[f]=l;else if(d===mi)t[f]=mi;else if(d!==void 0)return d}},leave(...u){const l=u[0];for(let f=0;f<e.length;f++)if(t[f]===null){var c;const d=(c=o[f])===null||c===void 0?void 0:c.apply(e[f],u);if(d===mi)t[f]=mi;else if(d!==void 0&&d!==!1)return d}else t[f]===l&&(t[f]=null)}};n[r]=a}return n}function fs(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function s5(e,t,n){const{enter:r,leave:i}=fs(e,t);return n?i:r}function Qe(e){return nn(e,a5)}const o5=80,a5={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ge(e.definitions,`
76
+
77
+ `)},OperationDefinition:{leave(e){const t=Pe("(",ge(e.variableDefinitions,", "),")"),n=ge([e.operation,ge([e.name,t]),ge(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Pe(" = ",n)+Pe(" ",ge(r," "))},SelectionSet:{leave:({selections:e})=>jn(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const s=Pe("",e,": ")+t;let o=s+Pe("(",ge(n,", "),")");return o.length>o5&&(o=s+Pe(`(
78
+ `,Sa(ge(n,`
79
+ `)),`
80
+ )`)),ge([o,ge(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Pe(" ",ge(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>ge(["...",Pe("on ",e),ge(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Pe("(",ge(n,", "),")")} on ${t} ${Pe("",ge(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?s2(e):t5(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ge(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ge(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Pe("(",ge(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Pe("",e,`
81
+ `)+ge(["schema",ge(t," "),jn(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Pe("",e,`
82
+ `)+ge(["scalar",t,ge(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Pe("",e,`
83
+ `)+ge(["type",t,Pe("implements ",ge(n," & ")),ge(r," "),jn(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Pe("",e,`
84
+ `)+t+(op(n)?Pe(`(
85
+ `,Sa(ge(n,`
86
+ `)),`
87
+ )`):Pe("(",ge(n,", "),")"))+": "+r+Pe(" ",ge(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Pe("",e,`
88
+ `)+ge([t+": "+n,Pe("= ",r),ge(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Pe("",e,`
89
+ `)+ge(["interface",t,Pe("implements ",ge(n," & ")),ge(r," "),jn(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Pe("",e,`
90
+ `)+ge(["union",t,ge(n," "),Pe("= ",ge(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Pe("",e,`
91
+ `)+ge(["enum",t,ge(n," "),jn(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Pe("",e,`
92
+ `)+ge([t,ge(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Pe("",e,`
93
+ `)+ge(["input",t,ge(n," "),jn(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Pe("",e,`
94
+ `)+"directive @"+t+(op(n)?Pe(`(
95
+ `,Sa(ge(n,`
96
+ `)),`
97
+ )`):Pe("(",ge(n,", "),")"))+(r?" repeatable":"")+" on "+ge(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ge(["extend schema",ge(e," "),jn(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ge(["extend scalar",e,ge(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ge(["extend type",e,Pe("implements ",ge(t," & ")),ge(n," "),jn(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ge(["extend interface",e,Pe("implements ",ge(t," & ")),ge(n," "),jn(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>ge(["extend union",e,ge(t," "),Pe("= ",ge(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>ge(["extend enum",e,ge(t," "),jn(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>ge(["extend input",e,ge(t," "),jn(n)]," ")}};function ge(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function jn(e){return Pe(`{
98
+ `,Sa(ge(e,`
99
+ `)),`
100
+ }`)}function Pe(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Sa(e){return Pe(" ",e.replace(/\n/g,`
101
+ `))}function op(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`
102
+ `)))!==null&&t!==void 0?t:!1}function qa(e,t){switch(e.kind){case w.NULL:return null;case w.INT:return parseInt(e.value,10);case w.FLOAT:return parseFloat(e.value);case w.STRING:case w.ENUM:case w.BOOLEAN:return e.value;case w.LIST:return e.values.map(n=>qa(n,t));case w.OBJECT:return Qr(e.fields,n=>n.name.value,n=>qa(n.value,t));case w.VARIABLE:return t==null?void 0:t[e.name.value]}}function wn(e){if(e!=null||Le(!1,"Must provide name."),typeof e=="string"||Le(!1,"Expected name to be a string."),e.length===0)throw new G("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!i2(e.charCodeAt(t)))throw new G(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!Xf(e.charCodeAt(0)))throw new G(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function h2(e){if(e==="true"||e==="false"||e==="null")throw new G(`Enum values cannot be named: ${e}`);return wn(e)}function ws(e){return hn(e)||Oe(e)||je(e)||Nt(e)||bt(e)||ze(e)||it(e)||Te(e)}function u5(e){if(!ws(e))throw new Error(`Expected ${J(e)} to be a GraphQL type.`);return e}function hn(e){return Kn(e,vr)}function l5(e){if(!hn(e))throw new Error(`Expected ${J(e)} to be a GraphQL Scalar type.`);return e}function Oe(e){return Kn(e,_n)}function p2(e){if(!Oe(e))throw new Error(`Expected ${J(e)} to be a GraphQL Object type.`);return e}function je(e){return Kn(e,Ci)}function m2(e){if(!je(e))throw new Error(`Expected ${J(e)} to be a GraphQL Interface type.`);return e}function Nt(e){return Kn(e,ds)}function c5(e){if(!Nt(e))throw new Error(`Expected ${J(e)} to be a GraphQL Union type.`);return e}function bt(e){return Kn(e,Lr)}function f5(e){if(!bt(e))throw new Error(`Expected ${J(e)} to be a GraphQL Enum type.`);return e}function ze(e){return Kn(e,Ii)}function d5(e){if(!ze(e))throw new Error(`Expected ${J(e)} to be a GraphQL Input Object type.`);return e}function it(e){return Kn(e,Bt)}function h5(e){if(!it(e))throw new Error(`Expected ${J(e)} to be a GraphQL List type.`);return e}function Te(e){return Kn(e,Fe)}function p5(e){if(!Te(e))throw new Error(`Expected ${J(e)} to be a GraphQL Non-Null type.`);return e}function un(e){return hn(e)||bt(e)||ze(e)||Co(e)&&un(e.ofType)}function m5(e){if(!un(e))throw new Error(`Expected ${J(e)} to be a GraphQL input type.`);return e}function Jr(e){return hn(e)||Oe(e)||je(e)||Nt(e)||bt(e)||Co(e)&&Jr(e.ofType)}function g5(e){if(!Jr(e))throw new Error(`Expected ${J(e)} to be a GraphQL output type.`);return e}function Rn(e){return hn(e)||bt(e)}function b5(e){if(!Rn(e))throw new Error(`Expected ${J(e)} to be a GraphQL leaf type.`);return e}function Xn(e){return Oe(e)||je(e)||Nt(e)}function v5(e){if(!Xn(e))throw new Error(`Expected ${J(e)} to be a GraphQL composite type.`);return e}function Qn(e){return je(e)||Nt(e)}function y5(e){if(!Qn(e))throw new Error(`Expected ${J(e)} to be a GraphQL abstract type.`);return e}class Bt{constructor(t){ws(t)||Le(!1,`Expected ${J(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Fe{constructor(t){Su(t)||Le(!1,`Expected ${J(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function Co(e){return it(e)||Te(e)}function x5(e){if(!Co(e))throw new Error(`Expected ${J(e)} to be a GraphQL wrapping type.`);return e}function Su(e){return ws(e)&&!Te(e)}function g2(e){if(!Su(e))throw new Error(`Expected ${J(e)} to be a GraphQL nullable type.`);return e}function ku(e){if(e)return Te(e)?e.ofType:e}function Vi(e){return hn(e)||Oe(e)||je(e)||Nt(e)||bt(e)||ze(e)}function E5(e){if(!Vi(e))throw new Error(`Expected ${J(e)} to be a GraphQL named type.`);return e}function Tt(e){if(e){let t=e;for(;Co(t);)t=t.ofType;return t}}function Kf(e){return typeof e=="function"?e():e}function ed(e){return typeof e=="function"?e():e}class vr{constructor(t){var n,r,i,s;const o=(n=t.parseValue)!==null&&n!==void 0?n:ip;this.name=wn(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:ip,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(a,u)=>o(qa(a,u)),this.extensions=$n(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||Le(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${J(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||Le(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||Le(!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 _n{constructor(t){var n;this.name=wn(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=$n(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>v2(t),this._interfaces=()=>b2(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||Le(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${J(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:x2(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function b2(e){var t;const n=Kf((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||Le(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function v2(e){const t=ed(e.fields);return os(t)||Le(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),kr(t,(n,r)=>{var i;os(n)||Le(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||Le(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${J(n.resolve)}.`);const s=(i=n.args)!==null&&i!==void 0?i:{};return os(s)||Le(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:wn(r),description:n.description,type:n.type,args:y2(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:$n(n.extensions),astNode:n.astNode}})}function y2(e){return Object.entries(e).map(([t,n])=>({name:wn(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:$n(n.extensions),astNode:n.astNode}))}function os(e){return En(e)&&!Array.isArray(e)}function x2(e){return kr(e,t=>({description:t.description,type:t.type,args:E2(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function E2(e){return Qr(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function ni(e){return Te(e.type)&&e.defaultValue===void 0}class Ci{constructor(t){var n;this.name=wn(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=$n(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=v2.bind(void 0,t),this._interfaces=b2.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Le(!1,`${this.name} must provide "resolveType" as a function, but got: ${J(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:x2(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ds{constructor(t){var n;this.name=wn(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=$n(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=_5.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Le(!1,`${this.name} must provide "resolveType" as a function, but got: ${J(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function _5(e){const t=Kf(e.types);return Array.isArray(t)||Le(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class Lr{constructor(t){var n;this.name=wn(t.name),this.description=t.description,this.extensions=$n(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:ap(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=ap(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=Fr(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));const n=this._valueLookup.get(t);if(n===void 0)throw new G(`Enum "${this.name}" cannot represent value: ${J(t)}`);return n.name}parseValue(t){if(typeof t!="string"){const r=J(t);throw new G(`Enum "${this.name}" cannot represent non-string value: ${r}.`+ia(this,r))}const n=this.getValue(t);if(n==null)throw new G(`Value "${t}" does not exist in "${this.name}" enum.`+ia(this,t));return n.value}parseLiteral(t,n){if(t.kind!==w.ENUM){const i=Qe(t);throw new G(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+ia(this,i),{nodes:t})}const r=this.getValue(t.value);if(r==null){const i=Qe(t);throw new G(`Value "${i}" does not exist in "${this.name}" enum.`+ia(this,i),{nodes:t})}return r.value}toConfig(){const t=Qr(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ia(e,t){const n=e.getValues().map(i=>i.name),r=ti(t,n);return Ir("the enum value",r)}function ap(e,t){return os(t)||Le(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(os(r)||Le(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${J(r)}.`),{name:h2(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:$n(r.extensions),astNode:r.astNode}))}class Ii{constructor(t){var n,r;this.name=wn(t.name),this.description=t.description,this.extensions=$n(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=T5.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const t=kr(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function T5(e){const t=ed(e.fields);return os(t)||Le(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),kr(t,(n,r)=>(!("resolve"in n)||Le(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:wn(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:$n(n.extensions),astNode:n.astNode}))}function Au(e){return Te(e.type)&&e.defaultValue===void 0}function za(e,t){return e===t?!0:Te(e)&&Te(t)||it(e)&&it(t)?za(e.ofType,t.ofType):!1}function _i(e,t,n){return t===n?!0:Te(n)?Te(t)?_i(e,t.ofType,n.ofType):!1:Te(t)?_i(e,t.ofType,n):it(n)?it(t)?_i(e,t.ofType,n.ofType):!1:it(t)?!1:Qn(n)&&(je(t)||Oe(t))&&e.isSubType(n,t)}function Ec(e,t,n){return t===n?!0:Qn(t)?Qn(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):Qn(n)?e.isSubType(n,t):!1}const ka=2147483647,Aa=-2147483648,_2=new vr({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){const t=Fo(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new G(`Int cannot represent non-integer value: ${J(t)}`);if(n>ka||n<Aa)throw new G("Int cannot represent non 32-bit signed integer value: "+J(t));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new G(`Int cannot represent non-integer value: ${J(e)}`);if(e>ka||e<Aa)throw new G(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==w.INT)throw new G(`Int cannot represent non-integer value: ${Qe(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>ka||t<Aa)throw new G(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),td=new vr({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){const t=Fo(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isFinite(n))throw new G(`Float cannot represent non numeric value: ${J(t)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new G(`Float cannot represent non numeric value: ${J(e)}`);return e},parseLiteral(e){if(e.kind!==w.FLOAT&&e.kind!==w.INT)throw new G(`Float cannot represent non numeric value: ${Qe(e)}`,e);return parseFloat(e.value)}}),gt=new vr({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){const t=Fo(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number"&&Number.isFinite(t))return t.toString();throw new G(`String cannot represent value: ${J(e)}`)},parseValue(e){if(typeof e!="string")throw new G(`String cannot represent a non string value: ${J(e)}`);return e},parseLiteral(e){if(e.kind!==w.STRING)throw new G(`String cannot represent a non string value: ${Qe(e)}`,{nodes:e});return e.value}}),ln=new vr({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=Fo(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new G(`Boolean cannot represent a non boolean value: ${J(t)}`)},parseValue(e){if(typeof e!="boolean")throw new G(`Boolean cannot represent a non boolean value: ${J(e)}`);return e},parseLiteral(e){if(e.kind!==w.BOOLEAN)throw new G(`Boolean cannot represent a non boolean value: ${Qe(e)}`,{nodes:e});return e.value}}),nd=new vr({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){const t=Fo(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new G(`ID cannot represent value: ${J(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new G(`ID cannot represent value: ${J(e)}`)},parseLiteral(e){if(e.kind!==w.STRING&&e.kind!==w.INT)throw new G("ID cannot represent a non-string and non-integer value: "+Qe(e),{nodes:e});return e.value}}),Io=Object.freeze([gt,_2,td,ln,nd]);function Du(e){return Io.some(({name:t})=>e.name===t)}function Fo(e){if(En(e)){if(typeof e.valueOf=="function"){const t=e.valueOf();if(!En(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function Nu(e){return Kn(e,Jn)}function w5(e){if(!Nu(e))throw new Error(`Expected ${J(e)} to be a GraphQL directive.`);return e}class Jn{constructor(t){var n,r;this.name=wn(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=$n(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||Le(!1,`@${t.name} locations must be an Array.`);const i=(r=t.args)!==null&&r!==void 0?r:{};En(i)&&!Array.isArray(i)||Le(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=y2(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:E2(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const rd=new Jn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[xe.FIELD,xe.FRAGMENT_SPREAD,xe.INLINE_FRAGMENT],args:{if:{type:new Fe(ln),description:"Included when true."}}}),id=new Jn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[xe.FIELD,xe.FRAGMENT_SPREAD,xe.INLINE_FRAGMENT],args:{if:{type:new Fe(ln),description:"Skipped when true."}}}),sd="No longer supported",Cu=new Jn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[xe.FIELD_DEFINITION,xe.ARGUMENT_DEFINITION,xe.INPUT_FIELD_DEFINITION,xe.ENUM_VALUE],args:{reason:{type:gt,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:sd}}}),od=new Jn({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[xe.SCALAR],args:{url:{type:new Fe(gt),description:"The URL that specifies the behavior of this scalar."}}}),ad=new Jn({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[xe.INPUT_OBJECT],args:{}}),ri=Object.freeze([rd,id,Cu,od,ad]);function ud(e){return ri.some(({name:t})=>t===e.name)}function ld(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}function Ar(e,t){if(Te(t)){const n=Ar(e,t.ofType);return(n==null?void 0:n.kind)===w.NULL?null:n}if(e===null)return{kind:w.NULL};if(e===void 0)return null;if(it(t)){const n=t.ofType;if(ld(e)){const r=[];for(const i of e){const s=Ar(i,n);s!=null&&r.push(s)}return{kind:w.LIST,values:r}}return Ar(e,n)}if(ze(t)){if(!En(e))return null;const n=[];for(const r of Object.values(t.getFields())){const i=Ar(e[r.name],r.type);i&&n.push({kind:w.OBJECT_FIELD,name:{kind:w.NAME,value:r.name},value:i})}return{kind:w.OBJECT,fields:n}}if(Rn(t)){const n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:w.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){const r=String(n);return up.test(r)?{kind:w.INT,value:r}:{kind:w.FLOAT,value:r}}if(typeof n=="string")return bt(t)?{kind:w.ENUM,value:n}:t===nd&&up.test(n)?{kind:w.INT,value:n}:{kind:w.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${J(n)}.`)}wt(!1,"Unexpected input type: "+J(t))}const up=/^-?(?:0|[1-9][0-9]*)$/,Iu=new _n({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:gt,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Fe(new Bt(new Fe(Ln))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Fe(Ln),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Ln,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Ln,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Fe(new Bt(new Fe(cd))),resolve:e=>e.getDirectives()}})}),cd=new _n({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
103
+
104
+ In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new Fe(gt),resolve:e=>e.name},description:{type:gt,resolve:e=>e.description},isRepeatable:{type:new Fe(ln),resolve:e=>e.isRepeatable},locations:{type:new Fe(new Bt(new Fe(fd))),resolve:e=>e.locations},args:{type:new Fe(new Bt(new Fe(Lo))),args:{includeDeprecated:{type:ln,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),fd=new Lr({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:xe.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:xe.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:xe.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:xe.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:xe.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:xe.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:xe.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:xe.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:xe.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:xe.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:xe.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:xe.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:xe.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:xe.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:xe.UNION,description:"Location adjacent to a union definition."},ENUM:{value:xe.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:xe.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:xe.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:xe.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Ln=new _n({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 Fe(pd),resolve(e){if(hn(e))return Xe.SCALAR;if(Oe(e))return Xe.OBJECT;if(je(e))return Xe.INTERFACE;if(Nt(e))return Xe.UNION;if(bt(e))return Xe.ENUM;if(ze(e))return Xe.INPUT_OBJECT;if(it(e))return Xe.LIST;if(Te(e))return Xe.NON_NULL;wt(!1,`Unexpected type: "${J(e)}".`)}},name:{type:gt,resolve:e=>"name"in e?e.name:void 0},description:{type:gt,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:gt,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Bt(new Fe(dd)),args:{includeDeprecated:{type:ln,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Oe(e)||je(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new Bt(new Fe(Ln)),resolve(e){if(Oe(e)||je(e))return e.getInterfaces()}},possibleTypes:{type:new Bt(new Fe(Ln)),resolve(e,t,n,{schema:r}){if(Qn(e))return r.getPossibleTypes(e)}},enumValues:{type:new Bt(new Fe(hd)),args:{includeDeprecated:{type:ln,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(bt(e)){const n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new Bt(new Fe(Lo)),args:{includeDeprecated:{type:ln,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ze(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Ln,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:ln,resolve:e=>{if(ze(e))return e.isOneOf}}})}),dd=new _n({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 Fe(gt),resolve:e=>e.name},description:{type:gt,resolve:e=>e.description},args:{type:new Fe(new Bt(new Fe(Lo))),args:{includeDeprecated:{type:ln,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new Fe(Ln),resolve:e=>e.type},isDeprecated:{type:new Fe(ln),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:gt,resolve:e=>e.deprecationReason}})}),Lo=new _n({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 Fe(gt),resolve:e=>e.name},description:{type:gt,resolve:e=>e.description},type:{type:new Fe(Ln),resolve:e=>e.type},defaultValue:{type:gt,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=Ar(n,t);return r?Qe(r):null}},isDeprecated:{type:new Fe(ln),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:gt,resolve:e=>e.deprecationReason}})}),hd=new _n({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 Fe(gt),resolve:e=>e.name},description:{type:gt,resolve:e=>e.description},isDeprecated:{type:new Fe(ln),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:gt,resolve:e=>e.deprecationReason}})});var Xe;(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"})(Xe||(Xe={}));const pd=new Lr({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Xe.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Xe.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Xe.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Xe.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Xe.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Xe.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Xe.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Xe.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Fi={name:"__schema",type:new Fe(Iu),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},Li={name:"__type",type:Ln,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Fe(gt),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},Oi={name:"__typename",type:new Fe(gt),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},Oo=Object.freeze([Iu,cd,fd,Ln,dd,Lo,hd,pd]);function $i(e){return Oo.some(({name:t})=>e.name===t)}function Ha(e){return Kn(e,Ss)}function md(e){if(!Ha(e))throw new Error(`Expected ${J(e)} to be a GraphQL schema.`);return e}class Ss{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,En(t)||Le(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||Le(!1,`"types" must be Array if provided but got: ${J(t.types)}.`),!t.directives||Array.isArray(t.directives)||Le(!1,`"directives" must be Array if provided but got: ${J(t.directives)}.`),this.description=t.description,this.extensions=$n(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:ri;const i=new Set(t.types);if(t.types!=null)for(const s of t.types)i.delete(s),zn(s,i);this._queryType!=null&&zn(this._queryType,i),this._mutationType!=null&&zn(this._mutationType,i),this._subscriptionType!=null&&zn(this._subscriptionType,i);for(const s of this._directives)if(Nu(s))for(const o of s.args)zn(o.type,i);zn(Iu,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const s of i){if(s==null)continue;const o=s.name;if(o||Le(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=s,je(s)){for(const a of s.getInterfaces())if(je(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.interfaces.push(s)}}else if(Oe(s)){for(const a of s.getInterfaces())if(je(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case Rt.QUERY:return this.getQueryType();case Rt.MUTATION:return this.getMutationType();case Rt.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return Nt(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){const n=this._implementationsMap[t.name];return n??{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),Nt(t))for(const i of t.getTypes())r[i.name]=!0;else{const i=this.getImplementations(t);for(const s of i.objects)r[s.name]=!0;for(const s of i.interfaces)r[s.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}function zn(e,t){const n=Tt(e);if(!t.has(n)){if(t.add(n),Nt(n))for(const r of n.getTypes())zn(r,t);else if(Oe(n)||je(n)){for(const r of n.getInterfaces())zn(r,t);for(const r of Object.values(n.getFields())){zn(r.type,t);for(const i of r.args)zn(i.type,t)}}else if(ze(n))for(const r of Object.values(n.getFields()))zn(r.type,t)}return t}function Fu(e){if(md(e),e.__validationErrors)return e.__validationErrors;const t=new S5(e);k5(t),A5(t),D5(t);const n=t.getErrors();return e.__validationErrors=n,n}function gd(e){const t=Fu(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
105
+
106
+ `))}class S5{constructor(t){this._errors=[],this.schema=t}reportError(t,n){const r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new G(t,{nodes:r}))}getErrors(){return this._errors}}function k5(e){const t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!Oe(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${J(n)}.`,(r=ul(t,Rt.QUERY))!==null&&r!==void 0?r:n.astNode)}const i=t.getMutationType();if(i&&!Oe(i)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${J(i)}.`,(s=ul(t,Rt.MUTATION))!==null&&s!==void 0?s:i.astNode)}const o=t.getSubscriptionType();if(o&&!Oe(o)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${J(o)}.`,(a=ul(t,Rt.SUBSCRIPTION))!==null&&a!==void 0?a:o.astNode)}}function ul(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function A5(e){for(const n of e.schema.getDirectives()){if(!Nu(n)){e.reportError(`Expected directive but got: ${J(n)}.`,n==null?void 0:n.astNode);continue}Ri(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const r of n.args)if(Ri(e,r),un(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${J(r.type)}.`,r.astNode),ni(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[bd(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Ri(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function D5(e){const t=R5(e),n=e.schema.getTypeMap();for(const r of Object.values(n)){if(!Vi(r)){e.reportError(`Expected GraphQL named type but got: ${J(r)}.`,r.astNode);continue}$i(r)||Ri(e,r),Oe(r)||je(r)?(lp(e,r),cp(e,r)):Nt(r)?I5(e,r):bt(r)?F5(e,r):ze(r)&&(L5(e,r),t(r))}}function lp(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){if(Ri(e,o),!Jr(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${J(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(const a of o.args){const u=a.name;if(Ri(e,a),!un(a.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${u}:) must be Input Type but got: ${J(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if(ni(a)&&a.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${o.name}(${u}:) cannot be deprecated.`,[bd(a.astNode),(s=a.astNode)===null||s===void 0?void 0:s.type])}}}}function cp(e,t){const n=Object.create(null);for(const r of t.getInterfaces()){if(!je(r)){e.reportError(`Type ${J(t)} must only implement Interface types, it cannot implement ${J(r)}.`,Ws(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Ws(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Ws(t,r));continue}n[r.name]=!0,C5(e,t,r),N5(e,t,r)}}function N5(e,t,n){const r=t.getFields();for(const u of Object.values(n.getFields())){const l=u.name,c=r[l];if(!c){e.reportError(`Interface field ${n.name}.${l} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!_i(e.schema,c.type,u.type)){var i,s;e.reportError(`Interface field ${n.name}.${l} expects type ${J(u.type)} but ${t.name}.${l} is type ${J(c.type)}.`,[(i=u.astNode)===null||i===void 0?void 0:i.type,(s=c.astNode)===null||s===void 0?void 0:s.type])}for(const f of u.args){const d=f.name,h=c.args.find(p=>p.name===d);if(!h){e.reportError(`Interface field argument ${n.name}.${l}(${d}:) expected but ${t.name}.${l} does not provide it.`,[f.astNode,c.astNode]);continue}if(!za(f.type,h.type)){var o,a;e.reportError(`Interface field argument ${n.name}.${l}(${d}:) expects type ${J(f.type)} but ${t.name}.${l}(${d}:) is type ${J(h.type)}.`,[(o=f.astNode)===null||o===void 0?void 0:o.type,(a=h.astNode)===null||a===void 0?void 0:a.type])}}for(const f of c.args){const d=f.name;!u.args.find(p=>p.name===d)&&ni(f)&&e.reportError(`Object field ${t.name}.${l} includes required argument ${d} that is missing from the Interface field ${n.name}.${l}.`,[f.astNode,u.astNode])}}}function C5(e,t,n){const r=t.getInterfaces();for(const 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}.`,[...Ws(n,i),...Ws(t,n)])}function I5(e,t){const n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,fp(t,i.name));continue}r[i.name]=!0,Oe(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${J(i)}.`,fp(t,String(i)))}}function F5(e,t){const n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const r of n)Ri(e,r)}function L5(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){if(Ri(e,s),!un(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${J(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if(Au(s)&&s.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[bd(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&O5(t,s,e)}}function O5(e,t,n){if(Te(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function R5(e){const t=Object.create(null),n=[],r=Object.create(null);return i;function i(s){if(t[s.name])return;t[s.name]=!0,r[s.name]=n.length;const o=Object.values(s.getFields());for(const a of o)if(Te(a.type)&&ze(a.type.ofType)){const u=a.type.ofType,l=r[u.name];if(n.push(a),l===void 0)i(u);else{const c=n.slice(l),f=c.map(d=>d.name).join(".");e.reportError(`Cannot reference Input Object "${u.name}" within itself through a series of non-null fields: "${f}".`,c.map(d=>d.astNode))}n.pop()}r[s.name]=void 0}}function Ws(e,t){const{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.interfaces)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t.name)}function fp(e,t){const{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.types)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t)}function bd(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Cu.name)}function rn(e,t){switch(t.kind){case w.LIST_TYPE:{const n=rn(e,t.type);return n&&new Bt(n)}case w.NON_NULL_TYPE:{const n=rn(e,t.type);return n&&new Fe(n)}case w.NAMED_TYPE:return e.getType(t.name.value)}}class Ro{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r??P5,n&&(un(n)&&this._inputTypeStack.push(n),Xn(n)&&this._parentTypeStack.push(n),Jr(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){const n=this._schema;switch(t.kind){case w.SELECTION_SET:{const i=Tt(this.getType());this._parentTypeStack.push(Xn(i)?i:void 0);break}case w.FIELD:{const i=this.getParentType();let s,o;i&&(s=this._getFieldDef(n,i,t),s&&(o=s.type)),this._fieldDefStack.push(s),this._typeStack.push(Jr(o)?o:void 0);break}case w.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case w.OPERATION_DEFINITION:{const i=n.getRootType(t.operation);this._typeStack.push(Oe(i)?i:void 0);break}case w.INLINE_FRAGMENT:case w.FRAGMENT_DEFINITION:{const i=t.typeCondition,s=i?rn(n,i):Tt(this.getType());this._typeStack.push(Jr(s)?s:void 0);break}case w.VARIABLE_DEFINITION:{const i=rn(n,t.type);this._inputTypeStack.push(un(i)?i:void 0);break}case w.ARGUMENT:{var r;let i,s;const o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(a=>a.name===t.name.value),i&&(s=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(un(s)?s:void 0);break}case w.LIST:{const i=ku(this.getInputType()),s=it(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(un(s)?s:void 0);break}case w.OBJECT_FIELD:{const i=Tt(this.getInputType());let s,o;ze(i)&&(o=i.getFields()[t.name.value],o&&(s=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push(un(s)?s:void 0);break}case w.ENUM:{const i=Tt(this.getInputType());let s;bt(i)&&(s=i.getValue(t.value)),this._enumValue=s;break}}}leave(t){switch(t.kind){case w.SELECTION_SET:this._parentTypeStack.pop();break;case w.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case w.DIRECTIVE:this._directive=null;break;case w.OPERATION_DEFINITION:case w.INLINE_FRAGMENT:case w.FRAGMENT_DEFINITION:this._typeStack.pop();break;case w.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case w.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case w.LIST:case w.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case w.ENUM:this._enumValue=null;break}}}function P5(e,t,n){const r=n.name.value;if(r===Fi.name&&e.getQueryType()===t)return Fi;if(r===Li.name&&e.getQueryType()===t)return Li;if(r===Oi.name&&Xn(t))return Oi;if(Oe(t)||je(t))return t.getFields()[r]}function Lu(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=fs(t,r.kind).enter;if(i){const s=i.apply(t,n);return s!==void 0&&(e.leave(r),vc(s)&&e.enter(s)),s}},leave(...n){const r=n[0],i=fs(t,r.kind).leave;let s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}function M5(e){return vd(e)||yd(e)||xd(e)}function vd(e){return e.kind===w.OPERATION_DEFINITION||e.kind===w.FRAGMENT_DEFINITION}function V5(e){return e.kind===w.FIELD||e.kind===w.FRAGMENT_SPREAD||e.kind===w.INLINE_FRAGMENT}function T2(e){return e.kind===w.VARIABLE||e.kind===w.INT||e.kind===w.FLOAT||e.kind===w.STRING||e.kind===w.BOOLEAN||e.kind===w.NULL||e.kind===w.ENUM||e.kind===w.LIST||e.kind===w.OBJECT}function _c(e){return T2(e)&&(e.kind===w.LIST?e.values.some(_c):e.kind===w.OBJECT?e.fields.some(t=>_c(t.value)):e.kind!==w.VARIABLE)}function $5(e){return e.kind===w.NAMED_TYPE||e.kind===w.LIST_TYPE||e.kind===w.NON_NULL_TYPE}function yd(e){return e.kind===w.SCHEMA_DEFINITION||ks(e)||e.kind===w.DIRECTIVE_DEFINITION}function ks(e){return e.kind===w.SCALAR_TYPE_DEFINITION||e.kind===w.OBJECT_TYPE_DEFINITION||e.kind===w.INTERFACE_TYPE_DEFINITION||e.kind===w.UNION_TYPE_DEFINITION||e.kind===w.ENUM_TYPE_DEFINITION||e.kind===w.INPUT_OBJECT_TYPE_DEFINITION}function xd(e){return e.kind===w.SCHEMA_EXTENSION||Ou(e)}function Ou(e){return e.kind===w.SCALAR_TYPE_EXTENSION||e.kind===w.OBJECT_TYPE_EXTENSION||e.kind===w.INTERFACE_TYPE_EXTENSION||e.kind===w.UNION_TYPE_EXTENSION||e.kind===w.ENUM_TYPE_EXTENSION||e.kind===w.INPUT_OBJECT_TYPE_EXTENSION}function w2(e){return{Document(t){for(const n of t.definitions)if(!vd(n)){const r=n.kind===w.SCHEMA_DEFINITION||n.kind===w.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new G(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}function S2(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const i=e.getSchema(),s=t.name.value;let o=Ir("to use an inline fragment on",j5(i,n,s));o===""&&(o=Ir(B5(n,s))),e.reportError(new G(`Cannot query field "${s}" on type "${n.name}".`+o,{nodes:t}))}}}}function j5(e,t,n){if(!Qn(t))return[];const r=new Set,i=Object.create(null);for(const o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(const a of o.getInterfaces()){var s;a.getFields()[n]&&(r.add(a),i[a.name]=((s=i[a.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((o,a)=>{const u=i[a.name]-i[o.name];return u!==0?u:je(o)&&e.isSubType(o,a)?-1:je(a)&&e.isSubType(a,o)?1:No(o.name,a.name)}).map(o=>o.name)}function B5(e,t){if(Oe(e)||je(e)){const n=Object.keys(e.getFields());return ti(t,n)}return[]}function k2(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const r=rn(e.getSchema(),n);if(r&&!Xn(r)){const i=Qe(n);e.reportError(new G(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){const n=rn(e.getSchema(),t.typeCondition);if(n&&!Xn(n)){const r=Qe(t.typeCondition);e.reportError(new G(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}function A2(e){return{...D2(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const s=t.name.value,o=r.args.map(u=>u.name),a=ti(s,o);e.reportError(new G(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+Ir(a),{nodes:t}))}}}}function D2(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ri;for(const o of r)t[o.name]=o.args.map(a=>a.name);const i=e.getDocument().definitions;for(const o of i)if(o.kind===w.DIRECTIVE_DEFINITION){var s;const a=(s=o.arguments)!==null&&s!==void 0?s:[];t[o.name.value]=a.map(u=>u.name.value)}return{Directive(o){const a=o.name.value,u=t[a];if(o.arguments&&u)for(const l of o.arguments){const c=l.name.value;if(!u.includes(c)){const f=ti(c,u);e.reportError(new G(`Unknown argument "${c}" on directive "@${a}".`+Ir(f),{nodes:l}))}}return!1}}}function Ed(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ri;for(const s of r)t[s.name]=s.locations;const i=e.getDocument().definitions;for(const s of i)s.kind===w.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(o=>o.value));return{Directive(s,o,a,u,l){const c=s.name.value,f=t[c];if(!f){e.reportError(new G(`Unknown directive "@${c}".`,{nodes:s}));return}const d=U5(l);d&&!f.includes(d)&&e.reportError(new G(`Directive "@${c}" may not be used on ${d}.`,{nodes:s}))}}}function U5(e){const t=e[e.length-1];switch("kind"in t||wt(!1),t.kind){case w.OPERATION_DEFINITION:return q5(t.operation);case w.FIELD:return xe.FIELD;case w.FRAGMENT_SPREAD:return xe.FRAGMENT_SPREAD;case w.INLINE_FRAGMENT:return xe.INLINE_FRAGMENT;case w.FRAGMENT_DEFINITION:return xe.FRAGMENT_DEFINITION;case w.VARIABLE_DEFINITION:return xe.VARIABLE_DEFINITION;case w.SCHEMA_DEFINITION:case w.SCHEMA_EXTENSION:return xe.SCHEMA;case w.SCALAR_TYPE_DEFINITION:case w.SCALAR_TYPE_EXTENSION:return xe.SCALAR;case w.OBJECT_TYPE_DEFINITION:case w.OBJECT_TYPE_EXTENSION:return xe.OBJECT;case w.FIELD_DEFINITION:return xe.FIELD_DEFINITION;case w.INTERFACE_TYPE_DEFINITION:case w.INTERFACE_TYPE_EXTENSION:return xe.INTERFACE;case w.UNION_TYPE_DEFINITION:case w.UNION_TYPE_EXTENSION:return xe.UNION;case w.ENUM_TYPE_DEFINITION:case w.ENUM_TYPE_EXTENSION:return xe.ENUM;case w.ENUM_VALUE_DEFINITION:return xe.ENUM_VALUE;case w.INPUT_OBJECT_TYPE_DEFINITION:case w.INPUT_OBJECT_TYPE_EXTENSION:return xe.INPUT_OBJECT;case w.INPUT_VALUE_DEFINITION:{const n=e[e.length-3];return"kind"in n||wt(!1),n.kind===w.INPUT_OBJECT_TYPE_DEFINITION?xe.INPUT_FIELD_DEFINITION:xe.ARGUMENT_DEFINITION}default:wt(!1,"Unexpected kind: "+J(t.kind))}}function q5(e){switch(e){case Rt.QUERY:return xe.QUERY;case Rt.MUTATION:return xe.MUTATION;case Rt.SUBSCRIPTION:return xe.SUBSCRIPTION}}function N2(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new G(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function _d(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const s of e.getDocument().definitions)ks(s)&&(r[s.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,o,a,u,l){const c=s.name.value;if(!n[c]&&!r[c]){var f;const d=(f=l[2])!==null&&f!==void 0?f:a,h=d!=null&&z5(d);if(h&&dp.includes(c))return;const p=ti(c,h?dp.concat(i):i);e.reportError(new G(`Unknown type "${c}".`+Ir(p),{nodes:s}))}}}}const dp=[...Io,...Oo].map(e=>e.name);function z5(e){return"kind"in e&&(yd(e)||xd(e))}function C2(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===w.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new G("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function I2(e){var t,n,r;const i=e.getSchema(),s=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType();let o=0;return{SchemaDefinition(a){if(s){e.reportError(new G("Cannot define a new schema within a schema extension.",{nodes:a}));return}o>0&&e.reportError(new G("Must provide only one schema definition.",{nodes:a})),++o}}}const H5=3;function F2(e){function t(n,r=Object.create(null),i=0){if(n.kind===w.FRAGMENT_SPREAD){const s=n.name.value;if(r[s]===!0)return!1;const 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===w.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=H5))return!0;if("selectionSet"in n&&n.selectionSet){for(const s of n.selectionSet.selections)if(t(s,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new G("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}function L2(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;const o=s.name.value;t[o]=!0;const a=e.getFragmentSpreads(s.selectionSet);if(a.length!==0){r[o]=n.length;for(const u of a){const l=u.name.value,c=r[l];if(n.push(u),c===void 0){const f=e.getFragment(l);f&&i(f)}else{const f=n.slice(c),d=f.slice(0,-1).map(h=>'"'+h.name.value+'"').join(", ");e.reportError(new G(`Cannot spread fragment "${l}" within itself`+(d!==""?` via ${d}.`:"."),{nodes:f}))}n.pop()}r[o]=void 0}}}function O2(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const s=i.name.value;t[s]!==!0&&e.reportError(new G(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}function R2(e){const t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){const r=Object.create(null);for(const i of t)for(const s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(const i of n){const s=i.name.value;r[s]!==!0&&e.reportError(new G(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}function P2(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:s}of i)r[s.name.value]=!0;for(const s of t){const o=s.variable.name.value;r[o]!==!0&&e.reportError(new G(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}function Ru(e){switch(e.kind){case w.OBJECT:return{...e,fields:G5(e.fields)};case w.LIST:return{...e,values:e.values.map(Ru)};case w.INT:case w.FLOAT:case w.STRING:case w.BOOLEAN:case w.NULL:case w.ENUM:case w.VARIABLE:return e}}function G5(e){return e.map(t=>({...t,value:Ru(t.value)})).sort((t,n)=>No(t.name.value,n.name.value))}function M2(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+M2(n)).join(" and "):e}function V2(e){const t=new B2,n=new Z5,r=new Map;return{SelectionSet(i){const s=W5(e,r,t,n,e.getParentType(),i);for(const[[o,a],u,l]of s){const c=M2(a);e.reportError(new G(`Fields "${o}" conflict because ${c}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function W5(e,t,n,r,i,s){const o=[],[a,u]=Qa(e,t,i,s);if(Y5(e,o,t,n,r,a),u.length!==0)for(let l=0;l<u.length;l++){Ga(e,o,t,n,r,!1,a,u[l]);for(let c=l+1;c<u.length;c++)Wa(e,o,t,n,r,!1,u[l],u[c])}return o}function Ga(e,t,n,r,i,s,o,a){if(r.has(o,a,s))return;r.add(o,a,s);const u=e.getFragment(a);if(!u)return;const[l,c]=wc(e,n,u);if(o!==l){Td(e,t,n,r,i,s,o,l);for(const f of c)Ga(e,t,n,r,i,s,o,f)}}function Wa(e,t,n,r,i,s,o,a){if(o===a||i.has(o,a,s))return;i.add(o,a,s);const u=e.getFragment(o),l=e.getFragment(a);if(!u||!l)return;const[c,f]=wc(e,n,u),[d,h]=wc(e,n,l);Td(e,t,n,r,i,s,c,d);for(const p of h)Wa(e,t,n,r,i,s,o,p);for(const p of f)Wa(e,t,n,r,i,s,p,a)}function Q5(e,t,n,r,i,s,o,a,u){const l=[],[c,f]=Qa(e,t,s,o),[d,h]=Qa(e,t,a,u);Td(e,l,t,n,r,i,c,d);for(const p of h)Ga(e,l,t,n,r,i,c,p);for(const p of f)Ga(e,l,t,n,r,i,d,p);for(const p of f)for(const b of h)Wa(e,l,t,n,r,i,p,b);return l}function Y5(e,t,n,r,i,s){for(const[o,a]of Object.entries(s))if(a.length>1)for(let u=0;u<a.length;u++)for(let l=u+1;l<a.length;l++){const c=$2(e,n,r,i,!1,o,a[u],a[l]);c&&t.push(c)}}function Td(e,t,n,r,i,s,o,a){for(const[u,l]of Object.entries(o)){const c=a[u];if(c)for(const f of l)for(const d of c){const h=$2(e,n,r,i,s,u,f,d);h&&t.push(h)}}}function $2(e,t,n,r,i,s,o,a){const[u,l,c]=o,[f,d,h]=a,p=i||u!==f&&Oe(u)&&Oe(f);if(!p){const E=l.name.value,T=d.name.value;if(E!==T)return[[s,`"${E}" and "${T}" are different fields`],[l],[d]];if(!X5(l,d))return[[s,"they have differing arguments"],[l],[d]]}const b=c==null?void 0:c.type,v=h==null?void 0:h.type;if(b&&v&&Tc(b,v))return[[s,`they return conflicting types "${J(b)}" and "${J(v)}"`],[l],[d]];const _=l.selectionSet,x=d.selectionSet;if(_&&x){const E=Q5(e,t,n,r,p,Tt(b),_,Tt(v),x);return J5(E,s,l,d)}}function X5(e,t){const n=e.arguments,r=t.arguments;if(n===void 0||n.length===0)return r===void 0||r.length===0;if(r===void 0||r.length===0||n.length!==r.length)return!1;const i=new Map(r.map(({name:s,value:o})=>[s.value,o]));return n.every(s=>{const o=s.value,a=i.get(s.name.value);return a===void 0?!1:hp(o)===hp(a)})}function hp(e){return Qe(Ru(e))}function Tc(e,t){return it(e)?it(t)?Tc(e.ofType,t.ofType):!0:it(t)?!0:Te(e)?Te(t)?Tc(e.ofType,t.ofType):!0:Te(t)?!0:Rn(e)||Rn(t)?e!==t:!1}function Qa(e,t,n,r){const i=t.get(r);if(i)return i;const s=Object.create(null),o=Object.create(null);j2(e,n,r,s,o);const a=[s,Object.keys(o)];return t.set(r,a),a}function wc(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=rn(e.getSchema(),n.typeCondition);return Qa(e,t,i,n.selectionSet)}function j2(e,t,n,r,i){for(const s of n.selections)switch(s.kind){case w.FIELD:{const o=s.name.value;let a;(Oe(t)||je(t))&&(a=t.getFields()[o]);const u=s.alias?s.alias.value:o;r[u]||(r[u]=[]),r[u].push([t,s,a]);break}case w.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case w.INLINE_FRAGMENT:{const o=s.typeCondition,a=o?rn(e.getSchema(),o):t;j2(e,a,s.selectionSet,r,i);break}}}function J5(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}class B2{constructor(){this._data=new Map}has(t,n,r){var i;const s=(i=this._data.get(t))===null||i===void 0?void 0:i.get(n);return s===void 0?!1:r?!0:r===s}add(t,n,r){const i=this._data.get(t);i===void 0?this._data.set(t,new Map([[n,r]])):i.set(n,r)}}class Z5{constructor(){this._orderedPairSet=new B2}has(t,n,r){return t<n?this._orderedPairSet.has(t,n,r):this._orderedPairSet.has(n,t,r)}add(t,n,r){t<n?this._orderedPairSet.add(t,n,r):this._orderedPairSet.add(n,t,r)}}function U2(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(Xn(n)&&Xn(r)&&!Ec(e.getSchema(),n,r)){const i=J(r),s=J(n);e.reportError(new G(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${s}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,r=K5(e,n),i=e.getParentType();if(r&&i&&!Ec(e.getSchema(),r,i)){const s=J(i),o=J(r);e.reportError(new G(`Fragment "${n}" cannot be spread here as objects of type "${s}" can never be of type "${o}".`,{nodes:t}))}}}}function K5(e,t){const n=e.getFragment(t);if(n){const r=rn(e.getSchema(),n.typeCondition);if(Xn(r))return r}}function q2(e){const t=e.getSchema(),n=Object.create(null);for(const i of e.getDocument().definitions)ks(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){const s=i.name.value,o=n[s],a=t==null?void 0:t.getType(s);let u;if(o?u=eT[o.kind]:a&&(u=tT(a)),u){if(u!==i.kind){const l=nT(i.kind);e.reportError(new G(`Cannot extend non-${l} type "${s}".`,{nodes:o?[o,i]:i}))}}else{const l=Object.keys({...n,...t==null?void 0:t.getTypeMap()}),c=ti(s,l);e.reportError(new G(`Cannot extend type "${s}" because it is not defined.`+Ir(c),{nodes:i.name}))}}}const eT={[w.SCALAR_TYPE_DEFINITION]:w.SCALAR_TYPE_EXTENSION,[w.OBJECT_TYPE_DEFINITION]:w.OBJECT_TYPE_EXTENSION,[w.INTERFACE_TYPE_DEFINITION]:w.INTERFACE_TYPE_EXTENSION,[w.UNION_TYPE_DEFINITION]:w.UNION_TYPE_EXTENSION,[w.ENUM_TYPE_DEFINITION]:w.ENUM_TYPE_EXTENSION,[w.INPUT_OBJECT_TYPE_DEFINITION]:w.INPUT_OBJECT_TYPE_EXTENSION};function tT(e){if(hn(e))return w.SCALAR_TYPE_EXTENSION;if(Oe(e))return w.OBJECT_TYPE_EXTENSION;if(je(e))return w.INTERFACE_TYPE_EXTENSION;if(Nt(e))return w.UNION_TYPE_EXTENSION;if(bt(e))return w.ENUM_TYPE_EXTENSION;if(ze(e))return w.INPUT_OBJECT_TYPE_EXTENSION;wt(!1,"Unexpected type: "+J(e))}function nT(e){switch(e){case w.SCALAR_TYPE_EXTENSION:return"scalar";case w.OBJECT_TYPE_EXTENSION:return"object";case w.INTERFACE_TYPE_EXTENSION:return"interface";case w.UNION_TYPE_EXTENSION:return"union";case w.ENUM_TYPE_EXTENSION:return"enum";case w.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:wt(!1,"Unexpected kind: "+J(e))}}function z2(e){return{...H2(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(s=>s.name.value));for(const s of r.args)if(!i.has(s.name)&&ni(s)){const o=J(s.type);e.reportError(new G(`Field "${r.name}" argument "${s.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}}}function H2(e){var t;const n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:ri;for(const a of i)n[a.name]=Fr(a.args.filter(ni),u=>u.name);const s=e.getDocument().definitions;for(const a of s)if(a.kind===w.DIRECTIVE_DEFINITION){var o;const u=(o=a.arguments)!==null&&o!==void 0?o:[];n[a.name.value]=Fr(u.filter(rT),l=>l.name.value)}return{Directive:{leave(a){const u=a.name.value,l=n[u];if(l){var c;const f=(c=a.arguments)!==null&&c!==void 0?c:[],d=new Set(f.map(h=>h.name.value));for(const[h,p]of Object.entries(l))if(!d.has(h)){const b=ws(p.type)?J(p.type):Qe(p.type);e.reportError(new G(`Directive "@${u}" argument "${h}" of type "${b}" is required, but it was not provided.`,{nodes:a}))}}}}}}function rT(e){return e.type.kind===w.NON_NULL_TYPE&&e.defaultValue==null}function G2(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(Rn(Tt(n))){if(r){const i=t.name.value,s=J(n);e.reportError(new G(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(r){if(r.selections.length===0){const i=t.name.value,s=J(n);e.reportError(new G(`Field "${i}" of type "${s}" must have at least one field selected.`,{nodes:t}))}}else{const i=t.name.value,s=J(n);e.reportError(new G(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}function W2(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}function hs(e,t,n){return{prev:e,key:t,typename:n}}function Zt(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function Q2(e,t,n=iT){return js(e,t,n,void 0)}function iT(e,t,n){let r="Invalid value "+J(t);throw e.length>0&&(r+=` at "value${W2(e)}"`),n.message=r+": "+n.message,n}function js(e,t,n,r){if(Te(t)){if(e!=null)return js(e,t.ofType,n,r);n(Zt(r),e,new G(`Expected non-nullable type "${J(t)}" not to be null.`));return}if(e==null)return null;if(it(t)){const i=t.ofType;return ld(e)?Array.from(e,(s,o)=>{const a=hs(r,o,void 0);return js(s,i,n,a)}):[js(e,i,n,r)]}if(ze(t)){if(!En(e)||Array.isArray(e)){n(Zt(r),e,new G(`Expected type "${t.name}" to be an object.`));return}const i={},s=t.getFields();for(const o of Object.values(s)){const a=e[o.name];if(a===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if(Te(o.type)){const u=J(o.type);n(Zt(r),e,new G(`Field "${o.name}" of required type "${u}" was not provided.`))}continue}i[o.name]=js(a,o.type,n,hs(r,o.name,t.name))}for(const o of Object.keys(e))if(!s[o]){const a=ti(o,Object.keys(t.getFields()));n(Zt(r),e,new G(`Field "${o}" is not defined by type "${t.name}".`+Ir(a)))}if(t.isOneOf){const o=Object.keys(i);o.length!==1&&n(Zt(r),e,new G(`Exactly one key must be specified for OneOf type "${t.name}".`));const a=o[0],u=i[a];u===null&&n(Zt(r).concat(a),u,new G(`Field "${a}" must be non-null.`))}return i}if(Rn(t)){let i;try{i=t.parseValue(e)}catch(s){s instanceof G?n(Zt(r),e,s):n(Zt(r),e,new G(`Expected type "${t.name}". `+s.message,{originalError:s}));return}return i===void 0&&n(Zt(r),e,new G(`Expected type "${t.name}".`)),i}wt(!1,"Unexpected input type: "+J(t))}function lr(e,t,n){if(e){if(e.kind===w.VARIABLE){const r=e.name.value;if(n==null||n[r]===void 0)return;const i=n[r];return i===null&&Te(t)?void 0:i}if(Te(t))return e.kind===w.NULL?void 0:lr(e,t.ofType,n);if(e.kind===w.NULL)return null;if(it(t)){const r=t.ofType;if(e.kind===w.LIST){const s=[];for(const o of e.values)if(pp(o,n)){if(Te(r))return;s.push(null)}else{const a=lr(o,r,n);if(a===void 0)return;s.push(a)}return s}const i=lr(e,r,n);return i===void 0?void 0:[i]}if(ze(t)){if(e.kind!==w.OBJECT)return;const r=Object.create(null),i=Fr(e.fields,s=>s.name.value);for(const s of Object.values(t.getFields())){const o=i[s.name];if(!o||pp(o.value,n)){if(s.defaultValue!==void 0)r[s.name]=s.defaultValue;else if(Te(s.type))return;continue}const a=lr(o.value,s.type,n);if(a===void 0)return;r[s.name]=a}if(t.isOneOf){const s=Object.keys(r);if(s.length!==1||r[s[0]]===null)return}return r}if(Rn(t)){let r;try{r=t.parseLiteral(e,n)}catch{return}return r===void 0?void 0:r}wt(!1,"Unexpected input type: "+J(t))}}function pp(e,t){return e.kind===w.VARIABLE&&(t==null||t[e.name.value]===void 0)}function Y2(e,t,n,r){const i=[],s=r==null?void 0:r.maxErrors;try{const o=sT(e,t,n,a=>{if(s!=null&&i.length>=s)throw new G("Too many errors processing variables, error limit reached. Execution aborted.");i.push(a)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function sT(e,t,n,r){const i={};for(const s of t){const o=s.variable.name.value,a=rn(e,s.type);if(!un(a)){const l=Qe(s.type);r(new G(`Variable "$${o}" expected value of type "${l}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!X2(n,o)){if(s.defaultValue)i[o]=lr(s.defaultValue,a);else if(Te(a)){const l=J(a);r(new G(`Variable "$${o}" of required type "${l}" was not provided.`,{nodes:s}))}continue}const u=n[o];if(u===null&&Te(a)){const l=J(a);r(new G(`Variable "$${o}" of non-null type "${l}" must not be null.`,{nodes:s}));continue}i[o]=Q2(u,a,(l,c,f)=>{let d=`Variable "$${o}" got invalid value `+J(c);l.length>0&&(d+=` at "${o}${W2(l)}"`),r(new G(d+"; "+f.message,{nodes:s,originalError:f}))})}return i}function Pu(e,t,n){var r;const i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],o=Fr(s,a=>a.name.value);for(const a of e.args){const u=a.name,l=a.type,c=o[u];if(!c){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if(Te(l))throw new G(`Argument "${u}" of required type "${J(l)}" was not provided.`,{nodes:t});continue}const f=c.value;let d=f.kind===w.NULL;if(f.kind===w.VARIABLE){const p=f.name.value;if(n==null||!X2(n,p)){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if(Te(l))throw new G(`Argument "${u}" of required type "${J(l)}" was provided the variable "$${p}" which was not provided a runtime value.`,{nodes:f});continue}d=n[p]==null}if(d&&Te(l))throw new G(`Argument "${u}" of non-null type "${J(l)}" must not be null.`,{nodes:f});const h=lr(f,l,n);if(h===void 0)throw new G(`Argument "${u}" has invalid value ${Qe(f)}.`,{nodes:f});i[u]=h}return i}function ps(e,t,n){var r;const i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return Pu(e,i,n)}function X2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function wd(e,t,n,r,i){const s=new Map;return Ya(e,t,n,r,i,s,new Set),s}function oT(e,t,n,r,i){const s=new Map,o=new Set;for(const a of i)a.selectionSet&&Ya(e,t,n,r,a.selectionSet,s,o);return s}function Ya(e,t,n,r,i,s,o){for(const a of i.selections)switch(a.kind){case w.FIELD:{if(!ll(n,a))continue;const u=aT(a),l=s.get(u);l!==void 0?l.push(a):s.set(u,[a]);break}case w.INLINE_FRAGMENT:{if(!ll(n,a)||!mp(e,a,r))continue;Ya(e,t,n,r,a.selectionSet,s,o);break}case w.FRAGMENT_SPREAD:{const u=a.name.value;if(o.has(u)||!ll(n,a))continue;o.add(u);const l=t[u];if(!l||!mp(e,l,r))continue;Ya(e,t,n,r,l.selectionSet,s,o);break}}}function ll(e,t){const n=ps(id,t,e);if((n==null?void 0:n.if)===!0)return!1;const r=ps(rd,t,e);return(r==null?void 0:r.if)!==!1}function mp(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=rn(e,r);return i===n?!0:Qn(i)?e.isSubType(i,n):!1}function aT(e){return e.alias?e.alias.value:e.name.value}function J2(e){return{OperationDefinition(t){if(t.operation==="subscription"){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,s=Object.create(null),o=e.getDocument(),a=Object.create(null);for(const l of o.definitions)l.kind===w.FRAGMENT_DEFINITION&&(a[l.name.value]=l);const u=wd(n,a,s,r,t.selectionSet);if(u.size>1){const f=[...u.values()].slice(1).flat();e.reportError(new G(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:f}))}for(const l of u.values())l[0].name.value.startsWith("__")&&e.reportError(new G(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:l}))}}}}}function Sd(e,t){const n=new Map;for(const r of e){const i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}function Z2(e){return{DirectiveDefinition(r){var i;const s=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;const s=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(const u of o){var a;const l=u.name.value,c=(a=u.arguments)!==null&&a!==void 0?a:[];n(`${s}.${l}`,c)}return!1}function n(r,i){const s=Sd(i,o=>o.name.value);for(const[o,a]of s)a.length>1&&e.reportError(new G(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:a.map(u=>u.name)}));return!1}}function kd(e){return{Field:t,Directive:t};function t(n){var r;const i=(r=n.arguments)!==null&&r!==void 0?r:[],s=Sd(i,o=>o.name.value);for(const[o,a]of s)a.length>1&&e.reportError(new G(`There can be only one argument named "${o}".`,{nodes:a.map(u=>u.name)}))}}function K2(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new G(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new G(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function Ad(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ri;for(const a of r)t[a.name]=!a.isRepeatable;const i=e.getDocument().definitions;for(const a of i)a.kind===w.DIRECTIVE_DEFINITION&&(t[a.name.value]=!a.repeatable);const s=Object.create(null),o=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let u;if(a.kind===w.SCHEMA_DEFINITION||a.kind===w.SCHEMA_EXTENSION)u=s;else if(ks(a)||Ou(a)){const l=a.name.value;u=o[l],u===void 0&&(o[l]=u=Object.create(null))}else u=Object.create(null);for(const l of a.directives){const c=l.name.value;t[c]&&(u[c]?e.reportError(new G(`The directive "@${c}" can only be used once at this location.`,{nodes:[u[c],l]})):u[c]=l)}}}}function ev(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var o;const a=s.name.value;r[a]||(r[a]=Object.create(null));const u=(o=s.values)!==null&&o!==void 0?o:[],l=r[a];for(const c of u){const f=c.name.value,d=n[a];bt(d)&&d.getValue(f)?e.reportError(new G(`Enum value "${a}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:c.name})):l[f]?e.reportError(new G(`Enum value "${a}.${f}" can only be defined once.`,{nodes:[l[f],c.name]})):l[f]=c.name}return!1}}function tv(e){const 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(s){var o;const a=s.name.value;r[a]||(r[a]=Object.create(null));const u=(o=s.fields)!==null&&o!==void 0?o:[],l=r[a];for(const c of u){const f=c.name.value;uT(n[a],f)?e.reportError(new G(`Field "${a}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:c.name})):l[f]?e.reportError(new G(`Field "${a}.${f}" can only be defined once.`,{nodes:[l[f],c.name]})):l[f]=c.name}return!1}}function uT(e,t){return Oe(e)||je(e)||ze(e)?e.getFields()[t]!=null:!1}function nv(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new G(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function Dd(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const r=t.pop();r||wt(!1),n=r}},ObjectField(r){const i=r.name.value;n[i]?e.reportError(new G(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}function rv(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new G(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function iv(e){const 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(s){var o;const a=(o=s.operationTypes)!==null&&o!==void 0?o:[];for(const u of a){const l=u.operation,c=n[l];r[l]?e.reportError(new G(`Type for ${l} already defined in the schema. It cannot be redefined.`,{nodes:u})):c?e.reportError(new G(`There can be only one ${l} type in schema.`,{nodes:[c,u]})):n[l]=u}return!1}}function sv(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){const s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new G(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new G(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}function ov(e){return{OperationDefinition(t){var n;const r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=Sd(r,s=>s.variable.name.value);for(const[s,o]of i)o.length>1&&e.reportError(new G(`There can be only one variable named "$${s}".`,{nodes:o.map(a=>a.variable.name)}))}}}function av(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){const r=ku(e.getParentInputType());if(!it(r))return ui(e,n),!1},ObjectValue(n){const r=Tt(e.getInputType());if(!ze(r))return ui(e,n),!1;const i=Fr(n.fields,s=>s.name.value);for(const s of Object.values(r.getFields()))if(!i[s.name]&&Au(s)){const a=J(s.type);e.reportError(new G(`Field "${r.name}.${s.name}" of required type "${a}" was not provided.`,{nodes:n}))}r.isOneOf&&lT(e,n,r,i,t)},ObjectField(n){const r=Tt(e.getParentInputType());if(!e.getInputType()&&ze(r)){const s=ti(n.name.value,Object.keys(r.getFields()));e.reportError(new G(`Field "${n.name.value}" is not defined by type "${r.name}".`+Ir(s),{nodes:n}))}},NullValue(n){const r=e.getInputType();Te(r)&&e.reportError(new G(`Expected value of type "${J(r)}", found ${Qe(n)}.`,{nodes:n}))},EnumValue:n=>ui(e,n),IntValue:n=>ui(e,n),FloatValue:n=>ui(e,n),StringValue:n=>ui(e,n),BooleanValue:n=>ui(e,n)}}function ui(e,t){const n=e.getInputType();if(!n)return;const r=Tt(n);if(!Rn(r)){const i=J(n);e.reportError(new G(`Expected value of type "${i}", found ${Qe(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){const s=J(n);e.reportError(new G(`Expected value of type "${s}", found ${Qe(t)}.`,{nodes:t}))}}catch(i){const s=J(n);i instanceof G?e.reportError(i):e.reportError(new G(`Expected value of type "${s}", found ${Qe(t)}; `+i.message,{nodes:t,originalError:i}))}}function lT(e,t,n,r,i){var s;const o=Object.keys(r);if(o.length!==1){e.reportError(new G(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}const u=(s=r[o[0]])===null||s===void 0?void 0:s.value,l=!u||u.kind===w.NULL,c=(u==null?void 0:u.kind)===w.VARIABLE;if(l){e.reportError(new G(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(c){const f=u.name.value;i[f].type.kind!==w.NON_NULL_TYPE&&e.reportError(new G(`Variable "${f}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}function uv(e){return{VariableDefinition(t){const n=rn(e.getSchema(),t.type);if(n!==void 0&&!un(n)){const r=t.variable.name.value,i=Qe(t.type);e.reportError(new G(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}function lv(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i,type:s,defaultValue:o,parentType:a}of r){const u=i.name.value,l=t[u];if(l&&s){const c=e.getSchema(),f=rn(c,l.type);if(f&&!cT(c,f,l.defaultValue,s,o)){const d=J(f),h=J(s);e.reportError(new G(`Variable "$${u}" of type "${d}" used in position expecting type "${h}".`,{nodes:[l,i]}))}ze(a)&&a.isOneOf&&Su(f)&&e.reportError(new G(`Variable "$${u}" is of type "${f}" but must be non-nullable to be used for OneOf Input Object "${a}".`,{nodes:[l,i]}))}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function cT(e,t,n,r,i){if(Te(r)&&!Te(t)){if(!(n!=null&&n.kind!==w.NULL)&&!(i!==void 0))return!1;const a=r.ofType;return _i(e,t,a)}return _i(e,t,r)}const cv=Object.freeze([F2]),fv=Object.freeze([w2,rv,C2,J2,_d,k2,uv,G2,S2,nv,N2,R2,U2,L2,ov,O2,P2,Ed,Ad,A2,kd,av,z2,lv,V2,Dd,...cv]),fT=Object.freeze([I2,iv,sv,ev,tv,Z2,K2,_d,Ed,Ad,q2,D2,kd,Dd,H2]);class dv{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(const r of this.getDocument().definitions)r.kind===w.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];const r=[t];let i;for(;i=r.pop();)for(const s of i.selections)s.kind===w.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];const r=Object.create(null),i=[t.selectionSet];let s;for(;s=i.pop();)for(const o of this.getFragmentSpreads(s)){const a=o.name.value;if(r[a]!==!0){r[a]=!0;const u=this.getFragment(a);u&&(n.push(u),i.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}}class dT extends dv{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class hv extends dv{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){const r=[],i=new Ro(this._schema);nn(t,Lu(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,type:i.getInputType(),defaultValue:i.getDefaultValue(),parentType:i.getParentInputType()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(const r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function pv(e,t,n=fv,r,i=new Ro(e)){var s;const o=(s=r==null?void 0:r.maxErrors)!==null&&s!==void 0?s:100;t||Le(!1,"Must provide document."),gd(e);const a=Object.freeze({}),u=[],l=new hv(e,t,i,f=>{if(u.length>=o)throw u.push(new G("Too many validation errors, error limit reached. Validation aborted.")),a;u.push(f)}),c=Zf(n.map(f=>f(l)));try{nn(t,Lu(i,c))}catch(f){if(f!==a)throw f}return u}function mv(e,t,n=fT){const r=[],i=new dT(e,t,o=>{r.push(o)}),s=n.map(o=>o(i));return nn(e,Zf(s)),r}function hT(e){const t=mv(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
107
+
108
+ `))}function pT(e,t){const n=mv(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(`
109
+
110
+ `))}function mT(e){let t;return function(r,i,s){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let a=o.get(i);a===void 0&&(a=new WeakMap,o.set(i,a));let u=a.get(s);return u===void 0&&(u=e(r,i,s),a.set(s,u)),u}}function gp(e){return Promise.all(Object.values(e)).then(t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}function gT(e,t,n){let r=n;for(const i of e)r=xn(r)?r.then(s=>t(s,i)):t(r,i);return r}function bT(e){return e instanceof Error?e:new vT(e)}class vT extends Error{constructor(t){super("Unexpected error value: "+J(t)),this.name="NonErrorThrown",this.thrownValue=t}}function ms(e,t,n){var r;const i=bT(e);return yT(i)?i:new G(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function yT(e){return Array.isArray(e.path)}const xT=mT((e,t,n)=>oT(e.schema,e.fragments,e.variableValues,t,n));function Mu(e){arguments.length<2||Le(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:r,rootValue:i}=e;bv(t,n,r);const s=vv(e);if(!("schema"in s))return{errors:s};try{const{operation:o}=s,a=ET(s,o,i);return xn(a)?a.then(u=>sa(u,s.errors),u=>(s.errors.push(u),sa(null,s.errors))):sa(a,s.errors)}catch(o){return s.errors.push(o),sa(null,s.errors)}}function gv(e){const t=Mu(e);if(xn(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function sa(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function bv(e,t,n){t||Le(!1,"Must provide document."),gd(e),n==null||En(n)||Le(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function vv(e){var t,n,r;const{schema:i,document:s,rootValue:o,contextValue:a,variableValues:u,operationName:l,fieldResolver:c,typeResolver:f,subscribeFieldResolver:d,options:h}=e;let p;const b=Object.create(null);for(const x of s.definitions)switch(x.kind){case w.OPERATION_DEFINITION:if(l==null){if(p!==void 0)return[new G("Must provide operation name if query contains multiple operations.")];p=x}else((t=x.name)===null||t===void 0?void 0:t.value)===l&&(p=x);break;case w.FRAGMENT_DEFINITION:b[x.name.value]=x;break}if(!p)return l!=null?[new G(`Unknown operation named "${l}".`)]:[new G("Must provide an operation.")];const v=(n=p.variableDefinitions)!==null&&n!==void 0?n:[],_=Y2(i,v,u??{},{maxErrors:(r=h==null?void 0:h.maxCoercionErrors)!==null&&r!==void 0?r:50});return _.errors?_.errors:{schema:i,fragments:b,rootValue:o,contextValue:a,operation:p,variableValues:_.coerced,fieldResolver:c??kc,typeResolver:f??Ev,subscribeFieldResolver:d??kc,errors:[]}}function ET(e,t,n){const r=e.schema.getRootType(t.operation);if(r==null)throw new G(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=wd(e.schema,e.fragments,e.variableValues,r,t.selectionSet),s=void 0;switch(t.operation){case Rt.QUERY:return Xa(e,r,n,s,i);case Rt.MUTATION:return _T(e,r,n,s,i);case Rt.SUBSCRIPTION:return Xa(e,r,n,s,i)}}function _T(e,t,n,r,i){return gT(i.entries(),(s,[o,a])=>{const u=hs(r,o,t.name),l=yv(e,t,n,a,u);return l===void 0?s:xn(l)?l.then(c=>(s[o]=c,s)):(s[o]=l,s)},Object.create(null))}function Xa(e,t,n,r,i){const s=Object.create(null);let o=!1;try{for(const[a,u]of i.entries()){const l=hs(r,a,t.name),c=yv(e,t,n,u,l);c!==void 0&&(s[a]=c,xn(c)&&(o=!0))}}catch(a){if(o)return gp(s).finally(()=>{throw a});throw a}return o?gp(s):s}function yv(e,t,n,r,i){var s;const o=_v(e.schema,t,r[0]);if(!o)return;const a=o.type,u=(s=o.resolve)!==null&&s!==void 0?s:e.fieldResolver,l=xv(e,o,r,t,i);try{const c=Pu(o,r[0],e.variableValues),f=e.contextValue,d=u(n,c,f,l);let h;return xn(d)?h=d.then(p=>fo(e,a,r,l,i,p)):h=fo(e,a,r,l,i,d),xn(h)?h.then(void 0,p=>{const b=ms(p,r,Zt(i));return Ja(b,a,e)}):h}catch(c){const f=ms(c,r,Zt(i));return Ja(f,a,e)}}function xv(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Ja(e,t,n){if(Te(t))throw e;return n.errors.push(e),null}function fo(e,t,n,r,i,s){if(s instanceof Error)throw s;if(Te(t)){const o=fo(e,t.ofType,n,r,i,s);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(s==null)return null;if(it(t))return TT(e,t,n,r,i,s);if(Rn(t))return wT(t,s);if(Qn(t))return ST(e,t,n,r,i,s);if(Oe(t))return Sc(e,t,n,r,i,s);wt(!1,"Cannot complete value of unexpected output type: "+J(t))}function TT(e,t,n,r,i,s){if(!ld(s))throw new G(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const o=t.ofType;let a=!1;const u=Array.from(s,(l,c)=>{const f=hs(i,c,void 0);try{let d;return xn(l)?d=l.then(h=>fo(e,o,n,r,f,h)):d=fo(e,o,n,r,f,l),xn(d)?(a=!0,d.then(void 0,h=>{const p=ms(h,n,Zt(f));return Ja(p,o,e)})):d}catch(d){const h=ms(d,n,Zt(f));return Ja(h,o,e)}});return a?Promise.all(u):u}function wT(e,t){const n=e.serialize(t);if(n==null)throw new Error(`Expected \`${J(e)}.serialize(${J(t)})\` to return non-nullable value, returned: ${J(n)}`);return n}function ST(e,t,n,r,i,s){var o;const a=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,u=e.contextValue,l=a(s,u,r,t);return xn(l)?l.then(c=>Sc(e,bp(c,e,t,n,r,s),n,r,i,s)):Sc(e,bp(l,e,t,n,r,s),n,r,i,s)}function bp(e,t,n,r,i,s){if(e==null)throw new G(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(Oe(e))throw new G("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new G(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${J(s)}, received "${J(e)}".`);const o=t.schema.getType(e);if(o==null)throw new G(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!Oe(o))throw new G(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new G(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function Sc(e,t,n,r,i,s){const o=xT(e,t,n);if(t.isTypeOf){const a=t.isTypeOf(s,e.contextValue,r);if(xn(a))return a.then(u=>{if(!u)throw vp(t,s,n);return Xa(e,t,s,i,o)});if(!a)throw vp(t,s,n)}return Xa(e,t,s,i,o)}function vp(e,t,n){return new G(`Expected value of type "${e.name}" but got: ${J(t)}.`,{nodes:n})}const Ev=function(e,t,n,r){if(En(e)&&typeof e.__typename=="string")return e.__typename;const i=n.schema.getPossibleTypes(r),s=[];for(let o=0;o<i.length;o++){const a=i[o];if(a.isTypeOf){const u=a.isTypeOf(e,t,n);if(xn(u))s[o]=u;else if(u)return a.name}}if(s.length)return Promise.all(s).then(o=>{for(let a=0;a<o.length;a++)if(o[a])return i[a].name})},kc=function(e,t,n,r){if(En(e)||typeof e=="function"){const i=e[r.fieldName];return typeof i=="function"?e[r.fieldName](t,n,r):i}};function _v(e,t,n){const r=n.name.value;return r===Fi.name&&e.getQueryType()===t?Fi:r===Li.name&&e.getQueryType()===t?Li:r===Oi.name?Oi:t.getFields()[r]}function kT(e){return new Promise(t=>t(Tv(e)))}function AT(e){const t=Tv(e);if(xn(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Tv(e){arguments.length<2||Le(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:a,typeResolver:u}=e,l=Fu(t);if(l.length>0)return{errors:l};let c;try{c=$r(n)}catch(d){return{errors:[d]}}const f=pv(t,c);return f.length>0?{errors:f}:Mu({schema:t,document:c,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:a,typeResolver:u})}function wv(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}function DT(e,t){const n=e[Symbol.asyncIterator]();async function r(i){if(i.done)return i;try{return{value:await t(i.value),done:!1}}catch(s){if(typeof n.return=="function")try{await n.return()}catch{}throw s}}return{async next(){return r(await n.next())},async return(){return typeof n.return=="function"?r(await n.return()):{value:void 0,done:!0}},async throw(i){if(typeof n.throw=="function")return r(await n.throw(i));throw i},[Symbol.asyncIterator](){return this}}}async function NT(e){arguments.length<2||Le(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await Sv(e);return wv(t)?DT(t,r=>Mu({...e,rootValue:r})):t}function CT(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function Sv(...e){const t=CT(e),{schema:n,document:r,variableValues:i}=t;bv(n,r,i);const s=vv(t);if(!("schema"in s))return{errors:s};try{const o=await IT(s);if(!wv(o))throw new Error(`Subscription field must return Async Iterable. Received: ${J(o)}.`);return o}catch(o){if(o instanceof G)return{errors:[o]};throw o}}async function IT(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:s}=e,o=t.getSubscriptionType();if(o==null)throw new G("Schema is not configured to execute subscription operation.",{nodes:r});const a=wd(t,n,i,o,r.selectionSet),[u,l]=[...a.entries()][0],c=_v(t,o,l[0]);if(!c){const p=l[0].name.value;throw new G(`The subscription field "${p}" is not defined.`,{nodes:l})}const f=hs(void 0,u,o.name),d=xv(e,c,l,o,f);try{var h;const p=Pu(c,l[0],i),b=e.contextValue,_=await((h=c.subscribe)!==null&&h!==void 0?h:e.subscribeFieldResolver)(s,p,b,d);if(_ instanceof Error)throw _;return _}catch(p){throw ms(p,l,Zt(f))}}function FT(e){return{Field(t){const n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=e.getParentType();i!=null||wt(!1),e.reportError(new G(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=e.getDirective();if(i!=null)e.reportError(new G(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const s=e.getParentType(),o=e.getFieldDef();s!=null&&o!=null||wt(!1),e.reportError(new G(`Field "${s.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=Tt(e.getParentInputType());if(ze(n)){const r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new G(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=Tt(e.getInputType());i!=null||wt(!1),e.reportError(new G(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function LT(e){return{Field(t){const n=Tt(e.getType());n&&$i(n)&&e.reportError(new G(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function Nd(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",s=t.schemaDescription?n:"";function o(u){return t.inputValueDeprecation?u:""}const a=t.oneOf?"isOneOf":"";return`
111
+ query IntrospectionQuery {
112
+ __schema {
113
+ ${s}
114
+ queryType { name kind }
115
+ mutationType { name kind }
116
+ subscriptionType { name kind }
117
+ types {
118
+ ...FullType
119
+ }
120
+ directives {
121
+ name
122
+ ${n}
123
+ ${i}
124
+ locations
125
+ args${o("(includeDeprecated: true)")} {
126
+ ...InputValue
127
+ }
128
+ }
129
+ }
130
+ }
131
+
132
+ fragment FullType on __Type {
133
+ kind
134
+ name
135
+ ${n}
136
+ ${r}
137
+ ${a}
138
+ fields(includeDeprecated: true) {
139
+ name
140
+ ${n}
141
+ args${o("(includeDeprecated: true)")} {
142
+ ...InputValue
143
+ }
144
+ type {
145
+ ...TypeRef
146
+ }
147
+ isDeprecated
148
+ deprecationReason
149
+ }
150
+ inputFields${o("(includeDeprecated: true)")} {
151
+ ...InputValue
152
+ }
153
+ interfaces {
154
+ ...TypeRef
155
+ }
156
+ enumValues(includeDeprecated: true) {
157
+ name
158
+ ${n}
159
+ isDeprecated
160
+ deprecationReason
161
+ }
162
+ possibleTypes {
163
+ ...TypeRef
164
+ }
165
+ }
166
+
167
+ fragment InputValue on __InputValue {
168
+ name
169
+ ${n}
170
+ type { ...TypeRef }
171
+ defaultValue
172
+ ${o("isDeprecated")}
173
+ ${o("deprecationReason")}
174
+ }
175
+
176
+ fragment TypeRef on __Type {
177
+ kind
178
+ name
179
+ ofType {
180
+ kind
181
+ name
182
+ ofType {
183
+ kind
184
+ name
185
+ ofType {
186
+ kind
187
+ name
188
+ ofType {
189
+ kind
190
+ name
191
+ ofType {
192
+ kind
193
+ name
194
+ ofType {
195
+ kind
196
+ name
197
+ ofType {
198
+ kind
199
+ name
200
+ ofType {
201
+ kind
202
+ name
203
+ ofType {
204
+ kind
205
+ name
206
+ }
207
+ }
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+ }
214
+ }
215
+ }
216
+ `}function OT(e,t){let n=null;for(const i of e.definitions)if(i.kind===w.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}function RT(e,t){if(t.operation==="query"){const n=e.getQueryType();if(!n)throw new G("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){const n=e.getMutationType();if(!n)throw new G("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){const n=e.getSubscriptionType();if(!n)throw new G("Schema is not configured for subscriptions.",{nodes:t});return n}throw new G("Can only have query, mutation and subscription operations.",{nodes:t})}function PT(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},r=$r(Nd(n)),i=gv({schema:e,document:r});return!i.errors&&i.data||wt(!1),i.data}function kv(e,t){En(e)&&En(e.__schema)||Le(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${J(e)}.`);const n=e.__schema,r=Qr(n.types,D=>D.name,D=>d(D));for(const D of[...Io,...Oo])r[D.name]&&(r[D.name]=D);const i=n.queryType?c(n.queryType):null,s=n.mutationType?c(n.mutationType):null,o=n.subscriptionType?c(n.subscriptionType):null,a=n.directives?n.directives.map(U):[];return new Ss({description:n.description,query:i,mutation:s,subscription:o,types:Object.values(r),directives:a,assumeValid:t==null?void 0:t.assumeValid});function u(D){if(D.kind===Xe.LIST){const z=D.ofType;if(!z)throw new Error("Decorated type deeper than introspection query.");return new Bt(u(z))}if(D.kind===Xe.NON_NULL){const z=D.ofType;if(!z)throw new Error("Decorated type deeper than introspection query.");const W=u(z);return new Fe(g2(W))}return l(D)}function l(D){const z=D.name;if(!z)throw new Error(`Unknown type reference: ${J(D)}.`);const W=r[z];if(!W)throw new Error(`Invalid or incomplete schema, unknown type: ${z}. Ensure that a full introspection query is used in order to build a client schema.`);return W}function c(D){return p2(l(D))}function f(D){return m2(l(D))}function d(D){if(D!=null&&D.name!=null&&D.kind!=null)switch(D.kind){case Xe.SCALAR:return h(D);case Xe.OBJECT:return b(D);case Xe.INTERFACE:return v(D);case Xe.UNION:return _(D);case Xe.ENUM:return x(D);case Xe.INPUT_OBJECT:return E(D)}const z=J(D);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${z}.`)}function h(D){return new vr({name:D.name,description:D.description,specifiedByURL:D.specifiedByURL})}function p(D){if(D.interfaces===null&&D.kind===Xe.INTERFACE)return[];if(!D.interfaces){const z=J(D);throw new Error(`Introspection result missing interfaces: ${z}.`)}return D.interfaces.map(f)}function b(D){return new _n({name:D.name,description:D.description,interfaces:()=>p(D),fields:()=>T(D)})}function v(D){return new Ci({name:D.name,description:D.description,interfaces:()=>p(D),fields:()=>T(D)})}function _(D){if(!D.possibleTypes){const z=J(D);throw new Error(`Introspection result missing possibleTypes: ${z}.`)}return new ds({name:D.name,description:D.description,types:()=>D.possibleTypes.map(c)})}function x(D){if(!D.enumValues){const z=J(D);throw new Error(`Introspection result missing enumValues: ${z}.`)}return new Lr({name:D.name,description:D.description,values:Qr(D.enumValues,z=>z.name,z=>({description:z.description,deprecationReason:z.deprecationReason}))})}function E(D){if(!D.inputFields){const z=J(D);throw new Error(`Introspection result missing inputFields: ${z}.`)}return new Ii({name:D.name,description:D.description,fields:()=>A(D.inputFields),isOneOf:D.isOneOf})}function T(D){if(!D.fields)throw new Error(`Introspection result missing fields: ${J(D)}.`);return Qr(D.fields,z=>z.name,k)}function k(D){const z=u(D.type);if(!Jr(z)){const W=J(z);throw new Error(`Introspection must provide output type for fields, but received: ${W}.`)}if(!D.args){const W=J(D);throw new Error(`Introspection result missing field args: ${W}.`)}return{description:D.description,deprecationReason:D.deprecationReason,type:z,args:A(D.args)}}function A(D){return Qr(D,z=>z.name,I)}function I(D){const z=u(D.type);if(!un(z)){const Z=J(z);throw new Error(`Introspection must provide input type for arguments, but received: ${Z}.`)}const W=D.defaultValue!=null?lr(f2(D.defaultValue),z):void 0;return{description:D.description,type:z,defaultValue:W,deprecationReason:D.deprecationReason}}function U(D){if(!D.args){const z=J(D);throw new Error(`Introspection result missing directive args: ${z}.`)}if(!D.locations){const z=J(D);throw new Error(`Introspection result missing directive locations: ${z}.`)}return new Jn({name:D.name,description:D.description,isRepeatable:D.isRepeatable,locations:D.locations.slice(),args:A(D.args)})}}function MT(e,t,n){md(e),t!=null&&t.kind===w.DOCUMENT||Le(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&pT(t,e);const r=e.toConfig(),i=Av(r,t,n);return r===i?e:new Ss(i)}function Av(e,t,n){var r,i,s,o;const a=[],u=Object.create(null),l=[];let c;const f=[];for(const V of t.definitions)if(V.kind===w.SCHEMA_DEFINITION)c=V;else if(V.kind===w.SCHEMA_EXTENSION)f.push(V);else if(ks(V))a.push(V);else if(Ou(V)){const re=V.name.value,L=u[re];u[re]=L?L.concat([V]):[V]}else V.kind===w.DIRECTIVE_DEFINITION&&l.push(V);if(Object.keys(u).length===0&&a.length===0&&l.length===0&&f.length===0&&c==null)return e;const d=Object.create(null);for(const V of e.types)d[V.name]=x(V);for(const V of a){var h;const re=V.name.value;d[re]=(h=yp[re])!==null&&h!==void 0?h:de(V)}const p={query:e.query&&v(e.query),mutation:e.mutation&&v(e.mutation),subscription:e.subscription&&v(e.subscription),...c&&W([c]),...W(f)};return{description:(r=c)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value,...p,types:Object.values(d),directives:[...e.directives.map(_),...l.map(N)],extensions:Object.create(null),astNode:(s=c)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1};function b(V){return it(V)?new Bt(b(V.ofType)):Te(V)?new Fe(b(V.ofType)):v(V)}function v(V){return d[V.name]}function _(V){const re=V.toConfig();return new Jn({...re,args:kr(re.args,z)})}function x(V){if($i(V)||Du(V))return V;if(hn(V))return k(V);if(Oe(V))return A(V);if(je(V))return I(V);if(Nt(V))return U(V);if(bt(V))return T(V);if(ze(V))return E(V);wt(!1,"Unexpected type: "+J(V))}function E(V){var re;const L=V.toConfig(),ee=(re=u[L.name])!==null&&re!==void 0?re:[];return new Ii({...L,fields:()=>({...kr(L.fields,ue=>({...ue,type:b(ue.type)})),...Q(ee)}),extensionASTNodes:L.extensionASTNodes.concat(ee)})}function T(V){var re;const L=V.toConfig(),ee=(re=u[V.name])!==null&&re!==void 0?re:[];return new Lr({...L,values:{...L.values,...$(ee)},extensionASTNodes:L.extensionASTNodes.concat(ee)})}function k(V){var re;const L=V.toConfig(),ee=(re=u[L.name])!==null&&re!==void 0?re:[];let ue=L.specifiedByURL;for(const H of ee){var ie;ue=(ie=xp(H))!==null&&ie!==void 0?ie:ue}return new vr({...L,specifiedByURL:ue,extensionASTNodes:L.extensionASTNodes.concat(ee)})}function A(V){var re;const L=V.toConfig(),ee=(re=u[L.name])!==null&&re!==void 0?re:[];return new _n({...L,interfaces:()=>[...V.getInterfaces().map(v),...B(ee)],fields:()=>({...kr(L.fields,D),...M(ee)}),extensionASTNodes:L.extensionASTNodes.concat(ee)})}function I(V){var re;const L=V.toConfig(),ee=(re=u[L.name])!==null&&re!==void 0?re:[];return new Ci({...L,interfaces:()=>[...V.getInterfaces().map(v),...B(ee)],fields:()=>({...kr(L.fields,D),...M(ee)}),extensionASTNodes:L.extensionASTNodes.concat(ee)})}function U(V){var re;const L=V.toConfig(),ee=(re=u[L.name])!==null&&re!==void 0?re:[];return new ds({...L,types:()=>[...V.getTypes().map(v),...oe(ee)],extensionASTNodes:L.extensionASTNodes.concat(ee)})}function D(V){return{...V,type:b(V.type),args:V.args&&kr(V.args,z)}}function z(V){return{...V,type:b(V.type)}}function W(V){const re={};for(const ee of V){var L;const ue=(L=ee.operationTypes)!==null&&L!==void 0?L:[];for(const ie of ue)re[ie.operation]=Z(ie.type)}return re}function Z(V){var re;const L=V.name.value,ee=(re=yp[L])!==null&&re!==void 0?re:d[L];if(ee===void 0)throw new Error(`Unknown type: "${L}".`);return ee}function O(V){return V.kind===w.LIST_TYPE?new Bt(O(V.type)):V.kind===w.NON_NULL_TYPE?new Fe(O(V.type)):Z(V)}function N(V){var re;return new Jn({name:V.name.value,description:(re=V.description)===null||re===void 0?void 0:re.value,locations:V.locations.map(({value:L})=>L),isRepeatable:V.repeatable,args:q(V.arguments),astNode:V})}function M(V){const re=Object.create(null);for(const ue of V){var L;const ie=(L=ue.fields)!==null&&L!==void 0?L:[];for(const H of ie){var ee;re[H.name.value]={type:O(H.type),description:(ee=H.description)===null||ee===void 0?void 0:ee.value,args:q(H.arguments),deprecationReason:oa(H),astNode:H}}}return re}function q(V){const re=V??[],L=Object.create(null);for(const ue of re){var ee;const ie=O(ue.type);L[ue.name.value]={type:ie,description:(ee=ue.description)===null||ee===void 0?void 0:ee.value,defaultValue:lr(ue.defaultValue,ie),deprecationReason:oa(ue),astNode:ue}}return L}function Q(V){const re=Object.create(null);for(const ue of V){var L;const ie=(L=ue.fields)!==null&&L!==void 0?L:[];for(const H of ie){var ee;const ce=O(H.type);re[H.name.value]={type:ce,description:(ee=H.description)===null||ee===void 0?void 0:ee.value,defaultValue:lr(H.defaultValue,ce),deprecationReason:oa(H),astNode:H}}}return re}function $(V){const re=Object.create(null);for(const ue of V){var L;const ie=(L=ue.values)!==null&&L!==void 0?L:[];for(const H of ie){var ee;re[H.name.value]={description:(ee=H.description)===null||ee===void 0?void 0:ee.value,deprecationReason:oa(H),astNode:H}}}return re}function B(V){return V.flatMap(re=>{var L,ee;return(L=(ee=re.interfaces)===null||ee===void 0?void 0:ee.map(Z))!==null&&L!==void 0?L:[]})}function oe(V){return V.flatMap(re=>{var L,ee;return(L=(ee=re.types)===null||ee===void 0?void 0:ee.map(Z))!==null&&L!==void 0?L:[]})}function de(V){var re;const L=V.name.value,ee=(re=u[L])!==null&&re!==void 0?re:[];switch(V.kind){case w.OBJECT_TYPE_DEFINITION:{var ue;const we=[V,...ee];return new _n({name:L,description:(ue=V.description)===null||ue===void 0?void 0:ue.value,interfaces:()=>B(we),fields:()=>M(we),astNode:V,extensionASTNodes:ee})}case w.INTERFACE_TYPE_DEFINITION:{var ie;const we=[V,...ee];return new Ci({name:L,description:(ie=V.description)===null||ie===void 0?void 0:ie.value,interfaces:()=>B(we),fields:()=>M(we),astNode:V,extensionASTNodes:ee})}case w.ENUM_TYPE_DEFINITION:{var H;const we=[V,...ee];return new Lr({name:L,description:(H=V.description)===null||H===void 0?void 0:H.value,values:$(we),astNode:V,extensionASTNodes:ee})}case w.UNION_TYPE_DEFINITION:{var ce;const we=[V,...ee];return new ds({name:L,description:(ce=V.description)===null||ce===void 0?void 0:ce.value,types:()=>oe(we),astNode:V,extensionASTNodes:ee})}case w.SCALAR_TYPE_DEFINITION:{var ae;return new vr({name:L,description:(ae=V.description)===null||ae===void 0?void 0:ae.value,specifiedByURL:xp(V),astNode:V,extensionASTNodes:ee})}case w.INPUT_OBJECT_TYPE_DEFINITION:{var ke;const we=[V,...ee];return new Ii({name:L,description:(ke=V.description)===null||ke===void 0?void 0:ke.value,fields:()=>Q(we),astNode:V,extensionASTNodes:ee,isOneOf:VT(V)})}}}}const yp=Fr([...Io,...Oo],e=>e.name);function oa(e){const t=ps(Cu,e);return t==null?void 0:t.reason}function xp(e){const t=ps(od,e);return t==null?void 0:t.url}function VT(e){return!!ps(ad,e)}function Cd(e,t){e!=null&&e.kind===w.DOCUMENT||Le(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&hT(e);const r=Av({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(const s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}const i=[...r.directives,...ri.filter(s=>r.directives.every(o=>o.name!==s.name))];return new Ss({...r,directives:i})}function $T(e,t){const n=$r(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return Cd(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}function jT(e){const t=e.toConfig(),n=Qr(cl(t.types),d=>d.name,f);return new Ss({...t,types:Object.values(n),directives:cl(t.directives).map(o),query:s(t.query),mutation:s(t.mutation),subscription:s(t.subscription)});function r(d){return it(d)?new Bt(r(d.ofType)):Te(d)?new Fe(r(d.ofType)):i(d)}function i(d){return n[d.name]}function s(d){return d&&i(d)}function o(d){const h=d.toConfig();return new Jn({...h,locations:Dv(h.locations,p=>p),args:a(h.args)})}function a(d){return aa(d,h=>({...h,type:r(h.type)}))}function u(d){return aa(d,h=>({...h,type:r(h.type),args:h.args&&a(h.args)}))}function l(d){return aa(d,h=>({...h,type:r(h.type)}))}function c(d){return cl(d).map(i)}function f(d){if(hn(d)||$i(d))return d;if(Oe(d)){const h=d.toConfig();return new _n({...h,interfaces:()=>c(h.interfaces),fields:()=>u(h.fields)})}if(je(d)){const h=d.toConfig();return new Ci({...h,interfaces:()=>c(h.interfaces),fields:()=>u(h.fields)})}if(Nt(d)){const h=d.toConfig();return new ds({...h,types:()=>c(h.types)})}if(bt(d)){const h=d.toConfig();return new Lr({...h,values:aa(h.values,p=>p)})}if(ze(d)){const h=d.toConfig();return new Ii({...h,fields:()=>l(h.fields)})}wt(!1,"Unexpected type: "+J(d))}}function aa(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(No))n[r]=t(e[r]);return n}function cl(e){return Dv(e,t=>t.name)}function Dv(e,t){return e.slice().sort((n,r)=>{const i=t(n),s=t(r);return No(i,s)})}function Ac(e){return Nv(e,t=>!ud(t),UT)}function BT(e){return Nv(e,ud,$i)}function UT(e){return!Du(e)&&!$i(e)}function Nv(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[qT(e),...r.map(s=>JT(s)),...i.map(s=>Cv(s))].filter(Boolean).join(`
217
+
218
+ `)}function qT(e){if(e.description==null&&zT(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),Pn(e)+`schema {
219
+ ${t.join(`
220
+ `)}
221
+ }`}function zT(e){const t=e.getQueryType();if(t&&t.name!=="Query")return!1;const n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;const r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function Cv(e){if(hn(e))return HT(e);if(Oe(e))return GT(e);if(je(e))return WT(e);if(Nt(e))return QT(e);if(bt(e))return YT(e);if(ze(e))return XT(e);wt(!1,"Unexpected type: "+J(e))}function HT(e){return Pn(e)+`scalar ${e.name}`+ZT(e)}function Iv(e){const t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function GT(e){return Pn(e)+`type ${e.name}`+Iv(e)+Fv(e)}function WT(e){return Pn(e)+`interface ${e.name}`+Iv(e)+Fv(e)}function QT(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Pn(e)+"union "+e.name+n}function YT(e){const t=e.getValues().map((n,r)=>Pn(n," ",!r)+" "+n.name+Fd(n.deprecationReason));return Pn(e)+`enum ${e.name}`+Id(t)}function XT(e){const t=Object.values(e.getFields()).map((n,r)=>Pn(n," ",!r)+" "+Dc(n));return Pn(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+Id(t)}function Fv(e){const t=Object.values(e.getFields()).map((n,r)=>Pn(n," ",!r)+" "+n.name+Lv(n.args," ")+": "+String(n.type)+Fd(n.deprecationReason));return Id(t)}function Id(e){return e.length!==0?` {
222
+ `+e.join(`
223
+ `)+`
224
+ }`:""}function Lv(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(Dc).join(", ")+")":`(
225
+ `+e.map((n,r)=>Pn(n," "+t,!r)+" "+t+Dc(n)).join(`
226
+ `)+`
227
+ `+t+")"}function Dc(e){const t=Ar(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${Qe(t)}`),n+Fd(e.deprecationReason)}function JT(e){return Pn(e)+"directive @"+e.name+Lv(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Fd(e){return e==null?"":e!==sd?` @deprecated(reason: ${Qe({kind:w.STRING,value:e})})`:" @deprecated"}function ZT(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${Qe({kind:w.STRING,value:e.specifiedByURL})})`}function Pn(e,t="",n=!0){const{description:r}=e;if(r==null)return"";const i=Qe({kind:w.STRING,value:r,block:L4(r)});return(t&&!n?`
228
+ `+t:t)+i.replace(/\n/g,`
229
+ `+t)+`
230
+ `}function KT(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:w.DOCUMENT,definitions:t}}function ew(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case w.OPERATION_DEFINITION:t.push(i);break;case w.FRAGMENT_DEFINITION:n[i.name.value]=Ep(i.selectionSet);break}const r=Object.create(null);for(const i of t){const s=new Set;for(const a of Ep(i.selectionSet))Ov(s,n,a);const o=i.name?i.name.value:"";r[o]={kind:w.DOCUMENT,definitions:e.definitions.filter(a=>a===i||a.kind===w.FRAGMENT_DEFINITION&&s.has(a.name.value))}}return r}function Ov(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(r!==void 0)for(const i of r)Ov(e,t,i)}}function Ep(e){const t=[];return nn(e,{FragmentSpread(n){t.push(n.name.value)}}),t}function tw(e){const t=c2(e)?e:new Tu(e),n=t.body,r=new Jf(t);let i="",s=!1;for(;r.advance().kind!==X.EOF;){const o=r.token,a=o.kind,u=!o2(o.kind);s&&(u||o.kind===X.SPREAD)&&(i+=" ");const l=n.slice(o.start,o.end);a===X.BLOCK_STRING?i+=s2(o.value,{minimize:!0}):i+=l,s=u}return i}function nw(e){const t=Rv(e);if(t)throw t;return e}function Rv(e){if(typeof e=="string"||Le(!1,"Expected name to be a string."),e.startsWith("__"))return new G(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{wn(e)}catch(t){return t}}var mt;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(mt||(mt={}));var Yn;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(Yn||(Yn={}));function rw(e,t){return Pv(e,t).filter(n=>n.type in mt)}function iw(e,t){return Pv(e,t).filter(n=>n.type in Yn)}function Pv(e,t){return[...ow(e,t),...sw(e,t)]}function sw(e,t){const n=[],r=Or(e.getDirectives(),t.getDirectives());for(const i of r.removed)n.push({type:mt.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(const[i,s]of r.persisted){const o=Or(i.args,s.args);for(const a of o.added)ni(a)&&n.push({type:mt.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${a.name} on directive ${i.name} was added.`});for(const a of o.removed)n.push({type:mt.DIRECTIVE_ARG_REMOVED,description:`${a.name} was removed from ${i.name}.`});i.isRepeatable&&!s.isRepeatable&&n.push({type:mt.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(const a of i.locations)s.locations.includes(a)||n.push({type:mt.DIRECTIVE_LOCATION_REMOVED,description:`${a} was removed from ${i.name}.`})}return n}function ow(e,t){const n=[],r=Or(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const i of r.removed)n.push({type:mt.TYPE_REMOVED,description:Du(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(const[i,s]of r.persisted)bt(i)&&bt(s)?n.push(...lw(i,s)):Nt(i)&&Nt(s)?n.push(...uw(i,s)):ze(i)&&ze(s)?n.push(...aw(i,s)):Oe(i)&&Oe(s)?n.push(...Tp(i,s),..._p(i,s)):je(i)&&je(s)?n.push(...Tp(i,s),..._p(i,s)):i.constructor!==s.constructor&&n.push({type:mt.TYPE_CHANGED_KIND,description:`${i.name} changed from ${wp(i)} to ${wp(s)}.`});return n}function aw(e,t){const n=[],r=Or(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.added)Au(i)?n.push({type:mt.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:Yn.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(const i of r.removed)n.push({type:mt.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,s]of r.persisted)Qs(i.type,s.type)||n.push({type:mt.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function uw(e,t){const n=[],r=Or(e.getTypes(),t.getTypes());for(const i of r.added)n.push({type:Yn.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(const i of r.removed)n.push({type:mt.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function lw(e,t){const n=[],r=Or(e.getValues(),t.getValues());for(const i of r.added)n.push({type:Yn.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(const i of r.removed)n.push({type:mt.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function _p(e,t){const n=[],r=Or(e.getInterfaces(),t.getInterfaces());for(const i of r.added)n.push({type:Yn.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(const i of r.removed)n.push({type:mt.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function Tp(e,t){const n=[],r=Or(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.removed)n.push({type:mt.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,s]of r.persisted)n.push(...cw(e,i,s)),Bs(i.type,s.type)||n.push({type:mt.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function cw(e,t,n){const r=[],i=Or(t.args,n.args);for(const s of i.removed)r.push({type:mt.ARG_REMOVED,description:`${e.name}.${t.name} arg ${s.name} was removed.`});for(const[s,o]of i.persisted)if(!Qs(s.type,o.type))r.push({type:mt.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${s.name} has changed type from ${String(s.type)} to ${String(o.type)}.`});else if(s.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:Yn.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} defaultValue was removed.`});else{const u=Sp(s.defaultValue,s.type),l=Sp(o.defaultValue,o.type);u!==l&&r.push({type:Yn.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} has changed defaultValue from ${u} to ${l}.`})}for(const s of i.added)ni(s)?r.push({type:mt.REQUIRED_ARG_ADDED,description:`A required arg ${s.name} on ${e.name}.${t.name} was added.`}):r.push({type:Yn.OPTIONAL_ARG_ADDED,description:`An optional arg ${s.name} on ${e.name}.${t.name} was added.`});return r}function Bs(e,t){return it(e)?it(t)&&Bs(e.ofType,t.ofType)||Te(t)&&Bs(e,t.ofType):Te(e)?Te(t)&&Bs(e.ofType,t.ofType):Vi(t)&&e.name===t.name||Te(t)&&Bs(e,t.ofType)}function Qs(e,t){return it(e)?it(t)&&Qs(e.ofType,t.ofType):Te(e)?Te(t)&&Qs(e.ofType,t.ofType)||!Te(t)&&Qs(e.ofType,t):Vi(t)&&e.name===t.name}function wp(e){if(hn(e))return"a Scalar type";if(Oe(e))return"an Object type";if(je(e))return"an Interface type";if(Nt(e))return"a Union type";if(bt(e))return"an Enum type";if(ze(e))return"an Input type";wt(!1,"Unexpected type: "+J(e))}function Sp(e,t){const n=Ar(e,t);return n!=null||wt(!1),Qe(Ru(n))}function Or(e,t){const n=[],r=[],i=[],s=Fr(e,({name:a})=>a),o=Fr(t,({name:a})=>a);for(const a of e){const u=o[a.name];u===void 0?r.push(a):i.push([a,u])}for(const a of t)s[a.name]===void 0&&n.push(a);return{added:n,persisted:i,removed:r}}const fw=Object.freeze(Object.defineProperty({__proto__:null,BREAK:mi,get BreakingChangeType(){return mt},DEFAULT_DEPRECATION_REASON:sd,get DangerousChangeType(){return Yn},get DirectiveLocation(){return xe},ExecutableDefinitionsRule:w2,FieldsOnCorrectTypeRule:S2,FragmentsOnCompositeTypesRule:k2,GRAPHQL_MAX_INT:ka,GRAPHQL_MIN_INT:Aa,GraphQLBoolean:ln,GraphQLDeprecatedDirective:Cu,GraphQLDirective:Jn,GraphQLEnumType:Lr,GraphQLError:G,GraphQLFloat:td,GraphQLID:nd,GraphQLIncludeDirective:rd,GraphQLInputObjectType:Ii,GraphQLInt:_2,GraphQLInterfaceType:Ci,GraphQLList:Bt,GraphQLNonNull:Fe,GraphQLObjectType:_n,GraphQLOneOfDirective:ad,GraphQLScalarType:vr,GraphQLSchema:Ss,GraphQLSkipDirective:id,GraphQLSpecifiedByDirective:od,GraphQLString:gt,GraphQLUnionType:ds,get Kind(){return w},KnownArgumentNamesRule:A2,KnownDirectivesRule:Ed,KnownFragmentNamesRule:N2,KnownTypeNamesRule:_d,Lexer:Jf,Location:t2,LoneAnonymousOperationRule:C2,LoneSchemaDefinitionRule:I2,MaxIntrospectionDepthRule:F2,NoDeprecatedCustomRule:FT,NoFragmentCyclesRule:L2,NoSchemaIntrospectionCustomRule:LT,NoUndefinedVariablesRule:O2,NoUnusedFragmentsRule:R2,NoUnusedVariablesRule:P2,get OperationTypeNode(){return Rt},OverlappingFieldsCanBeMergedRule:V2,PossibleFragmentSpreadsRule:U2,PossibleTypeExtensionsRule:q2,ProvidedRequiredArgumentsRule:z2,ScalarLeafsRule:G2,SchemaMetaFieldDef:Fi,SingleFieldSubscriptionsRule:J2,Source:Tu,Token:Yf,get TokenKind(){return X},TypeInfo:Ro,get TypeKind(){return Xe},TypeMetaFieldDef:Li,TypeNameMetaFieldDef:Oi,UniqueArgumentDefinitionNamesRule:Z2,UniqueArgumentNamesRule:kd,UniqueDirectiveNamesRule:K2,UniqueDirectivesPerLocationRule:Ad,UniqueEnumValueNamesRule:ev,UniqueFieldDefinitionNamesRule:tv,UniqueFragmentNamesRule:nv,UniqueInputFieldNamesRule:Dd,UniqueOperationNamesRule:rv,UniqueOperationTypesRule:iv,UniqueTypeNamesRule:sv,UniqueVariableNamesRule:ov,ValidationContext:hv,ValuesOfCorrectTypeRule:av,VariablesAreInputTypesRule:uv,VariablesInAllowedPositionRule:lv,__Directive:cd,__DirectiveLocation:fd,__EnumValue:hd,__Field:dd,__InputValue:Lo,__Schema:Iu,__Type:Ln,__TypeKind:pd,assertAbstractType:y5,assertCompositeType:v5,assertDirective:w5,assertEnumType:f5,assertEnumValueName:h2,assertInputObjectType:d5,assertInputType:m5,assertInterfaceType:m2,assertLeafType:b5,assertListType:h5,assertName:wn,assertNamedType:E5,assertNonNullType:p5,assertNullableType:g2,assertObjectType:p2,assertOutputType:g5,assertScalarType:l5,assertSchema:md,assertType:u5,assertUnionType:c5,assertValidName:nw,assertValidSchema:gd,assertWrappingType:x5,astFromValue:Ar,buildASTSchema:Cd,buildClientSchema:kv,buildSchema:$T,coerceInputValue:Q2,concatAST:KT,createSourceEventStream:Sv,defaultFieldResolver:kc,defaultTypeResolver:Ev,doTypesOverlap:Ec,execute:Mu,executeSync:gv,extendSchema:MT,findBreakingChanges:rw,findDangerousChanges:iw,formatError:N4,getArgumentValues:Pu,getDirectiveValues:ps,getEnterLeaveForKind:fs,getIntrospectionQuery:Nd,getLocation:Ua,getNamedType:Tt,getNullableType:ku,getOperationAST:OT,getOperationRootType:RT,getVariableValues:Y2,getVisitFn:s5,graphql:kT,graphqlSync:AT,introspectionFromSchema:PT,introspectionTypes:Oo,isAbstractType:Qn,isCompositeType:Xn,isConstValueNode:_c,isDefinitionNode:M5,isDirective:Nu,isEnumType:bt,isEqualType:za,isExecutableDefinitionNode:vd,isInputObjectType:ze,isInputType:un,isInterfaceType:je,isIntrospectionType:$i,isLeafType:Rn,isListType:it,isNamedType:Vi,isNonNullType:Te,isNullableType:Su,isObjectType:Oe,isOutputType:Jr,isRequiredArgument:ni,isRequiredInputField:Au,isScalarType:hn,isSchema:Ha,isSelectionNode:V5,isSpecifiedDirective:ud,isSpecifiedScalarType:Du,isType:ws,isTypeDefinitionNode:ks,isTypeExtensionNode:Ou,isTypeNode:$5,isTypeSubTypeOf:_i,isTypeSystemDefinitionNode:yd,isTypeSystemExtensionNode:xd,isUnionType:Nt,isValidNameError:Rv,isValueNode:T2,isWrappingType:Co,lexicographicSortSchema:jT,locatedError:ms,parse:$r,parseConstValue:X4,parseType:J4,parseValue:f2,print:Qe,printError:D4,printIntrospectionSchema:BT,printLocation:e2,printSchema:Ac,printSourceLocation:Qf,printType:Cv,recommendedRules:cv,resolveObjMapThunk:ed,resolveReadonlyArrayThunk:Kf,responsePathAsArray:Zt,separateOperations:ew,specifiedDirectives:ri,specifiedRules:fv,specifiedScalarTypes:Io,stripIgnoredCharacters:tw,subscribe:NT,syntaxError:Lt,typeFromAST:rn,validate:pv,validateSchema:Fu,valueFromAST:lr,valueFromASTUntyped:qa,version:w4,versionInfo:S4,visit:nn,visitInParallel:Zf,visitWithTypeInfo:Lu},Symbol.toStringTag,{value:"Module"}));async function dw(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;let n=e.headers.get("content-type");if(!n||!~n.indexOf("multipart/"))return e;let r=n.indexOf("boundary="),i="-";if(~r){let s=r+9,o=n.indexOf(";",s);i=n.slice(s,o>-1?o:void 0).trim().replace(/"/g,"")}return async function*(s,o,a){let u,l,c,f=new TextDecoder("utf8"),d=s.getReader(),h=!a||!1,p=o.length,b="",v=[];try{let _;e:for(;!(_=await d.read()).done;){let x=f.decode(_.value,{stream:!0});u=b.length,b+=x;let E=x.indexOf(o);for(~E?u+=E:u=b.indexOf(o),v=[];~u;){let T=b.slice(0,u),k=b.slice(u+p);if(l){let A=T.indexOf(`\r
231
+ \r
232
+ `)+4,I=T.lastIndexOf(`\r
233
+ `,A),U=!1,D=T.slice(A,I>-1?void 0:I),z=String(T.slice(0,A)).trim().split(`\r
234
+ `),W={},Z=z.length;for(;c=z[--Z];c=c.split(": "),W[c.shift().toLowerCase()]=c.join(": "));if(c=W["content-type"],c&&~c.indexOf("application/json"))try{D=JSON.parse(D),U=!0}catch{}if(c={headers:W,body:D,json:U},h?yield c:v.push(c),k.slice(0,2)==="--")break e}else o=`\r
235
+ `+o,l=p+=2;b=k,u=b.indexOf(o)}v.length&&(yield v)}}finally{v.length&&(yield v),await d.cancel()}}(e.body,`--${i}`,t)}function hw(e,t,n){const r=async function*(){yield*e}(),i=r.return.bind(r);if(t&&(r.return=(...s)=>(t(),i(...s))),n){const s=r.throw.bind(r);r.throw=o=>(n(o),s(o))}return r}function kp(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function pw(){let e={type:"running"},t=kp();const n=[];function r(o){e.type==="running"&&(n.push(o),t.resolve(),t=kp())}const i=async function*(){for(;;)if(n.length>0)yield n.shift();else{if(e.type==="error")throw e.error;if(e.type==="finished")return;await t.promise}}(),s=hw(i,()=>{e.type==="running"&&(e={type:"finished"},t.resolve())},o=>{e.type==="running"&&(e={type:"error",error:o},t.resolve())});return{pushValue:r,asyncIterableIterator:s}}const Mv=e=>{const{pushValue:t,asyncIterableIterator:n}=pw(),r=e({next:o=>{t(o)},complete:()=>{n.return()},error:o=>{n.throw(o)}}),i=n.return;let s;return n.return=()=>(s===void 0&&(r(),s=i()),s),n};function mw(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator&&Symbol.asyncIterator in e)}const gw=e=>typeof e=="object"&&e!==null&&"code"in e,bw=(e,t)=>{let n=!1;return nn(e,{OperationDefinition(r){var i;t===((i=r.name)==null?void 0:i.value)&&r.operation==="subscription"&&(n=!0)}}),n},vw=(e,t)=>async(n,r)=>(await t(e.url,{method:"POST",body:JSON.stringify(n),headers:yn(yn({"content-type":"application/json"},e.headers),r==null?void 0:r.headers)})).json();async function yw(e,t){let n;try{const{createClient:r}=await dr(async()=>{const{createClient:i}=await import("./toolkit-DToHxdMP.js").then(s=>s.t);return{createClient:i}},__vite__mapDeps([3,1,2,4]));return n=r({url:e,connectionParams:t}),Vv(n)}catch(r){if(gw(r)&&r.code==="MODULE_NOT_FOUND")throw new Error("You need to install the 'graphql-ws' package to use websockets when passing a 'subscriptionUrl'");console.error(`Error creating websocket client for ${e}`,r)}}const Vv=e=>t=>Mv(n=>e.subscribe(t,lo(yn({},n),{error(r){r instanceof CloseEvent?n.error(new Error(`Socket closed with event ${r.code} ${r.reason||""}`.trim())):n.error(r)}}))),xw=e=>t=>{const n=e.request(t);return Mv(r=>n.subscribe(r).unsubscribe)},Ew=(e,t)=>function(n,r){return v4(this,null,function*(){const i=yield new wa(t(e.url,{method:"POST",body:JSON.stringify(n),headers:yn(yn({"content-type":"application/json",accept:"application/json, multipart/mixed"},e.headers),r==null?void 0:r.headers)}).then(l=>dw(l,{})));if(!mw(i))return yield i.json();try{for(var s=y4(i),o,a,u;o=!(a=yield new wa(s.next())).done;o=!1){const l=a.value;if(l.some(c=>!c.json)){const c=l.map(f=>`Headers::
236
+ ${f.headers}
237
+
238
+ Body::
239
+ ${f.body}`);throw new Error(`Expected multipart chunks to be of json type. got:
240
+ ${c}`)}yield l.map(c=>c.body)}}catch(l){u=[l]}finally{try{o&&(a=s.return)&&(yield new wa(a.call(s)))}finally{if(u)throw u[0]}}})};async function _w(e,t){if(e.wsClient)return Vv(e.wsClient);if(e.subscriptionUrl)return yw(e.subscriptionUrl,yn(yn({},e.wsConnectionParams),t==null?void 0:t.headers));const n=e.legacyClient||e.legacyWsClient;if(n)return xw(n)}function Tw(e){const t=e.fetch||typeof window<"u"&&window.fetch;if(!t)throw new Error("No valid fetcher implementation available");e.enableIncrementalDelivery=e.enableIncrementalDelivery!==!1;const n=vw(e,t),r=e.enableIncrementalDelivery?Ew(e,t):n;return async(i,s)=>{if(i.operationName==="IntrospectionQuery")return(e.schemaFetcher||n)(i,s);if(s!=null&&s.documentAST&&bw(s.documentAST,i.operationName||void 0)){const o=await _w(e,s);if(!o)throw new Error(`Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. ${e.subscriptionUrl?`Provided URL ${e.subscriptionUrl} failed`:"Please provide subscriptionUrl, wsClient or legacyClient option first."}`);return o(i)}return r(i,s)}}function Nc(e){return JSON.stringify(e,null,2)}function ww(e){return lo(yn({},e),{message:e.message,stack:e.stack})}function Ap(e){return e instanceof Error?ww(e):e}function Ys(e){return Array.isArray(e)?Nc({errors:e.map(t=>Ap(t))}):Nc({errors:[Ap(e)]})}function Cc(e){return Nc(e)}function Sw(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=$r(t)}catch{return{insertions:r,result:t}}const s=n||kw,o=new Ro(e);return nn(i,{leave(a){o.leave(a)},enter(a){if(o.enter(a),a.kind==="Field"&&!a.selectionSet){const u=o.getType(),l=$v(Nw(u),s);if(l&&a.loc){const c=Dw(t,a.loc.start);r.push({index:a.loc.end,string:" "+Qe(l).replaceAll(`
241
+ `,`
242
+ `+c)})}}}}),{insertions:r,result:Aw(t,r)}}function kw(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];for(const r of Object.keys(t))Rn(t[r].type)&&n.push(r);return n}function $v(e,t){const n=Tt(e);if(!e||Rn(e))return;const r=t(n);if(!(!Array.isArray(r)||r.length===0||!("getFields"in n)))return{kind:w.SELECTION_SET,selections:r.map(i=>{const s=n.getFields()[i],o=s?s.type:null;return{kind:w.FIELD,name:{kind:w.NAME,value:i},selectionSet:$v(o,t)}})}}function Aw(e,t){if(t.length===0)return e;let n="",r=0;for(const{index:i,string:s}of t)n+=e.slice(r,i)+s,r=i;return n+=e.slice(r),n}function Dw(e,t){let n=t,r=t;for(;n;){const i=e.charCodeAt(n-1);if(i===10||i===13||i===8232||i===8233)break;n--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(r=n)}return e.slice(n,r)}function Nw(e){if(e)return e}function Cw(e,t){var n;const r=new Map,i=[];for(const s of e)if(s.kind==="Field"){const o=t(s),a=r.get(o);if((n=s.directives)!=null&&n.length){const u=yn({},s);i.push(u)}else if(a!=null&&a.selectionSet&&s.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...s.selectionSet.selections];else if(!a){const u=yn({},s);r.set(o,u),i.push(u)}}else i.push(s);return i}function jv(e,t,n){var r;const i=n?Tt(n).name:null,s=[],o=[];for(let a of t){if(a.kind==="FragmentSpread"){const u=a.name.value;if(!a.directives||a.directives.length===0){if(o.includes(u))continue;o.push(u)}const l=e[a.name.value];if(l){const{typeCondition:c,directives:f,selectionSet:d}=l;a={kind:w.INLINE_FRAGMENT,typeCondition:c,directives:f,selectionSet:d}}}if(a.kind===w.INLINE_FRAGMENT&&(!a.directives||((r=a.directives)==null?void 0:r.length)===0)){const u=a.typeCondition?a.typeCondition.name.value:null;if(!u||u===i){s.push(...jv(e,a.selectionSet.selections,n));continue}}s.push(a)}return s}function Iw(e,t){const n=t?new Ro(t):null,r=Object.create(null);for(const o of e.definitions)o.kind===w.FRAGMENT_DEFINITION&&(r[o.name.value]=o);const i={SelectionSet(o){const a=n?n.getParentType():null;let{selections:u}=o;return u=jv(r,u,a),lo(yn({},o),{selections:u})},FragmentDefinition(){return null}},s=nn(e,n?Lu(n,i):i);return nn(s,{SelectionSet(o){let{selections:a}=o;return a=Cw(a,u=>u.alias?u.alias.value:u.name.value),lo(yn({},o),{selections:a})},FragmentDefinition(){return null}})}function Fw(e,t,n){if(!n||n.length<1)return;const r=n.map(i=>{var s;return(s=i.name)==null?void 0:s.value});if(t&&r.includes(t))return t;if(t&&e){const i=e.map(s=>{var o;return(o=s.name)==null?void 0:o.value}).indexOf(t);if(i!==-1&&i<r.length)return r[i]}return r[0]}function Lw(e,t){return t instanceof DOMException&&(t.code===22||t.code===1014||t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED")&&e.length!==0}class Ow{constructor(t){t?this.storage=t:t===null?this.storage=null:typeof window>"u"?this.storage=null:this.storage={getItem:localStorage.getItem.bind(localStorage),setItem:localStorage.setItem.bind(localStorage),removeItem:localStorage.removeItem.bind(localStorage),get length(){let n=0;for(const r in localStorage)r.indexOf(`${ua}:`)===0&&(n+=1);return n},clear(){for(const n in localStorage)n.indexOf(`${ua}:`)===0&&localStorage.removeItem(n)}}}get(t){if(!this.storage)return null;const n=`${ua}:${t}`,r=this.storage.getItem(n);return r==="null"||r==="undefined"?(this.storage.removeItem(n),null):r||null}set(t,n){let r=!1,i=null;if(this.storage){const s=`${ua}:${t}`;if(n)try{this.storage.setItem(s,n)}catch(o){i=o instanceof Error?o:new Error(`${o}`),r=Lw(this.storage,o)}else this.storage.removeItem(s)}return{isQuotaError:r,error:i}}clear(){this.storage&&this.storage.clear()}}const ua="graphiql";class Dp{constructor(t,n,r=null){this.key=t,this.storage=n,this.maxSize=r,this.items=this.fetchAll()}get length(){return this.items.length}contains(t){return this.items.some(n=>n.query===t.query&&n.variables===t.variables&&n.headers===t.headers&&n.operationName===t.operationName)}edit(t,n){if(typeof n=="number"&&this.items[n]){const i=this.items[n];if(i.query===t.query&&i.variables===t.variables&&i.headers===t.headers&&i.operationName===t.operationName){this.items.splice(n,1,t),this.save();return}}const r=this.items.findIndex(i=>i.query===t.query&&i.variables===t.variables&&i.headers===t.headers&&i.operationName===t.operationName);r!==-1&&(this.items.splice(r,1,t),this.save())}delete(t){const n=this.items.findIndex(r=>r.query===t.query&&r.variables===t.variables&&r.headers===t.headers&&r.operationName===t.operationName);n!==-1&&(this.items.splice(n,1),this.save())}fetchRecent(){return this.items.at(-1)}fetchAll(){const t=this.storage.get(this.key);return t?JSON.parse(t)[this.key]:[]}push(t){const n=[...this.items,t];this.maxSize&&n.length>this.maxSize&&n.shift();for(let r=0;r<5;r++){const i=this.storage.set(this.key,JSON.stringify({[this.key]:n}));if(!(i!=null&&i.error))this.items=n;else if(i.isQuotaError&&this.maxSize)n.shift();else return}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}const Rw=1e5;let Pw=class{constructor(t,n){this.storage=t,this.maxHistoryLength=n,this.updateHistory=({query:r,variables:i,headers:s,operationName:o})=>{if(!this.shouldSaveQuery(r,i,s,this.history.fetchRecent()))return;this.history.push({query:r,variables:i,headers:s,operationName:o});const a=this.history.items,u=this.favorite.items;this.queries=a.concat(u)},this.deleteHistory=({query:r,variables:i,headers:s,operationName:o,favorite:a},u=!1)=>{function l(c){const f=c.items.find(d=>d.query===r&&d.variables===i&&d.headers===s&&d.operationName===o);f&&c.delete(f)}(a||u)&&l(this.favorite),(!a||u)&&l(this.history),this.queries=[...this.history.items,...this.favorite.items]},this.history=new Dp("queries",this.storage,this.maxHistoryLength),this.favorite=new Dp("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(t,n,r,i){if(!t)return!1;try{$r(t)}catch{return!1}return t.length>Rw?!1:i?!(JSON.stringify(t)===JSON.stringify(i.query)&&(JSON.stringify(n)===JSON.stringify(i.variables)&&(JSON.stringify(r)===JSON.stringify(i.headers)||r&&!i.headers)||n&&!i.variables)):!0}toggleFavorite({query:t,variables:n,headers:r,operationName:i,label:s,favorite:o}){const a={query:t,variables:n,headers:r,operationName:i,label:s};o?(a.favorite=!1,this.favorite.delete(a),this.history.push(a)):(a.favorite=!0,this.favorite.push(a),this.history.delete(a)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:t,variables:n,headers:r,operationName:i,label:s,favorite:o},a){const u={query:t,variables:n,headers:r,operationName:i,label:s};o?this.favorite.edit(lo(yn({},u),{favorite:o}),a):this.history.edit(u,a),this.queries=[...this.history.items,...this.favorite.items]}};function Mw({defaultQuery:e,defaultHeaders:t,headers:n,query:r,variables:i,defaultTabs:s=[{query:r??e,variables:i,headers:n??t}],shouldPersistHeaders:o,storage:a}){const u=a.get(pt.tabs);try{if(!u)throw new Error("Storage for tabs is empty");const l=JSON.parse(u),c=o?n:void 0;if(Vw(l)){const f=Za({query:r,variables:i,headers:c});let d=-1;for(let h=0;h<l.tabs.length;h++){const p=l.tabs[h];p.hash=Za({query:p.query,variables:p.variables,headers:p.headers}),p.hash===f&&(d=h)}if(d>=0)l.activeTabIndex=d;else{const h=r?Ld(r):null;l.tabs.push({id:Uv(),hash:f,title:h||Od,query:r,variables:i,headers:n,operationName:h,response:null}),l.activeTabIndex=l.tabs.length-1}return l}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:s.map(Bv)}}}function Vw(e){return e&&typeof e=="object"&&!Array.isArray(e)&&jw(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every($w)}function $w(e){return e&&typeof e=="object"&&!Array.isArray(e)&&Np(e,"id")&&Np(e,"title")&&Fs(e,"query")&&Fs(e,"variables")&&Fs(e,"headers")&&Fs(e,"operationName")&&Fs(e,"response")}function jw(e,t){return t in e&&typeof e[t]=="number"}function Np(e,t){return t in e&&typeof e[t]=="string"}function Fs(e,t){return t in e&&(typeof e[t]=="string"||e[t]===null)}function Cp(e,t=!1){return JSON.stringify(e,(n,r)=>n==="hash"||n==="response"||!t&&n==="headers"?null:r)}function Bv({query:e=null,variables:t=null,headers:n=null}={}){const r=e?Ld(e):null;return{id:Uv(),hash:Za({query:e,variables:t,headers:n}),title:r||Od,query:e,variables:t,headers:n,operationName:r,response:null}}function Ip(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i={...n,...t};return{...i,hash:Za(i),title:i.operationName||(i.query?Ld(i.query):void 0)||Od}})}}function Uv(){const e=()=>Math.floor((1+Math.random())*65536).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function Za(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}function Ld(e){const n=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return(n==null?void 0:n[2])??null}function Bw(e){const t=e.get(pt.tabs);if(t){const n=JSON.parse(t);e.set(pt.tabs,JSON.stringify(n,(r,i)=>r==="headers"?null:i))}}const Od="<untitled>",Rd=e=>t=>db(e,t&&Jb(t));async function Uw(){const{MouseTargetFactory:e}=await dr(async()=>{const{MouseTargetFactory:n}=await import("./mouseTarget-B_KnTiWf.js").then(r=>r.g5);return{MouseTargetFactory:n}},[]),t=e._doHitTestWithCaretPositionFromPoint;e._doHitTestWithCaretPositionFromPoint=(...n)=>{const[r,i]=n;return r.viewDomNode.ownerDocument.caretPositionFromPoint(i.clientX,i.clientY)?t(...n):{type:0}}}const Vu=Rf((e,t)=>({actions:{async initialize(){if(!!t().monaco)return;const[r,{initializeMode:i}]=await Promise.all([dr(()=>import("./monaco-editor-C4cuflwX.js").then(o=>o.b),__vite__mapDeps([5,1,2,6,7])),dr(()=>import("./lite-BCVbb_oz.js"),__vite__mapDeps([8,1,2,5,6,7,3,4]))]);globalThis.__MONACO=r,r.languages.json.jsonDefaults.setDiagnosticsOptions(Xb),r.editor.defineTheme(gc.dark,Yh.dark),r.editor.defineTheme(gc.light,Yh.light),navigator.userAgent.includes("Firefox/")&&Uw();const s=i({diagnosticSettings:mc});e({monaco:r,monacoGraphQL:s})}}})),Po=Rd(Vu);function gs(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...r)},e)}}function qv(e,t,n){const r=me.c(10),{updateActiveTabValues:i}=Er();let s;r[0]!==n?(s=c=>({editor:c[n==="variables"?"variableEditor":"headerEditor"],storage:c.storage}),r[0]=n,r[1]=s):s=r[1];const{editor:o,storage:a}=Ct(s);let u,l;r[2]!==e||r[3]!==o||r[4]!==a||r[5]!==t||r[6]!==n||r[7]!==i?(u=()=>{if(!o)return;const c=gs(500,p=>{t!==null&&a.set(t,p)}),f=gs(100,p=>{i({[n]:p})}),d=p=>{const b=o.getValue();c(b),f(b),e==null||e(b)},h=o.getModel().onDidChangeContent(d);return()=>{h.dispose()}},l=[e,o,t,n,i,a],r[2]=e,r[3]=o,r[4]=a,r[5]=t,r[6]=n,r[7]=i,r[8]=u,r[9]=l):(u=r[8],l=r[9]),g.useEffect(u,l)}const qw=e=>{const t=me.c(12);let n;t[0]!==e?(n=h=>h[`${e}Editor`],t[0]=e,t[1]=n):n=t[1];const r=Ct(n),[i,s]=g.useState("");let o;t[2]!==r?(o=r==null?void 0:r.getModel(),t[2]=r,t[3]=o):o=t[3];const a=o;let u,l;t[4]!==a?(u=()=>{if(!a)return;const h=function(){s(a.getValue())},p=a.onDidChangeContent(h);return h(),()=>{p.dispose()}},l=[a],t[4]=a,t[5]=u,t[6]=l):(u=t[5],l=t[6]),g.useEffect(u,l);let c;t[7]!==a?(c=function(p){a.setValue(p)},t[7]=a,t[8]=c):c=t[8];const f=c;let d;return t[9]!==f||t[10]!==i?(d=[i,f],t[9]=f,t[10]=i,t[11]=d):d=t[11],d},zw=()=>qw("query");function Hw(e){const t=me.c(12),[n,r]=e;let i;t[0]!==n?(i={pending:null,last:n},t[0]=n,t[1]=i):i=t[1];const s=g.useRef(i),[o,a]=g.useState(n);let u,l;t[2]!==o||t[3]!==r||t[4]!==n?(u=()=>{if(s.current.last!==n){if(s.current.last=n,s.current.pending===null){a(n);return}if(s.current.pending===n){s.current.pending=null,n!==o&&(s.current.pending=o,r(o));return}s.current.pending=null,a(n)}},l=[n,o,r],t[2]=o,t[3]=r,t[4]=n,t[5]=u,t[6]=l):(u=t[5],l=t[6]),g.useEffect(u,l);let c;t[7]!==r?(c=h=>{a(h),s.current.pending===null&&s.current.last!==h&&(s.current.pending=h,r(h))},t[7]=r,t[8]=c):c=t[8];const f=c;let d;return t[9]!==f||t[10]!==o?(d=[o,f],t[9]=f,t[10]=o,t[11]=d):d=t[11],d}const Fp=(e,t)=>{const n=me.c(4),r=g.useRef(!1);let i,s;n[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>()=>{r.current=!1},s=[],n[0]=i,n[1]=s):(i=n[0],s=n[1]),g.useEffect(i,s);let o;n[2]!==e?(o=()=>{if(r.current)return e();r.current=!0},n[2]=e,n[3]=o):o=n[3],g.useEffect(o,t)},Gw=e=>()=>e;function Ww(e,t=!1){const n=e.length;let r=0,i="",s=0,o=16,a=0,u=0,l=0,c=0,f=0;function d(E,T){let k=0,A=0;for(;k<E;){let I=e.charCodeAt(r);if(I>=48&&I<=57)A=A*16+I-48;else if(I>=65&&I<=70)A=A*16+I-65+10;else if(I>=97&&I<=102)A=A*16+I-97+10;else break;r++,k++}return k<E&&(A=-1),A}function h(E){r=E,i="",s=0,o=16,f=0}function p(){let E=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&qi(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&qi(e.charCodeAt(r)))for(r++;r<e.length&&qi(e.charCodeAt(r));)r++;else return f=3,e.substring(E,r);let T=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&qi(e.charCodeAt(r))){for(r++;r<e.length&&qi(e.charCodeAt(r));)r++;T=r}else f=3;return e.substring(E,T)}function b(){let E="",T=r;for(;;){if(r>=n){E+=e.substring(T,r),f=2;break}const k=e.charCodeAt(r);if(k===34){E+=e.substring(T,r),r++;break}if(k===92){if(E+=e.substring(T,r),r++,r>=n){f=2;break}switch(e.charCodeAt(r++)){case 34:E+='"';break;case 92:E+="\\";break;case 47:E+="/";break;case 98:E+="\b";break;case 102:E+="\f";break;case 110:E+=`
243
+ `;break;case 114:E+="\r";break;case 116:E+=" ";break;case 117:const I=d(4);I>=0?E+=String.fromCharCode(I):f=4;break;default:f=5}T=r;continue}if(k>=0&&k<=31)if(Ls(k)){E+=e.substring(T,r),f=2;break}else f=6;r++}return E}function v(){if(i="",f=0,s=r,u=a,c=l,r>=n)return s=n,o=17;let E=e.charCodeAt(r);if(fl(E)){do r++,i+=String.fromCharCode(E),E=e.charCodeAt(r);while(fl(E));return o=15}if(Ls(E))return r++,i+=String.fromCharCode(E),E===13&&e.charCodeAt(r)===10&&(r++,i+=`
244
+ `),a++,l=r,o=14;switch(E){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=b(),o=10;case 47:const T=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Ls(e.charCodeAt(r));)r++;return i=e.substring(T,r),o=12}if(e.charCodeAt(r+1)===42){r+=2;const k=n-1;let A=!1;for(;r<k;){const I=e.charCodeAt(r);if(I===42&&e.charCodeAt(r+1)===47){r+=2,A=!0;break}r++,Ls(I)&&(I===13&&e.charCodeAt(r)===10&&r++,a++,l=r)}return A||(r++,f=1),i=e.substring(T,r),o=13}return i+=String.fromCharCode(E),r++,o=16;case 45:if(i+=String.fromCharCode(E),r++,r===n||!qi(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=p(),o=11;default:for(;r<n&&_(E);)r++,E=e.charCodeAt(r);if(s!==r){switch(i=e.substring(s,r),i){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return i+=String.fromCharCode(E),r++,o=16}}function _(E){if(fl(E)||Ls(E))return!1;switch(E){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function x(){let E;do E=v();while(E>=12&&E<=15);return E}return{setPosition:h,getPosition:()=>r,scan:t?x:v,getToken:()=>o,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>u,getTokenStartCharacter:()=>s-c,getTokenError:()=>f}}function fl(e){return e===32||e===9}function Ls(e){return e===10||e===13}function qi(e){return e>=48&&e<=57}var Lp;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Lp||(Lp={}));new Array(20).fill(0).map((e,t)=>" ".repeat(t));const zi=200;new Array(zi).fill(0).map((e,t)=>`
245
+ `+" ".repeat(t)),new Array(zi).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(zi).fill(0).map((e,t)=>`\r
246
+ `+" ".repeat(t)),new Array(zi).fill(0).map((e,t)=>`
247
+ `+" ".repeat(t)),new Array(zi).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(zi).fill(0).map((e,t)=>`\r
248
+ `+" ".repeat(t));var Ka;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Ka||(Ka={}));function Qw(e,t=[],n=Ka.DEFAULT){let r=null,i=[];const s=[];function o(u){Array.isArray(i)?i.push(u):r!==null&&(i[r]=u)}return Yw(e,{onObjectBegin:()=>{const u={};o(u),s.push(i),i=u,r=null},onObjectProperty:u=>{r=u},onObjectEnd:()=>{i=s.pop()},onArrayBegin:()=>{const u=[];o(u),s.push(i),i=u,r=null},onArrayEnd:()=>{i=s.pop()},onLiteralValue:o,onError:(u,l,c)=>{t.push({error:u,offset:l,length:c})}},n),i[0]}function Yw(e,t,n=Ka.DEFAULT){const r=Ww(e,!1),i=[];let s=0;function o(N){return N?()=>s===0&&N(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(N){return N?M=>s===0&&N(M,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(N){return N?M=>s===0&&N(M,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function l(N){return N?()=>{s>0?s++:N(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice())===!1&&(s=1)}:()=>!0}function c(N){return N?()=>{s>0&&s--,s===0&&N(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}const f=l(t.onObjectBegin),d=u(t.onObjectProperty),h=c(t.onObjectEnd),p=l(t.onArrayBegin),b=c(t.onArrayEnd),v=u(t.onLiteralValue),_=a(t.onSeparator),x=o(t.onComment),E=a(t.onError),T=n&&n.disallowComments,k=n&&n.allowTrailingComma;function A(){for(;;){const N=r.scan();switch(r.getTokenError()){case 4:I(14);break;case 5:I(15);break;case 3:I(13);break;case 1:T||I(11);break;case 2:I(12);break;case 6:I(16);break}switch(N){case 12:case 13:T?I(10):x();break;case 16:I(1);break;case 15:case 14:break;default:return N}}}function I(N,M=[],q=[]){if(E(N),M.length+q.length>0){let Q=r.getToken();for(;Q!==17;){if(M.indexOf(Q)!==-1){A();break}else if(q.indexOf(Q)!==-1)break;Q=A()}}}function U(N){const M=r.getTokenValue();return N?v(M):(d(M),i.push(M)),A(),!0}function D(){switch(r.getToken()){case 11:const N=r.getTokenValue();let M=Number(N);isNaN(M)&&(I(2),M=0),v(M);break;case 7:v(null);break;case 8:v(!0);break;case 9:v(!1);break;default:return!1}return A(),!0}function z(){return r.getToken()!==10?(I(3,[],[2,5]),!1):(U(!1),r.getToken()===6?(_(":"),A(),O()||I(4,[],[2,5])):I(5,[],[2,5]),i.pop(),!0)}function W(){f(),A();let N=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(N||I(4,[],[]),_(","),A(),r.getToken()===2&&k)break}else N&&I(6,[],[]);z()||I(4,[],[2,5]),N=!0}return h(),r.getToken()!==2?I(7,[2],[]):A(),!0}function Z(){p(),A();let N=!0,M=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(M||I(4,[],[]),_(","),A(),r.getToken()===4&&k)break}else M&&I(6,[],[]);N?(i.push(0),N=!1):i[i.length-1]++,O()||I(4,[],[4,5]),M=!0}return b(),N||i.pop(),r.getToken()!==4?I(8,[4],[]):A(),!0}function O(){switch(r.getToken()){case 3:return Z();case 1:return W();case 10:return U(!0);default:return D()}}return A(),r.getToken()===17?n.allowEmptyContent?!0:(I(4,[],[]),!1):O()?(r.getToken()!==17&&I(9,[],[]),!0):(I(4,[],[]),!1)}var Op;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Op||(Op={}));var Rp;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(Rp||(Rp={}));const Xw=Qw;var Pp;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Pp||(Pp={}));function Jw(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}async function Mp(e){const[t,{printers:n},{parsers:r}]=await Promise.all([dr(()=>import("./standalone-BS_cqyLa.js"),[]),dr(()=>import("./estree-DZUM3lmb.js"),[]),dr(()=>import("./babel-C9dsZwsK.js").then(i=>i.b),__vite__mapDeps([9,1,2]))]);return t.format(e,{parser:"jsonc",plugins:[{printers:n},{parsers:r}],printWidth:0})}const Zw=new Intl.ListFormat("en",{style:"long",type:"conjunction"});function Kw(e){const t=[],n=Xw(e,t,{allowTrailingComma:!0,allowEmptyContent:!0});if(t.length){const r=Zw.format(t.map(({error:i})=>Jw(i)));throw new SyntaxError(r)}return n}function Ic(e=""){let t;try{t=Kw(e)}catch(r){throw new Error(`are invalid JSON: ${r instanceof Error?r.message:r}.`)}if(!t)return;if(!(typeof t=="object"&&!Array.isArray(t)))throw new TypeError("are not a JSON object.");return t}const e8=e=>(t,n)=>{function r({query:o,variables:a,headers:u,response:l}){const{queryEditor:c,variableEditor:f,headerEditor:d,responseEditor:h,defaultHeaders:p}=n();c==null||c.setValue(o??""),f==null||f.setValue(a??""),d==null||d.setValue(u??p??""),h==null||h.setValue(l??"")}function i(o){const{queryEditor:a,variableEditor:u,headerEditor:l,responseEditor:c,operationName:f}=n();return Ip(o,{query:(a==null?void 0:a.getValue())??null,variables:(u==null?void 0:u.getValue())??null,headers:(l==null?void 0:l.getValue())??null,response:(c==null?void 0:c.getValue())??null,operationName:f??null})}return{...e,actions:{addTab(){t(({defaultHeaders:o,onTabChange:a,tabs:u,activeTabIndex:l,actions:c})=>{const f=i({tabs:u,activeTabIndex:l}),d={tabs:[...f.tabs,Bv({headers:o})],activeTabIndex:f.tabs.length};return c.storeTabs(d),r(d.tabs[d.activeTabIndex]),a==null||a(d),d})},changeTab(o){t(({actions:a,onTabChange:u,tabs:l})=>{a.stop();const c={tabs:l,activeTabIndex:o};return a.storeTabs(c),r(c.tabs[c.activeTabIndex]),u==null||u(c),c})},moveTab(o){t(({onTabChange:a,actions:u,tabs:l,activeTabIndex:c})=>{const f=l[c],d={tabs:o,activeTabIndex:o.indexOf(f)};return u.storeTabs(d),r(d.tabs[d.activeTabIndex]),a==null||a(d),d})},closeTab(o){t(({activeTabIndex:a,onTabChange:u,actions:l,tabs:c})=>{a===o&&l.stop();const f={tabs:c.filter((d,h)=>o!==h),activeTabIndex:Math.max(a-1,0)};return l.storeTabs(f),r(f.tabs[f.activeTabIndex]),u==null||u(f),f})},updateActiveTabValues(o){t(({activeTabIndex:a,tabs:u,onTabChange:l,actions:c})=>{const f=Ip({tabs:u,activeTabIndex:a},o);return c.storeTabs(f),l==null||l(f),f})},setEditor({headerEditor:o,queryEditor:a,responseEditor:u,variableEditor:l}){const c=Object.entries({headerEditor:o,queryEditor:a,responseEditor:u,variableEditor:l}).filter(([d,h])=>h),f=Object.fromEntries(c);t(f)},setOperationName(o){t(({onEditOperationName:a,actions:u})=>(u.updateActiveTabValues({operationName:o}),a==null||a(o),{operationName:o}))},setShouldPersistHeaders(o){const{headerEditor:a,tabs:u,activeTabIndex:l,storage:c}=n();if(o){c.set(pt.headers,(a==null?void 0:a.getValue())??"");const f=Cp({tabs:u,activeTabIndex:l},!0);c.set(pt.tabs,f)}else c.set(pt.headers,""),Bw(c);c.set(pt.persistHeaders,o.toString()),t({shouldPersistHeaders:o})},storeTabs({tabs:o,activeTabIndex:a}){const{shouldPersistHeaders:u,storage:l}=n();gs(500,f=>{l.set(pt.tabs,f)})(Cp({tabs:o,activeTabIndex:a},u))},setOperationFacts({documentAST:o,operationName:a,operations:u}){t({documentAST:o,operationName:a,operations:u})},async copyQuery(){const{queryEditor:o,onCopyQuery:a}=n();if(!o)return;const u=o.getValue();a==null||a(u);try{await navigator.clipboard.writeText(u)}catch(l){console.warn("Failed to copy query!",l)}},async prettifyEditors(){const{queryEditor:o,headerEditor:a,variableEditor:u,onPrettifyQuery:l}=n();if(u)try{const c=u.getValue(),f=await Mp(c);f!==c&&u.setValue(f)}catch(c){console.warn("Parsing variables JSON failed, skip prettification.",c)}if(a)try{const c=a.getValue(),f=await Mp(c);f!==c&&a.setValue(f)}catch(c){console.warn("Parsing headers JSON failed, skip prettification.",c)}if(o)try{const c=o.getValue(),f=await l(c);f!==c&&o.setValue(f)}catch(c){console.warn("Parsing query failed, skip prettification.",c)}},mergeQuery(){const{queryEditor:o,documentAST:a,schema:u}=n(),l=o==null?void 0:o.getValue();!a||!l||o.setValue(Qe(Iw(a,u)))}}}};var Vp;(function(e){function t(n){return typeof n=="string"}e.is=t})(Vp||(Vp={}));var Fc;(function(e){function t(n){return typeof n=="string"}e.is=t})(Fc||(Fc={}));var $p;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})($p||($p={}));var eu;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(eu||(eu={}));var Hn;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=eu.MAX_VALUE),i===Number.MAX_VALUE&&(i=eu.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return j.objectLiteral(i)&&j.uinteger(i.line)&&j.uinteger(i.character)}e.is=n})(Hn||(Hn={}));var St;(function(e){function t(r,i,s,o){if(j.uinteger(r)&&j.uinteger(i)&&j.uinteger(s)&&j.uinteger(o))return{start:Hn.create(r,i),end:Hn.create(s,o)};if(Hn.is(r)&&Hn.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${o}]`)}e.create=t;function n(r){let i=r;return j.objectLiteral(i)&&Hn.is(i.start)&&Hn.is(i.end)}e.is=n})(St||(St={}));var tu;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return j.objectLiteral(i)&&St.is(i.range)&&(j.string(i.uri)||j.undefined(i.uri))}e.is=n})(tu||(tu={}));var jp;(function(e){function t(r,i,s,o){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:o}}e.create=t;function n(r){let i=r;return j.objectLiteral(i)&&St.is(i.targetRange)&&j.string(i.targetUri)&&St.is(i.targetSelectionRange)&&(St.is(i.originSelectionRange)||j.undefined(i.originSelectionRange))}e.is=n})(jp||(jp={}));var Lc;(function(e){function t(r,i,s,o){return{red:r,green:i,blue:s,alpha:o}}e.create=t;function n(r){const i=r;return j.objectLiteral(i)&&j.numberRange(i.red,0,1)&&j.numberRange(i.green,0,1)&&j.numberRange(i.blue,0,1)&&j.numberRange(i.alpha,0,1)}e.is=n})(Lc||(Lc={}));var Bp;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){const i=r;return j.objectLiteral(i)&&St.is(i.range)&&Lc.is(i.color)}e.is=n})(Bp||(Bp={}));var Up;(function(e){function t(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}e.create=t;function n(r){const i=r;return j.objectLiteral(i)&&j.string(i.label)&&(j.undefined(i.textEdit)||vs.is(i))&&(j.undefined(i.additionalTextEdits)||j.typedArray(i.additionalTextEdits,vs.is))}e.is=n})(Up||(Up={}));var qp;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(qp||(qp={}));var zp;(function(e){function t(r,i,s,o,a,u){const l={startLine:r,endLine:i};return j.defined(s)&&(l.startCharacter=s),j.defined(o)&&(l.endCharacter=o),j.defined(a)&&(l.kind=a),j.defined(u)&&(l.collapsedText=u),l}e.create=t;function n(r){const i=r;return j.objectLiteral(i)&&j.uinteger(i.startLine)&&j.uinteger(i.startLine)&&(j.undefined(i.startCharacter)||j.uinteger(i.startCharacter))&&(j.undefined(i.endCharacter)||j.uinteger(i.endCharacter))&&(j.undefined(i.kind)||j.string(i.kind))}e.is=n})(zp||(zp={}));var Oc;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return j.defined(i)&&tu.is(i.location)&&j.string(i.message)}e.is=n})(Oc||(Oc={}));var Hp;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Hp||(Hp={}));var Gp;(function(e){e.Unnecessary=1,e.Deprecated=2})(Gp||(Gp={}));var Wp;(function(e){function t(n){const r=n;return j.objectLiteral(r)&&j.string(r.href)}e.is=t})(Wp||(Wp={}));var nu;(function(e){function t(r,i,s,o,a,u){let l={range:r,message:i};return j.defined(s)&&(l.severity=s),j.defined(o)&&(l.code=o),j.defined(a)&&(l.source=a),j.defined(u)&&(l.relatedInformation=u),l}e.create=t;function n(r){var i;let s=r;return j.defined(s)&&St.is(s.range)&&j.string(s.message)&&(j.number(s.severity)||j.undefined(s.severity))&&(j.integer(s.code)||j.string(s.code)||j.undefined(s.code))&&(j.undefined(s.codeDescription)||j.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(j.string(s.source)||j.undefined(s.source))&&(j.undefined(s.relatedInformation)||j.typedArray(s.relatedInformation,Oc.is))}e.is=n})(nu||(nu={}));var bs;(function(e){function t(r,i,...s){let o={title:r,command:i};return j.defined(s)&&s.length>0&&(o.arguments=s),o}e.create=t;function n(r){let i=r;return j.defined(i)&&j.string(i.title)&&j.string(i.command)}e.is=n})(bs||(bs={}));var vs;(function(e){function t(s,o){return{range:s,newText:o}}e.replace=t;function n(s,o){return{range:{start:s,end:s},newText:o}}e.insert=n;function r(s){return{range:s,newText:""}}e.del=r;function i(s){const o=s;return j.objectLiteral(o)&&j.string(o.newText)&&St.is(o.range)}e.is=i})(vs||(vs={}));var Rc;(function(e){function t(r,i,s){const o={label:r};return i!==void 0&&(o.needsConfirmation=i),s!==void 0&&(o.description=s),o}e.create=t;function n(r){const i=r;return j.objectLiteral(i)&&j.string(i.label)&&(j.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(j.string(i.description)||i.description===void 0)}e.is=n})(Rc||(Rc={}));var ys;(function(e){function t(n){const r=n;return j.string(r)}e.is=t})(ys||(ys={}));var Qp;(function(e){function t(s,o,a){return{range:s,newText:o,annotationId:a}}e.replace=t;function n(s,o,a){return{range:{start:s,end:s},newText:o,annotationId:a}}e.insert=n;function r(s,o){return{range:s,newText:"",annotationId:o}}e.del=r;function i(s){const o=s;return vs.is(o)&&(Rc.is(o.annotationId)||ys.is(o.annotationId))}e.is=i})(Qp||(Qp={}));var Pc;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return j.defined(i)&&Bc.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Pc||(Pc={}));var Mc;(function(e){function t(r,i,s){let o={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&j.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||j.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||j.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ys.is(i.annotationId))}e.is=n})(Mc||(Mc={}));var Vc;(function(e){function t(r,i,s,o){let a={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(a.options=s),o!==void 0&&(a.annotationId=o),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&j.string(i.oldUri)&&j.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||j.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||j.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ys.is(i.annotationId))}e.is=n})(Vc||(Vc={}));var $c;(function(e){function t(r,i,s){let o={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&j.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||j.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||j.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||ys.is(i.annotationId))}e.is=n})($c||($c={}));var jc;(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>j.string(i.kind)?Mc.is(i)||Vc.is(i)||$c.is(i):Pc.is(i)))}e.is=t})(jc||(jc={}));var Yp;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return j.defined(i)&&j.string(i.uri)}e.is=n})(Yp||(Yp={}));var Xp;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return j.defined(i)&&j.string(i.uri)&&j.integer(i.version)}e.is=n})(Xp||(Xp={}));var Bc;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return j.defined(i)&&j.string(i.uri)&&(i.version===null||j.integer(i.version))}e.is=n})(Bc||(Bc={}));var Jp;(function(e){function t(r,i,s,o){return{uri:r,languageId:i,version:s,text:o}}e.create=t;function n(r){let i=r;return j.defined(i)&&j.string(i.uri)&&j.string(i.languageId)&&j.integer(i.version)&&j.string(i.text)}e.is=n})(Jp||(Jp={}));var Uc;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(Uc||(Uc={}));var ho;(function(e){function t(n){const r=n;return j.objectLiteral(n)&&Uc.is(r.kind)&&j.string(r.value)}e.is=t})(ho||(ho={}));var Zp;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Zp||(Zp={}));var Kp;(function(e){e.PlainText=1,e.Snippet=2})(Kp||(Kp={}));var em;(function(e){e.Deprecated=1})(em||(em={}));var tm;(function(e){function t(r,i,s){return{newText:r,insert:i,replace:s}}e.create=t;function n(r){const i=r;return i&&j.string(i.newText)&&St.is(i.insert)&&St.is(i.replace)}e.is=n})(tm||(tm={}));var nm;(function(e){e.asIs=1,e.adjustIndentation=2})(nm||(nm={}));var rm;(function(e){function t(n){const r=n;return r&&(j.string(r.detail)||r.detail===void 0)&&(j.string(r.description)||r.description===void 0)}e.is=t})(rm||(rm={}));var im;(function(e){function t(n){return{label:n}}e.create=t})(im||(im={}));var sm;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(sm||(sm={}));var ru;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){const i=r;return j.string(i)||j.objectLiteral(i)&&j.string(i.language)&&j.string(i.value)}e.is=n})(ru||(ru={}));var om;(function(e){function t(n){let r=n;return!!r&&j.objectLiteral(r)&&(ho.is(r.contents)||ru.is(r.contents)||j.typedArray(r.contents,ru.is))&&(n.range===void 0||St.is(n.range))}e.is=t})(om||(om={}));var am;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(am||(am={}));var um;(function(e){function t(n,r,...i){let s={label:n};return j.defined(r)&&(s.documentation=r),j.defined(i)?s.parameters=i:s.parameters=[],s}e.create=t})(um||(um={}));var lm;(function(e){e.Text=1,e.Read=2,e.Write=3})(lm||(lm={}));var cm;(function(e){function t(n,r){let i={range:n};return j.number(r)&&(i.kind=r),i}e.create=t})(cm||(cm={}));var fm;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(fm||(fm={}));var dm;(function(e){e.Deprecated=1})(dm||(dm={}));var hm;(function(e){function t(n,r,i,s,o){let a={name:n,kind:r,location:{uri:s,range:i}};return o&&(a.containerName=o),a}e.create=t})(hm||(hm={}));var pm;(function(e){function t(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(pm||(pm={}));var mm;(function(e){function t(r,i,s,o,a,u){let l={name:r,detail:i,kind:s,range:o,selectionRange:a};return u!==void 0&&(l.children=u),l}e.create=t;function n(r){let i=r;return i&&j.string(i.name)&&j.number(i.kind)&&St.is(i.range)&&St.is(i.selectionRange)&&(i.detail===void 0||j.string(i.detail))&&(i.deprecated===void 0||j.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(mm||(mm={}));var gm;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(gm||(gm={}));var iu;(function(e){e.Invoked=1,e.Automatic=2})(iu||(iu={}));var bm;(function(e){function t(r,i,s){let o={diagnostics:r};return i!=null&&(o.only=i),s!=null&&(o.triggerKind=s),o}e.create=t;function n(r){let i=r;return j.defined(i)&&j.typedArray(i.diagnostics,nu.is)&&(i.only===void 0||j.typedArray(i.only,j.string))&&(i.triggerKind===void 0||i.triggerKind===iu.Invoked||i.triggerKind===iu.Automatic)}e.is=n})(bm||(bm={}));var vm;(function(e){function t(r,i,s){let o={title:r},a=!0;return typeof i=="string"?(a=!1,o.kind=i):bs.is(i)?o.command=i:o.edit=i,a&&s!==void 0&&(o.kind=s),o}e.create=t;function n(r){let i=r;return i&&j.string(i.title)&&(i.diagnostics===void 0||j.typedArray(i.diagnostics,nu.is))&&(i.kind===void 0||j.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||bs.is(i.command))&&(i.isPreferred===void 0||j.boolean(i.isPreferred))&&(i.edit===void 0||jc.is(i.edit))}e.is=n})(vm||(vm={}));var ym;(function(e){function t(r,i){let s={range:r};return j.defined(i)&&(s.data=i),s}e.create=t;function n(r){let i=r;return j.defined(i)&&St.is(i.range)&&(j.undefined(i.command)||bs.is(i.command))}e.is=n})(ym||(ym={}));var xm;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return j.defined(i)&&j.uinteger(i.tabSize)&&j.boolean(i.insertSpaces)}e.is=n})(xm||(xm={}));var Em;(function(e){function t(r,i,s){return{range:r,target:i,data:s}}e.create=t;function n(r){let i=r;return j.defined(i)&&St.is(i.range)&&(j.undefined(i.target)||j.string(i.target))}e.is=n})(Em||(Em={}));var _m;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return j.objectLiteral(i)&&St.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(_m||(_m={}));var Tm;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Tm||(Tm={}));var wm;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(wm||(wm={}));var Sm;(function(e){function t(n){const r=n;return j.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(Sm||(Sm={}));var km;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){const i=r;return i!=null&&St.is(i.range)&&j.string(i.text)}e.is=n})(km||(km={}));var Am;(function(e){function t(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}e.create=t;function n(r){const i=r;return i!=null&&St.is(i.range)&&j.boolean(i.caseSensitiveLookup)&&(j.string(i.variableName)||i.variableName===void 0)}e.is=n})(Am||(Am={}));var Dm;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){const i=r;return i!=null&&St.is(i.range)&&(j.string(i.expression)||i.expression===void 0)}e.is=n})(Dm||(Dm={}));var Nm;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){const i=r;return j.defined(i)&&St.is(r.stoppedLocation)}e.is=n})(Nm||(Nm={}));var qc;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(qc||(qc={}));var zc;(function(e){function t(r){return{value:r}}e.create=t;function n(r){const i=r;return j.objectLiteral(i)&&(i.tooltip===void 0||j.string(i.tooltip)||ho.is(i.tooltip))&&(i.location===void 0||tu.is(i.location))&&(i.command===void 0||bs.is(i.command))}e.is=n})(zc||(zc={}));var Cm;(function(e){function t(r,i,s){const o={position:r,label:i};return s!==void 0&&(o.kind=s),o}e.create=t;function n(r){const i=r;return j.objectLiteral(i)&&Hn.is(i.position)&&(j.string(i.label)||j.typedArray(i.label,zc.is))&&(i.kind===void 0||qc.is(i.kind))&&i.textEdits===void 0||j.typedArray(i.textEdits,vs.is)&&(i.tooltip===void 0||j.string(i.tooltip)||ho.is(i.tooltip))&&(i.paddingLeft===void 0||j.boolean(i.paddingLeft))&&(i.paddingRight===void 0||j.boolean(i.paddingRight))}e.is=n})(Cm||(Cm={}));var Im;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Im||(Im={}));var Fm;(function(e){function t(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}e.create=t})(Fm||(Fm={}));var Lm;(function(e){function t(n){return{items:n}}e.create=t})(Lm||(Lm={}));var Om;(function(e){e.Invoked=0,e.Automatic=1})(Om||(Om={}));var Rm;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Rm||(Rm={}));var Pm;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Pm||(Pm={}));var Mm;(function(e){function t(n){const r=n;return j.objectLiteral(r)&&Fc.is(r.uri)&&j.string(r.name)}e.is=t})(Mm||(Mm={}));var Vm;(function(e){function t(s,o,a,u){return new t8(s,o,a,u)}e.create=t;function n(s){let o=s;return!!(j.defined(o)&&j.string(o.uri)&&(j.undefined(o.languageId)||j.string(o.languageId))&&j.uinteger(o.lineCount)&&j.func(o.getText)&&j.func(o.positionAt)&&j.func(o.offsetAt))}e.is=n;function r(s,o){let a=s.getText(),u=i(o,(c,f)=>{let d=c.range.start.line-f.range.start.line;return d===0?c.range.start.character-f.range.start.character:d}),l=a.length;for(let c=u.length-1;c>=0;c--){let f=u[c],d=s.offsetAt(f.range.start),h=s.offsetAt(f.range.end);if(h<=l)a=a.substring(0,d)+f.newText+a.substring(h,a.length);else throw new Error("Overlapping edit");l=d}return a}e.applyEdits=r;function i(s,o){if(s.length<=1)return s;const a=s.length/2|0,u=s.slice(0,a),l=s.slice(a);i(u,o),i(l,o);let c=0,f=0,d=0;for(;c<u.length&&f<l.length;)o(u[c],l[f])<=0?s[d++]=u[c++]:s[d++]=l[f++];for(;c<u.length;)s[d++]=u[c++];for(;f<l.length;)s[d++]=l[f++];return s}})(Vm||(Vm={}));class t8{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let s=n.charAt(i);r=s==="\r"||s===`
249
+ `,s==="\r"&&i+1<n.length&&n.charAt(i+1)===`
250
+ `&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Hn.create(0,t);for(;r<i;){let o=Math.floor((r+i)/2);n[o]>t?i=o:r=o+1}let s=r-1;return Hn.create(s,t-n[s])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}}var j;(function(e){const t=Object.prototype.toString;function n(h){return typeof h<"u"}e.defined=n;function r(h){return typeof h>"u"}e.undefined=r;function i(h){return h===!0||h===!1}e.boolean=i;function s(h){return t.call(h)==="[object String]"}e.string=s;function o(h){return t.call(h)==="[object Number]"}e.number=o;function a(h,p,b){return t.call(h)==="[object Number]"&&p<=h&&h<=b}e.numberRange=a;function u(h){return t.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}e.integer=u;function l(h){return t.call(h)==="[object Number]"&&0<=h&&h<=2147483647}e.uinteger=l;function c(h){return t.call(h)==="[object Function]"}e.func=c;function f(h){return h!==null&&typeof h=="object"}e.objectLiteral=f;function d(h,p){return Array.isArray(h)&&h.every(p)}e.typedArray=d})(j||(j={}));class $m{constructor(t){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const n=this._sourceText.charAt(this._pos);return this._pos++,n},this.eat=n=>{if(this._testNextCharacter(n))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=n=>{let r=this._testNextCharacter(n),i=!1;for(r&&(i=r,this._start=this._pos);r;)this._pos++,r=this._testNextCharacter(n),i=!0;return i},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=n=>{this._pos=n},this.match=(n,r=!0,i=!1)=>{let s=null,o=null;return typeof n=="string"?(o=new RegExp(n,i?"i":"g").test(this._sourceText.slice(this._pos,this._pos+n.length)),s=n):n instanceof RegExp&&(o=this._sourceText.slice(this._pos).match(n),s=o==null?void 0:o[0]),o!=null&&(typeof n=="string"||o instanceof Array&&this._sourceText.startsWith(o[0],this._pos))?(r&&(this._start=this._pos,s&&s.length&&(this._pos+=s.length)),o):!1},this.backUp=n=>{this._pos-=n},this.column=()=>this._pos,this.indentation=()=>{const n=this._sourceText.match(/\s*/);let r=0;if(n&&n.length!==0){const i=n[0];let s=0;for(;i.length>s;)i.charCodeAt(s)===9?r+=2:r++,s++}return r},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=t}_testNextCharacter(t){const n=this._sourceText.charAt(this._pos);let r=!1;return typeof t=="string"?r=n===t:r=t instanceof RegExp?t.test(n):t(n),r}}function yt(e){return{ofRule:e}}function Ue(e,t){return{ofRule:e,isList:!0,separator:t}}function n8(e,t){const n=e.match;return e.match=r=>{let i=!1;return n&&(i=n(r)),i&&t.every(s=>s.match&&!s.match(r))},e}function dl(e,t){return{style:t,match:n=>n.kind===e}}function De(e,t){return{style:t||"punctuation",match:n=>n.kind==="Punctuation"&&n.value===e}}const r8=e=>e===" "||e===" "||e===","||e===`
251
+ `||e==="\r"||e==="\uFEFF"||e===" ",i8={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},s8={Document:[Ue("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return w.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[Ht("query"),yt(nt("def")),yt("VariableDefinitions"),Ue("Directive"),"SelectionSet"],Mutation:[Ht("mutation"),yt(nt("def")),yt("VariableDefinitions"),Ue("Directive"),"SelectionSet"],Subscription:[Ht("subscription"),yt(nt("def")),yt("VariableDefinitions"),Ue("Directive"),"SelectionSet"],VariableDefinitions:[De("("),Ue("VariableDefinition"),De(")")],VariableDefinition:["Variable",De(":"),"Type",yt("DefaultValue")],Variable:[De("$","variable"),nt("variable")],DefaultValue:[De("="),"Value"],SelectionSet:[De("{"),Ue("Selection"),De("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[nt("property"),De(":"),nt("qualifier"),yt("Arguments"),Ue("Directive"),yt("SelectionSet")],Field:[nt("property"),yt("Arguments"),Ue("Directive"),yt("SelectionSet")],Arguments:[De("("),Ue("Argument"),De(")")],Argument:[nt("attribute"),De(":"),"Value"],FragmentSpread:[De("..."),nt("def"),Ue("Directive")],InlineFragment:[De("..."),yt("TypeCondition"),Ue("Directive"),"SelectionSet"],FragmentDefinition:[Ht("fragment"),yt(n8(nt("def"),[Ht("on")])),"TypeCondition",Ue("Directive"),"SelectionSet"],TypeCondition:[Ht("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return e.value==="null"?"NullValue":"EnumValue"}},NumberValue:[dl("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[dl("Name","builtin")],NullValue:[dl("Name","keyword")],EnumValue:[nt("string-2")],ListValue:[De("["),Ue("Value"),De("]")],ObjectValue:[De("{"),Ue("ObjectField"),De("}")],ObjectField:[nt("attribute"),De(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[De("["),"Type",De("]"),yt(De("!"))],NonNullType:["NamedType",yt(De("!"))],NamedType:[o8("atom")],Directive:[De("@","meta"),nt("meta"),yt("Arguments")],DirectiveDef:[Ht("directive"),De("@","meta"),nt("meta"),yt("ArgumentsDef"),Ht("on"),Ue("DirectiveLocation",De("|"))],InterfaceDef:[Ht("interface"),nt("atom"),yt("Implements"),Ue("Directive"),De("{"),Ue("FieldDef"),De("}")],Implements:[Ht("implements"),Ue("NamedType",De("&"))],DirectiveLocation:[nt("string-2")],SchemaDef:[Ht("schema"),Ue("Directive"),De("{"),Ue("OperationTypeDef"),De("}")],OperationTypeDef:[nt("keyword"),De(":"),nt("atom")],ScalarDef:[Ht("scalar"),nt("atom"),Ue("Directive")],ObjectTypeDef:[Ht("type"),nt("atom"),yt("Implements"),Ue("Directive"),De("{"),Ue("FieldDef"),De("}")],FieldDef:[nt("property"),yt("ArgumentsDef"),De(":"),"Type",Ue("Directive")],ArgumentsDef:[De("("),Ue("InputValueDef"),De(")")],InputValueDef:[nt("attribute"),De(":"),"Type",yt("DefaultValue"),Ue("Directive")],UnionDef:[Ht("union"),nt("atom"),Ue("Directive"),De("="),Ue("UnionMember",De("|"))],UnionMember:["NamedType"],EnumDef:[Ht("enum"),nt("atom"),Ue("Directive"),De("{"),Ue("EnumValueDef"),De("}")],EnumValueDef:[nt("string-2"),Ue("Directive")],InputDef:[Ht("input"),nt("atom"),Ue("Directive"),De("{"),Ue("InputValueDef"),De("}")],ExtendDef:[Ht("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return w.SCHEMA_EXTENSION;case"scalar":return w.SCALAR_TYPE_EXTENSION;case"type":return w.OBJECT_TYPE_EXTENSION;case"interface":return w.INTERFACE_TYPE_EXTENSION;case"union":return w.UNION_TYPE_EXTENSION;case"enum":return w.ENUM_TYPE_EXTENSION;case"input":return w.INPUT_OBJECT_TYPE_EXTENSION}},[w.SCHEMA_EXTENSION]:["SchemaDef"],[w.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[w.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[w.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[w.UNION_TYPE_EXTENSION]:["UnionDef"],[w.ENUM_TYPE_EXTENSION]:["EnumDef"],[w.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function Ht(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function nt(e){return{style:e,match:t=>t.kind==="Name",update(t,n){t.name=n.value}}}function o8(e){return{style:e,match:t=>t.kind==="Name",update(t,n){var r;!((r=t.prevState)===null||r===void 0)&&r.prevState&&(t.name=n.value,t.prevState.prevState.type=n.value)}}}function a8(e={eatWhitespace:t=>t.eatWhile(r8),lexRules:i8,parseRules:s8,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Us(e.parseRules,t,w.DOCUMENT),t},token(t,n){return u8(t,n,e)}}}function u8(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:i,parseRules:s,eatWhitespace:o,editorConfig:a}=n;if(t.rule&&t.rule.length===0?Pd(t):t.needsAdvance&&(t.needsAdvance=!1,Hc(t,!0)),e.sol()){const c=(a==null?void 0:a.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/c)}if(o(e))return"ws";const u=c8(i,e);if(!u)return e.match(/\S+/)||e.match(/\s/),Us(hl,t,"Invalid"),"invalidchar";if(u.kind==="Comment")return Us(hl,t,"Comment"),"comment";const l=jm({},t);if(u.kind==="Punctuation"){if(/^[{([]/.test(u.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(u.value)){const c=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&c.length>0&&c.at(-1)<t.indentLevel&&(t.indentLevel=c.at(-1))}}for(;t.rule;){let c=typeof t.rule=="function"?t.step===0?t.rule(u,e):null:t.rule[t.step];if(t.needsSeparator&&(c=c==null?void 0:c.separator),c){if(c.ofRule&&(c=c.ofRule),typeof c=="string"){Us(s,t,c);continue}if(!((r=c.match)===null||r===void 0)&&r.call(c,u))return c.update&&c.update(t,u),u.kind==="Punctuation"?Hc(t,!0):t.needsAdvance=!0,c.style}l8(t)}return jm(t,l),Us(hl,t,"Invalid"),"invalidchar"}function jm(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}const hl={Invalid:[],Comment:[]};function Us(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeparator=!1}function Pd(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function Hc(e,t){var n;if(Bm(e)&&e.rule){const r=e.rule[e.step];if(r.separator){const{separator:i}=r;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&i.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)Pd(e),e.rule&&(Bm(e)?!((n=e.rule)===null||n===void 0)&&n[e.step].separator&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function Bm(e){const t=Array.isArray(e.rule)&&typeof e.rule[e.step]!="string"&&e.rule[e.step];return t&&t.isList}function l8(e){for(;e.rule&&!(Array.isArray(e.rule)&&e.rule[e.step].ofRule);)Pd(e);e.rule&&Hc(e,!1)}function c8(e,t){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}function f8(e,t){const n=e.split(`
252
+ `),r=a8();let i=r.startState(),s="",o=new $m("");for(let a=0;a<n.length;a++){for(o=new $m(n[a]);!o.eol()&&(s=r.token(o,i),t(o,i,s,a)!=="BREAK"););t(o,i,s,a),i.kind||(i=r.startState())}return{start:o.getStartOfToken(),end:o.getCurrentPosition(),string:o.current(),state:i,style:s}}var Xs;(function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"})(Xs||(Xs={}));const d8=[w.SCHEMA_DEFINITION,w.OPERATION_TYPE_DEFINITION,w.SCALAR_TYPE_DEFINITION,w.OBJECT_TYPE_DEFINITION,w.INTERFACE_TYPE_DEFINITION,w.UNION_TYPE_DEFINITION,w.ENUM_TYPE_DEFINITION,w.INPUT_OBJECT_TYPE_DEFINITION,w.DIRECTIVE_DEFINITION,w.SCHEMA_EXTENSION,w.SCALAR_TYPE_EXTENSION,w.OBJECT_TYPE_EXTENSION,w.INTERFACE_TYPE_EXTENSION,w.UNION_TYPE_EXTENSION,w.ENUM_TYPE_EXTENSION,w.INPUT_OBJECT_TYPE_EXTENSION],h8=e=>{let t=Xs.UNKNOWN;if(e)try{nn($r(e),{enter(n){if(n.kind==="Document"){t=Xs.EXECUTABLE;return}return d8.includes(n.kind)?(t=Xs.TYPE_SYSTEM,mi):!1}})}catch{return t}return t};function p8(e,t){return h8(e)}function m8(e,t,n=0){let r=null,i=null,s=null;const o=f8(e,(a,u,l,c)=>{if(!(c!==t.line||a.getCurrentPosition()+n<t.character+1))return r=l,i=Object.assign({},u),s=a.current(),"BREAK"});return{start:o.start,end:o.end,string:s||o.string,state:i||o.state,style:r||o.style}}function g8(e,t,n,r,i){const s=m8(e,t,1);if(!s)return null;const o=s.state.kind==="Invalid"?s.state.prevState:s.state;if(!o)return null;const a=v8(n,s.state),u=p8(e);return{token:s,state:o,typeInfo:a,mode:u}}function Um(e,t,n){return n===Fi.name&&e.getQueryType()===t?Fi:n===Li.name&&e.getQueryType()===t?Li:n===Oi.name&&Xn(t)?Oi:"getFields"in t?t.getFields()[n]:null}function b8(e,t){const n=[];let r=e;for(;r!=null&&r.kind;)n.push(r),r=r.prevState;for(let i=n.length-1;i>=0;i--)t(n[i])}function v8(e,t){let n,r,i,s,o,a,u,l,c,f,d;return b8(t,h=>{var p;switch(h.kind){case ft.QUERY:case"ShortQuery":f=e.getQueryType();break;case ft.MUTATION:f=e.getMutationType();break;case ft.SUBSCRIPTION:f=e.getSubscriptionType();break;case ft.INLINE_FRAGMENT:case ft.FRAGMENT_DEFINITION:h.type&&(f=e.getType(h.type));break;case ft.FIELD:case ft.ALIASED_FIELD:{!f||!h.name?o=null:(o=c?Um(e,c,h.name):null,f=o?o.type:null);break}case ft.SELECTION_SET:c=Tt(f);break;case ft.DIRECTIVE:i=h.name?e.getDirective(h.name):null;break;case ft.INTERFACE_DEF:h.name&&(u=null,d=new Ci({name:h.name,interfaces:[],fields:{}}));break;case ft.OBJECT_TYPE_DEF:h.name&&(d=null,u=new _n({name:h.name,interfaces:[],fields:{}}));break;case ft.ARGUMENTS:{if(h.prevState)switch(h.prevState.kind){case ft.FIELD:r=o&&o.args;break;case ft.DIRECTIVE:r=i&&i.args;break;case ft.ALIASED_FIELD:{const E=(p=h.prevState)===null||p===void 0?void 0:p.name;if(!E){r=null;break}const T=c?Um(e,c,E):null;if(!T){r=null;break}r=T.args;break}default:r=null;break}else r=null;break}case ft.ARGUMENT:if(r){for(let E=0;E<r.length;E++)if(r[E].name===h.name){n=r[E];break}}a=n==null?void 0:n.type;break;case ft.VARIABLE_DEFINITION:case ft.VARIABLE:f=a;break;case ft.ENUM_VALUE:const b=Tt(a);s=b instanceof Lr?b.getValues().find(E=>E.value===h.name):null;break;case ft.LIST_VALUE:const v=ku(a);a=v instanceof Bt?v.ofType:null;break;case ft.OBJECT_VALUE:const _=Tt(a);l=_ instanceof Ii?_.getFields():null;break;case ft.OBJECT_FIELD:const x=h.name&&l?l[h.name]:null;a=x==null?void 0:x.type,o=x,f=o?o.type:null;break;case ft.NAMED_TYPE:h.name&&(f=e.getType(h.name));break}}),{argDef:n,argDefs:r,directiveDef:i,enumValue:s,fieldDef:o,inputType:a,objectFieldDefs:l,parentType:c,type:f,interfaceDef:d,objectTypeDef:u}}const y8={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type",VARIABLE:"Variable"},ft=Object.assign(Object.assign({},w),y8);var bn;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(bn||(bn={}));bn.Function,bn.Function,bn.Function,bn.Function,bn.Function,bn.Function;bn.Function,bn.Function,bn.Function,bn.Function,bn.Constructor;var Os={exports:{}},qm;function x8(){if(qm)return Os.exports;qm=1;function e(t,n){if(t!=null)return t;var r=new Error(n!==void 0?n:"Got unexpected "+t);throw r.framesToPop=1,r}return Os.exports=e,Os.exports.default=e,Object.defineProperty(Os.exports,"__esModule",{value:!0}),Os.exports}var E8=x8();const zm=Pf(E8),_8=(e,t)=>{if(!t)return[];const n=new Map,r=new Set;nn(e,{FragmentDefinition(o){n.set(o.name.value,!0)},FragmentSpread(o){r.has(o.name.value)||r.add(o.name.value)}});const i=new Set;for(const o of r)!n.has(o)&&t.has(o)&&i.add(zm(t.get(o)));const s=[];for(const o of i)nn(o,{FragmentSpread(a){!r.has(a.name.value)&&t.get(a.name.value)&&(i.add(zm(t.get(a.name.value))),r.add(a.name.value))}}),n.has(o.name.value)||s.push(o);return s};class T8{constructor(t,n){this.lessThanOrEqualTo=r=>this.line<r.line||this.line===r.line&&this.character<=r.character,this.line=t,this.character=n}setLine(t){this.line=t}setCharacter(t){this.character=t}}function w8(e,t){const n=Object.create(null);for(const r of t.definitions)if(r.kind==="OperationDefinition"){const{variableDefinitions:i}=r;if(i)for(const{variable:s,type:o}of i){const a=rn(e,o);a?n[s.name.value]=a:o.kind===w.NAMED_TYPE&&o.name.value==="Float"&&(n[s.name.value]=td)}}return n}function S8(e,t){const n=t?w8(t,e):void 0,r=[];return nn(e,{OperationDefinition(i){r.push(i)}}),{variableToType:n,operations:r}}function k8(e,t){if(t)try{const n=$r(t);return Object.assign(Object.assign({},S8(n,e)),{documentAST:n})}catch{}}/*!
253
+ * is-primitive <https://github.com/jonschlinkert/is-primitive>
254
+ *
255
+ * Copyright (c) 2014-present, Jon Schlinkert.
256
+ * Released under the MIT License.
257
+ */var pl,Hm;function A8(){return Hm||(Hm=1,pl=function(t){return typeof t=="object"?t===null:typeof t!="function"}),pl}/*!
258
+ * isobject <https://github.com/jonschlinkert/isobject>
259
+ *
260
+ * Copyright (c) 2014-2017, Jon Schlinkert.
261
+ * Released under the MIT License.
262
+ */var ml,Gm;function zv(){return Gm||(Gm=1,ml=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}),ml}/*!
263
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
264
+ *
265
+ * Copyright (c) 2014-2017, Jon Schlinkert.
266
+ * Released under the MIT License.
267
+ */var gl,Wm;function D8(){if(Wm)return gl;Wm=1;var e=zv();function t(n){return e(n)===!0&&Object.prototype.toString.call(n)==="[object Object]"}return gl=function(r){var i,s;return!(t(r)===!1||(i=r.constructor,typeof i!="function")||(s=i.prototype,t(s)===!1)||s.hasOwnProperty("isPrototypeOf")===!1)},gl}/*!
268
+ * set-value <https://github.com/jonschlinkert/set-value>
269
+ *
270
+ * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
271
+ * Released under the MIT License.
272
+ */var bl,Qm;function N8(){if(Qm)return bl;Qm=1;const{deleteProperty:e}=Reflect,t=A8(),n=D8(),r=h=>typeof h=="object"&&h!==null||typeof h=="function",i=h=>h==="__proto__"||h==="constructor"||h==="prototype",s=h=>{if(!t(h))throw new TypeError("Object keys must be strings or symbols");if(i(h))throw new Error(`Cannot set unsafe key: "${h}"`)},o=h=>Array.isArray(h)?h.flat().map(String).join(","):h,a=(h,p)=>{if(typeof h!="string"||!p)return h;let b=h+";";return p.arrays!==void 0&&(b+=`arrays=${p.arrays};`),p.separator!==void 0&&(b+=`separator=${p.separator};`),p.split!==void 0&&(b+=`split=${p.split};`),p.merge!==void 0&&(b+=`merge=${p.merge};`),p.preservePaths!==void 0&&(b+=`preservePaths=${p.preservePaths};`),b},u=(h,p,b)=>{const v=o(p?a(h,p):h);s(v);const _=d.cache.get(v)||b();return d.cache.set(v,_),_},l=(h,p={})=>{const b=p.separator||".",v=b==="/"?!1:p.preservePaths;if(typeof h=="string"&&v!==!1&&/\//.test(h))return[h];const _=[];let x="";const E=T=>{let k;T.trim()!==""&&Number.isInteger(k=Number(T))?_.push(k):_.push(T)};for(let T=0;T<h.length;T++){const k=h[T];if(k==="\\"){x+=h[++T];continue}if(k===b){E(x),x="";continue}x+=k}return x&&E(x),_},c=(h,p)=>p&&typeof p.split=="function"?p.split(h):typeof h=="symbol"?[h]:Array.isArray(h)?h:u(h,p,()=>l(h,p)),f=(h,p,b,v)=>{if(s(p),b===void 0)e(h,p);else if(v&&v.merge){const _=v.merge==="function"?v.merge:Object.assign;_&&n(h[p])&&n(b)?h[p]=_(h[p],b):h[p]=b}else h[p]=b;return h},d=(h,p,b,v)=>{if(!p||!r(h))return h;const _=c(p,v);let x=h;for(let E=0;E<_.length;E++){const T=_[E],k=_[E+1];if(s(T),k===void 0){f(x,T,b,v);break}if(typeof k=="number"&&!Array.isArray(x[T])){x=x[T]=[];continue}r(x[T])||(x[T]={}),x=x[T]}return h};return d.split=c,d.cache=new Map,d.clear=()=>{d.cache=new Map},bl=d,bl}var C8=N8();const vl=Pf(C8);/*!
273
+ * get-value <https://github.com/jonschlinkert/get-value>
274
+ *
275
+ * Copyright (c) 2014-2018, Jon Schlinkert.
276
+ * Released under the MIT License.
277
+ */var yl,Ym;function I8(){if(Ym)return yl;Ym=1;const e=zv();yl=function(s,o,a){if(e(a)||(a={default:a}),!i(s))return typeof a.default<"u"?a.default:s;typeof o=="number"&&(o=String(o));const u=Array.isArray(o),l=typeof o=="string",c=a.separator||".",f=a.joinChar||(typeof c=="string"?c:".");if(!l&&!u)return s;if(l&&o in s)return r(o,s,a)?s[o]:a.default;let d=u?o:n(o,c,a),h=d.length,p=0;do{let b=d[p];for(typeof b=="number"&&(b=String(b));b&&b.slice(-1)==="\\";)b=t([b.slice(0,-1),d[++p]||""],f,a);if(b in s){if(!r(b,s,a))return a.default;s=s[b]}else{let v=!1,_=p+1;for(;_<h;)if(b=t([b,d[_++]],f,a),v=b in s){if(!r(b,s,a))return a.default;s=s[b],p=_-1;break}if(!v)return a.default}}while(++p<h&&i(s));return p===h?s:a.default};function t(s,o,a){return typeof a.join=="function"?a.join(s):s[0]+o+s[1]}function n(s,o,a){return typeof a.split=="function"?a.split(s):s.split(o)}function r(s,o,a){return typeof a.isValid=="function"?a.isValid(s,o):!0}function i(s){return e(s)||Array.isArray(s)||typeof s=="function"}return yl}var F8=I8();const L8=Pf(F8),O8=e=>(t,n)=>{function r(){const{queryEditor:i,schema:s,getDefaultFieldNames:o}=n();if(!i)return;const a=i.getValue(),{insertions:u,result:l=""}=Sw(s,a,o);if(!u.length)return l;const c=i.getModel(),f=i.getSelection(),d=c.getOffsetAt(f.getPosition());c.setValue(l);let h=0;const p=u.map(({index:x,string:E})=>{const T=c.getPositionAt(x+h),k=c.getPositionAt(x+(h+=E.length));return{range:new hr(T.lineNumber,T.column,k.lineNumber,k.column),options:{className:"auto-inserted-leaf",hoverMessage:{value:"Automatically added leaf fields"},isWholeLine:!1}}}),b=i.createDecorationsCollection([]);b.set(p),setTimeout(()=>{b.clear()},7e3);let v=d;for(const{index:x,string:E}of u)x<d&&(v+=E.length);const _=c.getPositionAt(v);return i.setPosition(_),l}return{...e,isFetching:!1,subscription:null,queryId:0,actions:{stop(){t(({subscription:i})=>(i==null||i.unsubscribe(),{isFetching:!1,subscription:null}))},async run(){const{externalFragments:i,headerEditor:s,queryEditor:o,responseEditor:a,variableEditor:u,actions:l,operationName:c,documentAST:f,subscription:d,overrideOperationName:h,queryId:p,fetcher:b}=n();if(!o||!a)return;if(d){l.stop();return}function v(I){a==null||a.setValue(I),l.updateActiveTabValues({response:I})}function _(I,U){if(!U)return;v(Ys({message:`${U===u?"Variables":"Request headers"} ${I.message}`}))}const x=p+1;t({queryId:x});let E=r()||o.getValue(),T;try{T=Ic(u==null?void 0:u.getValue())}catch(I){_(I,u);return}let k;try{k=Ic(s==null?void 0:s.getValue())}catch(I){_(I,s);return}const A=f?_8(f,i):[];A.length&&(E+=`
278
+ `+A.map(I=>Qe(I)).join(`
279
+ `)),v(""),t({isFetching:!0});try{const I={},U=Z=>{if(x!==n().queryId)return;let O=Array.isArray(Z)?Z:!1;if(!O&&typeof Z=="object"&&"hasNext"in Z&&(O=[Z]),O){for(const N of O)Hv(I,N);t({isFetching:!1}),v(Cc(I))}else t({isFetching:!1}),v(Cc(Z))},W=await b({query:E,variables:T,operationName:h??c},{headers:k,documentAST:f});if(Zb(W)){const Z=W.subscribe({next(O){U(O)},error(O){t({isFetching:!1}),v(Ys(O)),t({subscription:null})},complete(){t({isFetching:!1,subscription:null})}});t({subscription:Z})}else if(Kb(W)){t({subscription:{unsubscribe:()=>{var O,N;return(N=(O=W[Symbol.asyncIterator]()).return)==null?void 0:N.call(O)}}});for await(const O of W)U(O);t({isFetching:!1,subscription:null})}else U(W)}catch(I){t({isFetching:!1}),v(Ys(I)),t({subscription:null})}}}}},Rs=new WeakMap;function Hv(e,t){var n,r,i;let s=["data",...t.path??[]];for(const l of[e,t])if(l.pending){let c=Rs.get(e);c===void 0&&(c=new Map,Rs.set(e,c));for(const{id:f,path:d}of l.pending)c.set(f,["data",...d])}const{items:o,data:a,id:u}=t;if(o)if(u){if(s=(n=Rs.get(e))==null?void 0:n.get(u),s===void 0)throw new Error("Invalid incremental delivery format.");L8(e,s.join(".")).push(...o)}else{s=["data",...t.path??[]];for(const l of o)vl(e,s.join("."),l),s[s.length-1]++}if(a){if(u){if(s=(r=Rs.get(e))==null?void 0:r.get(u),s===void 0)throw new Error("Invalid incremental delivery format.");const{subPath:l}=t;l!==void 0&&(s=[...s,...l])}vl(e,s.join("."),a,{merge:!0})}if(t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&vl(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const l of t.incremental)Hv(e,l);if(t.completed)for(const{id:l,errors:c}of t.completed)(i=Rs.get(e))==null||i.delete(l),c&&(e.errors||(e.errors=[]),e.errors.push(...c))}const R8=e=>t=>({plugins:[],visiblePlugin:null,...e,actions:{setVisiblePlugin(n=null){t(r=>{const{visiblePlugin:i,plugins:s,onTogglePluginVisibility:o,storage:a}=r,u=typeof n=="string",l=n&&s.find(c=>(u?c.title:c)===n)||null;return l===i?r:(o==null||o(l),a.set(pt.visiblePlugin,(l==null?void 0:l.title)??""),{visiblePlugin:l})})},setPlugins(n){const r=new Set,i="All GraphiQL plugins must have a unique title";for(const{title:s}of n){if(typeof s!="string"||!s)throw new Error(i);if(r.has(s))throw new Error(`${i}, found two plugins with the title '${s}'`);r.add(s)}t({plugins:n})}}}),P8=e=>(t,n)=>({...e,fetchError:null,isIntrospecting:!1,schema:null,validationErrors:[],schemaReference:null,requestCounter:0,shouldIntrospect:!0,actions:{setSchemaReference(r){t({schemaReference:r})},async introspect(){const{requestCounter:r,shouldIntrospect:i,onSchemaChange:s,headerEditor:o,fetcher:a,inputValueDeprecation:u,introspectionQueryName:l,schemaDescription:c}=n();if(!i)return;const f=r+1;t({requestCounter:f,isIntrospecting:!0,fetchError:null});try{let d=function(T){const k=T4(a({query:T,operationName:l},p));if(!x4(k))throw new TypeError("Fetcher did not return a Promise for introspection.");return k},h;try{h=Ic(o==null?void 0:o.getValue())}catch(T){throw new Error(`Introspection failed. Request headers ${T instanceof Error?T.message:T}`)}const p=h?{headers:h}:{},b=Nd({inputValueDeprecation:u,schemaDescription:c}),v=l==="IntrospectionQuery"?b:b.replace("query IntrospectionQuery",`query ${l}`);let _=await d(v);(typeof _!="object"||!("data"in _))&&(_=await d(b.replace("subscriptionType { name }",""))),t({isIntrospecting:!1});let x;if(_.data&&"__schema"in _.data)x=_.data;else{const T=typeof _=="string"?_:Cc(_);t({fetchError:T})}if(f!==n().requestCounter||!x)return;const E=kv(x);t({schema:E}),s==null||s(E)}catch(d){if(f!==n().requestCounter)return;d instanceof Error&&delete d.stack,t({isIntrospecting:!1,fetchError:Ys(d)})}}}}),M8=({editorTheme:e})=>(t,n)=>({theme:null,actions:{setTheme(r){const{storage:i}=n();i.set(pt.theme,r??""),document.body.classList.remove("graphiql-light","graphiql-dark"),r&&document.body.classList.add(`graphiql-${r}`);const{monaco:s}=Vu.getState(),o=r??V8(),a=e[o];s==null||s.editor.setTheme(a),t({theme:r,monacoTheme:a})}}});function V8(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const Gv=g.createContext(null),$8=e=>{const t=me.c(5);if(!e.fetcher)throw new TypeError("The `GraphiQLProvider` component requires a `fetcher` function to be passed as prop.");if(e.validationRules)throw new TypeError("The `validationRules` prop has been removed. Use custom GraphQL worker, see https://github.com/graphql/graphiql/tree/main/packages/monaco-graphql#custom-webworker-for-passing-non-static-config-to-worker.");if(e.query)throw new TypeError(`The \`query\` prop has been removed. Use \`initialQuery\` prop instead, or set value programmatically using:
280
+
281
+ const queryEditor = useGraphiQL(state => state.queryEditor)
282
+
283
+ useEffect(() => {
284
+ queryEditor.setValue(query)
285
+ }, [query])`);if(e.variables)throw new TypeError(`The \`variables\` prop has been removed. Use \`initialVariables\` prop instead, or set value programmatically using:
286
+
287
+ const variableEditor = useGraphiQL(state => state.variableEditor)
288
+
289
+ useEffect(() => {
290
+ variableEditor.setValue(variables)
291
+ }, [variables])`);if(e.headers)throw new TypeError(`The \`headers\` prop has been removed. Use \`initialHeaders\` prop instead, or set value programmatically using:
292
+
293
+ const headerEditor = useGraphiQL(state => state.headerEditor)
294
+
295
+ useEffect(() => {
296
+ headerEditor.setValue(headers)
297
+ }, [headers])`);if(e.response)throw new TypeError(`The \`response\` prop has been removed. Set value programmatically using:
298
+
299
+ const responseEditor = useGraphiQL(state => state.responseEditor)
300
+
301
+ useEffect(() => {
302
+ responseEditor.setValue(response)
303
+ }, [response])`);const{actions:n}=Po(),[r,i]=g.useState(!1);let s;t[0]!==n?(s=()=>{n.initialize(),i(!0)},t[0]=n,t[1]=s):s=t[1];let o;if(t[2]===Symbol.for("react.memo_cache_sentinel")?(o=[],t[2]=o):o=t[2],g.useEffect(s,o),!r)return null;let a;return t[3]!==e?(a=y.jsx(j8,{...e}),t[3]=e,t[4]=a):a=t[4],a},j8=e=>{const t=me.c(76);let n,r,i,s,o,a,u,l,c,f,d,h,p,b,v,_,x,E,T,k,A,I,U,D,z,W,Z;t[0]!==e?({defaultHeaders:i,defaultQuery:_,defaultTabs:s,externalFragments:o,onEditOperationName:c,onTabChange:d,shouldPersistHeaders:T,onCopyQuery:l,onPrettifyQuery:k,dangerouslyAssumeSchemaIsValid:A,fetcher:a,inputValueDeprecation:I,introspectionQueryName:U,onSchemaChange:f,schema:v,schemaDescription:D,getDefaultFieldNames:u,operationName:z,onTogglePluginVisibility:h,plugins:W,referencePlugin:b,visiblePlugin:Z,children:r,defaultTheme:x,editorTheme:E,storage:n,...p}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=u,t[8]=l,t[9]=c,t[10]=f,t[11]=d,t[12]=h,t[13]=p,t[14]=b,t[15]=v,t[16]=_,t[17]=x,t[18]=E,t[19]=T,t[20]=k,t[21]=A,t[22]=I,t[23]=U,t[24]=D,t[25]=z,t[26]=W,t[27]=Z):(n=t[1],r=t[2],i=t[3],s=t[4],o=t[5],a=t[6],u=t[7],l=t[8],c=t[9],f=t[10],d=t[11],h=t[12],p=t[13],b=t[14],v=t[15],_=t[16],x=t[17],E=t[18],T=t[19],k=t[20],A=t[21],I=t[22],U=t[23],D=t[24],z=t[25],W=t[26],Z=t[27]);const O=_===void 0?l4:_,N=T===void 0?!1:T,M=k===void 0?c4:k,q=A===void 0?!1:A,Q=I===void 0?!1:I,$=U===void 0?"IntrospectionQuery":U,B=D===void 0?!1:D,oe=z===void 0?null:z;let de;t[28]!==W?(de=W===void 0?[]:W,t[28]=W,t[29]=de):de=t[29];const V=de,re=x===void 0?null:x,L=E===void 0?gc:E,ee=g.useRef(null),ue=g.useId();if(ee.current===null){let F;if(t[30]!==n||t[31]!==i||t[32]!==O||t[33]!==s||t[34]!==re||t[35]!==L||t[36]!==o||t[37]!==a||t[38]!==u||t[39]!==Q||t[40]!==$||t[41]!==l||t[42]!==c||t[43]!==M||t[44]!==f||t[45]!==d||t[46]!==h||t[47]!==oe||t[48]!==V||t[49]!==p.initialHeaders||t[50]!==p.initialQuery||t[51]!==p.initialVariables||t[52]!==b||t[53]!==B||t[54]!==N||t[55]!==ue||t[56]!==Z){const S=new Ow(n),K=function(){const P=S.get(pt.visiblePlugin),Y=V.find(se=>se.title===P);return Y||(P&&S.set(pt.visiblePlugin,""),Z)},le=function(){const P=S.get(pt.theme);switch(P){case"light":return"light";case"dark":return"dark";default:return typeof P=="string"&&S.set(pt.theme,""),re}};F=function(){const P=p.initialQuery??S.get(pt.query),Y=p.initialVariables??S.get(pt.variables),se=p.initialHeaders??S.get(pt.headers),{tabs:fe,activeTabIndex:be}=Mw({defaultHeaders:i,defaultQuery:O,defaultTabs:s,headers:se,query:P,shouldPersistHeaders:N,storage:S,variables:Y}),Me=S.get(pt.persistHeaders)!==null,pe=N!==!1&&Me?S.get(pt.persistHeaders)==="true":N,Ee=vE((...Ie)=>{const Ae=Ie,Be=Gw({storage:S})(...Ae),tt=e8({activeTabIndex:be,defaultHeaders:i,defaultQuery:O,externalFragments:B8(o),initialHeaders:se??i??"",initialQuery:P??(be===0?fe[0].query:null)??"",initialVariables:Y??"",onCopyQuery:l,onEditOperationName:c,onPrettifyQuery:M,onTabChange:d,shouldPersistHeaders:pe,tabs:fe,uriInstanceId:ue.replaceAll(/[:«»]/g,"")+"-"})(...Ae),Pt=O8({fetcher:a,getDefaultFieldNames:u,overrideOperationName:oe})(...Ae),ut=R8({onTogglePluginVisibility:h,referencePlugin:b})(...Ae),It=P8({inputValueDeprecation:Q,introspectionQueryName:$,onSchemaChange:f,schemaDescription:B})(...Ae),kt=M8({editorTheme:L})(...Ae);return{...Be,...tt,...Pt,...ut,...It,...kt,actions:{...tt.actions,...Pt.actions,...ut.actions,...It.actions,...kt.actions}}}),{actions:ye}=Ee.getState();return ye.storeTabs({activeTabIndex:be,tabs:fe}),ye.setPlugins(V),ye.setVisiblePlugin(K()),ye.setTheme(le()),Ee}(),t[30]=n,t[31]=i,t[32]=O,t[33]=s,t[34]=re,t[35]=L,t[36]=o,t[37]=a,t[38]=u,t[39]=Q,t[40]=$,t[41]=l,t[42]=c,t[43]=M,t[44]=f,t[45]=d,t[46]=h,t[47]=oe,t[48]=V,t[49]=p.initialHeaders,t[50]=p.initialQuery,t[51]=p.initialVariables,t[52]=b,t[53]=B,t[54]=N,t[55]=ue,t[56]=Z,t[57]=F}else F=t[57];ee.current=F}let ie,H;t[58]!==a?(ie=()=>{ee.current.setState({fetcher:a})},H=[a],t[58]=a,t[59]=ie,t[60]=H):(ie=t[59],H=t[60]),Fp(ie,H);let ce,ae;t[61]!==V||t[62]!==Z?(ce=()=>{const{actions:F}=ee.current.getState();F.setPlugins(V),F.setVisiblePlugin(Z)},ae=[V,Z],t[61]=V,t[62]=Z,t[63]=ce,t[64]=ae):(ce=t[63],ae=t[64]),Fp(ce,ae);let ke;t[65]!==q||t[66]!==v?(ke=()=>{const F=Ha(v)||v==null?v:void 0,S=!F||q?[]:Fu(F),K=ee.current;K.setState(he=>{const{requestCounter:ne}=he;return{requestCounter:ne+1,schema:F,shouldIntrospect:!Ha(v)&&v!==null,validationErrors:S}});const{actions:le}=K.getState();le.introspect()},t[65]=q,t[66]=v,t[67]=ke):ke=t[67];let we;t[68]!==q||t[69]!==a||t[70]!==v?(we=[v,q,a],t[68]=q,t[69]=a,t[70]=v,t[71]=we):we=t[71],g.useEffect(ke,we);let R,C;t[72]===Symbol.for("react.memo_cache_sentinel")?(R=()=>{const F=function(K){if(K.ctrlKey&&K.key==="R"){const{actions:le}=ee.current.getState();le.introspect()}};return window.addEventListener("keydown",F),()=>{window.removeEventListener("keydown",F)}},C=[],t[72]=R,t[73]=C):(R=t[72],C=t[73]),g.useEffect(R,C);let te;return t[74]!==r?(te=y.jsx(Gv.Provider,{value:ee,children:r}),t[74]=r,t[75]=te):te=t[75],te};function Ct(e){const t=g.useContext(Gv);if(!t)throw new Error(`"useGraphiQL" hook must be used within a <GraphiQLProvider> component.
304
+ It looks like you are trying to use the hook outside the GraphiQL provider tree.`);return db(t.current,Jb(e))}const Er=()=>Ct(U8);function B8(e){const t=new Map;if(e)if(Array.isArray(e))for(const n of e)t.set(n.name.value,n);else if(typeof e=="string")nn($r(e),{FragmentDefinition(n){t.set(n.name.value,n)}});else throw new TypeError("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of `FragmentDefinitionNode` objects.");return t}function U8(e){return e.actions}function er(...e){return t=>{const n=Object.create(null);for(const r of e)n[r]=t[r];return n}}function po(e){return()=>{for(const t of e)t.dispose()}}const $u=e=>{var t;const n=e.currentTarget;n===document.activeElement&&e.code==="Enter"&&(e.preventDefault(),(t=n.querySelector("textarea"))==null||t.focus())};function ju({uri:e,value:t}){const{monaco:n}=Vu.getState();if(!n)throw new Error("Monaco editor is not initialized");const r=cs.file(e),i=n.editor.getModel(r),s=r.path.split(".").at(-1);return i??n.editor.createModel(t,s,r)}function Bu(e,t){const{model:n}=t;if(!n)throw new Error("options.model is required");const r=n.uri.path.split(".").at(-1),{monaco:i}=Vu.getState();if(!i)throw new Error("Monaco editor is not initialized");return i.editor.create(e.current,{language:r,automaticLayout:!0,fontSize:15,minimap:{enabled:!1},tabSize:2,renderLineHighlight:"none",stickyScroll:{enabled:!1},overviewRulerLanes:0,scrollbar:{verticalScrollbarSize:10},scrollBeyondLastLine:!1,fontFamily:'"Fira Code"',fontLigatures:!0,lineNumbersMinChars:2,tabIndex:-1,...t})}const Xm={};function q8(e){let t=Xm[e];if(t)return t;t=Xm[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function xs(e,t){typeof t!="string"&&(t=xs.defaultChars);const n=q8(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let i="";for(let s=0,o=r.length;s<o;s+=3){const a=parseInt(r.slice(s+1,s+3),16);if(a<128){i+=n[a];continue}if((a&224)===192&&s+3<o){const u=parseInt(r.slice(s+4,s+6),16);if((u&192)===128){const l=a<<6&1984|u&63;l<128?i+="��":i+=String.fromCharCode(l),s+=3;continue}}if((a&240)===224&&s+6<o){const u=parseInt(r.slice(s+4,s+6),16),l=parseInt(r.slice(s+7,s+9),16);if((u&192)===128&&(l&192)===128){const c=a<<12&61440|u<<6&4032|l&63;c<2048||c>=55296&&c<=57343?i+="���":i+=String.fromCharCode(c),s+=6;continue}}if((a&248)===240&&s+9<o){const u=parseInt(r.slice(s+4,s+6),16),l=parseInt(r.slice(s+7,s+9),16),c=parseInt(r.slice(s+10,s+12),16);if((u&192)===128&&(l&192)===128&&(c&192)===128){let f=a<<18&1835008|u<<12&258048|l<<6&4032|c&63;f<65536||f>1114111?i+="����":(f-=65536,i+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),s+=9;continue}}i+="�"}return i})}xs.defaultChars=";/?:@&=+$,#";xs.componentChars="";const Jm={};function z8(e){let t=Jm[e];if(t)return t;t=Jm[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Mo(e,t,n){typeof t!="string"&&(n=t,t=Mo.defaultChars),typeof n>"u"&&(n=!0);const r=z8(t);let i="";for(let s=0,o=e.length;s<o;s++){const a=e.charCodeAt(s);if(n&&a===37&&s+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(s+1,s+3))){i+=e.slice(s,s+3),s+=2;continue}if(a<128){i+=r[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&s+1<o){const u=e.charCodeAt(s+1);if(u>=56320&&u<=57343){i+=encodeURIComponent(e[s]+e[s+1]),s++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[s])}return i}Mo.defaultChars=";/?:@&=+$,-_.!~*'()#";Mo.componentChars="-_.!~*'()";function Md(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function su(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const H8=/^([a-z0-9.+-]+:)/i,G8=/:[0-9]*$/,W8=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Q8=["<",">",'"',"`"," ","\r",`
305
+ `," "],Y8=["{","}","|","\\","^","`"].concat(Q8),X8=["'"].concat(Y8),Zm=["%","/","?",";","#"].concat(X8),Km=["/","?","#"],J8=255,e1=/^[+a-z0-9A-Z_-]{0,63}$/,Z8=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,t1={javascript:!0,"javascript:":!0},n1={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Vd(e,t){if(e&&e instanceof su)return e;const n=new su;return n.parse(e,t),n}su.prototype.parse=function(e,t){let n,r,i,s=e;if(s=s.trim(),!t&&e.split("#").length===1){const l=W8.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let o=H8.exec(s);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,s=s.substr(o.length)),(t||o||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=s.substr(0,2)==="//",i&&!(o&&t1[o])&&(s=s.substr(2),this.slashes=!0)),!t1[o]&&(i||o&&!n1[o])){let l=-1;for(let p=0;p<Km.length;p++)r=s.indexOf(Km[p]),r!==-1&&(l===-1||r<l)&&(l=r);let c,f;l===-1?f=s.lastIndexOf("@"):f=s.lastIndexOf("@",l),f!==-1&&(c=s.slice(0,f),s=s.slice(f+1),this.auth=c),l=-1;for(let p=0;p<Zm.length;p++)r=s.indexOf(Zm[p]),r!==-1&&(l===-1||r<l)&&(l=r);l===-1&&(l=s.length),s[l-1]===":"&&l--;const d=s.slice(0,l);s=s.slice(l),this.parseHost(d),this.hostname=this.hostname||"";const h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){const p=this.hostname.split(/\./);for(let b=0,v=p.length;b<v;b++){const _=p[b];if(_&&!_.match(e1)){let x="";for(let E=0,T=_.length;E<T;E++)_.charCodeAt(E)>127?x+="x":x+=_[E];if(!x.match(e1)){const E=p.slice(0,b),T=p.slice(b+1),k=_.match(Z8);k&&(E.push(k[1]),T.unshift(k[2])),T.length&&(s=T.join(".")+s),this.hostname=E.join(".");break}}}}this.hostname.length>J8&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=s.indexOf("#");a!==-1&&(this.hash=s.substr(a),s=s.slice(0,a));const u=s.indexOf("?");return u!==-1&&(this.search=s.substr(u),s=s.slice(0,u)),s&&(this.pathname=s),n1[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};su.prototype.parseHost=function(e){let t=G8.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const K8=Object.freeze(Object.defineProperty({__proto__:null,decode:xs,encode:Mo,format:Md,parse:Vd},Symbol.toStringTag,{value:"Module"})),Wv=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Qv=/[\0-\x1F\x7F-\x9F]/,eS=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,$d=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Yv=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Xv=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,tS=Object.freeze(Object.defineProperty({__proto__:null,Any:Wv,Cc:Qv,Cf:eS,P:$d,S:Yv,Z:Xv},Symbol.toStringTag,{value:"Module"})),nS=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),rS=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var xl;const iS=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),sS=(xl=String.fromCodePoint)!==null&&xl!==void 0?xl:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function oS(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=iS.get(e))!==null&&t!==void 0?t:e}var Ut;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ut||(Ut={}));const aS=32;var Yr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Yr||(Yr={}));function Gc(e){return e>=Ut.ZERO&&e<=Ut.NINE}function uS(e){return e>=Ut.UPPER_A&&e<=Ut.UPPER_F||e>=Ut.LOWER_A&&e<=Ut.LOWER_F}function lS(e){return e>=Ut.UPPER_A&&e<=Ut.UPPER_Z||e>=Ut.LOWER_A&&e<=Ut.LOWER_Z||Gc(e)}function cS(e){return e===Ut.EQUALS||lS(e)}var Vt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Vt||(Vt={}));var Wr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Wr||(Wr={}));class fS{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Vt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Wr.Strict}startEntity(t){this.decodeMode=t,this.state=Vt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Vt.EntityStart:return t.charCodeAt(n)===Ut.NUM?(this.state=Vt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Vt.NamedEntity,this.stateNamedEntity(t,n));case Vt.NumericStart:return this.stateNumericStart(t,n);case Vt.NumericDecimal:return this.stateNumericDecimal(t,n);case Vt.NumericHex:return this.stateNumericHex(t,n);case Vt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|aS)===Ut.LOWER_X?(this.state=Vt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Vt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const s=r-n;this.result=this.result*Math.pow(i,s)+parseInt(t.substr(n,s),i),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Gc(i)||uS(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Gc(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ut.SEMI)this.consumed+=1;else if(this.decodeMode===Wr.Strict)return 0;return this.emitCodePoint(oS(this.result),this.consumed),this.errors&&(t!==Ut.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],s=(i&Yr.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=dS(r,i,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===Wr.Attribute&&(s===0||cS(o))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],s=(i&Yr.VALUE_LENGTH)>>14,s!==0){if(o===Ut.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Wr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&Yr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Yr.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Vt.NamedEntity:return this.result!==0&&(this.decodeMode!==Wr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Vt.NumericDecimal:return this.emitNumericEntity(0,2);case Vt.NumericHex:return this.emitNumericEntity(0,3);case Vt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Vt.EntityStart:return 0}}}function Jv(e){let t="";const n=new fS(e,r=>t+=sS(r));return function(i,s){let o=0,a=0;for(;(a=i.indexOf("&",a))>=0;){t+=i.slice(o,a),n.startEntity(s);const l=n.write(i,a+1);if(l<0){o=a+n.end();break}o=a+l,a=l===0?o+1:o}const u=t+i.slice(o);return t="",u}}function dS(e,t,n,r){const i=(t&Yr.BRANCH_LENGTH)>>7,s=t&Yr.JUMP_TABLE;if(i===0)return s!==0&&r===s?n:-1;if(s){const u=r-s;return u<0||u>=i?-1:e[n+u]-1}let o=n,a=o+i-1;for(;o<=a;){const u=o+a>>>1,l=e[u];if(l<r)o=u+1;else if(l>r)a=u-1;else return e[u+i]}return-1}const hS=Jv(nS);Jv(rS);function Zv(e,t=Wr.Legacy){return hS(e,t)}function pS(e){return Object.prototype.toString.call(e)}function jd(e){return pS(e)==="[object String]"}const mS=Object.prototype.hasOwnProperty;function gS(e,t){return mS.call(e,t)}function Uu(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}function Kv(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Bd(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function ou(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const ey=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,bS=/&([a-z#][a-z0-9]{1,31});/gi,vS=new RegExp(ey.source+"|"+bS.source,"gi"),yS=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function xS(e,t){if(t.charCodeAt(0)===35&&yS.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Bd(r)?ou(r):e}const n=Zv(e);return n!==e?n:e}function ES(e){return e.indexOf("\\")<0?e:e.replace(ey,"$1")}function Es(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(vS,function(t,n,r){return n||xS(t,r)})}const _S=/[&<>"]/,TS=/[&<>"]/g,wS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function SS(e){return wS[e]}function Kr(e){return _S.test(e)?e.replace(TS,SS):e}const kS=/[.?*+^$[\]\\(){}|-]/g;function AS(e){return e.replace(kS,"\\$&")}function rt(e){switch(e){case 9:case 32:return!0}return!1}function mo(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function go(e){return $d.test(e)||Yv.test(e)}function bo(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function qu(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const DS={mdurl:K8,ucmicro:tS},NS=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Kv,assign:Uu,escapeHtml:Kr,escapeRE:AS,fromCodePoint:ou,has:gS,isMdAsciiPunct:bo,isPunctChar:go,isSpace:rt,isString:jd,isValidEntityCode:Bd,isWhiteSpace:mo,lib:DS,normalizeReference:qu,unescapeAll:Es,unescapeMd:ES},Symbol.toStringTag,{value:"Module"}));function CS(e,t,n){let r,i,s,o;const a=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos<a;){if(s=e.src.charCodeAt(e.pos),s===93&&(r--,r===0)){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),s===91){if(o===e.pos-1)r++;else if(n)return e.pos=u,-1}}let l=-1;return i&&(l=e.pos),e.pos=u,l}function IS(e,t,n){let r,i=t;const s={ok:!1,pos:0,str:""};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return s;if(r===62)return s.pos=i+1,s.str=Es(e.slice(t+1,i)),s.ok=!0,s;if(r===92&&i+1<n){i+=2;continue}i++}return s}let o=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(r===40&&(o++,o>32))return s;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0||(s.str=Es(e.slice(t,i)),s.pos=i,s.ok=!0),s}function FS(e,t,n,r){let i,s=t;const o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(s>=n)return o;let a=e.charCodeAt(s);if(a!==34&&a!==39&&a!==40)return o;t++,s++,a===40&&(a=41),o.marker=a}for(;s<n;){if(i=e.charCodeAt(s),i===o.marker)return o.pos=s+1,o.str+=Es(e.slice(t,s)),o.ok=!0,o;if(i===40&&o.marker===41)return o;i===92&&s+1<n&&s++,s++}return o.can_continue=!0,o.str+=Es(e.slice(t,s)),o}const LS=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:IS,parseLinkLabel:CS,parseLinkTitle:FS},Symbol.toStringTag,{value:"Module"})),_r={};_r.code_inline=function(e,t,n,r,i){const s=e[t];return"<code"+i.renderAttrs(s)+">"+Kr(s.content)+"</code>"};_r.code_block=function(e,t,n,r,i){const s=e[t];return"<pre"+i.renderAttrs(s)+"><code>"+Kr(e[t].content)+`</code></pre>
306
+ `};_r.fence=function(e,t,n,r,i){const s=e[t],o=s.info?Es(s.info).trim():"";let a="",u="";if(o){const c=o.split(/(\s+)/g);a=c[0],u=c.slice(2).join("")}let l;if(n.highlight?l=n.highlight(s.content,a,u)||Kr(s.content):l=Kr(s.content),l.indexOf("<pre")===0)return l+`
307
+ `;if(o){const c=s.attrIndex("class"),f=s.attrs?s.attrs.slice():[];c<0?f.push(["class",n.langPrefix+a]):(f[c]=f[c].slice(),f[c][1]+=" "+n.langPrefix+a);const d={attrs:f};return`<pre><code${i.renderAttrs(d)}>${l}</code></pre>
308
+ `}return`<pre><code${i.renderAttrs(s)}>${l}</code></pre>
309
+ `};_r.image=function(e,t,n,r,i){const s=e[t];return s.attrs[s.attrIndex("alt")][1]=i.renderInlineAsText(s.children,n,r),i.renderToken(e,t,n)};_r.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
310
+ `:`<br>
311
+ `};_r.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
312
+ `:`<br>
313
+ `:`
314
+ `};_r.text=function(e,t){return Kr(e[t].content)};_r.html_block=function(e,t){return e[t].content};_r.html_inline=function(e,t){return e[t].content};function As(){this.rules=Uu({},_r)}As.prototype.renderAttrs=function(t){let n,r,i;if(!t.attrs)return"";for(i="",n=0,r=t.attrs.length;n<r;n++)i+=" "+Kr(t.attrs[n][0])+'="'+Kr(t.attrs[n][1])+'"';return i};As.prototype.renderToken=function(t,n,r){const i=t[n];let s="";if(i.hidden)return"";i.block&&i.nesting!==-1&&n&&t[n-1].hidden&&(s+=`
315
+ `),s+=(i.nesting===-1?"</":"<")+i.tag,s+=this.renderAttrs(i),i.nesting===0&&r.xhtmlOut&&(s+=" /");let o=!1;if(i.block&&(o=!0,i.nesting===1&&n+1<t.length)){const a=t[n+1];(a.type==="inline"||a.hidden||a.nesting===-1&&a.tag===i.tag)&&(o=!1)}return s+=o?`>
316
+ `:">",s};As.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let s=0,o=e.length;s<o;s++){const a=e[s].type;typeof i[a]<"u"?r+=i[a](e,s,t,n,this):r+=this.renderToken(e,s,t)}return r};As.prototype.renderInlineAsText=function(e,t,n){let r="";for(let i=0,s=e.length;i<s;i++)switch(e[i].type){case"text":r+=e[i].content;break;case"image":r+=this.renderInlineAsText(e[i].children,t,n);break;case"html_inline":case"html_block":r+=e[i].content;break;case"softbreak":case"hardbreak":r+=`
317
+ `;break}return r};As.prototype.render=function(e,t,n){let r="";const i=this.rules;for(let s=0,o=e.length;s<o;s++){const a=e[s].type;a==="inline"?r+=this.renderInline(e[s].children,t,n):typeof i[a]<"u"?r+=i[a](e,s,t,n,this):r+=this.renderToken(e,s,t,n)}return r};function dn(){this.__rules__=[],this.__cache__=null}dn.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};dn.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};dn.prototype.at=function(e,t,n){const r=this.__find__(e),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null};dn.prototype.before=function(e,t,n,r){const i=this.__find__(e),s=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};dn.prototype.after=function(e,t,n,r){const i=this.__find__(e),s=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};dn.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};dn.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n};dn.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};dn.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n};dn.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function tr(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}tr.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,i=n.length;r<i;r++)if(n[r][0]===t)return r;return-1};tr.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};tr.prototype.attrSet=function(t,n){const r=this.attrIndex(t),i=[t,n];r<0?this.attrPush(i):this.attrs[r]=i};tr.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r};tr.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function ty(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}ty.prototype.Token=tr;const OS=/\r\n?|\n/g,RS=/\0/g;function PS(e){let t;t=e.src.replace(OS,`
318
+ `),t=t.replace(RS,"�"),e.src=t}function MS(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function VS(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const i=t[n];i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}function $S(e){return/^<a[>\s]/i.test(e)}function jS(e){return/^<\/a\s*>/i.test(e)}function BS(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let i=t[n].children,s=0;for(let o=i.length-1;o>=0;o--){const a=i[o];if(a.type==="link_close"){for(o--;i[o].level!==a.level&&i[o].type!=="link_open";)o--;continue}if(a.type==="html_inline"&&($S(a.content)&&s>0&&s--,jS(a.content)&&s++),!(s>0)&&a.type==="text"&&e.md.linkify.test(a.content)){const u=a.content;let l=e.md.linkify.match(u);const c=[];let f=a.level,d=0;l.length>0&&l[0].index===0&&o>0&&i[o-1].type==="text_special"&&(l=l.slice(1));for(let h=0;h<l.length;h++){const p=l[h].url,b=e.md.normalizeLink(p);if(!e.md.validateLink(b))continue;let v=l[h].text;l[h].schema?l[h].schema==="mailto:"&&!/^mailto:/i.test(v)?v=e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):v=e.md.normalizeLinkText(v):v=e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,"");const _=l[h].index;if(_>d){const k=new e.Token("text","",0);k.content=u.slice(d,_),k.level=f,c.push(k)}const x=new e.Token("link_open","a",1);x.attrs=[["href",b]],x.level=f++,x.markup="linkify",x.info="auto",c.push(x);const E=new e.Token("text","",0);E.content=v,E.level=f,c.push(E);const T=new e.Token("link_close","a",-1);T.level=--f,T.markup="linkify",T.info="auto",c.push(T),d=l[h].lastIndex}if(d<u.length){const h=new e.Token("text","",0);h.content=u.slice(d),h.level=f,c.push(h)}t[n].children=i=Kv(i,o,c)}}}}const ny=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,US=/\((c|tm|r)\)/i,qS=/\((c|tm|r)\)/ig,zS={c:"©",r:"®",tm:"™"};function HS(e,t){return zS[t.toLowerCase()]}function GS(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(qS,HS)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function WS(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&ny.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function QS(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(US.test(e.tokens[t].content)&&GS(e.tokens[t].children),ny.test(e.tokens[t].content)&&WS(e.tokens[t].children))}const YS=/['"]/,r1=/['"]/g,i1="’";function la(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function XS(e,t){let n;const r=[];for(let i=0;i<e.length;i++){const s=e[i],o=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=o);n--);if(r.length=n+1,s.type!=="text")continue;let a=s.content,u=0,l=a.length;e:for(;u<l;){r1.lastIndex=u;const c=r1.exec(a);if(!c)break;let f=!0,d=!0;u=c.index+1;const h=c[0]==="'";let p=32;if(c.index-1>=0)p=a.charCodeAt(c.index-1);else for(n=i-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){p=e[n].content.charCodeAt(e[n].content.length-1);break}let b=32;if(u<l)b=a.charCodeAt(u);else for(n=i+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){b=e[n].content.charCodeAt(0);break}const v=bo(p)||go(String.fromCharCode(p)),_=bo(b)||go(String.fromCharCode(b)),x=mo(p),E=mo(b);if(E?f=!1:_&&(x||v||(f=!1)),x?d=!1:v&&(E||_||(d=!1)),b===34&&c[0]==='"'&&p>=48&&p<=57&&(d=f=!1),f&&d&&(f=v,d=_),!f&&!d){h&&(s.content=la(s.content,c.index,i1));continue}if(d)for(n=r.length-1;n>=0;n--){let T=r[n];if(r[n].level<o)break;if(T.single===h&&r[n].level===o){T=r[n];let k,A;h?(k=t.md.options.quotes[2],A=t.md.options.quotes[3]):(k=t.md.options.quotes[0],A=t.md.options.quotes[1]),s.content=la(s.content,c.index,A),e[T.token].content=la(e[T.token].content,T.pos,k),u+=A.length-1,T.token===i&&(u+=k.length-1),a=s.content,l=a.length,r.length=n;continue e}}f?r.push({token:i,pos:c.index,single:h,level:o}):d&&h&&(s.content=la(s.content,c.index,i1))}}}function JS(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!YS.test(e.tokens[t].content)||XS(e.tokens[t].children,e)}function ZS(e){let t,n;const r=e.tokens,i=r.length;for(let s=0;s<i;s++){if(r[s].type!=="inline")continue;const o=r[s].children,a=o.length;for(t=0;t<a;t++)o[t].type==="text_special"&&(o[t].type="text");for(t=n=0;t<a;t++)o[t].type==="text"&&t+1<a&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}}const El=[["normalize",PS],["block",MS],["inline",VS],["linkify",BS],["replacements",QS],["smartquotes",JS],["text_join",ZS]];function Ud(){this.ruler=new dn;for(let e=0;e<El.length;e++)this.ruler.push(El[e][0],El[e][1])}Ud.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};Ud.prototype.State=ty;function Tr(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const i=this.src;for(let s=0,o=0,a=0,u=0,l=i.length,c=!1;o<l;o++){const f=i.charCodeAt(o);if(!c)if(rt(f)){a++,f===9?u+=4-u%4:u++;continue}else c=!0;(f===10||o===l-1)&&(f!==10&&o++,this.bMarks.push(s),this.eMarks.push(o),this.tShift.push(a),this.sCount.push(u),this.bsCount.push(0),c=!1,a=0,u=0,s=o+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Tr.prototype.push=function(e,t,n){const r=new tr(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};Tr.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Tr.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Tr.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!rt(r))break}return t};Tr.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!rt(this.src.charCodeAt(--t)))return t+1;return t};Tr.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t};Tr.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Tr.prototype.getLines=function(t,n,r,i){if(t>=n)return"";const s=new Array(n-t);for(let o=0,a=t;a<n;a++,o++){let u=0;const l=this.bMarks[a];let c=l,f;for(a+1<n||i?f=this.eMarks[a]+1:f=this.eMarks[a];c<f&&u<r;){const d=this.src.charCodeAt(c);if(rt(d))d===9?u+=4-(u+this.bsCount[a])%4:u++;else if(c-l<this.tShift[a])u++;else break;c++}u>r?s[o]=new Array(u-r+1).join(" ")+this.src.slice(c,f):s[o]=this.src.slice(c,f)}return s.join("")};Tr.prototype.Token=tr;const KS=65536;function _l(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function s1(e){const t=[],n=e.length;let r=0,i=e.charCodeAt(r),s=!1,o=0,a="";for(;r<n;)i===124&&(s?(a+=e.substring(o,r-1),o=r):(t.push(a+e.substring(o,r)),a="",o=r+1)),s=i===92,r++,i=e.charCodeAt(r);return t.push(a+e.substring(o)),t}function ek(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let s=e.bMarks[i]+e.tShift[i];if(s>=e.eMarks[i])return!1;const o=e.src.charCodeAt(s++);if(o!==124&&o!==45&&o!==58||s>=e.eMarks[i])return!1;const a=e.src.charCodeAt(s++);if(a!==124&&a!==45&&a!==58&&!rt(a)||o===45&&rt(a))return!1;for(;s<e.eMarks[i];){const T=e.src.charCodeAt(s);if(T!==124&&T!==45&&T!==58&&!rt(T))return!1;s++}let u=_l(e,t+1),l=u.split("|");const c=[];for(let T=0;T<l.length;T++){const k=l[T].trim();if(!k){if(T===0||T===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(k))return!1;k.charCodeAt(k.length-1)===58?c.push(k.charCodeAt(0)===58?"center":"right"):k.charCodeAt(0)===58?c.push("left"):c.push("")}if(u=_l(e,t).trim(),u.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=s1(u),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const f=l.length;if(f===0||f!==c.length)return!1;if(r)return!0;const d=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),b=[t,0];p.map=b;const v=e.push("thead_open","thead",1);v.map=[t,t+1];const _=e.push("tr_open","tr",1);_.map=[t,t+1];for(let T=0;T<l.length;T++){const k=e.push("th_open","th",1);c[T]&&(k.attrs=[["style","text-align:"+c[T]]]);const A=e.push("inline","",0);A.content=l[T].trim(),A.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let x,E=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let T=!1;for(let A=0,I=h.length;A<I;A++)if(h[A](e,i,n,!0)){T=!0;break}if(T||(u=_l(e,i).trim(),!u)||e.sCount[i]-e.blkIndent>=4||(l=s1(u),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),E+=f-l.length,E>KS))break;if(i===t+2){const A=e.push("tbody_open","tbody",1);A.map=x=[t+2,0]}const k=e.push("tr_open","tr",1);k.map=[i,i+1];for(let A=0;A<f;A++){const I=e.push("td_open","td",1);c[A]&&(I.attrs=[["style","text-align:"+c[A]]]);const U=e.push("inline","",0);U.content=l[A]?l[A].trim():"",U.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return x&&(e.push("tbody_close","tbody",-1),x[1]=i),e.push("table_close","table",-1),b[1]=i,e.parentType=d,e.line=i,!0}function tk(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;const s=e.push("code_block","code",0);return s.content=e.getLines(t,i,4+e.blkIndent,!1)+`
319
+ `,s.map=[t,e.line],!0}function nk(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>s)return!1;const o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let a=i;i=e.skipChars(i,o);let u=i-a;if(u<3)return!1;const l=e.src.slice(a,i),c=e.src.slice(i,s);if(o===96&&c.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let f=t,d=!1;for(;f++,!(f>=n||(i=a=e.bMarks[f]+e.tShift[f],s=e.eMarks[f],i<s&&e.sCount[f]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[f]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-a<u)&&(i=e.skipSpaces(i),!(i<s)))){d=!0;break}u=e.sCount[t],e.line=f+(d?1:0);const h=e.push("fence","code",0);return h.info=c,h.content=e.getLines(t+1,f,u,!0),h.markup=l,h.map=[t,e.line],!0}function rk(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];const o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;const a=[],u=[],l=[],c=[],f=e.md.block.ruler.getRules("blockquote"),d=e.parentType;e.parentType="blockquote";let h=!1,p;for(p=t;p<n;p++){const E=e.sCount[p]<e.blkIndent;if(i=e.bMarks[p]+e.tShift[p],s=e.eMarks[p],i>=s)break;if(e.src.charCodeAt(i++)===62&&!E){let k=e.sCount[p]+1,A,I;e.src.charCodeAt(i)===32?(i++,k++,I=!1,A=!0):e.src.charCodeAt(i)===9?(A=!0,(e.bsCount[p]+k)%4===3?(i++,k++,I=!1):I=!0):A=!1;let U=k;for(a.push(e.bMarks[p]),e.bMarks[p]=i;i<s;){const D=e.src.charCodeAt(i);if(rt(D))D===9?U+=4-(U+e.bsCount[p]+(I?1:0))%4:U++;else break;i++}h=i>=s,u.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(A?1:0),l.push(e.sCount[p]),e.sCount[p]=U-k,c.push(e.tShift[p]),e.tShift[p]=i-e.bMarks[p];continue}if(h)break;let T=!1;for(let k=0,A=f.length;k<A;k++)if(f[k](e,p,n,!0)){T=!0;break}if(T){e.lineMax=p,e.blkIndent!==0&&(a.push(e.bMarks[p]),u.push(e.bsCount[p]),c.push(e.tShift[p]),l.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}a.push(e.bMarks[p]),u.push(e.bsCount[p]),c.push(e.tShift[p]),l.push(e.sCount[p]),e.sCount[p]=-1}const b=e.blkIndent;e.blkIndent=0;const v=e.push("blockquote_open","blockquote",1);v.markup=">";const _=[t,0];v.map=_,e.md.block.tokenize(e,t,p);const x=e.push("blockquote_close","blockquote",-1);x.markup=">",e.lineMax=o,e.parentType=d,_[1]=e.line;for(let E=0;E<c.length;E++)e.bMarks[E+t]=a[E],e.tShift[E+t]=c[E],e.sCount[E+t]=l[E],e.bsCount[E+t]=u[E];return e.blkIndent=b,!0}function ik(e,t,n,r){const i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(s++);if(o!==42&&o!==45&&o!==95)return!1;let a=1;for(;s<i;){const l=e.src.charCodeAt(s++);if(l!==o&&!rt(l))return!1;l===o&&a++}if(a<3)return!1;if(r)return!0;e.line=t+1;const u=e.push("hr","hr",0);return u.map=[t,e.line],u.markup=Array(a+1).join(String.fromCharCode(o)),!0}function o1(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(r++);if(i!==42&&i!==45&&i!==43)return-1;if(r<n){const s=e.src.charCodeAt(r);if(!rt(s))return-1}return r}function a1(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let i=n;if(i+1>=r)return-1;let s=e.src.charCodeAt(i++);if(s<48||s>57)return-1;for(;;){if(i>=r)return-1;if(s=e.src.charCodeAt(i++),s>=48&&s<=57){if(i-n>=10)return-1;continue}if(s===41||s===46)break;return-1}return i<r&&(s=e.src.charCodeAt(i),!rt(s))?-1:i}function sk(e,t){const n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function ok(e,t,n,r){let i,s,o,a,u=t,l=!0;if(e.sCount[u]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]<e.blkIndent)return!1;let c=!1;r&&e.parentType==="paragraph"&&e.sCount[u]>=e.blkIndent&&(c=!0);let f,d,h;if((h=a1(e,u))>=0){if(f=!0,o=e.bMarks[u]+e.tShift[u],d=Number(e.src.slice(o,h-1)),c&&d!==1)return!1}else if((h=o1(e,u))>=0)f=!1;else return!1;if(c&&e.skipSpaces(h)>=e.eMarks[u])return!1;if(r)return!0;const p=e.src.charCodeAt(h-1),b=e.tokens.length;f?(a=e.push("ordered_list_open","ol",1),d!==1&&(a.attrs=[["start",d]])):a=e.push("bullet_list_open","ul",1);const v=[u,0];a.map=v,a.markup=String.fromCharCode(p);let _=!1;const x=e.md.block.ruler.getRules("list"),E=e.parentType;for(e.parentType="list";u<n;){s=h,i=e.eMarks[u];const T=e.sCount[u]+h-(e.bMarks[u]+e.tShift[u]);let k=T;for(;s<i;){const M=e.src.charCodeAt(s);if(M===9)k+=4-(k+e.bsCount[u])%4;else if(M===32)k++;else break;s++}const A=s;let I;A>=i?I=1:I=k-T,I>4&&(I=1);const U=T+I;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(p);const D=[u,0];a.map=D,f&&(a.info=e.src.slice(o,h-1));const z=e.tight,W=e.tShift[u],Z=e.sCount[u],O=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=U,e.tight=!0,e.tShift[u]=A-e.bMarks[u],e.sCount[u]=k,A>=i&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,u,n,!0),(!e.tight||_)&&(l=!1),_=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=O,e.tShift[u]=W,e.sCount[u]=Z,e.tight=z,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(p),u=e.line,D[1]=u,u>=n||e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)break;let N=!1;for(let M=0,q=x.length;M<q;M++)if(x[M](e,u,n,!0)){N=!0;break}if(N)break;if(f){if(h=a1(e,u),h<0)break;o=e.bMarks[u]+e.tShift[u]}else if(h=o1(e,u),h<0)break;if(p!==e.src.charCodeAt(h-1))break}return f?a=e.push("ordered_list_close","ol",-1):a=e.push("bullet_list_close","ul",-1),a.markup=String.fromCharCode(p),v[1]=u,e.line=u,e.parentType=E,l&&sk(e,b),!0}function ak(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function a(x){const E=e.lineMax;if(x>=E||e.isEmpty(x))return null;let T=!1;if(e.sCount[x]-e.blkIndent>3&&(T=!0),e.sCount[x]<0&&(T=!0),!T){const I=e.md.block.ruler.getRules("reference"),U=e.parentType;e.parentType="reference";let D=!1;for(let z=0,W=I.length;z<W;z++)if(I[z](e,x,E,!0)){D=!0;break}if(e.parentType=U,D)return null}const k=e.bMarks[x]+e.tShift[x],A=e.eMarks[x];return e.src.slice(k,A+1)}let u=e.src.slice(i,s+1);s=u.length;let l=-1;for(i=1;i<s;i++){const x=u.charCodeAt(i);if(x===91)return!1;if(x===93){l=i;break}else if(x===10){const E=a(o);E!==null&&(u+=E,s=u.length,o++)}else if(x===92&&(i++,i<s&&u.charCodeAt(i)===10)){const E=a(o);E!==null&&(u+=E,s=u.length,o++)}}if(l<0||u.charCodeAt(l+1)!==58)return!1;for(i=l+2;i<s;i++){const x=u.charCodeAt(i);if(x===10){const E=a(o);E!==null&&(u+=E,s=u.length,o++)}else if(!rt(x))break}const c=e.md.helpers.parseLinkDestination(u,i,s);if(!c.ok)return!1;const f=e.md.normalizeLink(c.str);if(!e.md.validateLink(f))return!1;i=c.pos;const d=i,h=o,p=i;for(;i<s;i++){const x=u.charCodeAt(i);if(x===10){const E=a(o);E!==null&&(u+=E,s=u.length,o++)}else if(!rt(x))break}let b=e.md.helpers.parseLinkTitle(u,i,s);for(;b.can_continue;){const x=a(o);if(x===null)break;u+=x,i=s,s=u.length,o++,b=e.md.helpers.parseLinkTitle(u,i,s,b)}let v;for(i<s&&p!==i&&b.ok?(v=b.str,i=b.pos):(v="",i=d,o=h);i<s;){const x=u.charCodeAt(i);if(!rt(x))break;i++}if(i<s&&u.charCodeAt(i)!==10&&v)for(v="",i=d,o=h;i<s;){const x=u.charCodeAt(i);if(!rt(x))break;i++}if(i<s&&u.charCodeAt(i)!==10)return!1;const _=qu(u.slice(1,l));return _?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[_]>"u"&&(e.env.references[_]={title:v,href:f}),e.line=o),!0):!1}const uk=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],lk="[a-zA-Z_:][a-zA-Z0-9:._-]*",ck="[^\"'=<>`\\x00-\\x20]+",fk="'[^']*'",dk='"[^"]*"',hk="(?:"+ck+"|"+fk+"|"+dk+")",pk="(?:\\s+"+lk+"(?:\\s*=\\s*"+hk+")?)",ry="<[A-Za-z][A-Za-z0-9\\-]*"+pk+"*\\s*\\/?>",iy="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",mk="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",gk="<[?][\\s\\S]*?[?]>",bk="<![A-Za-z][^>]*>",vk="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",yk=new RegExp("^(?:"+ry+"|"+iy+"|"+mk+"|"+gk+"|"+bk+"|"+vk+")"),xk=new RegExp("^(?:"+ry+"|"+iy+")"),Hi=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+uk.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(xk.source+"\\s*$"),/^$/,!1]];function Ek(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,s),a=0;for(;a<Hi.length&&!Hi[a][0].test(o);a++);if(a===Hi.length)return!1;if(r)return Hi[a][2];let u=t+1;if(!Hi[a][1].test(o)){for(;u<n&&!(e.sCount[u]<e.blkIndent);u++)if(i=e.bMarks[u]+e.tShift[u],s=e.eMarks[u],o=e.src.slice(i,s),Hi[a][1].test(o)){o.length!==0&&u++;break}}e.line=u;const l=e.push("html_block","",0);return l.map=[t,u],l.content=e.getLines(t,u,e.blkIndent,!0),!0}function _k(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=s)return!1;let a=1;for(o=e.src.charCodeAt(++i);o===35&&i<s&&a<=6;)a++,o=e.src.charCodeAt(++i);if(a>6||i<s&&!rt(o))return!1;if(r)return!0;s=e.skipSpacesBack(s,i);const u=e.skipCharsBack(s,35,i);u>i&&rt(e.src.charCodeAt(u-1))&&(s=u),e.line=t+1;const l=e.push("heading_open","h"+String(a),1);l.markup="########".slice(0,a),l.map=[t,e.line];const c=e.push("inline","",0);c.content=e.src.slice(i,s).trim(),c.map=[t,e.line],c.children=[];const f=e.push("heading_close","h"+String(a),-1);return f.markup="########".slice(0,a),!0}function Tk(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let s=0,o,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let h=e.bMarks[a]+e.tShift[a];const p=e.eMarks[a];if(h<p&&(o=e.src.charCodeAt(h),(o===45||o===61)&&(h=e.skipChars(h,o),h=e.skipSpaces(h),h>=p))){s=o===61?1:2;break}}if(e.sCount[a]<0)continue;let d=!1;for(let h=0,p=r.length;h<p;h++)if(r[h](e,a,n,!0)){d=!0;break}if(d)break}if(!s)return!1;const u=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a+1;const l=e.push("heading_open","h"+String(s),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];const c=e.push("inline","",0);c.content=u,c.map=[t,e.line-1],c.children=[];const f=e.push("heading_close","h"+String(s),-1);return f.markup=String.fromCharCode(o),e.parentType=i,!0}function wk(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),i=e.parentType;let s=t+1;for(e.parentType="paragraph";s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)continue;let l=!1;for(let c=0,f=r.length;c<f;c++)if(r[c](e,s,n,!0)){l=!0;break}if(l)break}const o=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s;const a=e.push("paragraph_open","p",1);a.map=[t,e.line];const u=e.push("inline","",0);return u.content=o,u.map=[t,e.line],u.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}const ca=[["table",ek,["paragraph","reference"]],["code",tk],["fence",nk,["paragraph","reference","blockquote","list"]],["blockquote",rk,["paragraph","reference","blockquote","list"]],["hr",ik,["paragraph","reference","blockquote","list"]],["list",ok,["paragraph","reference","blockquote"]],["reference",ak],["html_block",Ek,["paragraph","reference","blockquote"]],["heading",_k,["paragraph","reference","blockquote"]],["lheading",Tk],["paragraph",wk]];function zu(){this.ruler=new dn;for(let e=0;e<ca.length;e++)this.ruler.push(ca[e][0],ca[e][1],{alt:(ca[e][2]||[]).slice()})}zu.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),i=r.length,s=e.md.options.maxNesting;let o=t,a=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=s){e.line=n;break}const u=e.line;let l=!1;for(let c=0;c<i;c++)if(l=r[c](e,o,n,!1),l){if(u>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),o=e.line,o<n&&e.isEmpty(o)&&(a=!0,o++,e.line=o)}};zu.prototype.parse=function(e,t,n,r){if(!e)return;const i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)};zu.prototype.State=Tr;function Vo(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Vo.prototype.pushPending=function(){const e=new tr("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Vo.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new tr(e,t,n);let i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};Vo.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let s=e;for(;s<n&&this.src.charCodeAt(s)===r;)s++;const o=s-e,a=s<n?this.src.charCodeAt(s):32,u=bo(i)||go(String.fromCharCode(i)),l=bo(a)||go(String.fromCharCode(a)),c=mo(i),f=mo(a),d=!f&&(!l||c||u),h=!c&&(!u||f||l);return{can_open:d&&(t||!h||u),can_close:h&&(t||!d||l),length:o}};Vo.prototype.Token=tr;function Sk(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function kk(e,t){let n=e.pos;for(;n<e.posMax&&!Sk(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const Ak=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Dk(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const i=e.pending.match(Ak);if(!i)return!1;const s=i[1],o=e.md.linkify.matchAtStart(e.src.slice(n-s.length));if(!o)return!1;let a=o.url;if(a.length<=s.length)return!1;a=a.replace(/\*+$/,"");const u=e.md.normalizeLink(a);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-s.length);const l=e.push("link_open","a",1);l.attrs=[["href",u]],l.markup="linkify",l.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(a);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=a.length-s.length,!0}function Nk(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let s=r-1;for(;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<i&&rt(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const qd=[];for(let e=0;e<256;e++)qd.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){qd[e.charCodeAt(0)]=1});function Ck(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(i=e.src.charCodeAt(n),!!rt(i));)n++;return e.pos=n,!0}let s=e.src[n];if(i>=55296&&i<=56319&&n+1<r){const a=e.src.charCodeAt(n+1);a>=56320&&a<=57343&&(s+=e.src[n+1],n++)}const o="\\"+s;if(!t){const a=e.push("text_special","",0);i<256&&qd[i]!==0?a.content=s:a.content=o,a.markup=o,a.info="escape"}return e.pos=n+1,!0}function Ik(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const i=n;n++;const s=e.posMax;for(;n<s&&e.src.charCodeAt(n)===96;)n++;const o=e.src.slice(i,n),a=o.length;if(e.backticksScanned&&(e.backticks[a]||0)<=i)return t||(e.pending+=o),e.pos+=a,!0;let u=n,l;for(;(l=e.src.indexOf("`",u))!==-1;){for(u=l+1;u<s&&e.src.charCodeAt(u)===96;)u++;const c=u-l;if(c===a){if(!t){const f=e.push("code_inline","code",0);f.markup=o,f.content=e.src.slice(n,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=u,!0}e.backticks[c]=l}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=a,!0}function Fk(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const i=e.scanDelims(e.pos,!0);let s=i.length;const o=String.fromCharCode(r);if(s<2)return!1;let a;s%2&&(a=e.push("text","",0),a.content=o,s--);for(let u=0;u<s;u+=2)a=e.push("text","",0),a.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function u1(e,t){let n;const r=[],i=t.length;for(let s=0;s<i;s++){const o=t[s];if(o.marker!==126||o.end===-1)continue;const a=t[o.end];n=e.tokens[o.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[a.token-1].type==="text"&&e.tokens[a.token-1].content==="~"&&r.push(a.token-1)}for(;r.length;){const s=r.pop();let o=s+1;for(;o<e.tokens.length&&e.tokens[o].type==="s_close";)o++;o--,s!==o&&(n=e.tokens[o],e.tokens[o]=e.tokens[s],e.tokens[s]=n)}}function Lk(e){const t=e.tokens_meta,n=e.tokens_meta.length;u1(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&u1(e,t[r].delimiters)}const sy={tokenize:Fk,postProcess:Lk};function Ok(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const i=e.scanDelims(e.pos,r===42);for(let s=0;s<i.length;s++){const o=e.push("text","",0);o.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function l1(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const i=t[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const s=t[i.end],o=r>0&&t[r-1].end===i.end+1&&t[r-1].marker===i.marker&&t[r-1].token===i.token-1&&t[i.end+1].token===s.token+1,a=String.fromCharCode(i.marker),u=e.tokens[i.token];u.type=o?"strong_open":"em_open",u.tag=o?"strong":"em",u.nesting=1,u.markup=o?a+a:a,u.content="";const l=e.tokens[s.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?a+a:a,l.content="",o&&(e.tokens[t[r-1].token].content="",e.tokens[t[i.end+1].token].content="",r--)}}function Rk(e){const t=e.tokens_meta,n=e.tokens_meta.length;l1(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&l1(e,t[r].delimiters)}const oy={tokenize:Ok,postProcess:Rk};function Pk(e,t){let n,r,i,s,o="",a="",u=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const c=e.pos,f=e.posMax,d=e.pos+1,h=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(h<0)return!1;let p=h+1;if(p<f&&e.src.charCodeAt(p)===40){for(l=!1,p++;p<f&&(n=e.src.charCodeAt(p),!(!rt(n)&&n!==10));p++);if(p>=f)return!1;if(u=p,i=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?p=i.pos:o="",u=p;p<f&&(n=e.src.charCodeAt(p),!(!rt(n)&&n!==10));p++);if(i=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<f&&u!==p&&i.ok)for(a=i.str,p=i.pos;p<f&&(n=e.src.charCodeAt(p),!(!rt(n)&&n!==10));p++);}(p>=f||e.src.charCodeAt(p)!==41)&&(l=!0),p++}if(l){if(typeof e.env.references>"u")return!1;if(p<f&&e.src.charCodeAt(p)===91?(u=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?r=e.src.slice(u,p++):p=h+1):p=h+1,r||(r=e.src.slice(d,h)),s=e.env.references[qu(r)],!s)return e.pos=c,!1;o=s.href,a=s.title}if(!t){e.pos=d,e.posMax=h;const b=e.push("link_open","a",1),v=[["href",o]];b.attrs=v,a&&v.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=f,!0}function Mk(e,t){let n,r,i,s,o,a,u,l,c="";const f=e.pos,d=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const h=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(s=p+1,s<d&&e.src.charCodeAt(s)===40){for(s++;s<d&&(n=e.src.charCodeAt(s),!(!rt(n)&&n!==10));s++);if(s>=d)return!1;for(l=s,a=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),a.ok&&(c=e.md.normalizeLink(a.str),e.md.validateLink(c)?s=a.pos:c=""),l=s;s<d&&(n=e.src.charCodeAt(s),!(!rt(n)&&n!==10));s++);if(a=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<d&&l!==s&&a.ok)for(u=a.str,s=a.pos;s<d&&(n=e.src.charCodeAt(s),!(!rt(n)&&n!==10));s++);else u="";if(s>=d||e.src.charCodeAt(s)!==41)return e.pos=f,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s<d&&e.src.charCodeAt(s)===91?(l=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?i=e.src.slice(l,s++):s=p+1):s=p+1,i||(i=e.src.slice(h,p)),o=e.env.references[qu(i)],!o)return e.pos=f,!1;c=o.href,u=o.title}if(!t){r=e.src.slice(h,p);const b=[];e.md.inline.parse(r,e.md,e.env,b);const v=e.push("image","img",0),_=[["src",c],["alt",""]];v.attrs=_,v.children=b,v.content=r,u&&_.push(["title",u])}return e.pos=s,e.posMax=d,!0}const Vk=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,$k=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function jk(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const o=e.src.charCodeAt(n);if(o===60)return!1;if(o===62)break}const s=e.src.slice(r+1,n);if($k.test(s)){const o=e.md.normalizeLink(s);if(!e.md.validateLink(o))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",o]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(s);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=s.length+2,!0}if(Vk.test(s)){const o=e.md.normalizeLink("mailto:"+s);if(!e.md.validateLink(o))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",o]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(s);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=s.length+2,!0}return!1}function Bk(e){return/^<a[>\s]/i.test(e)}function Uk(e){return/^<\/a\s*>/i.test(e)}function qk(e){const t=e|32;return t>=97&&t<=122}function zk(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!qk(i))return!1;const s=e.src.slice(r).match(yk);if(!s)return!1;if(!t){const o=e.push("html_inline","",0);o.content=s[0],Bk(o.content)&&e.linkLevel++,Uk(o.content)&&e.linkLevel--}return e.pos+=s[0].length,!0}const Hk=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Gk=/^&([a-z][a-z0-9]{1,31});/i;function Wk(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const s=e.src.slice(n).match(Hk);if(s){if(!t){const o=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),a=e.push("text_special","",0);a.content=Bd(o)?ou(o):ou(65533),a.markup=s[0],a.info="entity"}return e.pos+=s[0].length,!0}}else{const s=e.src.slice(n).match(Gk);if(s){const o=Zv(s[0]);if(o!==s[0]){if(!t){const a=e.push("text_special","",0);a.content=o,a.markup=s[0],a.info="entity"}return e.pos+=s[0].length,!0}}}return!1}function c1(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const s=[];for(let o=0;o<n;o++){const a=e[o];if(s.push(0),(e[r].marker!==a.marker||i!==a.token-1)&&(r=o),i=a.token,a.length=a.length||0,!a.close)continue;t.hasOwnProperty(a.marker)||(t[a.marker]=[-1,-1,-1,-1,-1,-1]);const u=t[a.marker][(a.open?3:0)+a.length%3];let l=r-s[r]-1,c=l;for(;l>u;l-=s[l]+1){const f=e[l];if(f.marker===a.marker&&f.open&&f.end<0){let d=!1;if((f.close||a.open)&&(f.length+a.length)%3===0&&(f.length%3!==0||a.length%3!==0)&&(d=!0),!d){const h=l>0&&!e[l-1].open?s[l-1]+1:0;s[o]=o-l+h,s[l]=h,a.open=!1,f.end=o,f.close=!1,c=-1,i=-2;break}}}c!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=c)}}function Qk(e){const t=e.tokens_meta,n=e.tokens_meta.length;c1(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&c1(t[r].delimiters)}function Yk(e){let t,n,r=0;const i=e.tokens,s=e.tokens.length;for(t=n=0;t<s;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type==="text"&&t+1<s&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}const Tl=[["text",kk],["linkify",Dk],["newline",Nk],["escape",Ck],["backticks",Ik],["strikethrough",sy.tokenize],["emphasis",oy.tokenize],["link",Pk],["image",Mk],["autolink",jk],["html_inline",zk],["entity",Wk]],wl=[["balance_pairs",Qk],["strikethrough",sy.postProcess],["emphasis",oy.postProcess],["fragments_join",Yk]];function $o(){this.ruler=new dn;for(let e=0;e<Tl.length;e++)this.ruler.push(Tl[e][0],Tl[e][1]);this.ruler2=new dn;for(let e=0;e<wl.length;e++)this.ruler2.push(wl[e][0],wl[e][1])}$o.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,s=e.cache;if(typeof s[t]<"u"){e.pos=s[t];return}let o=!1;if(e.level<i){for(let a=0;a<r;a++)if(e.level++,o=n[a](e,!0),e.level--,o){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;o||e.pos++,s[t]=e.pos};$o.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){const s=e.pos;let o=!1;if(e.level<i){for(let a=0;a<n;a++)if(o=t[a](e,!1),o){if(s>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};$o.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const s=this.ruler2.getRules(""),o=s.length;for(let a=0;a<o;a++)s[a](i)};$o.prototype.State=Vo;function Xk(e){const t={};e=e||{},t.src_Any=Wv.source,t.src_Cc=Qv.source,t.src_Z=Xv.source,t.src_P=$d.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function Wc(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Hu(e){return Object.prototype.toString.call(e)}function Jk(e){return Hu(e)==="[object String]"}function Zk(e){return Hu(e)==="[object Object]"}function Kk(e){return Hu(e)==="[object RegExp]"}function f1(e){return Hu(e)==="[object Function]"}function eA(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const ay={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function tA(e){return Object.keys(e||{}).reduce(function(t,n){return t||ay.hasOwnProperty(n)},!1)}const nA={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},rA="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",iA="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function sA(e){e.__index__=-1,e.__text_cache__=""}function oA(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function d1(){return function(e,t){t.normalize(e)}}function au(e){const t=e.re=Xk(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(rA),n.push(t.src_xn),t.src_tlds=n.join("|");function r(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];e.__compiled__={};function s(a,u){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+u)}Object.keys(e.__schemas__).forEach(function(a){const u=e.__schemas__[a];if(u===null)return;const l={validate:null,link:null};if(e.__compiled__[a]=l,Zk(u)){Kk(u.validate)?l.validate=oA(u.validate):f1(u.validate)?l.validate=u.validate:s(a,u),f1(u.normalize)?l.normalize=u.normalize:u.normalize?s(a,u):l.normalize=d1();return}if(Jk(u)){i.push(a);return}s(a,u)}),i.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:d1()};const o=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(eA).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),sA(e)}function aA(e,t){const n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Qc(e,t){const n=new aA(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Tn(e,t){if(!(this instanceof Tn))return new Tn(e,t);t||tA(e)&&(t=e,e={}),this.__opts__=Wc({},ay,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Wc({},nA,e),this.__compiled__={},this.__tlds__=iA,this.__tlds_replaced__=!1,this.re={},au(this)}Tn.prototype.add=function(t,n){return this.__schemas__[t]=n,au(this),this};Tn.prototype.set=function(t){return this.__opts__=Wc(this.__opts__,t),this};Tn.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,i,s,o,a,u,l,c;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(n=u.exec(t))!==null;)if(s=this.testSchemaAt(t,n[2],u.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=r.index+r[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=t.indexOf("@"),c>=0&&(i=t.match(this.re.email_fuzzy))!==null&&(o=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};Tn.prototype.pretest=function(t){return this.re.pretest.test(t)};Tn.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};Tn.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Qc(this,r)),r=this.__last_index__);let i=r?t.slice(r):t;for(;this.test(i);)n.push(Qc(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};Tn.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,Qc(this,0)):null};Tn.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,i,s){return r!==s[i-1]}).reverse(),au(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,au(this),this)};Tn.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Tn.prototype.onCompile=function(){};const as=2147483647,cr=36,zd=1,vo=26,uA=38,lA=700,uy=72,ly=128,cy="-",cA=/^xn--/,fA=/[^\0-\x7F]/,dA=/[\x2E\u3002\uFF0E\uFF61]/g,hA={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Sl=cr-zd,fr=Math.floor,kl=String.fromCharCode;function Gr(e){throw new RangeError(hA[e])}function pA(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function fy(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(dA,".");const i=e.split("."),s=pA(i,t).join(".");return r+s}function dy(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const s=e.charCodeAt(n++);(s&64512)==56320?t.push(((i&1023)<<10)+(s&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}const mA=e=>String.fromCodePoint(...e),gA=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:cr},h1=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},hy=function(e,t,n){let r=0;for(e=n?fr(e/lA):e>>1,e+=fr(e/t);e>Sl*vo>>1;r+=cr)e=fr(e/Sl);return fr(r+(Sl+1)*e/(e+uA))},py=function(e){const t=[],n=e.length;let r=0,i=ly,s=uy,o=e.lastIndexOf(cy);o<0&&(o=0);for(let a=0;a<o;++a)e.charCodeAt(a)>=128&&Gr("not-basic"),t.push(e.charCodeAt(a));for(let a=o>0?o+1:0;a<n;){const u=r;for(let c=1,f=cr;;f+=cr){a>=n&&Gr("invalid-input");const d=gA(e.charCodeAt(a++));d>=cr&&Gr("invalid-input"),d>fr((as-r)/c)&&Gr("overflow"),r+=d*c;const h=f<=s?zd:f>=s+vo?vo:f-s;if(d<h)break;const p=cr-h;c>fr(as/p)&&Gr("overflow"),c*=p}const l=t.length+1;s=hy(r-u,l,u==0),fr(r/l)>as-i&&Gr("overflow"),i+=fr(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)},my=function(e){const t=[];e=dy(e);const n=e.length;let r=ly,i=0,s=uy;for(const u of e)u<128&&t.push(kl(u));const o=t.length;let a=o;for(o&&t.push(cy);a<n;){let u=as;for(const c of e)c>=r&&c<u&&(u=c);const l=a+1;u-r>fr((as-i)/l)&&Gr("overflow"),i+=(u-r)*l,r=u;for(const c of e)if(c<r&&++i>as&&Gr("overflow"),c===r){let f=i;for(let d=cr;;d+=cr){const h=d<=s?zd:d>=s+vo?vo:d-s;if(f<h)break;const p=f-h,b=cr-h;t.push(kl(h1(h+p%b,0))),f=fr(p/b)}t.push(kl(h1(f,0))),s=hy(i,l,a===o),i=0,++a}++i,++r}return t.join("")},bA=function(e){return fy(e,function(t){return cA.test(t)?py(t.slice(4).toLowerCase()):t})},vA=function(e){return fy(e,function(t){return fA.test(t)?"xn--"+my(t):t})},gy={version:"2.3.1",ucs2:{decode:dy,encode:mA},decode:py,encode:my,toASCII:vA,toUnicode:bA},yA={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},xA={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},EA={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},_A={default:yA,zero:xA,commonmark:EA},TA=/^(vbscript|javascript|file|data):/,wA=/^data:image\/(gif|png|jpeg|webp);/;function SA(e){const t=e.trim().toLowerCase();return TA.test(t)?wA.test(t):!0}const by=["http:","https:","mailto:"];function kA(e){const t=Vd(e,!0);if(t.hostname&&(!t.protocol||by.indexOf(t.protocol)>=0))try{t.hostname=gy.toASCII(t.hostname)}catch{}return Mo(Md(t))}function AA(e){const t=Vd(e,!0);if(t.hostname&&(!t.protocol||by.indexOf(t.protocol)>=0))try{t.hostname=gy.toUnicode(t.hostname)}catch{}return xs(Md(t),xs.defaultChars+"%")}function Mn(e,t){if(!(this instanceof Mn))return new Mn(e,t);t||jd(e)||(t=e||{},e="default"),this.inline=new $o,this.block=new zu,this.core=new Ud,this.renderer=new As,this.linkify=new Tn,this.validateLink=SA,this.normalizeLink=kA,this.normalizeLinkText=AA,this.utils=NS,this.helpers=Uu({},LS),this.options={},this.configure(e),t&&this.set(t)}Mn.prototype.set=function(e){return Uu(this.options,e),this};Mn.prototype.configure=function(e){const t=this;if(jd(e)){const n=e;if(e=_A[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Mn.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Mn.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Mn.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Mn.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Mn.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Mn.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Mn.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const DA=new Mn({breaks:!1,linkify:!0});function Al(e){const t=me.c(26),{defaultSizeRelation:n,direction:r,initiallyHidden:i,onHiddenElementChange:s,sizeThresholdFirst:o,sizeThresholdSecond:a,storageKey:u}=e,l=n===void 0?1:n,c=o===void 0?100:o,f=a===void 0?100:a,d=Ct(NA);let h;t[0]!==i||t[1]!==d||t[2]!==u?(h=()=>{const W=u&&d.get(u);return W===fa||i==="first"?"first":W===da||i==="second"?"second":null},t[0]=i,t[1]=d,t[2]=u,t[3]=h):h=t[3];const[p,b]=g.useState(h),v=g.useRef(null),_=g.useRef(null),x=g.useRef(null),E=g.useRef(`${l}`);let T;t[4]!==d||t[5]!==u?(T=()=>{const W=u&&d.get(u)||E.current;v.current&&(v.current.style.flex=W===fa||W===da?E.current:W),x.current&&(x.current.style.flex="1")},t[4]=d,t[5]=u,t[6]=T):T=t[6];let k;t[7]!==r||t[8]!==d||t[9]!==u?(k=[r,d,u],t[7]=r,t[8]=d,t[9]=u,t[10]=k):k=t[10],g.useEffect(T,k);let A,I;t[11]!==p||t[12]!==d||t[13]!==u?(A=()=>{const W=function(N){if(N.style.left="-1000px",N.style.position="absolute",N.style.opacity="0",!v.current)return;const M=parseFloat(v.current.style.flex);(!Number.isFinite(M)||M<1)&&(v.current.style.flex="1")},Z=function(N){if(N.style.left="",N.style.position="",N.style.opacity="",!u)return;const M=d.get(u);v.current&&M!==fa&&M!==da&&(v.current.style.flex=M||E.current)};for(const O of["first","second"]){const N=(O==="first"?v:x).current;N&&(O===p?W(N):Z(N))}},I=[p,d,u],t[11]=p,t[12]=d,t[13]=u,t[14]=A,t[15]=I):(A=t[14],I=t[15]),g.useEffect(A,I);let U,D;t[16]!==r||t[17]!==s||t[18]!==c||t[19]!==f||t[20]!==d||t[21]!==u?(D=()=>{if(!_.current||!v.current||!x.current)return;const W=gs(500,re=>{u&&d.set(u,re)}),Z=function(L){b(ee=>L===ee?ee:(s==null||s(L),L))},O=_.current,N=v.current,M=N.parentElement,q=r==="horizontal",Q=q?"clientX":"clientY",$=q?"left":"top",B=q?"right":"bottom",oe=q?"clientWidth":"clientHeight",de=function(L){if(!(L.target===L.currentTarget))return;L.preventDefault();const ue=L[Q]-O.getBoundingClientRect()[$],ie=function(ae){if(ae.buttons===0)return H();const ke=M.getBoundingClientRect(),we=ae[Q]-ke[$]-ue,R=ke[B]-ae[Q]+ue-O[oe];if(we<c)Z("first"),W(fa);else if(R<f)Z("second"),W(da);else{Z(null);const C=`${we/R}`;N.style.flex=C,W(C)}};function H(){document.removeEventListener("mousemove",ie),document.removeEventListener("mouseup",H)}document.addEventListener("mousemove",ie),document.addEventListener("mouseup",H)};O.addEventListener("mousedown",de);const V=function(){v.current&&(v.current.style.flex=E.current),W(E.current),Z(null)};return O.addEventListener("dblclick",V),()=>{O.removeEventListener("mousedown",de),O.removeEventListener("dblclick",V)}},U=[r,s,c,f,d,u],t[16]=r,t[17]=s,t[18]=c,t[19]=f,t[20]=d,t[21]=u,t[22]=U,t[23]=D):(U=t[22],D=t[23]),g.useEffect(D,U);let z;return t[24]!==p?(z={dragBarRef:_,hiddenElement:p,firstRef:v,setHiddenElement:b,secondRef:x},t[24]=p,t[25]=z):z=t[25],z}function NA(e){return e.storage}const fa="hide-first",da="hide-second";function vy(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=vy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function We(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=vy(e))&&(r&&(r+=" "),r+=t);return r}const yy=g.forwardRef((e,t)=>{const n=me.c(6);let r;n[0]!==e.className?(r=We("graphiql-un-styled",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=y.jsx($E,{asChild:!0,children:y.jsx("button",{...e,ref:t,className:r})}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});yy.displayName="DropdownMenuButton";const CA=e=>{const t=me.c(14);let n,r,i,s,o;t[0]!==e?({children:n,align:s,sideOffset:o,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=o):(n=t[1],r=t[2],i=t[3],s=t[4],o=t[5]);const a=s===void 0?"start":s,u=o===void 0?5:o;let l;t[6]!==r?(l=We("graphiql-dropdown-content",r),t[6]=r,t[7]=l):l=t[7];let c;return t[8]!==a||t[9]!==n||t[10]!==i||t[11]!==u||t[12]!==l?(c=y.jsx(PE,{children:y.jsx(ME,{align:a,sideOffset:u,className:l,...i,children:n})}),t[8]=a,t[9]=n,t[10]=i,t[11]=u,t[12]=l,t[13]=c):c=t[13],c},IA=e=>{const t=me.c(10);let n,r,i;t[0]!==e?({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);let s;t[4]!==r?(s=We("graphiql-dropdown-item",r),t[4]=r,t[5]=s):s=t[5];let o;return t[6]!==n||t[7]!==i||t[8]!==s?(o=y.jsx(VE,{className:s,...i,children:n}),t[6]=n,t[7]=i,t[8]=s,t[9]=o):o=t[9],o},ha=Object.assign(RE,{Button:yy,Item:IA,Content:CA}),FA=e=>{const t=me.c(10),{children:n,align:r,side:i,sideOffset:s,label:o}=e,a=r===void 0?"start":r,u=i===void 0?"bottom":i,l=s===void 0?5:s;let c;t[0]!==n?(c=y.jsx(xE,{asChild:!0,children:n}),t[0]=n,t[1]=c):c=t[1];let f;t[2]!==a||t[3]!==o||t[4]!==u||t[5]!==l?(f=y.jsx(EE,{children:y.jsx(_E,{className:"graphiql-tooltip",align:a,side:u,sideOffset:l,children:o})}),t[2]=a,t[3]=o,t[4]=u,t[5]=l,t[6]=f):f=t[6];let d;return t[7]!==c||t[8]!==f?(d=y.jsxs(TE,{children:[c,f]}),t[7]=c,t[8]=f,t[9]=d):d=t[9],d},cn=Object.assign(FA,{Provider:yE}),LA=()=>{const e=me.c(18),{setOperationName:t,run:n,stop:r}=Er();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=er("operations","operationName","isFetching","overrideOperationName"),e[0]=i):i=e[0];const{operations:s,operationName:o,isFetching:a,overrideOperationName:u}=Ct(i);let l;e[1]!==s?(l=s===void 0?[]:s,e[1]=s,e[2]=l):l=e[2];const c=l,f=Ct(OA),d=c.length>1&&typeof u!="string",h=a||f,p=`${h?"Stop":"Execute"} query (${Ei(_t.runQuery.key,"Cmd")})`;let b;e[3]!==h?(b=h?y.jsx(d_,{}):y.jsx(i_,{}),e[3]=h,e[4]=b):b=e[4];let v;e[5]!==p||e[6]!==b?(v={type:"button",className:"graphiql-execute-button",children:b,"aria-label":p},e[5]=p,e[6]=b,e[7]=v):v=e[7];const _=v;let x;return e[8]!==_||e[9]!==d||e[10]!==h||e[11]!==p||e[12]!==o||e[13]!==c||e[14]!==n||e[15]!==t||e[16]!==r?(x=d&&!h?y.jsxs(ha,{children:[y.jsx(cn,{label:p,children:y.jsx(ha.Button,{..._})}),y.jsx(ha.Content,{children:c.map((E,T)=>{const k=E.name?E.name.value:`<Unnamed ${E.operation}>`;return y.jsx(ha.Item,{onSelect:()=>{var A;const I=(A=E.name)==null?void 0:A.value;I&&I!==o&&t(I),n()},children:k},`${k}-${T}`)})})]}):y.jsx(cn,{label:p,children:y.jsx("button",{..._,onClick:h?r:n})}),e[8]=_,e[9]=d,e[10]=h,e[11]=p,e[12]=o,e[13]=c,e[14]=n,e[15]=t,e[16]=r,e[17]=x):x=e[17],x};function OA(e){return!!e.subscription}const Ot=g.forwardRef((e,t)=>{const n=me.c(6);let r;n[0]!==e.className?(r=We("graphiql-un-styled",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=y.jsx("button",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Ot.displayName="UnStyledButton";const Gn=g.forwardRef((e,t)=>{const n=me.c(7);let r;n[0]!==e.className||n[1]!==e.state?(r=We("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=r):r=n[2];let i;return n[3]!==e||n[4]!==t||n[5]!==r?(i=y.jsx("button",{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i});Gn.displayName="Button";const Da=g.forwardRef((e,t)=>{const n=me.c(19);let r,i,s;n[0]!==e?({label:r,onClick:i,...s}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=s):(r=n[1],i=n[2],s=n[3]);const[o,a]=g.useState(null);let u;n[4]!==i?(u=v=>{try{i&&i(v),a(null)}catch(_){const x=_;a(x instanceof Error?x:new Error(`Toolbar button click failed: ${x}`))}},n[4]=i,n[5]=u):u=n[5];const l=u,c=o&&"error";let f;n[6]!==s.className||n[7]!==c?(f=We("graphiql-toolbar-button",c,s.className),n[6]=s.className,n[7]=c,n[8]=f):f=n[8];const d=o?o.message:r,h=o?"true":s["aria-invalid"];let p;n[9]!==l||n[10]!==s||n[11]!==t||n[12]!==f||n[13]!==d||n[14]!==h?(p=y.jsx(Ot,{...s,ref:t,type:"button",className:f,onClick:l,"aria-label":d,"aria-invalid":h}),n[9]=l,n[10]=s,n[11]=t,n[12]=f,n[13]=d,n[14]=h,n[15]=p):p=n[15];let b;return n[16]!==r||n[17]!==p?(b=y.jsx(cn,{label:r,children:p}),n[16]=r,n[17]=p,n[18]=b):b=n[18],b});Da.displayName="ToolbarButton";const RA=e=>{const t=me.c(19);let n,r;t[0]!==e?({onEdit:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{setEditor:i,run:s,prettifyEditors:o,mergeQuery:a}=Er();let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u=er("initialHeaders","shouldPersistHeaders","uriInstanceId"),t[3]=u):u=t[3];const{initialHeaders:l,shouldPersistHeaders:c,uriInstanceId:f}=Ct(u),d=g.useRef(null),h=Po(PA);qv(n,c?pt.headers:null,"headers");let p;t[4]!==l||t[5]!==a||t[6]!==h||t[7]!==o||t[8]!==s||t[9]!==i||t[10]!==f?(p=()=>{if(!h)return;const x=ju({uri:`${f}${ss.requestHeaders}`,value:l}),E=Bu(d,{model:x});i({headerEditor:E});const T=[E.addAction({...Wn.runQuery,run:s}),E.addAction({...Wn.prettify,run:o}),E.addAction({...Wn.mergeFragments,run:a}),E,x];return po(T)},t[4]=l,t[5]=a,t[6]=h,t[7]=o,t[8]=s,t[9]=i,t[10]=f,t[11]=p):p=t[11];let b;t[12]!==h?(b=[h],t[12]=h,t[13]=b):b=t[13],g.useEffect(p,b);let v;t[14]!==r.className?(v=We("graphiql-editor",r.className),t[14]=r.className,t[15]=v):v=t[15];let _;return t[16]!==r||t[17]!==v?(_=y.jsx("div",{ref:d,tabIndex:0,onKeyDown:$u,...r,className:v}),t[16]=r,t[17]=v,t[18]=_):_=t[18],_};function PA(e){return e.monaco}const MA=e=>{var t;const n=me.c(14),{path:r}=e;let i;n[0]===Symbol.for("react.memo_cache_sentinel")?(i={width:null,height:null},n[0]=i):i=n[0];const[s,o]=g.useState(i),{width:a,height:u}=s,[l,c]=g.useState(null),f=g.useRef(null),d=(t=xy(r))==null?void 0:t.href;let h,p;n[1]!==d?(h=()=>{if(!d){o({width:null,height:null}),c(null);return}fetch(d,{method:"HEAD"}).then(E=>{c(E.headers.get("Content-Type"))}).catch(()=>{c(null)})},p=[d],n[1]=d,n[2]=h,n[3]=p):(h=n[2],p=n[3]),g.useEffect(h,p);let b;n[4]===Symbol.for("react.memo_cache_sentinel")?(b=()=>{o({width:f.current.naturalWidth,height:f.current.naturalHeight})},n[4]=b):b=n[4];let v;n[5]!==d?(v=y.jsx("img",{alt:"",onLoad:b,ref:f,src:d}),n[5]=d,n[6]=v):v=n[6];let _;n[7]!==u||n[8]!==l||n[9]!==a?(_=a!==null&&u!==null&&y.jsxs("div",{children:[a,"x",u,l&&" "+l]}),n[7]=u,n[8]=l,n[9]=a,n[10]=_):_=n[10];let x;return n[11]!==v||n[12]!==_?(x=y.jsxs("div",{children:[v,_]}),n[11]=v,n[12]=_,n[13]=x):x=n[13],x},p1=Object.assign(MA,{shouldRender(e){const t=xy(e);return t?/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(t.pathname):!1}});function xy(e){const t=e.slice(1).trim();try{return new URL(t,location.protocol+"//"+location.host)}catch{}}const XP=e=>"getModeId"in e?e.getModeId():e.getLanguageId();function VA(e){return new T8(e.lineNumber-1,e.column-1)}const JP=e=>{const{schema:t,documentAST:n,introspectionJSON:r,introspectionJSONString:i,documentString:s,...o}=e;if(t)return{...o,documentString:Ac(t)};if(i)return{...o,introspectionJSONString:i};if(s)return{...o,documentString:s};if(r)return{...o,introspectionJSONString:JSON.stringify(r)};if(n){const a=Cd(n,o.buildSchemaOptions);return{...o,documentString:Ac(a)}}throw new Error("No schema supplied")},$A=e=>{const t=me.c(53);let n,r,i;t[0]!==e?({onClickReference:n,onEdit:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);const{setOperationName:s,setEditor:o,updateActiveTabValues:a,setVisiblePlugin:u,setSchemaReference:l,run:c,setOperationFacts:f,copyQuery:d,prettifyEditors:h,mergeQuery:p}=Er();let b;t[4]===Symbol.for("react.memo_cache_sentinel")?(b=er("initialQuery","schema","referencePlugin","operations","operationName","externalFragments","uriInstanceId","storage","monacoTheme"),t[4]=b):b=t[4];const{initialQuery:v,schema:_,referencePlugin:x,operations:E,operationName:T,externalFragments:k,uriInstanceId:A,storage:I,monacoTheme:U}=Ct(b),D=g.useRef(null),z=g.useRef(null);let W,Z;t[5]!==n?(W=()=>{z.current=n},Z=[n],t[5]=n,t[6]=W,t[7]=Z):(W=t[6],Z=t[7]),g.useEffect(W,Z);let O;t[8]!==T||t[9]!==E||t[10]!==_||t[11]!==f?(O=function(ie){const H=k8(_,ie.getValue()),ce=Fw(E,T,H==null?void 0:H.operations);return f({documentAST:H==null?void 0:H.documentAST,operationName:ce,operations:H==null?void 0:H.operations}),H?{...H,operationName:ce}:null},t[8]=T,t[9]=E,t[10]=_,t[11]=f,t[12]=O):O=t[12];const N=O,M=g.useRef(null);let q,Q;t[13]!==T||t[14]!==E||t[15]!==c||t[16]!==s?(q=()=>{M.current=ue=>{var ie;if(!E){c();return}const H=ue.getPosition(),ce=ue.getModel().getOffsetAt(H);let ae;for(const ke of E)ke.loc&&ke.loc.start<=ce&&ke.loc.end>=ce&&(ae=(ie=ke.name)==null?void 0:ie.value);ae&&ae!==T&&s(ae),c()}},Q=[T,E,c,s],t[13]=T,t[14]=E,t[15]=c,t[16]=s,t[17]=q,t[18]=Q):(q=t[17],Q=t[18]),g.useEffect(q,Q);const{monacoGraphQL:$,monaco:B}=Po();let oe;t[19]!==d||t[20]!==N||t[21]!==v||t[22]!==p||t[23]!==B||t[24]!==$||t[25]!==U||t[26]!==r||t[27]!==T||t[28]!==h||t[29]!==o||t[30]!==s||t[31]!==I||t[32]!==a||t[33]!==A?(oe=()=>{if(!B||!$)return;const ue=cs.file(`${A}${ss.operation}`),ie=cs.file(`${A}${ss.variables}`),{validateVariablesJSON:H}=mc;H[ue.toString()]=[ie.toString()],$.setDiagnosticSettings(mc);const ce=ju({uri:ue.path.replace("/",""),value:v}),ae=Bu(D,{model:ce,theme:U});o({queryEditor:ae});const ke=gs(100,()=>{const R=ae.getValue();I.set(pt.query,R);const C=N(ae);r==null||r(R,C==null?void 0:C.documentAST),C!=null&&C.operationName&&T!==C.operationName&&s(C.operationName),a({query:R,operationName:(C==null?void 0:C.operationName)??null})});N(ae);const we=[ce.onDidChangeContent(ke),ae.addAction({...Wn.runQuery,run:(...R)=>{const C=R;return M.current(...C)}}),ae.addAction({...Wn.copyQuery,run:d}),ae.addAction({...Wn.prettify,run:h}),ae.addAction({...Wn.mergeFragments,run:p}),ae,ce];return po(we)},t[19]=d,t[20]=N,t[21]=v,t[22]=p,t[23]=B,t[24]=$,t[25]=U,t[26]=r,t[27]=T,t[28]=h,t[29]=o,t[30]=s,t[31]=I,t[32]=a,t[33]=A,t[34]=oe):oe=t[34];let de;t[35]!==B||t[36]!==$?(de=[B,$],t[35]=B,t[36]=$,t[37]=de):de=t[37],g.useEffect(oe,de);let V,re;t[38]!==k||t[39]!==B||t[40]!==$||t[41]!==x||t[42]!==_||t[43]!==l||t[44]!==u||t[45]!==A?(re=()=>{if(!_||!B||!$||($.setSchemaConfig([{uri:`${A}${ss.schema}`,schema:_}]),$.setExternalFragmentDefinitions([...k.values()]),!x))return;let ue;ue=null;const ie=[B.languages.registerDefinitionProvider("graphql",{provideDefinition(H,ce,ae){const ke=VA(ce),we=g8(H.getValue(),ke,_);if(!we)return;const{typeInfo:R,token:C}=we,{kind:te,step:F}=C.state;if(te==="Field"&&F===0&&R.fieldDef||te==="AliasedField"&&F===2&&R.fieldDef||te==="ObjectField"&&F===0&&R.fieldDef||te==="Directive"&&F===1&&R.directiveDef||te==="Variable"&&R.type||te==="Argument"&&F===0&&R.argDef||te==="EnumValue"&&R.enumValue&&"description"in R.enumValue||te==="NamedType"&&R.type&&"description"in R.type){ue={kind:te,typeInfo:R};const{lineNumber:S,column:K}=ce,le=new hr(S,K,S,K);return[{uri:H.uri,range:le}]}ue=null}}),B.languages.registerReferenceProvider("graphql",{provideReferences(H,ce,ae,ke){var we;const{lineNumber:R,column:C}=ce;if(!ue)return;u(x),l(ue),(we=z.current)==null||we.call(z,ue);const te=new hr(R,C,R,C);return[{uri:H.uri,range:te}]}})];return po(ie)},V=[_,x,l,u,k,A,$,B],t[38]=k,t[39]=B,t[40]=$,t[41]=x,t[42]=_,t[43]=l,t[44]=u,t[45]=A,t[46]=V,t[47]=re):(V=t[46],re=t[47]),g.useEffect(re,V);let L;t[48]!==i.className?(L=We("graphiql-editor",i.className),t[48]=i.className,t[49]=L):L=t[49];let ee;return t[50]!==i||t[51]!==L?(ee=y.jsx("div",{ref:D,tabIndex:0,onKeyDown:$u,...i,className:L}),t[50]=i,t[51]=L,t[52]=ee):ee=t[52],ee},jA=e=>{const t=me.c(22);let n,r;t[0]!==e?({responseTooltip:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{setEditor:i,run:s}=Er();let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=er("fetchError","validationErrors","responseEditor","uriInstanceId"),t[3]=o):o=t[3];const{fetchError:a,validationErrors:u,responseEditor:l,uriInstanceId:c}=Ct(o),f=g.useRef(null),d=Po(BA);let h,p;t[4]!==a||t[5]!==l||t[6]!==u?(h=()=>{a&&(l==null||l.setValue(a)),u.length&&(l==null||l.setValue(Ys(u)))},p=[l,a,u],t[4]=a,t[5]=l,t[6]=u,t[7]=h,t[8]=p):(h=t[7],p=t[8]),g.useEffect(h,p);let b;t[9]!==n||t[10]!==d||t[11]!==s||t[12]!==i||t[13]!==c?(b=()=>{if(!d)return;const E=ju({uri:`${c}${ss.response}`,value:""}),T=Bu(f,{model:E,readOnly:!0,lineNumbers:"off",wordWrap:"on",contextmenu:!1});i({responseEditor:T});let k,A;const I=(z,W)=>{if(!(z.uri===E.uri))return null;const O=z.getWordAtPosition(W);if(!(O!=null&&O.word.startsWith("/"))||!p1.shouldRender(O.word))return null;const M=`hover-${W.lineNumber}-${W.column}`;return A&&clearTimeout(A),A=setTimeout(()=>{const q=document.querySelector(`[data-id="${M}"]`);q&&(k==null||k.unmount(),k=wE.createRoot(q),k.render(y.jsxs(y.Fragment,{children:[n&&y.jsx(n,{position:W,word:O}),y.jsx(p1,{path:O.word})]})))},500),{range:new hr(W.lineNumber,O.startColumn,W.lineNumber,O.endColumn),contents:[{value:`<div data-id="${M}">Loading...</div>`,supportHtml:!0}]}},U=E.getLanguageId(),D=[d.languages.registerHoverProvider(U,{provideHover:I}),T.addAction({...Wn.runQuery,run:s}),T,E];return po(D)},t[9]=n,t[10]=d,t[11]=s,t[12]=i,t[13]=c,t[14]=b):b=t[14];let v;t[15]!==d?(v=[d],t[15]=d,t[16]=v):v=t[16],g.useEffect(b,v);let _;t[17]!==r.className?(_=We("result-window",r.className),t[17]=r.className,t[18]=_):_=t[18];let x;return t[19]!==r||t[20]!==_?(x=y.jsx("section",{ref:f,"aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",tabIndex:0,onKeyDown:$u,...r,className:_}),t[19]=r,t[20]=_,t[21]=x):x=t[21],x};function BA(e){return e.monaco}const UA=e=>{const t=me.c(19);let n,r;t[0]!==e?({onEdit:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{setEditor:i,run:s,prettifyEditors:o,mergeQuery:a}=Er();let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u=er("initialVariables","uriInstanceId"),t[3]=u):u=t[3];const{initialVariables:l,uriInstanceId:c}=Ct(u),f=g.useRef(null),d=Po(qA);qv(n,pt.variables,"variables");let h;t[4]!==l||t[5]!==a||t[6]!==d||t[7]!==o||t[8]!==s||t[9]!==i||t[10]!==c?(h=()=>{if(!d)return;const _=ju({uri:`${c}${ss.variables}`,value:l}),x=Bu(f,{model:_});i({variableEditor:x});const E=[x.addAction({...Wn.runQuery,run:s}),x.addAction({...Wn.prettify,run:o}),x.addAction({...Wn.mergeFragments,run:a}),x,_];return po(E)},t[4]=l,t[5]=a,t[6]=d,t[7]=o,t[8]=s,t[9]=i,t[10]=c,t[11]=h):h=t[11];let p;t[12]!==d?(p=[d],t[12]=d,t[13]=p):p=t[13],g.useEffect(h,p);let b;t[14]!==r.className?(b=We("graphiql-editor",r.className),t[14]=r.className,t[15]=b):b=t[15];let v;return t[16]!==r||t[17]!==b?(v=y.jsx("div",{ref:f,tabIndex:0,onKeyDown:$u,...r,className:b}),t[16]=r,t[17]=b,t[18]=v):v=t[18],v};function qA(e){return e.monaco}const Yc=g.forwardRef((e,t)=>{const n=me.c(6);let r;n[0]!==e.className?(r=We("graphiql-button-group",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=y.jsx("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Yc.displayName="ButtonGroup";const Ey=g.forwardRef((e,t)=>{const n=me.c(8);let r;n[0]!==e.className?(r=We("graphiql-dialog-close",e.className),n[0]=e.className,n[1]=r):r=n[1];let i,s;n[2]===Symbol.for("react.memo_cache_sentinel")?(i=y.jsx(tc,{children:"Close dialog"}),s=y.jsx(jf,{}),n[2]=i,n[3]=s):(i=n[2],s=n[3]);let o;return n[4]!==e||n[5]!==t||n[6]!==r?(o=y.jsx(o6,{asChild:!0,children:y.jsxs(Ot,{...e,ref:t,type:"button",className:r,children:[i,s]})}),n[4]=e,n[5]=t,n[6]=r,n[7]=o):o=n[7],o});Ey.displayName="Dialog.Close";const zA=e=>{const t=me.c(9);let n,r;t[0]!==e?({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=y.jsx(n6,{className:"graphiql-dialog-overlay"}),t[3]=i):i=t[3];let s;t[4]!==n?(s=y.jsxs(t6,{children:[i,y.jsx(r6,{className:"graphiql-dialog",children:n})]}),t[4]=n,t[5]=s):s=t[5];let o;return t[6]!==r||t[7]!==s?(o=y.jsx(KE,{...r,children:s}),t[6]=r,t[7]=s,t[8]=o):o=t[8],o},zr=Object.assign(zA,{Close:Ey,Title:i6,Trigger:e6,Description:s6}),yr=g.forwardRef((e,t)=>{const n=me.c(18);let r,i,s,o;n[0]!==e?({children:r,onlyShowFirstChild:i,type:o,...s}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=s,n[4]=o):(r=n[1],i=n[2],s=n[3],o=n[4]);const a=`graphiql-markdown-${o}`,u=i&&"graphiql-markdown-preview";let l;n[5]!==s.className||n[6]!==a||n[7]!==u?(l=We(a,u,s.className),n[5]=s.className,n[6]=a,n[7]=u,n[8]=l):l=n[8];let c;n[9]!==r?(c=DA.render(r),n[9]=r,n[10]=c):c=n[10];let f;n[11]!==c?(f={__html:c},n[11]=c,n[12]=f):f=n[12];let d;return n[13]!==s||n[14]!==t||n[15]!==l||n[16]!==f?(d=y.jsx("div",{...s,ref:t,className:l,dangerouslySetInnerHTML:f}),n[13]=s,n[14]=t,n[15]=l,n[16]=f,n[17]=d):d=n[17],d});yr.displayName="MarkdownContent";const Hd=g.forwardRef((e,t)=>{const n=me.c(6);let r;n[0]!==e.className?(r=We("graphiql-spinner",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=y.jsx("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Hd.displayName="Spinner";const _y=g.createContext({});function jo(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Gd=typeof window<"u",Ty=Gd?g.useLayoutEffect:g.useEffect,Wd=g.createContext(null);function Qd(e,t){e.indexOf(t)===-1&&e.push(t)}function Yd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function HA([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[s]=e.splice(t,1);e.splice(i,0,s)}return e}const Rr=(e,t,n)=>n>t?t:n<e?e:n;let Xd=()=>{};const Pr={},wy=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Sy(e){return typeof e=="object"&&e!==null}const ky=e=>/^0[^.\s]+$/u.test(e);function Jd(e){let t;return()=>(t===void 0&&(t=e()),t)}const On=e=>e,GA=(e,t)=>n=>t(e(n)),Bo=(...e)=>e.reduce(GA),yo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Zd{constructor(){this.subscriptions=[]}add(t){return Qd(this.subscriptions,t),()=>Yd(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pr=e=>e*1e3,mr=e=>e/1e3;function Ay(e,t){return t?e*(1e3/t):0}const Dy=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,WA=1e-7,QA=12;function YA(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Dy(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>WA&&++a<QA);return o}function Uo(e,t,n,r){if(e===t&&n===r)return On;const i=s=>YA(s,0,1,e,n);return s=>s===0||s===1?s:Dy(i(s),t,r)}const Ny=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Cy=e=>t=>1-e(1-t),Iy=Uo(.33,1.53,.69,.99),Kd=Cy(Iy),Fy=Ny(Kd),Ly=e=>(e*=2)<1?.5*Kd(e):.5*(2-Math.pow(2,-10*(e-1))),e0=e=>1-Math.sin(Math.acos(e)),Oy=Cy(e0),Ry=Ny(e0),XA=Uo(.42,0,1,1),JA=Uo(0,0,.58,1),Py=Uo(.42,0,.58,1),ZA=e=>Array.isArray(e)&&typeof e[0]!="number",My=e=>Array.isArray(e)&&typeof e[0]=="number",KA={linear:On,easeIn:XA,easeInOut:Py,easeOut:JA,circIn:e0,circInOut:Ry,circOut:Oy,backIn:Kd,backInOut:Fy,backOut:Iy,anticipate:Ly},eD=e=>typeof e=="string",m1=e=>{if(My(e)){Xd(e.length===4);const[t,n,r,i]=e;return Uo(t,n,r,i)}else if(eD(e))return KA[e];return e},pa=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tD(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(c){o.has(c)&&(l.schedule(c),e()),c(a)}const l={schedule:(c,f=!1,d=!1)=>{const p=d&&i?n:r;return f&&o.add(c),p.has(c)||p.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(a=c,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),n.clear(),i=!1,s&&(s=!1,l.process(c))}};return l}const nD=40;function Vy(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=pa.reduce((E,T)=>(E[T]=tD(s),E),{}),{setup:a,read:u,resolveKeyframes:l,preUpdate:c,update:f,preRender:d,render:h,postRender:p}=o,b=()=>{const E=Pr.useManualTiming?i.timestamp:performance.now();n=!1,Pr.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(E-i.timestamp,nD),1)),i.timestamp=E,i.isProcessing=!0,a.process(i),u.process(i),l.process(i),c.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(b))},v=()=>{n=!0,r=!0,i.isProcessing||e(b)};return{schedule:pa.reduce((E,T)=>{const k=o[T];return E[T]=(A,I=!1,U=!1)=>(n||v(),k.schedule(A,I,U)),E},{}),cancel:E=>{for(let T=0;T<pa.length;T++)o[pa[T]].cancel(E)},state:i,steps:o}}const{schedule:st,cancel:Mr,state:Gt,steps:Dl}=Vy(typeof requestAnimationFrame<"u"?requestAnimationFrame:On,!0);let Na;function rD(){Na=void 0}const fn={now:()=>(Na===void 0&&fn.set(Gt.isProcessing||Pr.useManualTiming?Gt.timestamp:performance.now()),Na),set:e=>{Na=e,queueMicrotask(rD)}},$y=e=>t=>typeof t=="string"&&t.startsWith(e),t0=$y("--"),iD=$y("var(--"),n0=e=>iD(e)?sD.test(e.split("/*")[0].trim()):!1,sD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ds={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xo={...Ds,transform:e=>Rr(0,1,e)},ma={...Ds,default:1},Js=e=>Math.round(e*1e5)/1e5,r0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function oD(e){return e==null}const aD=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,i0=(e,t)=>n=>!!(typeof n=="string"&&aD.test(n)&&n.startsWith(e)||t&&!oD(n)&&Object.prototype.hasOwnProperty.call(n,t)),jy=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(r0);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},uD=e=>Rr(0,255,e),Nl={...Ds,transform:e=>Math.round(uD(e))},gi={test:i0("rgb","red"),parse:jy("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Nl.transform(e)+", "+Nl.transform(t)+", "+Nl.transform(n)+", "+Js(xo.transform(r))+")"};function lD(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Xc={test:i0("#"),parse:lD,transform:gi.transform},qo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hr=qo("deg"),gr=qo("%"),_e=qo("px"),cD=qo("vh"),fD=qo("vw"),g1={...gr,parse:e=>gr.parse(e)/100,transform:e=>gr.transform(e*100)},Xi={test:i0("hsl","hue"),parse:jy("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+gr.transform(Js(t))+", "+gr.transform(Js(n))+", "+Js(xo.transform(r))+")"},Dt={test:e=>gi.test(e)||Xc.test(e)||Xi.test(e),parse:e=>gi.test(e)?gi.parse(e):Xi.test(e)?Xi.parse(e):Xc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?gi.transform(e):Xi.transform(e),getAnimatableNone:e=>{const t=Dt.parse(e);return t.alpha=0,Dt.transform(t)}},dD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hD(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(r0))==null?void 0:t.length)||0)+(((n=e.match(dD))==null?void 0:n.length)||0)>0}const By="number",Uy="color",pD="var",mD="var(",b1="${}",gD=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Eo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(gD,u=>(Dt.test(u)?(r.color.push(s),i.push(Uy),n.push(Dt.parse(u))):u.startsWith(mD)?(r.var.push(s),i.push(pD),n.push(u)):(r.number.push(s),i.push(By),n.push(parseFloat(u))),++s,b1)).split(b1);return{values:n,split:a,indexes:r,types:i}}function qy(e){return Eo(e).values}function zy(e){const{split:t,types:n}=Eo(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===By?s+=Js(i[o]):a===Uy?s+=Dt.transform(i[o]):s+=i[o]}return s}}const bD=e=>typeof e=="number"?0:Dt.test(e)?Dt.getAnimatableNone(e):e;function vD(e){const t=qy(e);return zy(e)(t.map(bD))}const ei={test:hD,parse:qy,createTransformer:zy,getAnimatableNone:vD};function Cl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yD({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;i=Cl(u,a,e+1/3),s=Cl(u,a,e),o=Cl(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function uu(e,t){return n=>n>0?t:e}const at=(e,t,n)=>e+(t-e)*n,Il=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},xD=[Xc,gi,Xi],ED=e=>xD.find(t=>t.test(e));function v1(e){const t=ED(e);if(!t)return!1;let n=t.parse(e);return t===Xi&&(n=yD(n)),n}const y1=(e,t)=>{const n=v1(e),r=v1(t);if(!n||!r)return uu(e,t);const i={...n};return s=>(i.red=Il(n.red,r.red,s),i.green=Il(n.green,r.green,s),i.blue=Il(n.blue,r.blue,s),i.alpha=at(n.alpha,r.alpha,s),gi.transform(i))},Jc=new Set(["none","hidden"]);function _D(e,t){return Jc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TD(e,t){return n=>at(e,t,n)}function s0(e){return typeof e=="number"?TD:typeof e=="string"?n0(e)?uu:Dt.test(e)?y1:kD:Array.isArray(e)?Hy:typeof e=="object"?Dt.test(e)?y1:wD:uu}function Hy(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>s0(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function wD(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=s0(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function SD(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][r[s]],a=e.values[o]??0;n[i]=a,r[s]++}return n}const kD=(e,t)=>{const n=ei.createTransformer(t),r=Eo(e),i=Eo(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Jc.has(e)&&!i.values.length||Jc.has(t)&&!r.values.length?_D(e,t):Bo(Hy(SD(r,i),i.values),n):uu(e,t)};function Gy(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?at(e,t,n):s0(e)(e,t)}const AD=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>st.update(t,n),stop:()=>Mr(t),now:()=>Gt.isProcessing?Gt.timestamp:fn.now()}},Wy=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},lu=2e4;function o0(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lu;)t+=n,r=e.next(t);return t>=lu?1/0:t}function DD(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(o0(r),lu);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:mr(i)}}const ND=5;function Qy(e,t,n){const r=Math.max(t-ND,0);return Ay(n-e(r),t-r)}const ht={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Fl=.001;function CD({duration:e=ht.duration,bounce:t=ht.bounce,velocity:n=ht.velocity,mass:r=ht.mass}){let i,s,o=1-t;o=Rr(ht.minDamping,ht.maxDamping,o),e=Rr(ht.minDuration,ht.maxDuration,mr(e)),o<1?(i=l=>{const c=l*o,f=c*e,d=c-n,h=Zc(l,o),p=Math.exp(-f);return Fl-d/h*p},s=l=>{const f=l*o*e,d=f*n+n,h=Math.pow(o,2)*Math.pow(l,2)*e,p=Math.exp(-f),b=Zc(Math.pow(l,2),o);return(-i(l)+Fl>0?-1:1)*((d-h)*p)/b}):(i=l=>{const c=Math.exp(-l*e),f=(l-n)*e+1;return-Fl+c*f},s=l=>{const c=Math.exp(-l*e),f=(n-l)*(e*e);return c*f});const a=5/e,u=FD(i,s,a);if(e=pr(e),isNaN(u))return{stiffness:ht.stiffness,damping:ht.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:e}}}const ID=12;function FD(e,t,n){let r=n;for(let i=1;i<ID;i++)r=r-e(r)/t(r);return r}function Zc(e,t){return e*Math.sqrt(1-t*t)}const LD=["duration","bounce"],OD=["stiffness","damping","mass"];function x1(e,t){return t.some(n=>e[n]!==void 0)}function RD(e){let t={velocity:ht.velocity,stiffness:ht.stiffness,damping:ht.damping,mass:ht.mass,isResolvedFromDuration:!1,...e};if(!x1(e,OD)&&x1(e,LD))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Rr(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ht.mass,stiffness:i,damping:s}}else{const n=CD(e);t={...t,...n,mass:ht.mass},t.isResolvedFromDuration=!0}return t}function cu(e=ht.visualDuration,t=ht.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:u,damping:l,mass:c,duration:f,velocity:d,isResolvedFromDuration:h}=RD({...n,velocity:-mr(n.velocity||0)}),p=d||0,b=l/(2*Math.sqrt(u*c)),v=o-s,_=mr(Math.sqrt(u/c)),x=Math.abs(v)<5;r||(r=x?ht.restSpeed.granular:ht.restSpeed.default),i||(i=x?ht.restDelta.granular:ht.restDelta.default);let E;if(b<1){const k=Zc(_,b);E=A=>{const I=Math.exp(-b*_*A);return o-I*((p+b*_*v)/k*Math.sin(k*A)+v*Math.cos(k*A))}}else if(b===1)E=k=>o-Math.exp(-_*k)*(v+(p+_*v)*k);else{const k=_*Math.sqrt(b*b-1);E=A=>{const I=Math.exp(-b*_*A),U=Math.min(k*A,300);return o-I*((p+b*_*v)*Math.sinh(U)+k*v*Math.cosh(U))/k}}const T={calculatedDuration:h&&f||null,next:k=>{const A=E(k);if(h)a.done=k>=f;else{let I=k===0?p:0;b<1&&(I=k===0?pr(p):Qy(E,k,A));const U=Math.abs(I)<=r,D=Math.abs(o-A)<=i;a.done=U&&D}return a.value=a.done?o:A,a},toString:()=>{const k=Math.min(o0(T),lu),A=Wy(I=>T.next(k*I).value,k,30);return k+"ms "+A},toTransition:()=>{}};return T}cu.applyToOptions=e=>{const t=DD(e,100,cu);return e.ease=t.ease,e.duration=pr(t.duration),e.type="keyframes",e};function Kc({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=U=>a!==void 0&&U<a||u!==void 0&&U>u,p=U=>a===void 0?u:u===void 0||Math.abs(a-U)<Math.abs(u-U)?a:u;let b=n*t;const v=f+b,_=o===void 0?v:o(v);_!==v&&(b=_-f);const x=U=>-b*Math.exp(-U/r),E=U=>_+x(U),T=U=>{const D=x(U),z=E(U);d.done=Math.abs(D)<=l,d.value=d.done?_:z};let k,A;const I=U=>{h(d.value)&&(k=U,A=cu({keyframes:[d.value,p(d.value)],velocity:Qy(E,U,d.value),damping:i,stiffness:s,restDelta:l,restSpeed:c}))};return I(0),{calculatedDuration:null,next:U=>{let D=!1;return!A&&k===void 0&&(D=!0,T(U),I(U)),k!==void 0&&U>=k?A.next(U-k):(!D&&T(U),d)}}}function PD(e,t,n){const r=[],i=n||Pr.mix||Gy,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||On:t;a=Bo(u,a)}r.push(a)}return r}function Yy(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Xd(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=PD(t,r,i),u=a.length,l=c=>{if(o&&c<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=yo(e[f],e[f+1],c);return a[f](d)};return n?c=>l(Rr(e[0],e[s-1],c)):l}function MD(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=yo(0,t,r);e.push(at(n,1,i))}}function VD(e){const t=[0];return MD(t,e.length-1),t}function $D(e,t){return e.map(n=>n*t)}function jD(e,t){return e.map(()=>t||Py).splice(0,e.length-1)}function Zs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=ZA(r)?r.map(m1):m1(r),s={done:!1,value:t[0]},o=$D(n&&n.length===t.length?n:VD(t),e),a=Yy(o,t,{ease:Array.isArray(i)?i:jD(t,i)});return{calculatedDuration:e,next:u=>(s.value=a(u),s.done=u>=e,s)}}const BD=e=>e!==null;function a0(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(BD),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const UD={decay:Kc,inertia:Kc,tween:Zs,keyframes:Zs,spring:cu};function Xy(e){typeof e.type=="string"&&(e.type=UD[e.type])}class u0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const qD=e=>e/100;class l0 extends u0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==fn.now()&&this.tick(fn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Xy(t);const{type:n=Zs,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const u=n||Zs;u!==Zs&&typeof a[0]!="number"&&(this.mixKeyframes=Bo(qD,Gy(a[0],a[1])),a=[0,100]);const l=u({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=o0(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:h,type:p,onUpdate:b,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const _=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?_<0:_>i;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let E=this.currentTime,T=r;if(f){const U=Math.min(this.currentTime,i)/a;let D=Math.floor(U),z=U%1;!z&&U>=1&&(z=1),z===1&&D--,D=Math.min(D,f+1),!!(D%2)&&(d==="reverse"?(z=1-z,h&&(z-=h/a)):d==="mirror"&&(T=o)),E=Rr(0,1,z)*a}const k=x?{done:!1,value:c[0]}:T.next(E);s&&(k.value=s(k.value));let{done:A}=k;!x&&u!==null&&(A=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return I&&p!==Kc&&(k.value=a0(c,this.options,v,this.speed)),b&&b(k.value),I&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return mr(this.calculatedDuration)}get time(){return mr(this.currentTime)}set time(t){var n;t=pr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(fn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=mr(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=AD,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(fn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function zD(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const bi=e=>e*180/Math.PI,ef=e=>{const t=bi(Math.atan2(e[1],e[0]));return tf(t)},HD={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ef,rotateZ:ef,skewX:e=>bi(Math.atan(e[1])),skewY:e=>bi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},tf=e=>(e=e%360,e<0&&(e+=360),e),E1=ef,_1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),T1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),GD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_1,scaleY:T1,scale:e=>(_1(e)+T1(e))/2,rotateX:e=>tf(bi(Math.atan2(e[6],e[5]))),rotateY:e=>tf(bi(Math.atan2(-e[2],e[0]))),rotateZ:E1,rotate:E1,skewX:e=>bi(Math.atan(e[4])),skewY:e=>bi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function nf(e){return e.includes("scale")?1:0}function rf(e,t){if(!e||e==="none")return nf(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=GD,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=HD,i=a}if(!i)return nf(t);const s=r[t],o=i[1].split(",").map(QD);return typeof s=="function"?s(o):o[s]}const WD=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return rf(n,t)};function QD(e){return parseFloat(e.trim())}const Ns=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cs=new Set(Ns),w1=e=>e===Ds||e===_e,YD=new Set(["x","y","z"]),XD=Ns.filter(e=>!YD.has(e));function JD(e){const t=[];return XD.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ti={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>rf(t,"x"),y:(e,{transform:t})=>rf(t,"y")};Ti.translateX=Ti.x;Ti.translateY=Ti.y;const wi=new Set;let sf=!1,of=!1,af=!1;function Jy(){if(of){const e=Array.from(wi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=JD(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}of=!1,sf=!1,wi.forEach(e=>e.complete(af)),wi.clear()}function Zy(){wi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(of=!0)})}function ZD(){af=!0,Zy(),Jy(),af=!1}class c0{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(wi.add(this),sf||(sf=!0,st.read(Zy),st.resolveKeyframes(Jy))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}zD(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),wi.delete(this)}cancel(){this.state==="scheduled"&&(wi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const KD=e=>e.startsWith("--");function eN(e,t,n){KD(t)?e.style.setProperty(t,n):e.style[t]=n}const tN=Jd(()=>window.ScrollTimeline!==void 0),nN={};function rN(e,t){const n=Jd(e);return()=>nN[t]??n()}const Ky=rN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,S1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qs([0,.65,.55,1]),circOut:qs([.55,0,1,.45]),backIn:qs([.31,.01,.66,-.59]),backOut:qs([.33,1.53,.69,.99])};function e3(e,t){if(e)return typeof e=="function"?Ky()?Wy(e,t):"ease-out":My(e)?qs(e):Array.isArray(e)?e.map(n=>e3(n,t)||S1.easeOut):S1[e]}function iN(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:u}={},l=void 0){const c={[t]:n};u&&(c.offset=u);const f=e3(a,i);Array.isArray(f)&&(c.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return l&&(d.pseudoElement=l),e.animate(c,d)}function t3(e){return typeof e=="function"&&"applyToOptions"in e}function sN({type:e,...t}){return t3(e)&&Ky()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class oN extends u0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:u}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Xd(typeof t.type!="string");const l=sN(t);this.animation=iN(n,r,i,l,s),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=a0(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):eN(n,r,c),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return mr(Number(t))}get time(){return mr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=pr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&tN()?(this.animation.timeline=t,On):n(this)}}const n3={anticipate:Ly,backInOut:Fy,circInOut:Ry};function aN(e){return e in n3}function uN(e){typeof e.ease=="string"&&aN(e.ease)&&(e.ease=n3[e.ease])}const k1=10;class lN extends oN{constructor(t){uN(t),Xy(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new l0({...o,autoplay:!1}),u=pr(this.finishedTime??this.time);n.setWithVelocity(a.sample(u-k1).value,a.sample(u).value,k1),a.stop()}}const A1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ei.test(e)||e==="0")&&!e.startsWith("url("));function cN(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function fN(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=A1(i,t),a=A1(s,t);return!o||!a?!1:cN(e)||(n==="spring"||t3(n))&&r}const dN=new Set(["opacity","clipPath","filter","transform"]),hN=Jd(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function pN(e){var c;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return hN()&&n&&dN.has(n)&&(n!=="transform"||!l)&&!u&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const mN=40;class gN extends u0{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:u,motionValue:l,element:c,...f}){var p;super(),this.stop=()=>{var b,v;this._animation&&(this._animation.stop(),(b=this.stopTimeline)==null||b.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=fn.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:u,motionValue:l,element:c,...f},h=(c==null?void 0:c.KeyframeResolver)||c0;this.keyframeResolver=new h(a,(b,v,_)=>this.onKeyframesResolved(b,v,d,!_),u,l,c),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:u,isHandoff:l,onUpdate:c}=r;this.resolvedAt=fn.now(),fN(t,s,o,a)||((Pr.instantAnimations||!u)&&(c==null||c(a0(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>mN?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!l&&pN(d)?new lN({...d,element:d.motionValue.owner.current}):new l0(d);h.finished.then(()=>this.notifyFinished()).catch(On),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),ZD()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const bN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vN(e){const t=bN.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function r3(e,t,n=1){const[r,i]=vN(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return wy(o)?parseFloat(o):o}return n0(i)?r3(i,t,n+1):i}function f0(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const i3=new Set(["width","height","top","left","right","bottom",...Ns]),yN={test:e=>e==="auto",parse:e=>e},s3=e=>t=>t.test(e),o3=[Ds,_e,gr,Hr,fD,cD,yN],D1=e=>o3.find(s3(e));function xN(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ky(e):!0}const EN=new Set(["brightness","contrast","saturate","opacity"]);function _N(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(r0)||[];if(!r)return e;const i=n.replace(r,"");let s=EN.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const TN=/\b([a-z-]*)\(.*?\)/gu,uf={...ei,getAnimatableNone:e=>{const t=e.match(TN);return t?t.map(_N).join(" "):e}},N1={...Ds,transform:Math.round},wN={rotate:Hr,rotateX:Hr,rotateY:Hr,rotateZ:Hr,scale:ma,scaleX:ma,scaleY:ma,scaleZ:ma,skew:Hr,skewX:Hr,skewY:Hr,distance:_e,translateX:_e,translateY:_e,translateZ:_e,x:_e,y:_e,z:_e,perspective:_e,transformPerspective:_e,opacity:xo,originX:g1,originY:g1,originZ:_e},d0={borderWidth:_e,borderTopWidth:_e,borderRightWidth:_e,borderBottomWidth:_e,borderLeftWidth:_e,borderRadius:_e,radius:_e,borderTopLeftRadius:_e,borderTopRightRadius:_e,borderBottomRightRadius:_e,borderBottomLeftRadius:_e,width:_e,maxWidth:_e,height:_e,maxHeight:_e,top:_e,right:_e,bottom:_e,left:_e,padding:_e,paddingTop:_e,paddingRight:_e,paddingBottom:_e,paddingLeft:_e,margin:_e,marginTop:_e,marginRight:_e,marginBottom:_e,marginLeft:_e,backgroundPositionX:_e,backgroundPositionY:_e,...wN,zIndex:N1,fillOpacity:xo,strokeOpacity:xo,numOctaves:N1},SN={...d0,color:Dt,backgroundColor:Dt,outlineColor:Dt,fill:Dt,stroke:Dt,borderColor:Dt,borderTopColor:Dt,borderRightColor:Dt,borderBottomColor:Dt,borderLeftColor:Dt,filter:uf,WebkitFilter:uf},a3=e=>SN[e];function u3(e,t){let n=a3(e);return n!==uf&&(n=ei),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const kN=new Set(["auto","none","0"]);function AN(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!kN.has(s)&&Eo(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=u3(n,i)}class DN extends c0{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let l=t[u];if(typeof l=="string"&&(l=l.trim(),n0(l))){const c=r3(l,n.current);c!==void 0&&(t[u]=c),u===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!i3.has(r)||t.length!==2)return;const[i,s]=t,o=D1(i),a=D1(s);if(o!==a)if(w1(o)&&w1(a))for(let u=0;u<t.length;u++){const l=t[u];typeof l=="string"&&(t[u]=parseFloat(l))}else Ti[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||xN(t[i]))&&r.push(i);r.length&&AN(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ti[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=Ti[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([u,l])=>{t.getValue(u).set(l)}),this.resolveNoneKeyframes()}}function NN(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const l3=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function CN(e){return Sy(e)&&"offsetHeight"in e}const C1=30,IN=e=>!isNaN(parseFloat(e)),Ks={current:void 0};class FN{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var o,a;const s=fn.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty();i&&((a=this.events.renderRequest)==null||a.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=fn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=IN(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Zd);const r=this.events[t].add(n);return t==="change"?()=>{r(),st.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Ks.current&&Ks.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=fn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>C1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,C1);return Ay(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pi(e,t){return new FN(e,t)}const{schedule:h0}=Vy(queueMicrotask,!1),Un={x:!1,y:!1};function c3(){return Un.x||Un.y}function LN(e){return e==="x"||e==="y"?Un[e]?null:(Un[e]=!0,()=>{Un[e]=!1}):Un.x||Un.y?null:(Un.x=Un.y=!0,()=>{Un.x=Un.y=!1})}function f3(e,t){const n=NN(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function I1(e){return!(e.pointerType==="touch"||c3())}function ON(e,t,n={}){const[r,i,s]=f3(e,n),o=a=>{if(!I1(a))return;const{target:u}=a,l=t(u,a);if(typeof l!="function"||!u)return;const c=f=>{I1(f)&&(l(f),u.removeEventListener("pointerleave",c))};u.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const d3=(e,t)=>t?e===t?!0:d3(e,t.parentElement):!1,p0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,RN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function PN(e){return RN.has(e.tagName)||e.tabIndex!==-1}const Ca=new WeakSet;function F1(e){return t=>{t.key==="Enter"&&e(t)}}function Ll(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const MN=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=F1(()=>{if(Ca.has(n))return;Ll(n,"down");const i=F1(()=>{Ll(n,"up")}),s=()=>Ll(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function L1(e){return p0(e)&&!c3()}function VN(e,t,n={}){const[r,i,s]=f3(e,n),o=a=>{const u=a.currentTarget;if(!L1(a))return;Ca.add(u);const l=t(u,a),c=(h,p)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),Ca.has(u)&&Ca.delete(u),L1(h)&&typeof l=="function"&&l(h,{success:p})},f=h=>{c(h,u===window||u===document||n.useGlobalTarget||d3(u,h.target))},d=h=>{c(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),CN(a)&&(a.addEventListener("focus",l=>MN(l,i)),!PN(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function h3(e){return Sy(e)&&"ownerSVGElement"in e}function $N(e){return h3(e)&&e.tagName==="svg"}function jN(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],o=e[3+n],a=Yy(i,s,o);return t?a(r):a}const Qt=e=>!!(e&&e.getVelocity),BN=[...o3,Dt,ei],UN=e=>BN.find(s3(e)),m0=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function qN(e=!0){const t=g.useContext(Wd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=g.useId();g.useEffect(()=>{if(e)return i(s)},[e]);const o=g.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const p3=g.createContext({strict:!1}),O1={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},_s={};for(const e in O1)_s[e]={isEnabled:t=>O1[e].some(n=>!!t[n])};function zN(e){for(const t in e)_s[t]={..._s[t],...e[t]}}const HN=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function fu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||HN.has(e)}let m3=e=>!fu(e);function GN(e){typeof e=="function"&&(m3=t=>t.startsWith("on")?!fu(t):e(t))}try{GN(require("@emotion/is-prop-valid").default)}catch{}function WN(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(m3(i)||n===!0&&fu(i)||!t&&!fu(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Gu=g.createContext({});function Wu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function _o(e){return typeof e=="string"||Array.isArray(e)}const g0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],b0=["initial",...g0];function Qu(e){return Wu(e.animate)||b0.some(t=>_o(e[t]))}function g3(e){return!!(Qu(e)||e.variants)}function QN(e,t){if(Qu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||_o(n)?n:void 0,animate:_o(r)?r:void 0}}return e.inherit!==!1?t:{}}function YN(e){const{initial:t,animate:n}=QN(e,g.useContext(Gu));return g.useMemo(()=>({initial:t,animate:n}),[R1(t),R1(n)])}function R1(e){return Array.isArray(e)?e.join(" "):e}const To={};function XN(e){for(const t in e)To[t]=e[t],t0(t)&&(To[t].isCSSVariable=!0)}function b3(e,{layout:t,layoutId:n}){return Cs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!To[e]||e==="opacity")}const JN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ZN=Ns.length;function KN(e,t,n){let r="",i=!0;for(let s=0;s<ZN;s++){const o=Ns[s],a=e[o];if(a===void 0)continue;let u=!0;if(typeof a=="number"?u=a===(o.startsWith("scale")?1:0):u=parseFloat(a)===0,!u||n){const l=l3(a,d0[o]);if(!u){i=!1;const c=JN[o]||o;r+=`${c}(${l}) `}n&&(t[o]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function v0(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const u in t){const l=t[u];if(Cs.has(u)){o=!0;continue}else if(t0(u)){i[u]=l;continue}else{const c=l3(l,d0[u]);u.startsWith("origin")?(a=!0,s[u]=c):r[u]=c}}if(t.transform||(o||n?r.transform=KN(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:u="50%",originY:l="50%",originZ:c=0}=s;r.transformOrigin=`${u} ${l} ${c}`}}const y0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function v3(e,t,n){for(const r in t)!Qt(t[r])&&!b3(r,n)&&(e[r]=t[r])}function e9({transformTemplate:e},t){return g.useMemo(()=>{const n=y0();return v0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function t9(e,t){const n=e.style||{},r={};return v3(r,n,e),Object.assign(r,e9(e,t)),r}function n9(e,t){const n={},r=t9(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const r9={offset:"stroke-dashoffset",array:"stroke-dasharray"},i9={offset:"strokeDashoffset",array:"strokeDasharray"};function s9(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?r9:i9;e[s.offset]=_e.transform(-r);const o=_e.transform(t),a=_e.transform(n);e[s.array]=`${o} ${a}`}function y3(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},u,l,c){if(v0(e,a,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&s9(f,i,s,o,!1)}const x3=()=>({...y0(),attrs:{}}),E3=e=>typeof e=="string"&&e.toLowerCase()==="svg";function o9(e,t,n,r){const i=g.useMemo(()=>{const s=x3();return y3(s,t,E3(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};v3(s,e.style,e),i.style={...s,...i.style}}return i}const a9=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function x0(e){return typeof e!="string"||e.includes("-")?!1:!!(a9.indexOf(e)>-1||/[A-Z]/u.test(e))}function u9(e,t,n,{latestValues:r},i,s=!1){const a=(x0(e)?o9:n9)(t,r,i,e),u=WN(t,typeof e=="string",s),l=e!==g.Fragment?{...u,...a,ref:n}:{},{children:c}=t,f=g.useMemo(()=>Qt(c)?c.get():c,[c]);return g.createElement(e,{...l,children:f})}function P1(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function E0(e,t,n,r){if(typeof t=="function"){const[i,s]=P1(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=P1(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Ia(e){return Qt(e)?e.get():e}function l9({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:c9(n,r,i,e),renderState:t()}}function c9(e,t,n,r){const i={},s=r(e,{});for(const d in s)i[d]=Ia(s[d]);let{initial:o,animate:a}=e;const u=Qu(e),l=g3(e);t&&l&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?a:o;if(f&&typeof f!="boolean"&&!Wu(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const p=E0(e,d[h]);if(p){const{transitionEnd:b,transition:v,..._}=p;for(const x in _){let E=_[x];if(Array.isArray(E)){const T=c?E.length-1:0;E=E[T]}E!==null&&(i[x]=E)}for(const x in b)i[x]=b[x]}}}return i}const _3=e=>(t,n)=>{const r=g.useContext(Gu),i=g.useContext(Wd),s=()=>l9(e,t,r,i);return n?s():jo(s)};function _0(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(Qt(r[o])||t.style&&Qt(t.style[o])||b3(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const f9=_3({scrapeMotionValuesFromProps:_0,createRenderState:y0});function T3(e,t,n){const r=_0(e,t,n);for(const i in e)if(Qt(e[i])||Qt(t[i])){const s=Ns.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const d9=_3({scrapeMotionValuesFromProps:T3,createRenderState:x3}),h9=Symbol.for("motionComponentSymbol");function Ji(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function p9(e,t,n){return g.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ji(n)&&(n.current=r))},[t])}const T0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),m9="framerAppearId",w3="data-"+T0(m9),S3=g.createContext({});function g9(e,t,n,r,i){var b,v;const{visualElement:s}=g.useContext(Gu),o=g.useContext(p3),a=g.useContext(Wd),u=g.useContext(m0).reducedMotion,l=g.useRef(null);r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:u}));const c=l.current,f=g.useContext(S3);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&b9(l.current,n,i,f);const d=g.useRef(!1);g.useInsertionEffect(()=>{c&&d.current&&c.update(n,a)});const h=n[w3],p=g.useRef(!!h&&!((b=window.MotionHandoffIsComplete)!=null&&b.call(window,h))&&((v=window.MotionHasOptimisedAnimation)==null?void 0:v.call(window,h)));return Ty(()=>{c&&(d.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),p.current&&c.animationState&&c.animationState.animateChanges())}),g.useEffect(()=>{c&&(!p.current&&c.animationState&&c.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)==null||_.call(window,h)}),p.current=!1))}),c}function b9(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:k3(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Ji(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:u,layoutRoot:l})}function k3(e){if(e)return e.options.allowProjection!==!1?e.projection:k3(e.parent)}function Ol(e,{forwardMotionProps:t=!1}={},n,r){n&&zN(n);const i=x0(e)?d9:f9;function s(a,u){let l;const c={...g.useContext(m0),...a,layoutId:v9(a)},{isStatic:f}=c,d=YN(a),h=i(a,f);if(!f&&Gd){y9();const p=x9(c);l=p.MeasureLayout,d.visualElement=g9(e,h,c,r,p.ProjectionNode)}return y.jsxs(Gu.Provider,{value:d,children:[l&&d.visualElement?y.jsx(l,{visualElement:d.visualElement,...c}):null,u9(e,a,p9(h,d.visualElement,u),h,f,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=g.forwardRef(s);return o[h9]=e,o}function v9({layoutId:e}){const t=g.useContext(_y).id;return t&&e!==void 0?t+"-"+e:e}function y9(e,t){g.useContext(p3).strict}function x9(e){const{drag:t,layout:n}=_s;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function E9(e,t){if(typeof Proxy>"u")return Ol;const n=new Map,r=(s,o)=>Ol(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,Ol(o,void 0,e,t)),n.get(o))})}function A3({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function T9(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Rl(e){return e===void 0||e===1}function lf({scale:e,scaleX:t,scaleY:n}){return!Rl(e)||!Rl(t)||!Rl(n)}function fi(e){return lf(e)||D3(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function D3(e){return M1(e.x)||M1(e.y)}function M1(e){return e&&e!=="0%"}function du(e,t,n){const r=e-n,i=t*r;return n+i}function V1(e,t,n,r,i){return i!==void 0&&(e=du(e,i,r)),du(e,n,r)+t}function cf(e,t=0,n=1,r,i){e.min=V1(e.min,t,n,r,i),e.max=V1(e.max,t,n,r,i)}function N3(e,{x:t,y:n}){cf(e.x,t.translate,t.scale,t.originPoint),cf(e.y,n.translate,n.scale,n.originPoint)}const $1=.999999999999,j1=1.0000000000001;function w9(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:u}=s.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ki(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,N3(e,o)),r&&fi(s.latestValues)&&Ki(e,s.latestValues))}t.x<j1&&t.x>$1&&(t.x=1),t.y<j1&&t.y>$1&&(t.y=1)}function Zi(e,t){e.min=e.min+t,e.max=e.max+t}function B1(e,t,n,r,i=.5){const s=at(e.min,e.max,i);cf(e,t,n,s,r)}function Ki(e,t){B1(e.x,t.x,t.scaleX,t.scale,t.originX),B1(e.y,t.y,t.scaleY,t.scale,t.originY)}function C3(e,t){return A3(T9(e.getBoundingClientRect(),t))}function S9(e,t,n){const r=C3(e,n),{scroll:i}=t;return i&&(Zi(r.x,i.offset.x),Zi(r.y,i.offset.y)),r}const U1=()=>({translate:0,scale:1,origin:0,originPoint:0}),es=()=>({x:U1(),y:U1()}),q1=()=>({min:0,max:0}),Et=()=>({x:q1(),y:q1()}),ff={current:null},I3={current:!1};function k9(){if(I3.current=!0,!!Gd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ff.current=e.matches;e.addEventListener("change",t),t()}else ff.current=!1}const A9=new WeakMap;function D9(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Qt(i))e.addValue(r,i);else if(Qt(s))e.addValue(r,Pi(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Pi(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const z1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class N9{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=c0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=fn.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,st.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=o;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Qu(n),this.isVariantNode=g3(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const h=f[d];u[d]!==void 0&&Qt(h)&&h.set(u[d],!1)}}mount(t){this.current=t,A9.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),I3.current||k9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ff.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Mr(this.notifyUpdate),Mr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Cs.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&st.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in _s){const n=_s[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Et()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<z1.length;r++){const i=z1[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=D9(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Pi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(wy(r)||ky(r))?r=parseFloat(r):!UN(r)&&ei.test(n)&&(r=u3(t,n)),this.setBaseTarget(t,Qt(r)?r.get():r)),Qt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=E0(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Qt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zd),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){h0.render(this.render)}}class F3 extends N9{constructor(){super(...arguments),this.KeyframeResolver=DN}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Qt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function L3(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function C9(e){return window.getComputedStyle(e)}class I9 extends F3{constructor(){super(...arguments),this.type="html",this.renderInstance=L3}readValueFromInstance(t,n){var r;if(Cs.has(n))return(r=this.projection)!=null&&r.isProjecting?nf(n):WD(t,n);{const i=C9(t),s=(t0(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return C3(t,n)}build(t,n,r){v0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return _0(t,n,r)}}const O3=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function F9(e,t,n,r){L3(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(O3.has(i)?i:T0(i),t.attrs[i])}class L9 extends F3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Et}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Cs.has(n)){const r=a3(n);return r&&r.default||0}return n=O3.has(n)?n:T0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return T3(t,n,r)}build(t,n,r){y3(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){F9(t,n,r,i)}mount(t){this.isSVGTag=E3(t.tagName),super.mount(t)}}const O9=(e,t)=>x0(e)?new L9(t):new I9(t,{allowProjection:e!==g.Fragment});function wo(e,t,n){const r=e.getProps();return E0(r,t,n!==void 0?n:r.custom,e)}const df=e=>Array.isArray(e);function R9(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Pi(n))}function P9(e){return df(e)?e[e.length-1]||0:e}function M9(e,t){const n=wo(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=P9(s[o]);R9(e,o,a)}}function V9(e){return!!(Qt(e)&&e.add)}function hf(e,t){const n=e.getValue("willChange");if(V9(n))return n.add(t);if(!n&&Pr.WillChange){const r=new Pr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function R3(e){return e.props[w3]}const $9=e=>e!==null;function j9(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter($9),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const B9={type:"spring",stiffness:500,damping:25,restSpeed:10},U9=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),q9={type:"keyframes",duration:.8},z9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},H9=(e,{keyframes:t})=>t.length>2?q9:Cs.has(e)?e.startsWith("scale")?U9(t[1]):B9:z9;function G9({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const w0=(e,t,n,r={},i,s)=>o=>{const a=f0(r,e)||{},u=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-pr(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};G9(a)||Object.assign(c,H9(e,c)),c.duration&&(c.duration=pr(c.duration)),c.repeatDelay&&(c.repeatDelay=pr(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),(Pr.instantAnimations||Pr.skipAnimations)&&(f=!0,c.duration=0,c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!s&&t.get()!==void 0){const d=j9(c.keyframes,a);if(d!==void 0){st.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new l0(c):new gN(c)};function W9({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function P3(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const u=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const f=e.getValue(c,e.latestValues[c]??null),d=a[c];if(d===void 0||l&&W9(l,c))continue;const h={delay:n,...f0(s||{},c)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===p&&!h.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const _=R3(e);if(_){const x=window.MotionHandoffAnimation(_,c,st);x!==null&&(h.startTime=x,b=!0)}}hf(e,c),f.start(w0(c,f,d,e.shouldReduceMotion&&i3.has(c)?{type:!1}:h,e,b));const v=f.animation;v&&u.push(v)}return o&&Promise.all(u).then(()=>{st.update(()=>{o&&M9(e,o)})}),u}function pf(e,t,n={}){var u;const r=wo(e,t,n.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(P3(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=i;return Q9(e,t,l,c,f,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function Q9(e,t,n=0,r=0,i=0,s=1,o){const a=[],u=e.variantChildren.size,l=(u-1)*i,c=typeof r=="function",f=c?d=>r(d,u):s===1?(d=0)=>d*i:(d=0)=>l-d*i;return Array.from(e.variantChildren).sort(Y9).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(pf(d,t,{...o,delay:n+(c?0:r)+f(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function Y9(e,t){return e.sortNodePosition(t)}function X9(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>pf(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=pf(e,t,n);else{const i=typeof t=="function"?wo(e,t,n.custom):t;r=Promise.all(P3(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function M3(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const J9=b0.length;function V3(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?V3(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<J9;n++){const r=b0[n],i=e.props[r];(_o(i)||i===!1)&&(t[r]=i)}return t}const Z9=[...g0].reverse(),K9=g0.length;function e7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>X9(e,n,r)))}function t7(e){let t=e7(e),n=H1(),r=!0;const i=u=>(l,c)=>{var d;const f=wo(e,c,u==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:p,...b}=f;l={...l,...b,...p}}return l};function s(u){t=u(e)}function o(u){const{props:l}=e,c=V3(e.parent)||{},f=[],d=new Set;let h={},p=1/0;for(let v=0;v<K9;v++){const _=Z9[v],x=n[_],E=l[_]!==void 0?l[_]:c[_],T=_o(E),k=_===u?x.isActive:null;k===!1&&(p=v);let A=E===c[_]&&E!==l[_]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),x.protectedKeys={...h},!x.isActive&&k===null||!E&&!x.prevProp||Wu(E)||typeof E=="boolean")continue;const I=n7(x.prevProp,E);let U=I||_===u&&x.isActive&&!A&&T||v>p&&T,D=!1;const z=Array.isArray(E)?E:[E];let W=z.reduce(i(_),{});k===!1&&(W={});const{prevResolvedValues:Z={}}=x,O={...Z,...W},N=Q=>{U=!0,d.has(Q)&&(D=!0,d.delete(Q)),x.needsAnimating[Q]=!0;const $=e.getValue(Q);$&&($.liveStyle=!1)};for(const Q in O){const $=W[Q],B=Z[Q];if(h.hasOwnProperty(Q))continue;let oe=!1;df($)&&df(B)?oe=!M3($,B):oe=$!==B,oe?$!=null?N(Q):d.add(Q):$!==void 0&&d.has(Q)?N(Q):x.protectedKeys[Q]=!0}x.prevProp=E,x.prevResolvedValues=W,x.isActive&&(h={...h,...W}),r&&e.blockInitialAnimation&&(U=!1),U&&(!(A&&I)||D)&&f.push(...z.map(Q=>({animation:Q,options:{type:_}})))}if(d.size){const v={};if(typeof l.initial!="boolean"){const _=wo(e,Array.isArray(l.initial)?l.initial[0]:l.initial);_&&_.transition&&(v.transition=_.transition)}d.forEach(_=>{const x=e.getBaseTarget(_),E=e.getValue(_);E&&(E.liveStyle=!0),v[_]=x??null}),f.push({animation:v})}let b=!!f.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(f):Promise.resolve()}function a(u,l){var f;if(n[u].isActive===l)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(d=>{var h;return(h=d.animationState)==null?void 0:h.setActive(u,l)}),n[u].isActive=l;const c=o(u);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=H1(),r=!0}}}function n7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!M3(t,e):!1}function li(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function H1(){return{animate:li(!0),whileInView:li(),whileHover:li(),whileTap:li(),whileDrag:li(),whileFocus:li(),exit:li()}}class ii{constructor(t){this.isMounted=!1,this.node=t}update(){}}class r7 extends ii{constructor(t){super(t),t.animationState||(t.animationState=t7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Wu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let i7=0;class s7 extends ii{constructor(){super(...arguments),this.id=i7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const o7={animation:{Feature:r7},exit:{Feature:s7}};function So(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function zo(e){return{point:{x:e.pageX,y:e.pageY}}}const a7=e=>t=>p0(t)&&e(t,zo(t));function eo(e,t,n,r){return So(e,t,a7(n),r)}const $3=1e-4,u7=1-$3,l7=1+$3,j3=.01,c7=0-j3,f7=0+j3;function en(e){return e.max-e.min}function d7(e,t,n){return Math.abs(e-t)<=n}function G1(e,t,n,r=.5){e.origin=r,e.originPoint=at(t.min,t.max,e.origin),e.scale=en(n)/en(t),e.translate=at(n.min,n.max,e.origin)-e.originPoint,(e.scale>=u7&&e.scale<=l7||isNaN(e.scale))&&(e.scale=1),(e.translate>=c7&&e.translate<=f7||isNaN(e.translate))&&(e.translate=0)}function to(e,t,n,r){G1(e.x,t.x,n.x,r?r.originX:void 0),G1(e.y,t.y,n.y,r?r.originY:void 0)}function W1(e,t,n){e.min=n.min+t.min,e.max=e.min+en(t)}function h7(e,t,n){W1(e.x,t.x,n.x),W1(e.y,t.y,n.y)}function Q1(e,t,n){e.min=t.min-n.min,e.max=e.min+en(t)}function no(e,t,n){Q1(e.x,t.x,n.x),Q1(e.y,t.y,n.y)}function In(e){return[e("x"),e("y")]}const B3=({current:e})=>e?e.ownerDocument.defaultView:null,Y1=(e,t)=>Math.abs(e-t);function p7(e,t){const n=Y1(e.x,t.x),r=Y1(e.y,t.y);return Math.sqrt(n**2+r**2)}class U3{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Ml(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=p7(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!p)return;const{point:b}=d,{timestamp:v}=Gt;this.history.push({...b,timestamp:v});const{onStart:_,onMove:x}=this.handlers;h||(_&&_(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Pl(h,this.transformPagePoint),st.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:p,onSessionEnd:b,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Ml(d.type==="pointercancel"?this.lastMoveEventInfo:Pl(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,_),b&&b(d,_)},!p0(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=zo(t),u=Pl(a,this.transformPagePoint),{point:l}=u,{timestamp:c}=Gt;this.history=[{...l,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,Ml(u,this.history)),this.removeListeners=Bo(eo(this.contextWindow,"pointermove",this.handlePointerMove),eo(this.contextWindow,"pointerup",this.handlePointerUp),eo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Mr(this.updatePoint)}}function Pl(e,t){return t?{point:t(e.point)}:e}function X1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ml({point:e},t){return{point:e,delta:X1(e,q3(t)),offset:X1(e,m7(t)),velocity:g7(t,.1)}}function m7(e){return e[0]}function q3(e){return e[e.length-1]}function g7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=q3(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>pr(t)));)n--;if(!r)return{x:0,y:0};const s=mr(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function b7(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?at(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?at(n,e,r.max):Math.min(e,n)),e}function J1(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function v7(e,{top:t,left:n,bottom:r,right:i}){return{x:J1(e.x,n,i),y:J1(e.y,t,r)}}function Z1(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function y7(e,t){return{x:Z1(e.x,t.x),y:Z1(e.y,t.y)}}function x7(e,t){let n=.5;const r=en(e),i=en(t);return i>r?n=yo(t.min,t.max-r,e.min):r>i&&(n=yo(e.min,e.max-i,t.min)),Rr(0,1,n)}function E7(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const mf=.35;function _7(e=mf){return e===!1?e=0:e===!0&&(e=mf),{x:K1(e,"left","right"),y:K1(e,"top","bottom")}}function K1(e,t,n){return{min:eg(e,t),max:eg(e,n)}}function eg(e,t){return typeof e=="number"?e:e[t]||0}const T7=new WeakMap;class w7{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Et(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(zo(f).point)},o=(f,d)=>{const{drag:h,dragPropagation:p,onDragStart:b}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=LN(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),In(_=>{let x=this.getAxisMotionValue(_).get()||0;if(gr.test(x)){const{projection:E}=this.visualElement;if(E&&E.layout){const T=E.layout.layoutBox[_];T&&(x=en(T)*(parseFloat(x)/100))}}this.originPoint[_]=x}),b&&st.postRender(()=>b(f,d)),hf(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:b,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:_}=d;if(p&&this.currentDirection===null){this.currentDirection=S7(_),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",d.point,_),this.updateAxis("y",d.point,_),this.visualElement.render(),v&&v(f,d)},u=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>In(f=>{var d;return this.getAnimationState(f)==="paused"&&((d=this.getAxisMotionValue(f).animation)==null?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new U3(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:B3(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&st.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!ga(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=b7(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&Ji(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=v7(r.layoutBox,t):this.constraints=!1,this.elastic=_7(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&In(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=E7(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ji(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=S9(r,i.root,this.visualElement.getTransformPagePoint());let o=y7(i.layout.layoutBox,s);if(n){const a=n(_9(o));this.hasMutatedConstraints=!!a,a&&(o=A3(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},l=In(c=>{if(!ga(c,n,this.currentDirection))return;let f=u&&u[c]||{};o&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(c,p)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return hf(this.visualElement,t),r.start(w0(t,r,0,n,this.visualElement,!1))}stopAnimation(){In(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){In(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){In(n=>{const{drag:r}=this.getProps();if(!ga(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-at(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ji(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};In(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const u=a.get();i[o]=x7({min:u,max:u},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),In(o=>{if(!ga(o,t,null))return;const a=this.getAxisMotionValue(o),{min:u,max:l}=this.constraints[o];a.set(at(u,l,i[o]))})}addListeners(){if(!this.visualElement.current)return;T7.set(this.visualElement,this);const t=this.visualElement.current,n=eo(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Ji(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),st.read(r);const o=So(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(In(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=u[c].translate,f.set(f.get()+u[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=mf,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function ga(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function S7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class k7 extends ii{constructor(t){super(t),this.removeGroupControls=On,this.removeListeners=On,this.controls=new w7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||On}unmount(){this.removeGroupControls(),this.removeListeners()}}const tg=e=>(t,n)=>{e&&st.postRender(()=>e(t,n))};class A7 extends ii{constructor(){super(...arguments),this.removePointerDownListener=On}onPointerDown(t){this.session=new U3(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:B3(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:tg(t),onStart:tg(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&st.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=eo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Fa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ng(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ps={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(_e.test(e))e=parseFloat(e);else return e;const n=ng(e,t.target.x),r=ng(e,t.target.y);return`${n}% ${r}%`}},D7={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ei.parse(e);if(i.length>5)return r;const s=ei.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,u=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=u;const l=at(a,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),s(i)}};let rg=!1;class N7 extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;XN(C7),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),rg&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Fa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,rg=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||st.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),h0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function z3(e){const[t,n]=qN(),r=g.useContext(_y);return y.jsx(N7,{...e,layoutGroup:r,switchLayoutGroup:g.useContext(S3),isPresent:t,safeToRemove:n})}const C7={borderRadius:{...Ps,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ps,borderTopRightRadius:Ps,borderBottomLeftRadius:Ps,borderBottomRightRadius:Ps,boxShadow:D7};function I7(e,t,n){const r=Qt(e)?e:Pi(e);return r.start(w0("",r,t,n)),r.animation}const F7=(e,t)=>e.depth-t.depth;class L7{constructor(){this.children=[],this.isDirty=!1}add(t){Qd(this.children,t),this.isDirty=!0}remove(t){Yd(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(F7),this.isDirty=!1,this.children.forEach(t)}}function O7(e,t){const n=fn.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Mr(r),e(s-t))};return st.setup(r,!0),()=>Mr(r)}const H3=["TopLeft","TopRight","BottomLeft","BottomRight"],R7=H3.length,ig=e=>typeof e=="string"?parseFloat(e):e,sg=e=>typeof e=="number"||_e.test(e);function P7(e,t,n,r,i,s){i?(e.opacity=at(0,n.opacity??1,M7(r)),e.opacityExit=at(t.opacity??1,0,V7(r))):s&&(e.opacity=at(t.opacity??1,n.opacity??1,r));for(let o=0;o<R7;o++){const a=`border${H3[o]}Radius`;let u=og(t,a),l=og(n,a);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||sg(u)===sg(l)?(e[a]=Math.max(at(ig(u),ig(l),r),0),(gr.test(l)||gr.test(u))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=at(t.rotate||0,n.rotate||0,r))}function og(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const M7=G3(0,.5,Oy),V7=G3(.5,.95,On);function G3(e,t,n){return r=>r<e?0:r>t?1:n(yo(e,t,r))}function ag(e,t){e.min=t.min,e.max=t.max}function Nn(e,t){ag(e.x,t.x),ag(e.y,t.y)}function ug(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function lg(e,t,n,r,i){return e-=t,e=du(e,1/n,r),i!==void 0&&(e=du(e,1/i,r)),e}function $7(e,t=0,n=1,r=.5,i,s=e,o=e){if(gr.test(t)&&(t=parseFloat(t),t=at(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=at(s.min,s.max,r);e===s&&(a-=t),e.min=lg(e.min,t,n,a,i),e.max=lg(e.max,t,n,a,i)}function cg(e,t,[n,r,i],s,o){$7(e,t[n],t[r],t[i],t.scale,s,o)}const j7=["x","scaleX","originX"],B7=["y","scaleY","originY"];function fg(e,t,n,r){cg(e.x,t,j7,n?n.x:void 0,r?r.x:void 0),cg(e.y,t,B7,n?n.y:void 0,r?r.y:void 0)}function dg(e){return e.translate===0&&e.scale===1}function W3(e){return dg(e.x)&&dg(e.y)}function hg(e,t){return e.min===t.min&&e.max===t.max}function U7(e,t){return hg(e.x,t.x)&&hg(e.y,t.y)}function pg(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Q3(e,t){return pg(e.x,t.x)&&pg(e.y,t.y)}function mg(e){return en(e.x)/en(e.y)}function gg(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class q7{constructor(){this.members=[]}add(t){Qd(this.members,t),t.scheduleRender()}remove(t){if(Yd(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function z7(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:f,rotateY:d,skewX:h,skewY:p}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),p&&(r+=`skewY(${p}deg) `)}const a=e.x.scale*t.x,u=e.y.scale*t.y;return(a!==1||u!==1)&&(r+=`scale(${a}, ${u})`),r||"none"}const Vl=["","X","Y","Z"],H7=1e3;let G7=0;function $l(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Y3(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=R3(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",st,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Y3(r)}function X3({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=G7++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Y7),this.nodes.forEach(K7),this.nodes.forEach(eC),this.nodes.forEach(X7)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new L7)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Zd),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const u=this.eventHandlers.get(o);u&&u.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=h3(o)&&!$N(o),this.instance=o;const{layoutId:a,layout:u,visualElement:l}=this.options;if(l&&!l.current&&l.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||a)&&(this.isLayoutDirty=!0),e){let c,f=0;const d=()=>this.root.updateBlockedByResize=!1;st.read(()=>{f=window.innerWidth}),e(o,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,c&&c(),c=O7(d,250),Fa.hasAnimatedSinceResize&&(Fa.hasAnimatedSinceResize=!1,this.nodes.forEach(yg)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||l.getDefaultTransition()||sC,{onLayoutAnimationStart:b,onLayoutAnimationComplete:v}=l.getProps(),_=!this.targetLayout||!Q3(this.targetLayout,h),x=!f&&d;if(this.options.layoutRoot||this.resumeFrom||x||f&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const E={...f0(p,"layout"),onPlay:b,onComplete:v};(l.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E),this.setAnimationOrigin(c,x)}else f||yg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Mr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tC),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Y3(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:u}=this.options;if(a===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(bg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(vg);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Z7),this.nodes.forEach(W7),this.nodes.forEach(Q7)):this.nodes.forEach(vg),this.clearAllSnapshots();const a=fn.now();Gt.delta=Rr(0,1e3/60,a-Gt.timestamp),Gt.timestamp=a,Gt.isProcessing=!0,Dl.update.process(Gt),Dl.preRender.process(Gt),Dl.render.process(Gt),Gt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,h0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(J7),this.sharedNodes.forEach(nC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,st.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){st.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!en(this.snapshot.measuredBox.x)&&!en(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Et(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!W3(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;o&&this.instance&&(a||fi(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let u=this.removeElementScroll(a);return o&&(u=this.removeTransform(u)),oC(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:o}=this.options;if(!o)return Et();const a=o.measureViewportBox();if(!(((l=this.scroll)==null?void 0:l.wasRoot)||this.path.some(aC))){const{scroll:c}=this.root;c&&(Zi(a.x,c.offset.x),Zi(a.y,c.offset.y))}return a}removeElementScroll(o){var u;const a=Et();if(Nn(a,o),(u=this.scroll)!=null&&u.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&Nn(a,o),Zi(a.x,f.offset.x),Zi(a.y,f.offset.y))}return a}applyTransform(o,a=!1){const u=Et();Nn(u,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ki(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),fi(c.latestValues)&&Ki(u,c.latestValues)}return fi(this.latestValues)&&Ki(u,this.latestValues),u}removeTransform(o){const a=Et();Nn(a,o);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!fi(l.latestValues))continue;lf(l.latestValues)&&l.updateSnapshot();const c=Et(),f=l.measurePageBox();Nn(c,f),fg(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return fi(this.latestValues)&&fg(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Gt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var d;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!(!this.layout||!(c||f))){if(this.resolvedRelativeTargetAt=Gt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Et(),this.relativeTargetOrigin=Et(),no(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Et(),this.targetWithTransforms=Et()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),h7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Nn(this.target,this.layout.layoutBox),N3(this.target,this.targetDelta)):Nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Et(),this.relativeTargetOrigin=Et(),no(this.relativeTargetOrigin,this.target,h.target),Nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||lf(this.parent.latestValues)||D3(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var p;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Gt.timestamp&&(u=!1),u)return;const{layout:l,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||c))return;Nn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;w9(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Et());const{target:h}=o;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ug(this.prevProjectionDelta.x,this.projectionDelta.x),ug(this.prevProjectionDelta.y,this.projectionDelta.y)),to(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!gg(this.projectionDelta.x,this.prevProjectionDelta.x)||!gg(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=es(),this.projectionDelta=es(),this.projectionDeltaWithTransform=es()}setAnimationOrigin(o,a=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},f=es();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=Et(),h=u?u.source:void 0,p=this.layout?this.layout.source:void 0,b=h!==p,v=this.getStack(),_=!v||v.members.length<=1,x=!!(b&&!_&&this.options.crossfade===!0&&!this.path.some(iC));this.animationProgress=0;let E;this.mixTargetDelta=T=>{const k=T/1e3;xg(f.x,o.x,k),xg(f.y,o.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(no(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rC(this.relativeTarget,this.relativeTargetOrigin,d,k),E&&U7(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Et()),Nn(E,this.relativeTarget)),b&&(this.animationValues=c,P7(c,l,this.latestValues,k,x,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,u,l;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(l=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||l.stop(),this.pendingAnimation&&(Mr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=st.update(()=>{Fa.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Pi(0)),this.currentAnimation=I7(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(H7),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:u,layout:l,latestValues:c}=o;if(!(!a||!u||!l)){if(this!==o&&this.layout&&l&&J3(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||Et();const f=en(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+f;const d=en(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+d}Nn(a,u),Ki(a,c),to(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new q7),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const l={};u.z&&$l("z",o,l,this.animationValues);for(let c=0;c<Vl.length;c++)$l(`rotate${Vl[c]}`,o,l,this.animationValues),$l(`skew${Vl[c]}`,o,l,this.animationValues);o.render();for(const c in l)o.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Ia(a==null?void 0:a.pointerEvents)||"",o.transform=u?u(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Ia(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!fi(this.latestValues)&&(o.transform=u?u({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=z7(this.projectionDeltaWithTransform,this.treeScale,c);u&&(f=u(c,f)),o.transform=f;const{x:d,y:h}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${h.origin*100}% 0`,l.animationValues?o.opacity=l===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=l===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const p in To){if(c[p]===void 0)continue;const{correct:b,applyTo:v,isCSSVariable:_}=To[p],x=f==="none"?c[p]:b(c[p],l);if(v){const E=v.length;for(let T=0;T<E;T++)o[v[T]]=x}else _?this.options.visualElement.renderState.vars[p]=x:o[p]=x}this.options.layoutId&&(o.pointerEvents=l===this?Ia(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(bg),this.root.sharedNodes.clear()}}}function W7(e){e.updateLayout()}function Q7(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;s==="size"?In(f=>{const d=o?t.measuredBox[f]:t.layoutBox[f],h=en(d);d.min=r[f].min,d.max=d.min+h}):J3(s,t.layoutBox,r)&&In(f=>{const d=o?t.measuredBox[f]:t.layoutBox[f],h=en(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const a=es();to(a,r,t.layoutBox);const u=es();o?to(u,e.applyTransform(i,!0),t.measuredBox):to(u,r,t.layoutBox);const l=!W3(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const p=Et();no(p,t.layoutBox,d.layoutBox);const b=Et();no(b,r,h.layoutBox),Q3(p,b)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=p,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:u,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Y7(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function X7(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function J7(e){e.clearSnapshot()}function bg(e){e.clearMeasurements()}function vg(e){e.isLayoutDirty=!1}function Z7(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function yg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function K7(e){e.resolveTargetDelta()}function eC(e){e.calcProjection()}function tC(e){e.resetSkewAndRotation()}function nC(e){e.removeLeadSnapshot()}function xg(e,t,n){e.translate=at(t.translate,0,n),e.scale=at(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Eg(e,t,n,r){e.min=at(t.min,n.min,r),e.max=at(t.max,n.max,r)}function rC(e,t,n,r){Eg(e.x,t.x,n.x,r),Eg(e.y,t.y,n.y,r)}function iC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const sC={duration:.45,ease:[.4,0,.1,1]},_g=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Tg=_g("applewebkit/")&&!_g("chrome/")?Math.round:On;function wg(e){e.min=Tg(e.min),e.max=Tg(e.max)}function oC(e){wg(e.x),wg(e.y)}function J3(e,t,n){return e==="position"||e==="preserve-aspect"&&!d7(mg(t),mg(n),.2)}function aC(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const uC=X3({attachResizeListener:(e,t)=>So(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jl={current:void 0},Z3=X3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jl.current){const e=new uC({});e.mount(window),e.setOptions({layoutScroll:!0}),jl.current=e}return jl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),lC={pan:{Feature:A7},drag:{Feature:k7,ProjectionNode:Z3,MeasureLayout:z3}};function Sg(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&st.postRender(()=>s(t,zo(t)))}class cC extends ii{mount(){const{current:t}=this.node;t&&(this.unmount=ON(t,(n,r)=>(Sg(this.node,r,"Start"),i=>Sg(this.node,i,"End"))))}unmount(){}}class fC extends ii{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Bo(So(this.node.current,"focus",()=>this.onFocus()),So(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function kg(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&st.postRender(()=>s(t,zo(t)))}class dC extends ii{mount(){const{current:t}=this.node;t&&(this.unmount=VN(t,(n,r)=>(kg(this.node,r,"Start"),(i,{success:s})=>kg(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const gf=new WeakMap,Bl=new WeakMap,hC=e=>{const t=gf.get(e.target);t&&t(e)},pC=e=>{e.forEach(hC)};function mC({root:e,...t}){const n=e||document;Bl.has(n)||Bl.set(n,{});const r=Bl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(pC,{root:e,...t})),r[i]}function gC(e,t,n){const r=mC(t);return gf.set(e,n),r.observe(e),()=>{gf.delete(e),r.unobserve(e)}}const bC={some:0,all:1};class vC extends ii{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:bC[i]},a=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,s&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};return gC(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(yC(t,n))&&this.startObserver()}unmount(){}}function yC({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const xC={inView:{Feature:vC},tap:{Feature:dC},focus:{Feature:fC},hover:{Feature:cC}},EC={layout:{ProjectionNode:Z3,MeasureLayout:z3}},_C={...o7,...xC,...lC,...EC},K3=E9(_C,O9);function ex(e){const t=jo(()=>Pi(e)),{isStatic:n}=g.useContext(m0);if(n){const[,r]=g.useState(e);g.useEffect(()=>t.on("change",r),[])}return t}function tx(e,t){const n=ex(t()),r=()=>n.set(t());return r(),Ty(()=>{const i=()=>st.preRender(r,!1,!0),s=e.map(o=>o.on("change",i));return()=>{s.forEach(o=>o()),Mr(r)}}),n}function TC(e){Ks.current=[],e();const t=tx(Ks.current,e);return Ks.current=void 0,t}function wC(e,t,n,r){if(typeof e=="function")return TC(e);const i=typeof t=="function"?t:jN(t,n,r);return Array.isArray(e)?Ag(e,i):Ag([e],([s])=>i(s))}function Ag(e,t){const n=jo(()=>[]);return tx(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const nx=g.createContext(null);function SC(e,t,n,r){if(!r)return e;const i=e.findIndex(c=>c.value===t);if(i===-1)return e;const s=r>0?1:-1,o=e[i+s];if(!o)return e;const a=e[i],u=o.layout,l=at(u.min,u.max,.5);return s===1&&a.layout.max+n>l||s===-1&&a.layout.min+n<l?HA(e,i,i+s):e}function kC({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...s},o){const a=jo(()=>K3[t]),u=[],l=g.useRef(!1),c={axis:n,registerItem:(f,d)=>{const h=u.findIndex(p=>f===p.value);h!==-1?u[h].layout=d[n]:u.push({value:f,layout:d[n]}),u.sort(NC)},updateOrder:(f,d,h)=>{if(l.current)return;const p=SC(u,f,d,h);u!==p&&(l.current=!0,r(p.map(DC).filter(b=>i.indexOf(b)!==-1)))}};return g.useEffect(()=>{l.current=!1}),y.jsx(a,{...s,ref:o,ignoreStrict:!0,children:y.jsx(nx.Provider,{value:c,children:e})})}const AC=g.forwardRef(kC);function DC(e){return e.value}function NC(e,t){return e.layout.min-t.layout.min}function Dg(e,t=0){return Qt(e)?e:ex(t)}function CC({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:s=!0,...o},a){const u=jo(()=>K3[r]),l=g.useContext(nx),c={x:Dg(t.x),y:Dg(t.y)},f=wC([c.x,c.y],([b,v])=>b||v?1:"unset"),{axis:d,registerItem:h,updateOrder:p}=l;return y.jsx(u,{drag:d,...o,dragSnapToOrigin:!0,style:{...t,x:c.x,y:c.y,zIndex:f},layout:s,onDrag:(b,v)=>{const{velocity:_}=v;_[d]&&p(n,c[d].get(),_[d]),i&&i(b,v)},onLayoutMeasure:b=>h(n,b),ref:a,ignoreStrict:!0,children:e})}const IC=g.forwardRef(CC),rx=g.forwardRef((e,t)=>{const n=me.c(16);let r,i,s,o,a;n[0]!==e?({isActive:s,value:a,children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=s,n[4]=o,n[5]=a):(r=n[1],i=n[2],s=n[3],o=n[4],a=n[5]);const u=s&&"graphiql-tab-active";let l;n[6]!==i||n[7]!==u?(l=We("graphiql-tab",u,i),n[6]=i,n[7]=u,n[8]=l):l=n[8];let c;return n[9]!==r||n[10]!==s||n[11]!==o||n[12]!==t||n[13]!==l||n[14]!==a?(c=y.jsx(IC,{...o,ref:t,value:a,"aria-selected":s,dragElastic:!1,role:"tab",className:l,children:r}),n[9]=r,n[10]=s,n[11]=o,n[12]=t,n[13]=l,n[14]=a,n[15]=c):c=n[15],c});rx.displayName="Tab";const ix=g.forwardRef((e,t)=>{const n=me.c(11);let r,i,s;n[0]!==e?({children:r,className:i,...s}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=s):(r=n[1],i=n[2],s=n[3]);let o;n[4]!==i?(o=We("graphiql-tab-button",i),n[4]=i,n[5]=o):o=n[5];let a;return n[6]!==r||n[7]!==s||n[8]!==t||n[9]!==o?(a=y.jsx(Ot,{...s,ref:t,type:"button",className:o,children:r}),n[6]=r,n[7]=s,n[8]=t,n[9]=o,n[10]=a):a=n[10],a});ix.displayName="Tab.Button";const sx=g.forwardRef((e,t)=>{const n=me.c(7);let r;n[0]!==e.className?(r=We("graphiql-tab-close",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;n[2]===Symbol.for("react.memo_cache_sentinel")?(i=y.jsx(jf,{}),n[2]=i):i=n[2];let s;return n[3]!==e||n[4]!==t||n[5]!==r?(s=y.jsx(Ot,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:r,children:i}),n[3]=e,n[4]=t,n[5]=r,n[6]=s):s=n[6],s});sx.displayName="Tab.Close";const Ul=Object.assign(rx,{Button:ix,Close:sx}),ox=g.forwardRef((e,t)=>{const n=me.c(15);let r,i,s,o,a;n[0]!==e?({values:a,onReorder:s,children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=s,n[4]=o,n[5]=a):(r=n[1],i=n[2],s=n[3],o=n[4],a=n[5]);let u;n[6]!==i?(u=We("graphiql-tabs",i),n[6]=i,n[7]=u):u=n[7];let l;return n[8]!==r||n[9]!==s||n[10]!==o||n[11]!==t||n[12]!==u||n[13]!==a?(l=y.jsx(AC,{...o,ref:t,values:a,onReorder:s,axis:"x",role:"tablist",className:u,children:r}),n[8]=r,n[9]=s,n[10]=o,n[11]=t,n[12]=u,n[13]=a,n[14]=l):l=n[14],l});ox.displayName="Tabs";const bf=Rf((e,t)=>({historyStorage:null,actions:{addToHistory(n){const{historyStorage:r}=t();r==null||r.updateHistory(n),e({})},editLabel(n,r){const{historyStorage:i}=t();i==null||i.editLabel(n,r),e({})},toggleFavorite(n){const{historyStorage:r}=t();r==null||r.toggleFavorite(n),e({})},setActive:n=>n,deleteFromHistory(n,r){const{historyStorage:i}=t();i==null||i.deleteHistory(n,r),e({})}}})),FC=e=>{const t=me.c(11),{maxHistoryLength:n,children:r}=e,i=n===void 0?20:n;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=er("isFetching","tabs","activeTabIndex","storage"),t[0]=s):s=t[0];const{isFetching:o,tabs:a,activeTabIndex:u,storage:l}=Ct(s),c=a[u];let f;t[1]!==i||t[2]!==l?(f=new Pw(l,i),t[1]=i,t[2]=l,t[3]=f):f=t[3];const d=f;let h,p;t[4]!==d?(h=()=>{bf.setState({historyStorage:d})},p=[d],t[4]=d,t[5]=h,t[6]=p):(h=t[5],p=t[6]),g.useEffect(h,p);let b,v;return t[7]!==c||t[8]!==o?(b=()=>{if(!o)return;const{addToHistory:_}=bf.getState().actions;_({query:c.query??void 0,variables:c.variables??void 0,headers:c.headers??void 0,operationName:c.operationName??void 0})},v=[o,c],t[7]=c,t[8]=o,t[9]=b,t[10]=v):(b=t[9],v=t[10]),g.useEffect(b,v),r},ax=Rd(bf),LC=[],OC=()=>ax(RC),ux=()=>ax(PC);function RC(e){var t;return((t=e.historyStorage)==null?void 0:t.queries)??LC}function PC(e){return e.actions}function MC(e,t){for(const n of e)t(n,!0)}const VC=()=>{const e=me.c(13),t=OC(),{deleteFromHistory:n}=ux();let r;r=t.slice().map(jC).reverse();const i=r.filter(BC);i.length&&(r=r.filter(UC));const[s,o]=g.useState(null);let a,u;e[0]!==s?(a=()=>{s&&setTimeout(()=>{o(null)},2e3)},u=[s],e[0]=s,e[1]=a,e[2]=u):(a=e[1],u=e[2]),g.useEffect(a,u);const l=()=>{try{MC(r,n),o("success")}catch{o("error")}},c=!!i.length,f=!!r.length,d="History",h="graphiql-history",p=(s||f)&&y.jsx(Gn,{type:"button",state:s||void 0,disabled:!r.length,onClick:l,children:{success:"Cleared",error:"Failed to Clear"}[s]||"Clear"});let b;e[3]!==p?(b=y.jsxs("div",{className:"graphiql-history-header",children:["History",p]}),e[3]=p,e[4]=b):b=e[4];const v=c&&y.jsx("ul",{className:"graphiql-history-items",children:i.map(qC)});let _;e[5]!==c||e[6]!==f?(_=c&&f&&y.jsx("div",{className:"graphiql-history-item-spacer"}),e[5]=c,e[6]=f,e[7]=_):_=e[7];const x=f&&y.jsx("ul",{className:"graphiql-history-items",children:r.map(zC)});let E;return e[8]!==b||e[9]!==v||e[10]!==_||e[11]!==x?(E=y.jsxs("section",{"aria-label":d,className:h,children:[b,v,_,x]}),e[8]=b,e[9]=v,e[10]=_,e[11]=x,e[12]=E):E=e[12],E},lx=e=>{const t=me.c(39),{editLabel:n,toggleFavorite:r,deleteFromHistory:i,setActive:s}=ux();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=er("headerEditor","queryEditor","variableEditor"),t[0]=o):o=t[0];const{headerEditor:a,queryEditor:u,variableEditor:l}=Ct(o),c=g.useRef(null),f=g.useRef(null),[d,h]=g.useState(!1);let p,b;t[1]!==d?(p=()=>{var $;d&&(($=c.current)==null||$.focus())},b=[d],t[1]=d,t[2]=p,t[3]=b):(p=t[2],b=t[3]),g.useEffect(p,b);let v;t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(v=e.item.label||e.item.operationName||$C(e.item.query),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=v):v=t[7];const _=v;let x;t[8]!==n||t[9]!==e.item?(x=()=>{var $;h(!1);const{index:B,...oe}=e.item;n({...oe,label:($=c.current)==null?void 0:$.value},B)},t[8]=n,t[9]=e.item,t[10]=x):x=t[10];const E=x;let T;t[11]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{h(!1)},t[11]=T):T=t[11];const k=T;let A;t[12]===Symbol.for("react.memo_cache_sentinel")?(A=$=>{$.stopPropagation(),h(!0)},t[12]=A):A=t[12];const I=A;let U;t[13]!==a||t[14]!==e.item||t[15]!==u||t[16]!==s||t[17]!==l?(U=()=>{const{query:$,variables:B,headers:oe}=e.item;u==null||u.setValue($??""),l==null||l.setValue(B??""),a==null||a.setValue(oe??""),s(e.item)},t[13]=a,t[14]=e.item,t[15]=u,t[16]=s,t[17]=l,t[18]=U):U=t[18];const D=U;let z;t[19]!==i||t[20]!==e.item?(z=$=>{$.stopPropagation(),i(e.item)},t[19]=i,t[20]=e.item,t[21]=z):z=t[21];const W=z;let Z;t[22]!==e.item||t[23]!==r?(Z=$=>{$.stopPropagation(),r(e.item)},t[22]=e.item,t[23]=r,t[24]=Z):Z=t[24];const O=Z,N=d&&"editable";let M;t[25]!==N?(M=We("graphiql-history-item",N),t[25]=N,t[26]=M):M=t[26];let q;t[27]!==_||t[28]!==n||t[29]!==W||t[30]!==D||t[31]!==E||t[32]!==O||t[33]!==d||t[34]!==e.item?(q=d?y.jsxs(y.Fragment,{children:[y.jsx("input",{type:"text",defaultValue:e.item.label,ref:c,onKeyDown:$=>{$.key==="Esc"?h(!1):$.key==="Enter"&&(h(!1),n({...e.item,label:$.currentTarget.value}))},placeholder:"Type a label"}),y.jsx(Ot,{type:"button",ref:f,onClick:E,children:"Save"}),y.jsx(Ot,{type:"button",ref:f,onClick:k,children:y.jsx(jf,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx(cn,{label:"Set active",children:y.jsx(Ot,{type:"button",className:"graphiql-history-item-label",onClick:D,"aria-label":"Set active",children:_})}),y.jsx(cn,{label:"Edit label",children:y.jsx(Ot,{type:"button",className:"graphiql-history-item-action",onClick:I,"aria-label":"Edit label",children:y.jsx(r_,{"aria-hidden":"true"})})}),y.jsx(cn,{label:e.item.favorite?"Remove favorite":"Add favorite",children:y.jsx(Ot,{type:"button",className:"graphiql-history-item-action",onClick:O,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?y.jsx(c_,{"aria-hidden":"true"}):y.jsx(f_,{"aria-hidden":"true"})})}),y.jsx(cn,{label:"Delete from history",children:y.jsx(Ot,{type:"button",className:"graphiql-history-item-action",onClick:W,"aria-label":"Delete from history",children:y.jsx(h_,{"aria-hidden":"true"})})})]}),t[27]=_,t[28]=n,t[29]=W,t[30]=D,t[31]=E,t[32]=O,t[33]=d,t[34]=e.item,t[35]=q):q=t[35];let Q;return t[36]!==M||t[37]!==q?(Q=y.jsx("li",{className:M,children:q}),t[36]=M,t[37]=q,t[38]=Q):Q=t[38],Q};function $C(e){return e==null?void 0:e.split(`
320
+ `).map(t=>t.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")}function jC(e,t){return{...e,index:t}}function BC(e){return e.favorite}function UC(e){return!e.favorite}function qC(e){return y.jsx(lx,{item:e},e.index)}function zC(e){return y.jsx(lx,{item:e},e.index)}const vf={title:"History",icon:Z6,content:VC};function HC(e,t){if(e==="Field"&&t.fieldDef||e==="AliasedField"&&t.fieldDef)return QC(t);if(e==="Directive"&&t.directiveDef)return WC(t);if(e==="Argument"&&t.argDef)return GC(t);if(e==="EnumValue"&&t.enumValue)return XC(t);if(e==="NamedType"&&t.type)return YC(t)}function GC(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:cx(e.fieldDef)?null:e.parentType}}function WC(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function QC(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:cx(e.fieldDef)?null:e.parentType}}function YC(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function XC(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?Tt(e.inputType):void 0}}function cx(e){return e.name.slice(0,2)==="__"}const JC=e=>e?Qe(e):"",fx=e=>{const t=me.c(12),{field:n}=e;if(!("defaultValue"in n)||n.defaultValue===void 0)return null;const r=n.defaultValue,i=n.type;let s,o,a,u;if(t[0]!==n.defaultValue||t[1]!==n.type){u=Symbol.for("react.early_return_sentinel");e:{const f=Ar(r,i);if(!f){u=null;break e}a=" = ",s="graphiql-doc-explorer-default-value",o=JC(f)}t[0]=n.defaultValue,t[1]=n.type,t[2]=s,t[3]=o,t[4]=a,t[5]=u}else s=t[2],o=t[3],a=t[4],u=t[5];if(u!==Symbol.for("react.early_return_sentinel"))return u;let l;t[6]!==s||t[7]!==o?(l=y.jsx("span",{className:s,children:o}),t[6]=s,t[7]=o,t[8]=l):l=t[8];let c;return t[9]!==a||t[10]!==l?(c=y.jsxs(y.Fragment,{children:[a,l]}),t[9]=a,t[10]=l,t[11]=c):c=t[11],c};function hu(e,t){return Te(e)?y.jsxs(y.Fragment,{children:[hu(e.ofType,t),"!"]}):it(e)?y.jsxs(y.Fragment,{children:["[",hu(e.ofType,t),"]"]}):t(e)}const Dr=e=>{const t=me.c(5),{type:n}=e,{push:r}=Ku();let i;t[0]!==r?(i=o=>y.jsx("a",{className:"graphiql-doc-explorer-type-name",onClick:a=>{a.preventDefault(),r({name:o.name,def:o})},href:"#",children:o.name}),t[0]=r,t[1]=i):i=t[1];let s;return t[2]!==i||t[3]!==n?(s=hu(n,i),t[2]=i,t[3]=n,t[4]=s):s=t[4],s},pu=e=>{const t=me.c(19),{arg:n,showDefaultValue:r,inline:i}=e;let s;t[0]!==n.name?(s=y.jsx("span",{className:"graphiql-doc-explorer-argument-name",children:n.name}),t[0]=n.name,t[1]=s):s=t[1];let o;t[2]!==n.type?(o=y.jsx(Dr,{type:n.type}),t[2]=n.type,t[3]=o):o=t[3];let a;t[4]!==n||t[5]!==r?(a=r!==!1&&y.jsx(fx,{field:n}),t[4]=n,t[5]=r,t[6]=a):a=t[6];let u;t[7]!==s||t[8]!==o||t[9]!==a?(u=y.jsxs("span",{children:[s,": ",o,a]}),t[7]=s,t[8]=o,t[9]=a,t[10]=u):u=t[10];const l=u;if(i)return l;let c;t[11]!==n.description?(c=n.description?y.jsx(yr,{type:"description",children:n.description}):null,t[11]=n.description,t[12]=c):c=t[12];let f;t[13]!==n.deprecationReason?(f=n.deprecationReason?y.jsxs("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[y.jsx("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),y.jsx(yr,{type:"deprecation",children:n.deprecationReason})]}):null,t[13]=n.deprecationReason,t[14]=f):f=t[14];let d;return t[15]!==l||t[16]!==c||t[17]!==f?(d=y.jsxs("div",{className:"graphiql-doc-explorer-argument",children:[l,c,f]}),t[15]=l,t[16]=c,t[17]=f,t[18]=d):d=t[18],d},dx=e=>{const t=me.c(3);let n;return t[0]!==e.children||t[1]!==e.preview?(n=e.children?y.jsxs("div",{className:"graphiql-doc-explorer-deprecation",children:[y.jsx("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),y.jsx(yr,{type:"deprecation",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null,t[0]=e.children,t[1]=e.preview,t[2]=n):n=t[2],n},ZC=e=>{const t=me.c(2),{directive:n}=e;let r;return t[0]!==n.name.value?(r=y.jsxs("span",{className:"graphiql-doc-explorer-directive",children:["@",n.name.value]}),t[0]=n.name.value,t[1]=r):r=t[1],r},Vn=e=>{const t=me.c(10),{title:n,children:r}=e,i=KC[n];let s;t[0]!==i?(s=y.jsx(i,{}),t[0]=i,t[1]=s):s=t[1];let o;t[2]!==s||t[3]!==n?(o=y.jsxs("div",{className:"graphiql-doc-explorer-section-title",children:[s,n]}),t[2]=s,t[3]=n,t[4]=o):o=t[4];let a;t[5]!==r?(a=y.jsx("div",{className:"graphiql-doc-explorer-section-content",children:r}),t[5]=r,t[6]=a):a=t[6];let u;return t[7]!==o||t[8]!==a?(u=y.jsxs("div",{children:[o,a]}),t[7]=o,t[8]=a,t[9]=u):u=t[9],u},KC={Arguments:$6,"Deprecated Arguments":z6,"Deprecated Enum Values":H6,"Deprecated Fields":G6,Directives:W6,"Enum Values":X6,Fields:J6,Implements:K6,Implementations:Ko,"Possible Types":Ko,"Root Types":u_,Type:Ko,"All Schema Types":Ko},eI=e=>{const t=me.c(15),{field:n}=e;let r;t[0]!==n.description?(r=n.description?y.jsx(yr,{type:"description",children:n.description}):null,t[0]=n.description,t[1]=r):r=t[1];let i;t[2]!==n.deprecationReason?(i=y.jsx(dx,{preview:!1,children:n.deprecationReason}),t[2]=n.deprecationReason,t[3]=i):i=t[3];let s;t[4]!==n.type?(s=y.jsx(Vn,{title:"Type",children:y.jsx(Dr,{type:n.type})}),t[4]=n.type,t[5]=s):s=t[5];let o,a;t[6]!==n?(o=y.jsx(tI,{field:n}),a=y.jsx(nI,{field:n}),t[6]=n,t[7]=o,t[8]=a):(o=t[7],a=t[8]);let u;return t[9]!==r||t[10]!==i||t[11]!==s||t[12]!==o||t[13]!==a?(u=y.jsxs(y.Fragment,{children:[r,i,s,o,a]}),t[9]=r,t[10]=i,t[11]=s,t[12]=o,t[13]=a,t[14]=u):u=t[14],u},tI=e=>{const t=me.c(12),{field:n}=e,[r,i]=g.useState(!1);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{i(!0)},t[0]=s):s=t[0];const o=s;if(!("args"in n))return null;let a,u,l;if(t[1]!==n.args){a=[],u=[];for(const d of n.args)d.deprecationReason?u.push(d):a.push(d);l=a.length>0?y.jsx(Vn,{title:"Arguments",children:a.map(rI)}):null,t[1]=n.args,t[2]=a,t[3]=u,t[4]=l}else a=t[2],u=t[3],l=t[4];let c;t[5]!==a.length||t[6]!==u||t[7]!==r?(c=u.length>0?r||a.length===0?y.jsx(Vn,{title:"Deprecated Arguments",children:u.map(iI)}):y.jsx(Gn,{type:"button",onClick:o,children:"Show Deprecated Arguments"}):null,t[5]=a.length,t[6]=u,t[7]=r,t[8]=c):c=t[8];let f;return t[9]!==l||t[10]!==c?(f=y.jsxs(y.Fragment,{children:[l,c]}),t[9]=l,t[10]=c,t[11]=f):f=t[11],f},nI=e=>{var t;const n=me.c(4),{field:r}=e,i=(t=r.astNode)==null?void 0:t.directives;if(!(i!=null&&i.length))return null;let s;n[0]!==i?(s=i.map(sI),n[0]=i,n[1]=s):s=n[1];let o;return n[2]!==s?(o=y.jsx(Vn,{title:"Directives",children:s}),n[2]=s,n[3]=o):o=n[3],o};function rI(e){return y.jsx(pu,{arg:e},e.name)}function iI(e){return y.jsx(pu,{arg:e},e.name)}function sI(e){return y.jsx("div",{children:y.jsx(ZC,{directive:e})},e.name.value)}const oI=e=>{const t=me.c(43),{schema:n}=e;let r;t[0]!==n?(r=n.getQueryType(),t[0]=n,t[1]=r):r=t[1];const i=r;let s;t[2]!==n?(s=n.getMutationType(),t[2]=n,t[3]=s):s=t[3];const o=s;let a;t[4]!==n?(a=n.getSubscriptionType(),t[4]=n,t[5]=a):a=t[5];const u=a;let l,c,f,d,h;if(t[6]!==o||t[7]!==i||t[8]!==n||t[9]!==u){const _=n.getTypeMap(),x=i==null?void 0:i.name,E=o==null?void 0:o.name,T=u==null?void 0:u.name;let k;t[15]!==T||t[16]!==x||t[17]!==E?(k=[x,E,T],t[15]=T,t[16]=x,t[17]=E,t[18]=k):k=t[18];const A=k,I=n.description||"A GraphQL schema provides a root type for each kind of operation.";t[19]!==I?(d=y.jsx(yr,{type:"description",children:I}),t[19]=I,t[20]=d):d=t[20];let U;t[21]!==i?(U=i?y.jsxs("div",{children:[y.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",y.jsx(Dr,{type:i})]}):null,t[21]=i,t[22]=U):U=t[22];let D;t[23]!==o?(D=o&&y.jsxs("div",{children:[y.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",y.jsx(Dr,{type:o})]}),t[23]=o,t[24]=D):D=t[24];let z;t[25]!==u?(z=u&&y.jsxs("div",{children:[y.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",y.jsx(Dr,{type:u})]}),t[25]=u,t[26]=z):z=t[26],t[27]!==U||t[28]!==D||t[29]!==z?(h=y.jsxs(Vn,{title:"Root Types",children:[U,D,z]}),t[27]=U,t[28]=D,t[29]=z,t[30]=h):h=t[30],l=Vn,f="All Schema Types";let W;t[31]!==A?(W=Z=>A.includes(Z.name)||Z.name.startsWith("__")?null:y.jsx("div",{children:y.jsx(Dr,{type:Z})},Z.name),t[31]=A,t[32]=W):W=t[32],c=Object.values(_).map(W),t[6]=o,t[7]=i,t[8]=n,t[9]=u,t[10]=l,t[11]=c,t[12]=f,t[13]=d,t[14]=h}else l=t[10],c=t[11],f=t[12],d=t[13],h=t[14];let p;t[33]!==c?(p=y.jsx("div",{children:c}),t[33]=c,t[34]=p):p=t[34];let b;t[35]!==l||t[36]!==f||t[37]!==p?(b=y.jsx(l,{title:f,children:p}),t[35]=l,t[36]=f,t[37]=p,t[38]=b):b=t[38];let v;return t[39]!==d||t[40]!==h||t[41]!==b?(v=y.jsxs(y.Fragment,{children:[d,h,b]}),t[39]=d,t[40]=h,t[41]=b,t[42]=v):v=t[42],v},hx=typeof document<"u"?qe.useLayoutEffect:()=>{};function aI(e){const t=g.useRef(null);return hx(()=>{t.current=e},[e]),g.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const si=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},vi=e=>e&&"window"in e&&e.window===e?e:si(e).defaultView||window;function uI(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function lI(e){return uI(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let cI=!1;function S0(){return cI}function px(e,t){if(!S0())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:lI(n)?n=n.host:n=n.parentNode}return!1}const yf=(e=document)=>{var t;if(!S0())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function mx(e){return S0()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function fI(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function dI(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function gx(e){let t=null;return()=>(t==null&&(t=e()),t)}const hI=gx(function(){return dI(/^Mac/i)}),pI=gx(function(){return fI(/Android/i)});function bx(){let e=g.useRef(new Map),t=g.useCallback((i,s,o,a)=>{let u=a!=null&&a.once?(...l)=>{e.current.delete(o),o(...l)}:o;e.current.set(o,{type:s,eventTarget:i,fn:u,options:a}),i.addEventListener(s,u,a)},[]),n=g.useCallback((i,s,o,a)=>{var u;let l=((u=e.current.get(o))===null||u===void 0?void 0:u.fn)||o;i.removeEventListener(s,l,a),e.current.delete(o)},[]),r=g.useCallback(()=>{e.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return g.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function mI(e){return e.mozInputSource===0&&e.isTrusted?!0:pI()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function vx(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function gI(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function yx(e){let t=g.useRef({isFocused:!1,observer:null});hx(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=aI(r=>{e==null||e(r)});return g.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,s=o=>{if(t.current.isFocused=!1,i.disabled){let a=vx(o);n(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let bI=!1,Ho=null,xf=new Set,ro=new Map,Mi=!1,Ef=!1;const vI={Tab:!0,Escape:!0};function k0(e,t){for(let n of xf)n(e,t)}function yI(e){return!(e.metaKey||!hI()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function mu(e){Mi=!0,yI(e)&&(Ho="keyboard",k0("keyboard",e))}function us(e){Ho="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Mi=!0,k0("pointer",e))}function xx(e){mI(e)&&(Mi=!0,Ho="virtual")}function Ex(e){e.target===window||e.target===document||bI||!e.isTrusted||(!Mi&&!Ef&&(Ho="virtual",k0("virtual",e)),Mi=!1,Ef=!1)}function _x(){Mi=!1,Ef=!0}function _f(e){if(typeof window>"u"||typeof document>"u"||ro.get(vi(e)))return;const t=vi(e),n=si(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Mi=!0,r.apply(this,arguments)},n.addEventListener("keydown",mu,!0),n.addEventListener("keyup",mu,!0),n.addEventListener("click",xx,!0),t.addEventListener("focus",Ex,!0),t.addEventListener("blur",_x,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",us,!0),n.addEventListener("pointermove",us,!0),n.addEventListener("pointerup",us,!0)),t.addEventListener("beforeunload",()=>{Tx(e)},{once:!0}),ro.set(t,{focus:r})}const Tx=(e,t)=>{const n=vi(e),r=si(e);t&&r.removeEventListener("DOMContentLoaded",t),ro.has(n)&&(n.HTMLElement.prototype.focus=ro.get(n).focus,r.removeEventListener("keydown",mu,!0),r.removeEventListener("keyup",mu,!0),r.removeEventListener("click",xx,!0),n.removeEventListener("focus",Ex,!0),n.removeEventListener("blur",_x,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",us,!0),r.removeEventListener("pointermove",us,!0),r.removeEventListener("pointerup",us,!0)),ro.delete(n))};function xI(e){const t=si(e);let n;return t.readyState!=="loading"?_f(e):(n=()=>{_f(e)},t.addEventListener("DOMContentLoaded",n)),()=>Tx(e,n)}typeof document<"u"&&xI();function wx(){return Ho!=="pointer"}const EI=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function _I(e,t,n){let r=si(n==null?void 0:n.target);const i=typeof window<"u"?vi(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?vi(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?vi(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?vi(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof i&&!EI.has(r.activeElement.type)||r.activeElement instanceof s||r.activeElement instanceof o&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!vI[n.key])}function TI(e,t,n){_f(),g.useEffect(()=>{let r=(i,s)=>{_I(!!(n!=null&&n.isTextInput),i,s)&&e(wx())};return xf.add(r),()=>{xf.delete(r)}},t)}function wI(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=g.useCallback(u=>{if(u.target===u.currentTarget)return r&&r(u),i&&i(!1),!0},[r,i]),o=yx(s),a=g.useCallback(u=>{const l=si(u.target),c=l?yf(l):yf();u.target===u.currentTarget&&c===mx(u.nativeEvent)&&(n&&n(u),i&&i(!0),o(u))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?s:void 0}}}function SI(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=g.useRef({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:a}=bx(),u=g.useCallback(f=>{f.currentTarget.contains(f.target)&&s.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(s.current.isFocusWithin=!1,a(),n&&n(f),i&&i(!1))},[n,i,s,a]),l=yx(u),c=g.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const d=si(f.target),h=yf(d);if(!s.current.isFocusWithin&&h===mx(f.nativeEvent)){r&&r(f),i&&i(!0),s.current.isFocusWithin=!0,l(f);let p=f.currentTarget;o(d,"focus",b=>{if(s.current.isFocusWithin&&!px(p,b.target)){let v=new d.defaultView.FocusEvent("blur",{relatedTarget:b.target});gI(v,p);let _=vx(v);u(_)}},{capture:!0})}},[r,i,l,o,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:u}}}let Tf=!1,ql=0;function kI(){Tf=!0,setTimeout(()=>{Tf=!1},50)}function Ng(e){e.pointerType==="touch"&&kI()}function AI(){if(!(typeof document>"u"))return typeof PointerEvent<"u"&&document.addEventListener("pointerup",Ng),ql++,()=>{ql--,!(ql>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Ng)}}function Sx(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,o]=g.useState(!1),a=g.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;g.useEffect(AI,[]);let{addGlobalListener:u,removeAllGlobalListeners:l}=bx(),{hoverProps:c,triggerHoverEnd:f}=g.useMemo(()=>{let d=(b,v)=>{if(a.pointerType=v,i||v==="touch"||a.isHovered||!b.currentTarget.contains(b.target))return;a.isHovered=!0;let _=b.currentTarget;a.target=_,u(si(b.target),"pointerover",x=>{a.isHovered&&a.target&&!px(a.target,x.target)&&h(x,x.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:_,pointerType:v}),n&&n(!0),o(!0)},h=(b,v)=>{let _=a.target;a.pointerType="",a.target=null,!(v==="touch"||!a.isHovered||!_)&&(a.isHovered=!1,l(),r&&r({type:"hoverend",target:_,pointerType:v}),n&&n(!1),o(!1))},p={};return typeof PointerEvent<"u"&&(p.onPointerEnter=b=>{Tf&&b.pointerType==="mouse"||d(b,b.pointerType)},p.onPointerLeave=b=>{!i&&b.currentTarget.contains(b.target)&&h(b,b.pointerType)}),{hoverProps:p,triggerHoverEnd:h}},[t,n,r,i,a,u,l]);return g.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:c,isHovered:s}}function kx(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=g.useRef({isFocused:!1,isFocusVisible:t||wx()}),[s,o]=g.useState(!1),[a,u]=g.useState(()=>i.current.isFocused&&i.current.isFocusVisible),l=g.useCallback(()=>u(i.current.isFocused&&i.current.isFocusVisible),[]),c=g.useCallback(h=>{i.current.isFocused=h,o(h),l()},[l]);TI(h=>{i.current.isFocusVisible=h,l()},[],{isTextInput:n});let{focusProps:f}=wI({isDisabled:r,onFocusChange:c}),{focusWithinProps:d}=SI({isDisabled:!r,onFocusWithinChange:c});return{isFocused:s,isFocusVisible:a,focusProps:r?d:f}}var DI=Object.defineProperty,NI=(e,t,n)=>t in e?DI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zl=(e,t,n)=>(NI(e,typeof t!="symbol"?t+"":t,n),n);let CI=class{constructor(){zl(this,"current",this.detect()),zl(this,"handoffState","pending"),zl(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Si=new CI;function Go(e){var t,n;return Si.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?(n=(t=e.current)==null?void 0:t.ownerDocument)!=null?n:document:null:document}function Ax(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function wr(){let e=[],t={addEventListener(n,r,i,s){return n.addEventListener(r,i,s),t.add(()=>n.removeEventListener(r,i,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Ax(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=wr();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function Wo(){let[e]=g.useState(wr);return g.useEffect(()=>()=>e.dispose(),[e]),e}let vt=(e,t)=>{Si.isServer?g.useEffect(e,t):g.useLayoutEffect(e,t)};function ji(e){let t=g.useRef(e);return vt(()=>{t.current=e},[e]),t}let $e=function(e){let t=ji(e);return qe.useCallback((...n)=>t.current(...n),[t])};function II(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function FI(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function LI({disabled:e=!1}={}){let t=g.useRef(null),[n,r]=g.useState(!1),i=Wo(),s=$e(()=>{t.current=null,r(!1),i.dispose()}),o=$e(a=>{if(i.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let u=Go(a.currentTarget);i.addEventListener(u,"pointerup",s,!1),i.addEventListener(u,"pointermove",l=>{if(t.current){let c=II(l);r(FI(c,t.current.getBoundingClientRect()))}},!1),i.addEventListener(u,"pointercancel",s,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:o,onPointerUp:s,onClick:s}}}let OI=g.createContext(void 0);function A0(){return g.useContext(OI)}function Cg(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function xr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,xr),r}var wf=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(wf||{}),RI=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(RI||{});function nr(){let e=MI();return g.useCallback(t=>PI({mergeRefs:e,...t}),[e])}function PI({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:s=!0,name:o,mergeRefs:a}){a=a??VI;let u=Dx(t,e);if(s)return ba(u,n,r,o,a);let l=i??0;if(l&2){let{static:c=!1,...f}=u;if(c)return ba(f,n,r,o,a)}if(l&1){let{unmount:c=!0,...f}=u;return xr(c?0:1,{0(){return null},1(){return ba({...f,hidden:!0,style:{display:"none"}},n,r,o,a)}})}return ba(u,n,r,o,a)}function ba(e,t={},n,r,i){let{as:s=n,children:o,refName:a="ref",...u}=Hl(e,["unmount","static"]),l=e.ref!==void 0?{[a]:e.ref}:{},c=typeof o=="function"?o(t):o;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t)),u["aria-labelledby"]&&u["aria-labelledby"]===u.id&&(u["aria-labelledby"]=void 0);let f={};if(t){let d=!1,h=[];for(let[p,b]of Object.entries(t))typeof b=="boolean"&&(d=!0),b===!0&&h.push(p.replace(/([A-Z])/g,v=>`-${v.toLowerCase()}`));if(d){f["data-headlessui-state"]=h.join(" ");for(let p of h)f[`data-${p}`]=""}}if(s===g.Fragment&&(Object.keys(di(u)).length>0||Object.keys(di(f)).length>0))if(!g.isValidElement(c)||Array.isArray(c)&&c.length>1){if(Object.keys(di(u)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(di(u)).concat(Object.keys(di(f))).map(d=>` - ${d}`).join(`
321
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join(`
322
+ `)].join(`
323
+ `))}else{let d=c.props,h=d==null?void 0:d.className,p=typeof h=="function"?(..._)=>Cg(h(..._),u.className):Cg(h,u.className),b=p?{className:p}:{},v=Dx(c.props,di(Hl(u,["ref"])));for(let _ in f)_ in v&&delete f[_];return g.cloneElement(c,Object.assign({},v,f,l,{ref:i($I(c),l.ref)},b))}return g.createElement(s,Object.assign({},Hl(u,["ref"]),s!==g.Fragment&&l,s!==g.Fragment&&f),c)}function MI(){let e=g.useRef([]),t=g.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function VI(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Dx(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var s;return(s=i==null?void 0:i.preventDefault)==null?void 0:s.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...s){let o=n[r];for(let a of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;a(i,...s)}}});return t}function D0(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];for(let r in n)Object.assign(t,{[r](...i){let s=n[r];for(let o of s)o==null||o(...i)}});return t}function rr(e){var t;return Object.assign(g.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function di(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Hl(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function $I(e){return qe.version.split(".")[0]>="19"?e.props.ref:e.ref}function jI(e,t,n){let[r,i]=g.useState(n),s=e!==void 0,o=g.useRef(s),a=g.useRef(!1),u=g.useRef(!1);return s&&!o.current&&!a.current?(a.current=!0,o.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!s&&o.current&&!u.current&&(u.current=!0,o.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[s?e:r,$e(l=>(s||i(l),t==null?void 0:t(l)))]}function BI(e){let[t]=g.useState(e);return t}function Nx(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))Ix(n,Cx(t,r),i);return n}function Cx(e,t){return e?e+"["+t+"]":t}function Ix(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())Ix(e,Cx(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Nx(n,t,e)}let UI="span";var N0=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(N0||{});function qI(e,t){var n;let{features:r=1,...i}=e,s={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return nr()({ourProps:s,theirProps:i,slot:{},defaultTag:UI,name:"Hidden"})}let Fx=rr(qI),zI=g.createContext(null);function HI({children:e}){let t=g.useContext(zI);if(!t)return qe.createElement(qe.Fragment,null,e);let{target:n}=t;return n?Fn.createPortal(qe.createElement(qe.Fragment,null,e),n):null}function GI({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[s,o]=g.useState(null),a=Wo();return g.useEffect(()=>{if(r&&s)return a.addEventListener(s,"reset",r)},[s,t,r]),qe.createElement(HI,null,qe.createElement(WI,{setForm:o,formId:t}),Nx(e).map(([u,l])=>qe.createElement(Fx,{features:N0.Hidden,...di({key:u,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:u,value:l,...i})})))}function WI({setForm:e,formId:t}){return g.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:qe.createElement(Fx,{features:N0.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let QI=g.createContext(void 0);function Lx(){return g.useContext(QI)}function C0(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function Yu(e){return C0(e)&&"tagName"in e}function oi(e){return Yu(e)&&"accessKey"in e}function yi(e){return Yu(e)&&"tabIndex"in e}function YI(e){return Yu(e)&&"style"in e}function XI(e){return oi(e)&&e.nodeName==="IFRAME"}function gu(e){return oi(e)&&e.nodeName==="INPUT"}function Ig(e){return oi(e)&&e.nodeName==="LABEL"}function JI(e){return oi(e)&&e.nodeName==="FIELDSET"}function Ox(e){return oi(e)&&e.nodeName==="LEGEND"}function ZI(e){return Yu(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function KI(e){let t=e.parentElement,n=null;for(;t&&!JI(t);)Ox(t)&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&eF(n)?!1:r}function eF(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(Ox(t))return!1;t=t.previousElementSibling}return!0}let Rx=Symbol();function tF(e,t=!0){return Object.assign(e,{[Rx]:t})}function jr(...e){let t=g.useRef(e);g.useEffect(()=>{t.current=e},[e]);let n=$e(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Rx]))?void 0:n}let I0=g.createContext(null);I0.displayName="DescriptionContext";function Px(){let e=g.useContext(I0);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Px),t}return e}function nF(){var e,t;return(t=(e=g.useContext(I0))==null?void 0:e.value)!=null?t:void 0}let rF="p";function iF(e,t){let n=g.useId(),r=A0(),{id:i=`headlessui-description-${n}`,...s}=e,o=Px(),a=jr(t);vt(()=>o.register(i),[i,o.register]);let u=r||!1,l=g.useMemo(()=>({...o.slot,disabled:u}),[o.slot,u]),c={ref:a,...o.props,id:i};return nr()({ourProps:c,theirProps:s,slot:l,defaultTag:rF,name:o.name||"Description"})}let sF=rr(iF);Object.assign(sF,{});var Kt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Kt||{});let Xu=g.createContext(null);Xu.displayName="LabelContext";function Mx(){let e=g.useContext(Xu);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Mx),t}return e}function Ju(e){var t,n,r;let i=(n=(t=g.useContext(Xu))==null?void 0:t.value)!=null?n:void 0;return((r=e==null?void 0:e.length)!=null?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function oF({inherit:e=!1}={}){let t=Ju(),[n,r]=g.useState([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,g.useMemo(()=>function(s){let o=$e(u=>(r(l=>[...l,u]),()=>r(l=>{let c=l.slice(),f=c.indexOf(u);return f!==-1&&c.splice(f,1),c}))),a=g.useMemo(()=>({register:o,slot:s.slot,name:s.name,props:s.props,value:s.value}),[o,s.slot,s.name,s.props,s.value]);return qe.createElement(Xu.Provider,{value:a},s.children)},[r])]}let aF="label";function uF(e,t){var n;let r=g.useId(),i=Mx(),s=Lx(),o=A0(),{id:a=`headlessui-label-${r}`,htmlFor:u=s??((n=i.props)==null?void 0:n.htmlFor),passive:l=!1,...c}=e,f=jr(t);vt(()=>i.register(a),[a,i.register]);let d=$e(v=>{let _=v.currentTarget;if(!(v.target!==v.currentTarget&&ZI(v.target))&&(Ig(_)&&v.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(v),Ig(_))){let x=document.getElementById(_.htmlFor);if(x){let E=x.getAttribute("disabled");if(E==="true"||E==="")return;let T=x.getAttribute("aria-disabled");if(T==="true"||T==="")return;(gu(x)&&(x.type==="file"||x.type==="radio"||x.type==="checkbox")||x.role==="radio"||x.role==="checkbox"||x.role==="switch")&&x.click(),x.focus({preventScroll:!0})}}}),h=o||!1,p=g.useMemo(()=>({...i.slot,disabled:h}),[i.slot,h]),b={ref:f,...i.props,id:a,htmlFor:u,onClick:d};return l&&("onClick"in b&&(delete b.htmlFor,delete b.onClick),"onClick"in c&&delete c.onClick),nr()({ourProps:b,theirProps:c,slot:p,defaultTag:u?aF:"div",name:i.name||"Label"})}let lF=rr(uF),cF=Object.assign(lF,{});function Gi(e,t,n){let r=n.initialDeps??[],i;function s(){var o,a,u,l;let c;n.key&&((o=n.debug)!=null&&o.call(n))&&(c=Date.now());const f=e();if(!(f.length!==r.length||f.some((p,b)=>r[b]!==p)))return i;r=f;let h;if(n.key&&((a=n.debug)!=null&&a.call(n))&&(h=Date.now()),i=t(...f),n.key&&((u=n.debug)!=null&&u.call(n))){const p=Math.round((Date.now()-c)*100)/100,b=Math.round((Date.now()-h)*100)/100,v=b/16,_=(x,E)=>{for(x=String(x);x.length<E;)x=" "+x;return x};console.info(`%c⏱ ${_(b,5)} /${_(p,5)} ms`,`
324
+ font-size: .6rem;
325
+ font-weight: bold;
326
+ color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(l=n==null?void 0:n.onChange)==null||l.call(n,i),i}return s.updateDeps=o=>{r=o},s}function Fg(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const fF=(e,t)=>Math.abs(e-t)<1.01,dF=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},Lg=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},hF=e=>e,pF=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},mF=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=o=>{const{width:a,height:u}=o;t({width:Math.round(a),height:Math.round(u)})};if(i(Lg(n)),!r.ResizeObserver)return()=>{};const s=new r.ResizeObserver(o=>{const a=()=>{const u=o[0];if(u!=null&&u.borderBoxSize){const l=u.borderBoxSize[0];if(l){i({width:l.inlineSize,height:l.blockSize});return}}i(Lg(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},Og={passive:!0},Rg=typeof window>"u"?!0:"onscrollend"in window,gF=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const s=e.options.useScrollendEvent&&Rg?()=>{}:dF(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=c=>()=>{const{horizontal:f,isRtl:d}=e.options;i=f?n.scrollLeft*(d&&-1||1):n.scrollTop,s(),t(i,c)},a=o(!0),u=o(!1);u(),n.addEventListener("scroll",a,Og);const l=e.options.useScrollendEvent&&Rg;return l&&n.addEventListener("scrollend",u,Og),()=>{n.removeEventListener("scroll",a),l&&n.removeEventListener("scrollend",u)}},bF=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},vF=(e,{adjustments:t=0,behavior:n},r)=>{var i,s;const o=e+t;(s=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[r.options.horizontal?"left":"top"]:o,behavior:n})};class yF{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{const o=()=>{this._measureElement(s.target,s)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var s;return(s=r())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=r())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:hF,rangeExtractor:pF,onChange:()=>{},measureElement:bF,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=Gi(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,s=new Map;for(let o=r-1;o>=0;o--){const a=n[o];if(i.has(a.lane))continue;const u=s.get(a.lane);if(u==null||a.end>u.end?s.set(a.lane,a):a.end<u.end&&i.set(a.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((o,a)=>o.end===a.end?o.index-a.index:o.end-a.end)[0]:void 0},this.getMeasurementOptions=Gi(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,i,s,o)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:o}),{key:!1}),this.getMeasurements=Gi(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:o},a)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const u=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const l=this.measurementsCache.slice(0,u);for(let c=u;c<n;c++){const f=s(c),d=this.options.lanes===1?l[c-1]:this.getFurthestMeasurement(l,c),h=d?d.end+this.options.gap:r+i,p=a.get(f),b=typeof p=="number"?p:this.options.estimateSize(c),v=h+b,_=d?d.lane:c%this.options.lanes;l[c]={index:c,start:h,size:b,end:v,key:f,lane:_}}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Gi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,s)=>this.range=n.length>0&&r>0?xF({measurements:n,outerSize:r,scrollOffset:i,lanes:s}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Gi(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,s,o)=>s===null||o===null?[]:n({startIndex:s,endIndex:o,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),s=this.measurementsCache[i];if(!s)return;const o=s.key,a=this.elementsCache.get(o);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(o,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const s=this.itemSizeCache.get(i.key)??i.size,o=r-s;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,o,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=Gi(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let s=0,o=n.length;s<o;s++){const a=n[s],u=r[a];i.push(u)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return Fg(r[Vx(0,r.length-1,i=>Fg(r[i]).start,n)])},this.getOffsetForAlignment=(n,r,i=0)=>{const s=this.getSize(),o=this.getScrollOffset();r==="auto"&&(r=n>=o+s?"end":"start"),r==="center"?n+=(i-s)/2:r==="end"&&(n-=s);const a=this.getTotalSize()+this.options.scrollMargin-s;return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const s=this.getSize(),o=this.getScrollOffset();if(r==="auto")if(i.end>=o+s-this.options.scrollPaddingEnd)r="end";else if(i.start<=o+this.options.scrollPaddingStart)r="start";else return[o,r];const a=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,r,i.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:r="auto",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let s=0;const o=10,a=l=>{if(!this.targetWindow)return;const c=this.getOffsetForIndex(n,l);if(!c){console.warn("Failed to get offset for index:",n);return}const[f,d]=c;this._scrollToOffset(f,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{const h=this.getScrollOffset(),p=this.getOffsetForIndex(n,d);if(!p){console.warn("Failed to get offset for index:",n);return}fF(p[0],h)||u(d)})},u=l=>{this.targetWindow&&(s++,s<o?this.targetWindow.requestAnimationFrame(()=>a(l)):console.warn(`Failed to scroll to index ${n} after ${o} attempts.`))};a(r)},this.scrollBy=(n,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const s=Array(this.options.lanes).fill(null);let o=r.length-1;for(;o>=0&&s.some(a=>a===null);){const a=r[o];s[a.lane]===null&&(s[a.lane]=a.end),o--}i=Math.max(...s.filter(a=>a!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const Vx=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,s=n(i);if(s<r)e=i+1;else if(s>r)t=i-1;else return i}return e>0?e-1:0};function xF({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,s=u=>e[u].start;if(e.length<=r)return{startIndex:0,endIndex:i};let o=Vx(0,i,s,n),a=o;if(r===1)for(;a<i&&e[a].end<n+t;)a++;else if(r>1){const u=Array(r).fill(0);for(;a<i&&u.some(c=>c<n+t);){const c=e[a];u[c.lane]=c.end,a++}const l=Array(r).fill(n+t);for(;o>=0&&l.some(c=>c>=n);){const c=e[o];l[c.lane]=c.start,o--}o=Math.max(0,o-o%r),a=Math.min(i,a+(r-1-a%r))}return{startIndex:o,endIndex:a}}const Pg=typeof document<"u"?g.useLayoutEffect:g.useEffect;function EF(e){const t=g.useReducer(()=>({}),{})[1],n={...e,onChange:(i,s)=>{var o;s?Fn.flushSync(t):t(),(o=e.onChange)==null||o.call(e,i,s)}},[r]=g.useState(()=>new yF(n));return r.setOptions(n),Pg(()=>r._didMount(),[]),Pg(()=>r._willUpdate()),r}function _F(e){return EF({observeElementRect:mF,observeElementOffset:gF,scrollToFn:vF,...e})}function TF(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function wF(e=TF){return g.useCallback((t,n)=>{if(typeof e=="string"){let r=e;return(t==null?void 0:t[r])===(n==null?void 0:n[r])}return e(t,n)},[e])}function SF(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Mg(e,t=!1){let[n,r]=g.useReducer(()=>({}),{}),i=g.useMemo(()=>SF(e),[e,n]);return vt(()=>{if(!e)return;let s=new ResizeObserver(r);return s.observe(e),()=>{s.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let $x=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};var kF=Object.defineProperty,AF=(e,t,n)=>t in e?kF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DF=(e,t,n)=>(AF(e,t+"",n),n),jx=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Cn=(e,t,n)=>(jx(e,t,"read from private field"),n?n.call(e):t.get(e)),Gl=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Vg=(e,t,n,r)=>(jx(e,t,"write to private field"),t.set(e,n),n),ar,zs,Hs;let Bx=class{constructor(t){Gl(this,ar,{}),Gl(this,zs,new $x(()=>new Set)),Gl(this,Hs,new Set),DF(this,"disposables",wr()),Vg(this,ar,t)}dispose(){this.disposables.dispose()}get state(){return Cn(this,ar)}subscribe(t,n){let r={selector:t,callback:n,current:t(Cn(this,ar))};return Cn(this,Hs).add(r),this.disposables.add(()=>{Cn(this,Hs).delete(r)})}on(t,n){return Cn(this,zs).get(t).add(n),this.disposables.add(()=>{Cn(this,zs).get(t).delete(n)})}send(t){let n=this.reduce(Cn(this,ar),t);if(n!==Cn(this,ar)){Vg(this,ar,n);for(let r of Cn(this,Hs)){let i=r.selector(Cn(this,ar));Ux(r.current,i)||(r.current=i,r.callback(i))}for(let r of Cn(this,zs).get(t.type))r(Cn(this,ar),t)}}};ar=new WeakMap,zs=new WeakMap,Hs=new WeakMap;function Ux(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:Wl(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Wl(e.entries(),t.entries()):$g(e)&&$g(t)?Wl(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Wl(e,t){do{let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}while(!0)}function $g(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var NF=Object.defineProperty,CF=(e,t,n)=>t in e?NF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jg=(e,t,n)=>(CF(e,typeof t!="symbol"?t+"":t,n),n),qx=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(qx||{});let IF={0(e,t){let n=t.id,r=e.stack,i=e.stack.indexOf(n);if(i!==-1){let s=e.stack.slice();return s.splice(i,1),s.push(n),r=s,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(r===-1)return e;let i=e.stack.slice();return i.splice(r,1),{...e,stack:i}}},FF=class zx extends Bx{constructor(){super(...arguments),jg(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),jg(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new zx({stack:[]})}reduce(t,n){return xr(n.type,IF,t,n)}};const F0=new $x(()=>FF.new());var Ql={exports:{}},Yl={};/**
327
+ * @license React
328
+ * use-sync-external-store-with-selector.production.js
329
+ *
330
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
331
+ *
332
+ * This source code is licensed under the MIT license found in the
333
+ * LICENSE file in the root directory of this source tree.
334
+ */var Bg;function LF(){if(Bg)return Yl;Bg=1;var e=Of();function t(u,l){return u===l&&(u!==0||1/u===1/l)||u!==u&&l!==l}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,o=e.useMemo,a=e.useDebugValue;return Yl.useSyncExternalStoreWithSelector=function(u,l,c,f,d){var h=i(null);if(h.current===null){var p={hasValue:!1,value:null};h.current=p}else p=h.current;h=o(function(){function v(k){if(!_){if(_=!0,x=k,k=f(k),d!==void 0&&p.hasValue){var A=p.value;if(d(A,k))return E=A}return E=k}if(A=E,n(x,k))return A;var I=f(k);return d!==void 0&&d(A,I)?(x=k,A):(x=k,E=I)}var _=!1,x,E,T=c===void 0?null:c;return[function(){return v(l())},T===null?void 0:function(){return v(T())}]},[l,c,f,d]);var b=r(u,h[0],h[1]);return s(function(){p.hasValue=!0,p.value=b},[b]),a(b),b},Yl}var Ug;function OF(){return Ug||(Ug=1,Ql.exports=LF()),Ql.exports}var RF=OF();function qt(e,t,n=Ux){return RF.useSyncExternalStoreWithSelector($e(r=>e.subscribe(PF,r)),$e(()=>e.state),$e(()=>e.state),$e(t),n)}function PF(e){return e}function Hx(e,t){let n=g.useId(),r=F0.get(t),[i,s]=qt(r,g.useCallback(o=>[r.selectors.isTop(o,n),r.selectors.inStack(o,n)],[r,n]));return vt(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),e?s?i:!0:!1}let Sf=new Map,io=new Map;function qg(e){var t;let n=(t=io.get(e))!=null?t:0;return io.set(e,n+1),n!==0?()=>zg(e):(Sf.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>zg(e))}function zg(e){var t;let n=(t=io.get(e))!=null?t:1;if(n===1?io.delete(e):io.set(e,n-1),n!==1)return;let r=Sf.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Sf.delete(e))}function MF(e,{allowed:t,disallowed:n}={}){let r=Hx(e,"inert-others");vt(()=>{var i,s;if(!r)return;let o=wr();for(let u of(i=n==null?void 0:n())!=null?i:[])u&&o.add(qg(u));let a=(s=t==null?void 0:t())!=null?s:[];for(let u of a){if(!u)continue;let l=Go(u);if(!l)continue;let c=u.parentElement;for(;c&&c!==l.body;){for(let f of c.children)a.some(d=>f.contains(d))||o.add(qg(f));c=c.parentElement}}return o.dispose},[r,t,n])}function VF(e,t,n){let r=ji(i=>{let s=i.getBoundingClientRect();s.x===0&&s.y===0&&s.width===0&&s.height===0&&n()});g.useEffect(()=>{if(!e)return;let i=t===null?null:oi(t)?t:t.current;if(!i)return;let s=wr();if(typeof ResizeObserver<"u"){let o=new ResizeObserver(()=>r.current(i));o.observe(i),s.add(()=>o.disconnect())}if(typeof IntersectionObserver<"u"){let o=new IntersectionObserver(()=>r.current(i));o.observe(i),s.add(()=>o.disconnect())}return()=>s.dispose()},[t,r,e])}let kf=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var $F=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))($F||{}),jF=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(jF||{}),BF=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(BF||{}),Gx=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Gx||{});function UF(e,t=0){var n;return e===((n=Go(e))==null?void 0:n.body)?!1:xr(t,{0(){return e.matches(kf)},1(){let r=e;for(;r!==null;){if(r.matches(kf))return!0;r=r.parentElement}return!1}})}var qF=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(qF||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function zF(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),s=t(r);if(i===null||s===null)return 0;let o=i.compareDocumentPosition(s);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Wx(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function HF(){return/Android/gi.test(window.navigator.userAgent)}function Af(){return Wx()||HF()}function ts(e,t,n,r){let i=ji(n);g.useEffect(()=>{if(!e)return;function s(o){i.current(o)}return document.addEventListener(t,s,r),()=>document.removeEventListener(t,s,r)},[e,t,r])}function GF(e,t,n,r){let i=ji(n);g.useEffect(()=>{if(!e)return;function s(o){i.current(o)}return window.addEventListener(t,s,r),()=>window.removeEventListener(t,s,r)},[e,t,r])}const Hg=30;function WF(e,t,n){let r=ji(n),i=g.useCallback(function(a,u){if(a.defaultPrevented)return;let l=u(a);if(l===null||!l.getRootNode().contains(l)||!l.isConnected)return;let c=function f(d){return typeof d=="function"?f(d()):Array.isArray(d)||d instanceof Set?d:[d]}(t);for(let f of c)if(f!==null&&(f.contains(l)||a.composed&&a.composedPath().includes(f)))return;return!UF(l,Gx.Loose)&&l.tabIndex!==-1&&a.preventDefault(),r.current(a,l)},[r,t]),s=g.useRef(null);ts(e,"pointerdown",a=>{var u,l;Af()||(s.current=((l=(u=a.composedPath)==null?void 0:u.call(a))==null?void 0:l[0])||a.target)},!0),ts(e,"pointerup",a=>{if(Af()||!s.current)return;let u=s.current;return s.current=null,i(a,()=>u)},!0);let o=g.useRef({x:0,y:0});ts(e,"touchstart",a=>{o.current.x=a.touches[0].clientX,o.current.y=a.touches[0].clientY},!0),ts(e,"touchend",a=>{let u={x:a.changedTouches[0].clientX,y:a.changedTouches[0].clientY};if(!(Math.abs(u.x-o.current.x)>=Hg||Math.abs(u.y-o.current.y)>=Hg))return i(a,()=>yi(a.target)?a.target:null)},!0),GF(e,"blur",a=>i(a,()=>XI(window.document.activeElement)?window.document.activeElement:null),!0)}function bu(...e){return g.useMemo(()=>Go(...e),[...e])}var QF=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(QF||{});const Ms={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},YF=200;function XF(e,{trigger:t,action:n,close:r,select:i}){let s=g.useRef(null);ts(e&&t!==null,"pointerdown",o=>{C0(o==null?void 0:o.target)&&t!=null&&t.contains(o.target)&&(s.current=new Date)}),ts(e&&t!==null,"pointerup",o=>{if(s.current===null||!yi(o.target))return;let a=n(o),u=new Date().getTime()-s.current.getTime();switch(s.current=null,a.kind){case 0:return;case 1:{u>YF&&(i(a.target),r());break}case 2:{r();break}}},{capture:!0})}function JF(e,t,n,r){let i=ji(n);g.useEffect(()=>{e=e??window;function s(o){i.current(o)}return e.addEventListener(t,s,r),()=>e.removeEventListener(t,s,r)},[e,t,r])}function Qx(e){let t=g.useRef({value:"",selectionStart:null,selectionEnd:null});return JF(e,"blur",n=>{let r=n.target;gu(r)&&(t.current={value:r.value,selectionStart:r.selectionStart,selectionEnd:r.selectionEnd})}),$e(()=>{if(document.activeElement!==e&&gu(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:r}=t.current;n!==null&&r!==null&&e.setSelectionRange(n,r)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}function ZF(e,t){return g.useMemo(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function KF(e){return g.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function eL(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...s){let o=t[i].call(n,...s);o&&(n=o,r.forEach(a=>a()))}}}function tL(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),s=Math.max(0,e-i);n.style(r,"paddingRight",`${s}px`)}}}function nL(){return Wx()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(s=>s()).some(s=>s.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=wr();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let s=(i=window.scrollY)!=null?i:window.pageYOffset,o=null;t.addEventListener(e,"click",a=>{if(yi(a.target))try{let u=a.target.closest("a");if(!u)return;let{hash:l}=new URL(u.href),c=e.querySelector(l);yi(c)&&!r(c)&&(o=c)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(yi(a.target)&&YI(a.target))if(r(a.target)){let u=a.target;for(;u.parentElement&&r(u.parentElement);)u=u.parentElement;t.style(u,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(yi(a.target)){if(gu(a.target))return;if(r(a.target)){let u=a.target;for(;u.parentElement&&u.dataset.headlessuiPortal!==""&&!(u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth);)u=u.parentElement;u.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let u=(a=window.scrollY)!=null?a:window.pageYOffset;s!==u&&window.scrollTo(0,s),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{}}function rL(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function iL(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let xi=eL(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:wr(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:iL(n)},i=[nL(),tL(),rL()];i.forEach(({before:s})=>s==null?void 0:s(r)),i.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});xi.subscribe(()=>{let e=xi.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&xi.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&xi.dispatch("TEARDOWN",n)}});function sL(e,t,n=()=>({containers:[]})){let r=KF(xi),i=t?r.get(t):void 0,s=i?i.count>0:!1;return vt(()=>{if(!(!t||!e))return xi.dispatch("PUSH",t,n),()=>xi.dispatch("POP",t,n)},[e,t]),s}function oL(e,t,n=()=>[document.body]){let r=Hx(e,"scroll-lock");sL(r,t,i=>{var s;return{containers:[...(s=i.containers)!=null?s:[],n]}})}function Gg(e){return[e.screenX,e.screenY]}function aL(){let e=g.useRef([-1,-1]);return{wasMoved(t){let n=Gg(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Gg(t)}}}function uL(e=0){let[t,n]=g.useState(e),r=g.useCallback(u=>n(u),[t]),i=g.useCallback(u=>n(l=>l|u),[t]),s=g.useCallback(u=>(t&u)===u,[t]),o=g.useCallback(u=>n(l=>l&~u),[n]),a=g.useCallback(u=>n(l=>l^u),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:s,removeFlag:o,toggleFlag:a}}var lL={},Wg,Qg;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Wg=process==null?void 0:lL)==null?void 0:Wg.NODE_ENV)==="test"&&typeof((Qg=Element==null?void 0:Element.prototype)==null?void 0:Qg.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
335
+ `)),[]});var cL=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(cL||{});function fL(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function dL(e,t,n,r){let[i,s]=g.useState(n),{hasFlag:o,addFlag:a,removeFlag:u}=uL(e&&i?3:0),l=g.useRef(!1),c=g.useRef(!1),f=Wo();return vt(()=>{var d;if(e){if(n&&s(!0),!t){n&&a(3);return}return(d=void 0)==null||d.call(r,n),hL(t,{inFlight:l,prepare(){c.current?c.current=!1:c.current=l.current,l.current=!0,!c.current&&(n?(a(3),u(4)):(a(4),u(2)))},run(){c.current?n?(u(3),a(4)):(u(4),a(3)):n?u(1):a(1)},done(){var h;c.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(l.current=!1,u(7),n||s(!1),(h=void 0)==null||h.call(r,n))}})}},[e,n,t,f]),e?[i,{closed:o(1),enter:o(2),leave:o(4),transition:o(2)||o(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function hL(e,{prepare:t,run:n,done:r,inFlight:i}){let s=wr();return mL(e,{prepare:t,inFlight:i}),s.nextFrame(()=>{n(),s.requestAnimationFrame(()=>{s.add(pL(e,r))})}),s.dispose}function pL(e,t){var n,r;let i=wr();if(!e)return i.dispose;let s=!1;i.add(()=>{s=!0});let o=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?r:[];return o.length===0?(t(),i.dispose):(Promise.allSettled(o.map(a=>a.finished)).then(()=>{s||t()}),i.dispose)}function mL(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function gL(e,{container:t,accept:n,walk:r}){let i=g.useRef(n),s=g.useRef(r);g.useEffect(()=>{i.current=n,s.current=r},[n,r]),vt(()=>{if(!t||!e)return;let o=Go(t);if(!o)return;let a=i.current,u=s.current,l=Object.assign(f=>a(f),{acceptNode:a}),c=o.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,l,!1);for(;c.nextNode();)u(c.currentNode)},[t,e,i,s])}function Yg(e,t){let n=g.useRef([]),r=$e(e);g.useEffect(()=>{let i=[...n.current];for(let[s,o]of t.entries())if(n.current[s]!==o){let a=r(t,i);return n.current=t,a}},[r,...t])}function bL(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const Yx={...nc},vL=Yx.useInsertionEffect,yL=vL||(e=>e());function Xx(e){const t=g.useRef(()=>{});return yL(()=>{t.current=e}),g.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Df=typeof document<"u"?g.useLayoutEffect:g.useEffect;let Xg=!1,xL=0;const Jg=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+xL++;function EL(){const[e,t]=g.useState(()=>Xg?Jg():void 0);return Df(()=>{e==null&&t(Jg())},[]),g.useEffect(()=>{Xg=!0},[]),e}const _L=Yx.useId,TL=_L||EL;function wL(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const SL=g.createContext(null),kL=g.createContext(null),AL=()=>{var e;return((e=g.useContext(SL))==null?void 0:e.id)||null},DL=()=>g.useContext(kL),NL="data-floating-ui-focusable";function CL(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=TL(),s=g.useRef({}),[o]=g.useState(()=>wL()),a=AL()!=null,[u,l]=g.useState(r.reference),c=Xx((h,p,b)=>{s.current.openEvent=h?p:void 0,o.emit("openchange",{open:h,event:p,reason:b,nested:a}),n==null||n(h,p,b)}),f=g.useMemo(()=>({setPositionReference:l}),[]),d=g.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return g.useMemo(()=>({dataRef:s,open:t,onOpenChange:c,elements:d,events:o,floatingId:i,refs:f}),[t,c,d,o,i,f])}function IL(e){e===void 0&&(e={});const{nodeId:t}=e,n=CL({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[s,o]=g.useState(null),[a,u]=g.useState(null),c=(i==null?void 0:i.domReference)||s,f=g.useRef(null),d=DL();Df(()=>{c&&(f.current=c)},[c]);const h=SE({...e,elements:{...i,...a&&{reference:a}}}),p=g.useCallback(E=>{const T=Zo(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;u(T),h.refs.setReference(T)},[h.refs]),b=g.useCallback(E=>{(Zo(E)||E===null)&&(f.current=E,o(E)),(Zo(h.refs.reference.current)||h.refs.reference.current===null||E!==null&&!Zo(E))&&h.refs.setReference(E)},[h.refs]),v=g.useMemo(()=>({...h.refs,setReference:b,setPositionReference:p,domReference:f}),[h.refs,b,p]),_=g.useMemo(()=>({...h.elements,domReference:c}),[h.elements,c]),x=g.useMemo(()=>({...h,...r,refs:v,elements:_,nodeId:t}),[h,v,_,t,r]);return Df(()=>{r.dataRef.current.floatingContext=x;const E=d==null?void 0:d.nodesRef.current.find(T=>T.id===t);E&&(E.context=x)}),g.useMemo(()=>({...h,context:x,refs:v,elements:_}),[h,v,_,x])}const Zg="active",Kg="selected";function Xl(e,t,n){const r=new Map,i=n==="item";let s=e;if(i&&e){const{[Zg]:o,[Kg]:a,...u}=e;s=u}return{...n==="floating"&&{tabIndex:-1,[NL]:""},...s,...t.map(o=>{const a=o?o[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((o,a)=>(a&&Object.entries(a).forEach(u=>{let[l,c]=u;if(!(i&&[Zg,Kg].includes(l)))if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof c=="function"){var f;(f=r.get(l))==null||f.push(c),o[l]=function(){for(var d,h=arguments.length,p=new Array(h),b=0;b<h;b++)p[b]=arguments[b];return(d=r.get(l))==null?void 0:d.map(v=>v(...p)).find(v=>v!==void 0)}}}else o[l]=c}),o),{})}}function FL(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),i=g.useCallback(a=>Xl(a,e,"reference"),t),s=g.useCallback(a=>Xl(a,e,"floating"),n),o=g.useCallback(a=>Xl(a,e,"item"),r);return g.useMemo(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:o}),[i,s,o])}function eb(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const LL=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:s=0,index:o=0,minItemsVisible:a=4,referenceOverflowThreshold:u=0,scrollRef:l,...c}=kE(e,t),{rects:f,elements:{floating:d}}=t,h=n.current[o],p=(l==null?void 0:l.current)||d,b=d.clientTop||p.clientTop,v=d.clientTop!==0,_=p.clientTop!==0,x=d===p;if(!h)return{};const E={...t,...await hb(-h.offsetTop-d.clientTop-f.reference.height/2-h.offsetHeight/2-s).fn(t)},T=await tl(eb(E,p.scrollHeight+b+d.clientTop),c),k=await tl(E,{...c,elementContext:"reference"}),A=nl(0,T.top),I=E.y+A,z=(p.scrollHeight>p.clientHeight?W=>W:AE)(nl(0,p.scrollHeight+(v&&x||_?b*2:0)-A-nl(0,T.bottom)));if(p.style.maxHeight=z+"px",p.scrollTop=A,i){const W=p.offsetHeight<h.offsetHeight*DE(a,n.current.length)-1||k.top>=-u||k.bottom>=-u;Fn.flushSync(()=>i(W))}return r&&(r.current=await tl(eb({...E,y:I},p.offsetHeight+b+d.clientTop),c)),{y:I}}});function OL(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:s,scrollRef:o,onChange:a}=t,u=Xx(a),l=g.useRef(!1),c=g.useRef(null),f=g.useRef(null);g.useEffect(()=>{if(!i)return;function h(b){if(b.ctrlKey||!p||s.current==null)return;const v=b.deltaY,_=s.current.top>=-.5,x=s.current.bottom>=-.5,E=p.scrollHeight-p.clientHeight,T=v<0?-1:1,k=v<0?"max":"min";p.scrollHeight<=p.clientHeight||(!_&&v>0||!x&&v<0?(b.preventDefault(),Fn.flushSync(()=>{u(A=>A+Math[k](v,E*T))})):/firefox/i.test(bL())&&(p.scrollTop+=v))}const p=(o==null?void 0:o.current)||r.floating;if(n&&p)return p.addEventListener("wheel",h),requestAnimationFrame(()=>{c.current=p.scrollTop,s.current!=null&&(f.current={...s.current})}),()=>{c.current=null,f.current=null,p.removeEventListener("wheel",h)}},[i,n,r.floating,s,o,u]);const d=g.useMemo(()=>({onKeyDown(){l.current=!0},onWheel(){l.current=!1},onPointerMove(){l.current=!1},onScroll(){const h=(o==null?void 0:o.current)||r.floating;if(!(!s.current||!h||!l.current)){if(c.current!==null){const p=h.scrollTop-c.current;(s.current.bottom<-.5&&p<-1||s.current.top<-.5&&p>1)&&Fn.flushSync(()=>u(b=>b+p))}requestAnimationFrame(()=>{c.current=h.scrollTop})}}}),[r.floating,u,s,o]);return g.useMemo(()=>i?{floating:d}:{},[i,d])}let Qo=g.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Qo.displayName="FloatingContext";let L0=g.createContext(null);L0.displayName="PlacementContext";function RL(e){return g.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function PL(){return g.useContext(Qo).setReference}function ML(){let{getFloatingProps:e,slot:t}=g.useContext(Qo);return g.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function VL(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=g.useContext(L0),n=g.useMemo(()=>e,[JSON.stringify(e,(i,s)=>{var o;return(o=s==null?void 0:s.outerHTML)!=null?o:s})]);vt(()=>{t==null||t(n??null)},[t,n]);let r=g.useContext(Qo);return g.useMemo(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let tb=4;function $L({children:e,enabled:t=!0}){let[n,r]=g.useState(null),[i,s]=g.useState(0),o=g.useRef(null),[a,u]=g.useState(null);jL(a);let l=t&&n!==null&&a!==null,{to:c="bottom",gap:f=0,offset:d=0,padding:h=0,inner:p}=BL(n,a),[b,v="center"]=c.split(" ");vt(()=>{l&&s(0)},[l]);let{refs:_,floatingStyles:x,context:E}=IL({open:l,placement:b==="selection"?v==="center"?"bottom":`bottom-${v}`:v==="center"?`${b}`:`${b}-${v}`,strategy:"absolute",transform:!1,middleware:[hb({mainAxis:b==="selection"?0:f,crossAxis:d}),NE({padding:h}),b!=="selection"&&CE({padding:h}),b==="selection"&&p?LL({...p,padding:h,overflowRef:o,offset:i,minItemsVisible:tb,referenceOverflowThreshold:h,onFallbackChange(W){var Z,O;if(!W)return;let N=E.elements.floating;if(!N)return;let M=parseFloat(getComputedStyle(N).scrollPaddingBottom)||0,q=Math.min(tb,N.childElementCount),Q=0,$=0;for(let B of(O=(Z=E.elements.floating)==null?void 0:Z.childNodes)!=null?O:[])if(oi(B)){let oe=B.offsetTop,de=oe+B.clientHeight+M,V=N.scrollTop,re=V+N.clientHeight;if(oe>=V&&de<=re)q--;else{$=Math.max(0,Math.min(de,re)-Math.max(oe,V)),Q=B.clientHeight;break}}q>=1&&s(B=>{let oe=Q*q-$+M;return B>=oe?B:oe})}}):null,IE({padding:h,apply({availableWidth:W,availableHeight:Z,elements:O}){Object.assign(O.floating.style,{overflow:"auto",maxWidth:`${W}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${Z}px)`})}})].filter(Boolean),whileElementsMounted:FE}),[T=b,k=v]=E.placement.split("-");b==="selection"&&(T="selection");let A=g.useMemo(()=>({anchor:[T,k].filter(Boolean).join(" ")}),[T,k]),I=OL(E,{overflowRef:o,onChange:s}),{getReferenceProps:U,getFloatingProps:D}=FL([I]),z=$e(W=>{u(W),_.setFloating(W)});return g.createElement(L0.Provider,{value:r},g.createElement(Qo.Provider,{value:{setFloating:z,setReference:_.setReference,styles:x,getReferenceProps:U,getFloatingProps:D,slot:A}},e))}function jL(e){vt(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let i=parseInt(n);isNaN(i)||r!==i&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function BL(e,t){var n,r,i;let s=Jl((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),o=Jl((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),a=Jl((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:s,offset:o,padding:a}}function Jl(e,t,n=void 0){let r=Wo(),i=$e((u,l)=>{if(u==null)return[n,null];if(typeof u=="number")return[u,null];if(typeof u=="string"){if(!l)return[n,null];let c=nb(u,l);return[c,f=>{let d=Jx(u);{let h=d.map(p=>window.getComputedStyle(l).getPropertyValue(p));r.requestAnimationFrame(function p(){r.nextFrame(p);let b=!1;for(let[_,x]of d.entries()){let E=window.getComputedStyle(l).getPropertyValue(x);if(h[_]!==E){h[_]=E,b=!0;break}}if(!b)return;let v=nb(u,l);c!==v&&(f(v),c=v)})}return r.dispose}]}return[n,null]}),s=g.useMemo(()=>i(e,t)[0],[e,t]),[o=s,a]=g.useState();return vt(()=>{let[u,l]=i(e,t);if(a(u),!!l)return l(a)},[e,t]),o}function Jx(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),i=t[1].slice(n+1).trim();return i?[r,...Jx(i)]:[r]}return[]}function nb(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function UL({children:e,freeze:t}){let n=Nf(t,e);return qe.createElement(qe.Fragment,null,n)}function Nf(e,t){let[n,r]=g.useState(t);return!e&&n!==t&&r(t),e?n:t}let O0=g.createContext(null);O0.displayName="OpenClosedContext";var ko=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ko||{});function qL(){return g.useContext(O0)}function zL({value:e,children:t}){return qe.createElement(O0.Provider,{value:e},t)}function HL(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let hi=[];HL(()=>{function e(t){if(!yi(t.target)||t.target===document.body||hi[0]===t.target)return;let n=t.target;n=n.closest(kf),hi.unshift(n??t.target),hi=hi.filter(r=>r!=null&&r.isConnected),hi.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function GL(e){throw new Error("Unexpected object: "+e)}var jt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(jt||{});function rb(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let s=0;s<n.length;++s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 1:{i===-1&&(i=n.length);for(let s=i-1;s>=0;--s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 2:{for(let s=i+1;s<n.length;++s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 3:{for(let s=n.length-1;s>=0;--s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 4:{for(let s=0;s<n.length;++s)if(t.resolveId(n[s],s,n)===e.id)return s;return r}case 5:return null;default:GL(e)}}var R0=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(R0||{});function Zx(e){let t=$e(e),n=g.useRef(!1);g.useEffect(()=>(n.current=!1,()=>{n.current=!0,Ax(()=>{n.current&&t()})}),[t])}function WL(){let e=typeof document>"u";return"useSyncExternalStore"in nc?(t=>t.useSyncExternalStore)(nc)(()=>()=>{},()=>!1,()=>!e):!1}function QL(){let e=WL(),[t,n]=g.useState(Si.isHandoffComplete);return t&&Si.isHandoffComplete===!1&&n(!1),g.useEffect(()=>{t!==!0&&n(!0)},[t]),g.useEffect(()=>Si.handoff(),[]),e?!1:t}let YL=g.createContext(!1);function XL(){return g.useContext(YL)}function JL(e){let t=XL(),n=g.useContext(eE),[r,i]=g.useState(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(Si.isServer)return null;let o=e==null?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(e===null)return null;let a=e.createElement("div");return a.setAttribute("id","headlessui-portal-root"),e.body.appendChild(a)});return g.useEffect(()=>{r!==null&&(e!=null&&e.body.contains(r)||e==null||e.body.appendChild(r))},[r,e]),g.useEffect(()=>{t||n!==null&&i(n.current)},[n,i,t]),r}let Kx=g.Fragment,ZL=rr(function(e,t){let{ownerDocument:n=null,...r}=e,i=g.useRef(null),s=jr(tF(h=>{i.current=h}),t),o=bu(i),a=n??o,u=JL(a),[l]=g.useState(()=>{var h;return Si.isServer?null:(h=a==null?void 0:a.createElement("div"))!=null?h:null}),c=g.useContext(nO),f=QL();vt(()=>{!u||!l||u.contains(l)||(l.setAttribute("data-headlessui-portal",""),u.appendChild(l))},[u,l]),vt(()=>{if(l&&c)return c.register(l)},[c,l]),Zx(()=>{var h;!u||!l||(C0(l)&&u.contains(l)&&u.removeChild(l),u.childNodes.length<=0&&((h=u.parentElement)==null||h.removeChild(u)))});let d=nr();return f?!u||!l?null:Fn.createPortal(d({ourProps:{ref:s},theirProps:r,slot:{},defaultTag:Kx,name:"Portal"}),l):null});function KL(e,t){let n=jr(t),{enabled:r=!0,ownerDocument:i,...s}=e,o=nr();return r?qe.createElement(ZL,{...s,ownerDocument:i,ref:n}):o({ourProps:{ref:n},theirProps:s,slot:{},defaultTag:Kx,name:"Portal"})}let eO=g.Fragment,eE=g.createContext(null);function tO(e,t){let{target:n,...r}=e,i={ref:jr(t)},s=nr();return qe.createElement(eE.Provider,{value:n},s({ourProps:i,theirProps:r,defaultTag:eO,name:"Popover.Group"}))}let nO=g.createContext(null),rO=rr(KL),iO=rr(tO),sO=Object.assign(rO,{Group:iO});var oO=Object.defineProperty,aO=(e,t,n)=>t in e?oO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ib=(e,t,n)=>(aO(e,typeof t!="symbol"?t+"":t,n),n),Ve=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ve||{}),vn=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(vn||{}),Zr=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Zr||{}),tE=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.SetTyping=3]="SetTyping",e[e.RegisterOption=4]="RegisterOption",e[e.UnregisterOption=5]="UnregisterOption",e[e.DefaultToFirstOption=6]="DefaultToFirstOption",e[e.SetActivationTrigger=7]="SetActivationTrigger",e[e.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",e[e.SetInputElement=9]="SetInputElement",e[e.SetButtonElement=10]="SetButtonElement",e[e.SetOptionsElement=11]="SetOptionsElement",e))(tE||{});function Zl(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=t(e.options.slice()),i=r.length>0&&r[0].dataRef.current.order!==null?r.sort((o,a)=>o.dataRef.current.order-a.dataRef.current.order):zF(r,o=>o.dataRef.current.domRef.current),s=n?i.indexOf(n):null;return s===-1&&(s=null),{options:i,activeOptionIndex:s}}let uO={1(e){var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,__demoMode:!1}},0(e){var t,n;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;if((n=e.dataRef.current)!=null&&n.value){let r=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(r!==-1)return{...e,activeOptionIndex:r,comboboxState:0,__demoMode:!1}}return{...e,comboboxState:0,__demoMode:!1}},3(e,t){return e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping}},2(e,t){var n,r,i,s;if((n=e.dataRef.current)!=null&&n.disabled||e.optionsElement&&!((r=e.dataRef.current)!=null&&r.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let{options:l,disabled:c}=e.virtual,f=t.focus===jt.Specific?t.idx:rb(t,{resolveItems:()=>l,resolveActiveIndex:()=>{var h,p;return(p=(h=e.activeOptionIndex)!=null?h:l.findIndex(b=>!c(b)))!=null?p:null},resolveDisabled:c,resolveId(){throw new Error("Function not implemented.")}}),d=(i=t.trigger)!=null?i:2;return e.activeOptionIndex===f&&e.activationTrigger===d?e:{...e,activeOptionIndex:f,activationTrigger:d,isTyping:!1,__demoMode:!1}}let o=Zl(e);if(o.activeOptionIndex===null){let l=o.options.findIndex(c=>!c.dataRef.current.disabled);l!==-1&&(o.activeOptionIndex=l)}let a=t.focus===jt.Specific?t.idx:rb(t,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:l=>l.id,resolveDisabled:l=>l.dataRef.current.disabled}),u=(s=t.trigger)!=null?s:2;return e.activeOptionIndex===a&&e.activationTrigger===u?e:{...e,...o,isTyping:!1,activeOptionIndex:a,activationTrigger:u,__demoMode:!1}},4:(e,t)=>{var n,r,i,s;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:[...e.options,t.payload]};let o=t.payload,a=Zl(e,l=>(l.push(o),l));e.activeOptionIndex===null&&(i=(r=e.dataRef.current).isSelected)!=null&&i.call(r,t.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(o));let u={...e,...a,activationTrigger:2};return(s=e.dataRef.current)!=null&&s.__demoMode&&e.dataRef.current.value===void 0&&(u.activeOptionIndex=0),u},5:(e,t)=>{var n;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:e.options.filter(i=>i.id!==t.id)};let r=Zl(e,i=>{let s=i.findIndex(o=>o.id===t.id);return s!==-1&&i.splice(s,1),i});return{...e,...r,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>{var n,r;if(e.virtual===null)return{...e,virtual:{options:t.options,disabled:(n=t.disabled)!=null?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let i=e.activeOptionIndex;if(e.activeOptionIndex!==null){let s=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);s!==-1?i=s:i=null}return{...e,activeOptionIndex:i,virtual:{options:t.options,disabled:(r=t.disabled)!=null?r:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}};class P0 extends Bx{constructor(t){super(t),ib(this,"actions",{onChange:n=>{let{onChange:r,compare:i,mode:s,value:o}=this.state.dataRef.current;return xr(s,{0:()=>r==null?void 0:r(n),1:()=>{let a=o.slice(),u=a.findIndex(l=>i(l,n));return u===-1?a.push(n):a.splice(u,1),r==null?void 0:r(a)}})},registerOption:(n,r)=>(this.send({type:4,payload:{id:n,dataRef:r}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(r.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:n})}),goToOption:(n,r)=>(this.send({type:6,value:!1}),this.send({type:2,...n,trigger:r})),setIsTyping:n=>{this.send({type:3,isTyping:n})},closeCombobox:()=>{var n,r;this.send({type:1}),this.send({type:6,value:!1}),(r=(n=this.state.dataRef.current).onClose)==null||r.call(n)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:n=>{this.send({type:7,trigger:n})},selectActiveOption:()=>{let n=this.selectors.activeOptionIndex(this.state);if(n!==null){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[n]);else{let{dataRef:r}=this.state.options[n];this.actions.onChange(r.current.value)}this.actions.goToOption({focus:jt.Specific,idx:n})}},setInputElement:n=>{this.send({type:9,element:n})},setButtonElement:n=>{this.send({type:10,element:n})},setOptionsElement:n=>{this.send({type:11,element:n})}}),ib(this,"selectors",{activeDescendantId:n=>{var r,i;let s=this.selectors.activeOptionIndex(n);if(s!==null)return n.virtual?(i=n.options.find(o=>!o.dataRef.current.disabled&&n.dataRef.current.compare(o.dataRef.current.value,n.virtual.options[s])))==null?void 0:i.id:(r=n.options[s])==null?void 0:r.id},activeOptionIndex:n=>{if(n.defaultToFirstOption&&n.activeOptionIndex===null&&(n.virtual?n.virtual.options.length>0:n.options.length>0)){if(n.virtual){let{options:i,disabled:s}=n.virtual,o=i.findIndex(a=>{var u;return!((u=s==null?void 0:s(a))!=null&&u)});if(o!==-1)return o}let r=n.options.findIndex(i=>!i.dataRef.current.disabled);if(r!==-1)return r}return n.activeOptionIndex},activeOption:n=>{var r,i;let s=this.selectors.activeOptionIndex(n);return s===null?null:n.virtual?n.virtual.options[s??0]:(i=(r=n.options[s])==null?void 0:r.dataRef.current.value)!=null?i:null},isActive:(n,r,i)=>{var s;let o=this.selectors.activeOptionIndex(n);return o===null?!1:n.virtual?o===n.dataRef.current.calculateIndex(r):((s=n.options[o])==null?void 0:s.id)===i},shouldScrollIntoView:(n,r,i)=>!(n.virtual||n.__demoMode||n.comboboxState!==0||n.activationTrigger===0||!this.selectors.isActive(n,r,i))});{let n=this.state.id,r=F0.get(null);this.disposables.add(r.on(qx.Push,i=>{!r.selectors.isTop(i,n)&&this.state.comboboxState===0&&this.actions.closeCombobox()})),this.on(0,()=>r.actions.push(n)),this.on(1,()=>r.actions.pop(n))}}static new({id:t,virtual:n=null,__demoMode:r=!1}){var i;return new P0({id:t,dataRef:{current:{}},comboboxState:r?0:1,isTyping:!1,options:[],virtual:n?{options:n.options,disabled:(i=n.disabled)!=null?i:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:r})}reduce(t,n){return xr(n.type,uO,t,n)}}const nE=g.createContext(null);function Yo(e){let t=g.useContext(nE);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,rE),n}return t}function rE({id:e,virtual:t=null,__demoMode:n=!1}){let r=g.useMemo(()=>P0.new({id:e,virtual:t,__demoMode:n}),[]);return Zx(()=>r.dispose()),r}let Ao=g.createContext(null);Ao.displayName="ComboboxDataContext";function Is(e){let t=g.useContext(Ao);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Is),n}return t}let iE=g.createContext(null);function lO(e){let t=Yo("VirtualProvider"),n=Is("VirtualProvider"),{options:r}=n.virtual,i=qt(t,h=>h.optionsElement),[s,o]=g.useMemo(()=>{let h=i;if(!h)return[0,0];let p=window.getComputedStyle(h);return[parseFloat(p.paddingBlockStart||p.paddingTop),parseFloat(p.paddingBlockEnd||p.paddingBottom)]},[i]),a=_F({enabled:r.length!==0,scrollPaddingStart:s,scrollPaddingEnd:o,count:r.length,estimateSize(){return 40},getScrollElement(){return t.state.optionsElement},overscan:12}),[u,l]=g.useState(0);vt(()=>{l(h=>h+1)},[r]);let c=a.getVirtualItems(),f=qt(t,h=>h.activationTrigger===Zr.Pointer),d=qt(t,t.selectors.activeOptionIndex);return c.length===0?null:qe.createElement(iE.Provider,{value:a},qe.createElement("div",{style:{position:"relative",width:"100%",height:`${a.getTotalSize()}px`},ref:h=>{h&&(f||d!==null&&r.length>d&&a.scrollToIndex(d))}},c.map(h=>{var p;return qe.createElement(g.Fragment,{key:h.key},qe.cloneElement((p=e.children)==null?void 0:p.call(e,{...e.slot,option:r[h.index]}),{key:`${u}-${h.key}`,"data-index":h.index,"aria-setsize":r.length,"aria-posinset":h.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${h.start}px)`,overflowAnchor:"none"}}))})))}let cO=g.Fragment;function fO(e,t){let n=g.useId(),r=A0(),{value:i,defaultValue:s,onChange:o,form:a,name:u,by:l,invalid:c=!1,disabled:f=r||!1,onClose:d,__demoMode:h=!1,multiple:p=!1,immediate:b=!1,virtual:v=null,nullable:_,...x}=e,E=BI(s),[T=p?[]:void 0,k]=jI(i,o,E),A=rE({id:n,virtual:v,__demoMode:h}),I=g.useRef({static:!1,hold:!1}),U=wF(l),D=$e(H=>v?l===null?v.options.indexOf(H):v.options.findIndex(ce=>U(ce,H)):A.state.options.findIndex(ce=>U(ce.dataRef.current.value,H))),z=g.useCallback(H=>xr(O.mode,{[vn.Multi]:()=>T.some(ce=>U(ce,H)),[vn.Single]:()=>U(T,H)}),[T]),W=qt(A,H=>H.virtual),Z=$e(()=>d==null?void 0:d()),O=g.useMemo(()=>({__demoMode:h,immediate:b,optionsPropsRef:I,value:T,defaultValue:E,disabled:f,invalid:c,mode:p?vn.Multi:vn.Single,virtual:v?W:null,onChange:k,isSelected:z,calculateIndex:D,compare:U,onClose:Z}),[T,E,f,c,p,k,z,h,A,v,W,Z]);vt(()=>{var H;v&&A.send({type:tE.UpdateVirtualConfiguration,options:v.options,disabled:(H=v.disabled)!=null?H:null})},[v,v==null?void 0:v.options,v==null?void 0:v.disabled]),vt(()=>{A.state.dataRef.current=O},[O]);let[N,M,q,Q]=qt(A,H=>[H.comboboxState,H.buttonElement,H.inputElement,H.optionsElement]),$=F0.get(null),B=qt($,g.useCallback(H=>$.selectors.isTop(H,n),[$,n]));WF(B,[M,q,Q],()=>A.actions.closeCombobox());let oe=qt(A,A.selectors.activeOptionIndex),de=qt(A,A.selectors.activeOption),V=g.useMemo(()=>({open:N===Ve.Open,disabled:f,invalid:c,activeIndex:oe,activeOption:de,value:T}),[O,f,T,c,de,N]),[re,L]=oF(),ee=t===null?{}:{ref:t},ue=g.useCallback(()=>{if(E!==void 0)return k==null?void 0:k(E)},[k,E]),ie=nr();return qe.createElement(L,{value:re,props:{htmlFor:q==null?void 0:q.id},slot:{open:N===Ve.Open,disabled:f}},qe.createElement($L,null,qe.createElement(Ao.Provider,{value:O},qe.createElement(nE.Provider,{value:A},qe.createElement(zL,{value:xr(N,{[Ve.Open]:ko.Open,[Ve.Closed]:ko.Closed})},u!=null&&qe.createElement(GI,{disabled:f,data:T!=null?{[u]:T}:{},form:a,onReset:ue}),ie({ourProps:ee,theirProps:x,slot:V,defaultTag:cO,name:"Combobox"}))))))}let dO="input";function hO(e,t){var n,r;let i=Yo("Combobox.Input"),s=Is("Combobox.Input"),o=g.useId(),a=Lx(),{id:u=a||`headlessui-combobox-input-${o}`,onChange:l,displayValue:c,disabled:f=s.disabled||!1,autoFocus:d=!1,type:h="text",...p}=e,[b]=qt(i,L=>[L.inputElement]),v=g.useRef(null),_=jr(v,t,PL(),i.actions.setInputElement),x=bu(b),[E,T]=qt(i,L=>[L.comboboxState,L.isTyping]),k=Wo(),A=$e(()=>{i.actions.onChange(null),i.state.optionsElement&&(i.state.optionsElement.scrollTop=0),i.actions.goToOption({focus:jt.Nothing})}),I=g.useMemo(()=>{var L;return typeof c=="function"&&s.value!==void 0?(L=c(s.value))!=null?L:"":typeof s.value=="string"?s.value:""},[s.value,c]);Yg(([L,ee],[ue,ie])=>{if(i.state.isTyping)return;let H=v.current;H&&((ie===Ve.Open&&ee===Ve.Closed||L!==ue)&&(H.value=L),requestAnimationFrame(()=>{if(i.state.isTyping||!H||(x==null?void 0:x.activeElement)!==H)return;let{selectionStart:ce,selectionEnd:ae}=H;Math.abs((ae??0)-(ce??0))===0&&ce===0&&H.setSelectionRange(H.value.length,H.value.length)}))},[I,E,x,T]),Yg(([L],[ee])=>{if(L===Ve.Open&&ee===Ve.Closed){if(i.state.isTyping)return;let ue=v.current;if(!ue)return;let ie=ue.value,{selectionStart:H,selectionEnd:ce,selectionDirection:ae}=ue;ue.value="",ue.value=ie,ae!==null?ue.setSelectionRange(H,ce,ae):ue.setSelectionRange(H,ce)}},[E]);let U=g.useRef(!1),D=$e(()=>{U.current=!0}),z=$e(()=>{k.nextFrame(()=>{U.current=!1})}),W=$e(L=>{switch(i.actions.setIsTyping(!0),L.key){case Kt.Enter:if(i.state.comboboxState!==Ve.Open||U.current)return;if(L.preventDefault(),L.stopPropagation(),i.selectors.activeOptionIndex(i.state)===null){i.actions.closeCombobox();return}i.actions.selectActiveOption(),s.mode===vn.Single&&i.actions.closeCombobox();break;case Kt.ArrowDown:return L.preventDefault(),L.stopPropagation(),xr(i.state.comboboxState,{[Ve.Open]:()=>i.actions.goToOption({focus:jt.Next}),[Ve.Closed]:()=>i.actions.openCombobox()});case Kt.ArrowUp:return L.preventDefault(),L.stopPropagation(),xr(i.state.comboboxState,{[Ve.Open]:()=>i.actions.goToOption({focus:jt.Previous}),[Ve.Closed]:()=>{Fn.flushSync(()=>i.actions.openCombobox()),s.value||i.actions.goToOption({focus:jt.Last})}});case Kt.Home:if(L.shiftKey)break;return L.preventDefault(),L.stopPropagation(),i.actions.goToOption({focus:jt.First});case Kt.PageUp:return L.preventDefault(),L.stopPropagation(),i.actions.goToOption({focus:jt.First});case Kt.End:if(L.shiftKey)break;return L.preventDefault(),L.stopPropagation(),i.actions.goToOption({focus:jt.Last});case Kt.PageDown:return L.preventDefault(),L.stopPropagation(),i.actions.goToOption({focus:jt.Last});case Kt.Escape:return i.state.comboboxState!==Ve.Open?void 0:(L.preventDefault(),i.state.optionsElement&&!s.optionsPropsRef.current.static&&L.stopPropagation(),s.mode===vn.Single&&s.value===null&&A(),i.actions.closeCombobox());case Kt.Tab:if(i.state.comboboxState!==Ve.Open)return;s.mode===vn.Single&&i.state.activationTrigger!==Zr.Focus&&i.actions.selectActiveOption(),i.actions.closeCombobox();break}}),Z=$e(L=>{l==null||l(L),s.mode===vn.Single&&L.target.value===""&&A(),i.actions.openCombobox()}),O=$e(L=>{var ee,ue,ie;let H=(ee=L.relatedTarget)!=null?ee:hi.find(ce=>ce!==L.currentTarget);if(!((ue=i.state.optionsElement)!=null&&ue.contains(H))&&!((ie=i.state.buttonElement)!=null&&ie.contains(H))&&i.state.comboboxState===Ve.Open)return L.preventDefault(),s.mode===vn.Single&&s.value===null&&A(),i.actions.closeCombobox()}),N=$e(L=>{var ee,ue,ie;let H=(ee=L.relatedTarget)!=null?ee:hi.find(ce=>ce!==L.currentTarget);(ue=i.state.buttonElement)!=null&&ue.contains(H)||(ie=i.state.optionsElement)!=null&&ie.contains(H)||s.disabled||s.immediate&&i.state.comboboxState!==Ve.Open&&k.microTask(()=>{Fn.flushSync(()=>i.actions.openCombobox()),i.actions.setActivationTrigger(Zr.Focus)})}),M=Ju(),q=nF(),{isFocused:Q,focusProps:$}=kx({autoFocus:d}),{isHovered:B,hoverProps:oe}=Sx({isDisabled:f}),de=qt(i,L=>L.optionsElement),V=g.useMemo(()=>({open:E===Ve.Open,disabled:f,invalid:s.invalid,hover:B,focus:Q,autofocus:d}),[s,B,Q,d,f,s.invalid]),re=D0({ref:_,id:u,role:"combobox",type:h,"aria-controls":de==null?void 0:de.id,"aria-expanded":E===Ve.Open,"aria-activedescendant":qt(i,i.selectors.activeDescendantId),"aria-labelledby":M,"aria-describedby":q,"aria-autocomplete":"list",defaultValue:(r=(n=e.defaultValue)!=null?n:s.defaultValue!==void 0?c==null?void 0:c(s.defaultValue):null)!=null?r:s.defaultValue,disabled:f||void 0,autoFocus:d,onCompositionStart:D,onCompositionEnd:z,onKeyDown:W,onChange:Z,onFocus:N,onBlur:O},$,oe);return nr()({ourProps:re,theirProps:p,slot:V,defaultTag:dO,name:"Combobox.Input"})}let pO="button";function mO(e,t){let n=Yo("Combobox.Button"),r=Is("Combobox.Button"),[i,s]=g.useState(null),o=jr(t,s,n.actions.setButtonElement),a=g.useId(),{id:u=`headlessui-combobox-button-${a}`,disabled:l=r.disabled||!1,autoFocus:c=!1,...f}=e,[d,h,p]=qt(n,Z=>[Z.comboboxState,Z.inputElement,Z.optionsElement]),b=Qx(h),v=d===Ve.Open;XF(v,{trigger:i,action:g.useCallback(Z=>{if(i!=null&&i.contains(Z.target)||h!=null&&h.contains(Z.target))return Ms.Ignore;let O=Z.target.closest('[role="option"]:not([data-disabled])');return oi(O)?Ms.Select(O):p!=null&&p.contains(Z.target)?Ms.Ignore:Ms.Close},[i,h,p]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let _=$e(Z=>{switch(Z.key){case Kt.Space:case Kt.Enter:Z.preventDefault(),Z.stopPropagation(),n.state.comboboxState===Ve.Closed&&Fn.flushSync(()=>n.actions.openCombobox()),b();return;case Kt.ArrowDown:Z.preventDefault(),Z.stopPropagation(),n.state.comboboxState===Ve.Closed&&(Fn.flushSync(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:jt.First})),b();return;case Kt.ArrowUp:Z.preventDefault(),Z.stopPropagation(),n.state.comboboxState===Ve.Closed&&(Fn.flushSync(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:jt.Last})),b();return;case Kt.Escape:if(n.state.comboboxState!==Ve.Open)return;Z.preventDefault(),n.state.optionsElement&&!r.optionsPropsRef.current.static&&Z.stopPropagation(),Fn.flushSync(()=>n.actions.closeCombobox()),b();return;default:return}}),x=$e(Z=>{Z.preventDefault(),!KI(Z.currentTarget)&&(Z.button===R0.Left&&(n.state.comboboxState===Ve.Open?n.actions.closeCombobox():n.actions.openCombobox()),b())}),E=Ju([u]),{isFocusVisible:T,focusProps:k}=kx({autoFocus:c}),{isHovered:A,hoverProps:I}=Sx({isDisabled:l}),{pressed:U,pressProps:D}=LI({disabled:l}),z=g.useMemo(()=>({open:d===Ve.Open,active:U||d===Ve.Open,disabled:l,invalid:r.invalid,value:r.value,hover:A,focus:T}),[r,A,T,U,l,d]),W=D0({ref:o,id:u,type:ZF(e,i),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":p==null?void 0:p.id,"aria-expanded":d===Ve.Open,"aria-labelledby":E,disabled:l||void 0,autoFocus:c,onPointerDown:x,onKeyDown:_},k,I,D);return nr()({ourProps:W,theirProps:f,slot:z,defaultTag:pO,name:"Combobox.Button"})}let gO="div",bO=wf.RenderStrategy|wf.Static;function vO(e,t){var n,r,i;let s=g.useId(),{id:o=`headlessui-combobox-options-${s}`,hold:a=!1,anchor:u,portal:l=!1,modal:c=!0,transition:f=!1,...d}=e,h=Yo("Combobox.Options"),p=Is("Combobox.Options"),b=RL(u);b&&(l=!0);let[v,_]=VL(b),[x,E]=g.useState(null),T=ML(),k=jr(t,b?v:null,h.actions.setOptionsElement,E),[A,I,U,D,z]=qt(h,ae=>[ae.comboboxState,ae.inputElement,ae.buttonElement,ae.optionsElement,ae.activationTrigger]),W=bu(I||U),Z=bu(D),O=qL(),[N,M]=dL(f,x,O!==null?(O&ko.Open)===ko.Open:A===Ve.Open);VF(N,I,h.actions.closeCombobox);let q=p.__demoMode?!1:c&&A===Ve.Open;oL(q,Z);let Q=p.__demoMode?!1:c&&A===Ve.Open;MF(Q,{allowed:g.useCallback(()=>[I,U,D],[I,U,D])}),vt(()=>{var ae;p.optionsPropsRef.current.static=(ae=e.static)!=null?ae:!1},[p.optionsPropsRef,e.static]),vt(()=>{p.optionsPropsRef.current.hold=a},[p.optionsPropsRef,a]),gL(A===Ve.Open,{container:D,accept(ae){return ae.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:ae.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(ae){ae.setAttribute("role","none")}});let $=Ju([U==null?void 0:U.id]),B=g.useMemo(()=>({open:A===Ve.Open,option:void 0}),[A]),oe=$e(()=>{h.actions.setActivationTrigger(Zr.Pointer)}),de=$e(ae=>{ae.preventDefault(),h.actions.setActivationTrigger(Zr.Pointer)}),V=D0(b?T():{},{"aria-labelledby":$,role:"listbox","aria-multiselectable":p.mode===vn.Multi?!0:void 0,id:o,ref:k,style:{...d.style,..._,"--input-width":Mg(I,!0).width,"--button-width":Mg(U,!0).width},onWheel:z===Zr.Pointer?void 0:oe,onMouseDown:de,...fL(M)}),re=N&&A===Ve.Closed,L=Nf(re,(n=p.virtual)==null?void 0:n.options),ee=Nf(re,p.value),ue=$e(ae=>p.compare(ee,ae)),ie=g.useMemo(()=>{if(!p.virtual)return p;if(L===void 0)throw new Error("Missing `options` in virtual mode");return L!==p.virtual.options?{...p,virtual:{...p.virtual,options:L}}:p},[p,L,(r=p.virtual)==null?void 0:r.options]);p.virtual&&Object.assign(d,{children:qe.createElement(Ao.Provider,{value:ie},qe.createElement(lO,{slot:B},d.children))});let H=nr(),ce=g.useMemo(()=>p.mode===vn.Multi?p:{...p,isSelected:ue},[p,ue]);return qe.createElement(sO,{enabled:l?e.static||N:!1,ownerDocument:W},qe.createElement(Ao.Provider,{value:ce},H({ourProps:V,theirProps:{...d,children:qe.createElement(UL,{freeze:re},typeof d.children=="function"?(i=d.children)==null?void 0:i.call(d,B):d.children)},slot:B,defaultTag:gO,features:bO,visible:N,name:"Combobox.Options"})))}let yO="div";function xO(e,t){var n,r,i;let s=Is("Combobox.Option"),o=Yo("Combobox.Option"),a=g.useId(),{id:u=`headlessui-combobox-option-${a}`,value:l,disabled:c=(i=(r=(n=s.virtual)==null?void 0:n.disabled)==null?void 0:r.call(n,l))!=null?i:!1,order:f=null,...d}=e,[h]=qt(o,M=>[M.inputElement]),p=Qx(h),b=qt(o,g.useCallback(M=>o.selectors.isActive(M,l,u),[l,u])),v=s.isSelected(l),_=g.useRef(null),x=ji({disabled:c,value:l,domRef:_,order:f}),E=g.useContext(iE),T=jr(t,_,E?E.measureElement:null),k=$e(()=>{o.actions.setIsTyping(!1),o.actions.onChange(l)});vt(()=>o.actions.registerOption(u,x),[x,u]);let A=qt(o,g.useCallback(M=>o.selectors.shouldScrollIntoView(M,l,u),[l,u]));vt(()=>{if(A)return wr().requestAnimationFrame(()=>{var M,q;(q=(M=_.current)==null?void 0:M.scrollIntoView)==null||q.call(M,{block:"nearest"})})},[A,_]);let I=$e(M=>{M.preventDefault(),M.button===R0.Left&&(c||(k(),Af()||requestAnimationFrame(()=>p()),s.mode===vn.Single&&o.actions.closeCombobox()))}),U=$e(()=>{if(c)return o.actions.goToOption({focus:jt.Nothing});let M=s.calculateIndex(l);o.actions.goToOption({focus:jt.Specific,idx:M})}),D=aL(),z=$e(M=>D.update(M)),W=$e(M=>{if(!D.wasMoved(M)||c||b)return;let q=s.calculateIndex(l);o.actions.goToOption({focus:jt.Specific,idx:q},Zr.Pointer)}),Z=$e(M=>{D.wasMoved(M)&&(c||b&&(s.optionsPropsRef.current.hold||o.actions.goToOption({focus:jt.Nothing})))}),O=g.useMemo(()=>({active:b,focus:b,selected:v,disabled:c}),[b,v,c]),N={id:u,ref:T,role:"option",tabIndex:c===!0?void 0:-1,"aria-disabled":c===!0?!0:void 0,"aria-selected":v,disabled:void 0,onMouseDown:I,onFocus:U,onPointerEnter:z,onMouseEnter:z,onPointerMove:W,onMouseMove:W,onPointerLeave:Z,onMouseLeave:Z};return nr()({ourProps:N,theirProps:d,slot:O,defaultTag:yO,name:"Combobox.Option"})}let EO=rr(fO),_O=rr(mO),sE=rr(hO),TO=cF,oE=rr(vO),Zu=rr(xO),wO=Object.assign(EO,{Input:sE,Button:_O,Label:TO,Options:oE,Option:Zu});const SO=()=>{const e=me.c(32),t=V0(),{push:n}=Ku(),r=g.useRef(null),i=kO(),[s,o]=g.useState("");let a;e[0]!==i||e[1]!==s?(a=()=>i(s),e[0]=i,e[1]=s,e[2]=a):a=e[2];const[u,l]=g.useState(a);let c;e[3]!==i?(c=gs(200,O=>{l(i(O))}),e[3]=i,e[4]=c):c=e[4];const f=c,[d]=g.useState(r),h=d.current===document.activeElement;let p,b;e[5]!==f||e[6]!==s?(p=()=>{f(s)},b=[f,s],e[5]=f,e[6]=s,e[7]=p,e[8]=b):(p=e[7],b=e[8]),g.useEffect(p,b);let v,_,x;if(e[9]!==t||e[10]!==n){v=t.at(-1);let O;e[14]!==n?(O=N=>{N&&n("field"in N?{name:N.field.name,def:N.field}:{name:N.type.name,def:N.type})},e[14]=n,e[15]=O):O=e[15],_=O,x=t.length===1||Oe(v.def)||je(v.def)||ze(v.def),e[9]=t,e[10]=n,e[11]=v,e[12]=_,e[13]=x}else v=e[11],_=e[12],x=e[13];if(!x)return null;const T=h?void 0:"idle",k=`Search ${v.name}...`;let A,I;e[16]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{r.current.focus()},I=y.jsx(t_,{}),e[16]=A,e[17]=I):(A=e[16],I=e[17]);let U,D;e[18]===Symbol.for("react.memo_cache_sentinel")?(D=O=>o(O.target.value),U=Ei(Ei(_t.searchInDocs.key).replaceAll("-"," ")),e[18]=U,e[19]=D):(U=e[18],D=e[19]);let z;e[20]!==s||e[21]!==U?(z=y.jsxs("div",{className:"graphiql-doc-explorer-search-input",onClick:A,children:[I,y.jsx(sE,{autoComplete:"off",onChange:D,placeholder:U,ref:r,value:s,"data-cy":"doc-explorer-input"})]}),e[20]=s,e[21]=U,e[22]=z):z=e[22];let W;e[23]!==h||e[24]!==u?(W=h&&y.jsxs(oE,{"data-cy":"doc-explorer-list",children:[u.within.length+u.types.length+u.fields.length===0?y.jsx("div",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):u.within.map(DO),u.within.length>0&&u.types.length+u.fields.length>0?y.jsx("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,u.types.map(NO),u.fields.map(CO)]}),e[23]=h,e[24]=u,e[25]=W):W=e[25];let Z;return e[26]!==_||e[27]!==z||e[28]!==W||e[29]!==T||e[30]!==k?(Z=y.jsxs(wO,{as:"div",className:"graphiql-doc-explorer-search",onChange:_,"data-state":T,"aria-label":k,children:[z,W]}),e[26]=_,e[27]=z,e[28]=W,e[29]=T,e[30]=k,e[31]=Z):Z=e[31],Z};function kO(){const e=me.c(5),t=V0(),n=Ct(AO);let r;e[0]!==t?(r=t.at(-1),e[0]=t,e[1]=r):r=e[1];const i=r;let s;return e[2]!==i||e[3]!==n?(s=o=>{const a={within:[],types:[],fields:[]};if(!n)return a;const u=i.def,l=n.getTypeMap();let c=Object.keys(l);u&&(c=c.filter(f=>f!==u.name),c.unshift(u.name));for(const f of c){if(a.within.length+a.types.length+a.fields.length>=100)break;const d=l[f];if(u!==d&&Kl(f,o)&&a.types.push({type:d}),!Oe(d)&&!je(d)&&!ze(d))continue;const h=d.getFields();for(const p in h){const b=h[p];let v;if(!Kl(p,o))if("args"in b){if(v=b.args.filter(_=>Kl(_.name,o)),v.length===0)continue}else continue;a[u===d?"within":"fields"].push(...v?v.map(_=>({type:d,field:b,argument:_})):[{type:d,field:b}])}}return a},e[2]=i,e[3]=n,e[4]=s):s=e[4],s}function AO(e){return e.schema}function Kl(e,t){try{const n=t.replaceAll(/[^_0-9A-Za-z]/g,r=>"\\"+r);return new RegExp(n,"i").test(e)}catch{return e.toLowerCase().includes(t.toLowerCase())}}const M0=e=>{const t=me.c(2),{type:n}=e;let r;return t[0]!==n.name?(r=y.jsx("span",{className:"graphiql-doc-explorer-search-type",children:n.name}),t[0]=n.name,t[1]=r):r=t[1],r},aE=e=>{const t=me.c(7),{field:n,argument:r}=e;let i;t[0]!==n.name?(i=y.jsx("span",{className:"graphiql-doc-explorer-search-field",children:n.name}),t[0]=n.name,t[1]=i):i=t[1];let s;t[2]!==r?(s=r?y.jsxs(y.Fragment,{children:["(",y.jsx("span",{className:"graphiql-doc-explorer-search-argument",children:r.name}),":"," ",hu(r.type,IO),")"]}):null,t[2]=r,t[3]=s):s=t[3];let o;return t[4]!==i||t[5]!==s?(o=y.jsxs(y.Fragment,{children:[i,s]}),t[4]=i,t[5]=s,t[6]=o):o=t[6],o};function DO(e,t){return y.jsx(Zu,{value:e,"data-cy":"doc-explorer-option",children:y.jsx(aE,{field:e.field,argument:e.argument})},`within-${t}`)}function NO(e,t){return y.jsx(Zu,{value:e,"data-cy":"doc-explorer-option",children:y.jsx(M0,{type:e.type})},`type-${t}`)}function CO(e,t){return y.jsxs(Zu,{value:e,"data-cy":"doc-explorer-option",children:[y.jsx(M0,{type:e.type}),".",y.jsx(aE,{field:e.field,argument:e.argument})]},`field-${t}`)}function IO(e){return y.jsx(M0,{type:e})}const FO=e=>{const t=me.c(6),{field:n}=e,{push:r}=Ku();let i;t[0]!==n||t[1]!==r?(i=o=>{o.preventDefault(),r({name:n.name,def:n})},t[0]=n,t[1]=r,t[2]=i):i=t[2];let s;return t[3]!==n.name||t[4]!==i?(s=y.jsx("a",{className:"graphiql-doc-explorer-field-name",onClick:i,href:"#",children:n.name}),t[3]=n.name,t[4]=i,t[5]=s):s=t[5],s},LO=e=>{const t=me.c(2),{type:n}=e;let r;return t[0]!==n?(r=Vi(n)?y.jsxs(y.Fragment,{children:[n.description?y.jsx(yr,{type:"description",children:n.description}):null,y.jsx(OO,{type:n}),y.jsx(RO,{type:n}),y.jsx(PO,{type:n}),y.jsx(MO,{type:n})]}):null,t[0]=n,t[1]=r):r=t[1],r},OO=e=>{const t=me.c(5),{type:n}=e;if(!Oe(n))return null;let r;t[0]!==n?(r=n.getInterfaces(),t[0]=n,t[1]=r):r=t[1];const i=r;let s;return t[2]!==i.length||t[3]!==n?(s=i.length>0?y.jsx(Vn,{title:"Implements",children:n.getInterfaces().map(VO)}):null,t[2]=i.length,t[3]=n,t[4]=s):s=t[4],s},RO=e=>{const t=me.c(12),{type:n}=e,[r,i]=g.useState(!1);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{i(!0)},t[0]=s):s=t[0];const o=s;if(!Oe(n)&&!je(n)&&!ze(n))return null;let a,u,l;if(t[1]!==n){const d=n.getFields();u=[],a=[];for(const h of Object.keys(d).map(p=>d[p]))h.deprecationReason?a.push(h):u.push(h);l=u.length>0?y.jsx(Vn,{title:"Fields",children:u.map($O)}):null,t[1]=n,t[2]=a,t[3]=u,t[4]=l}else a=t[2],u=t[3],l=t[4];let c;t[5]!==a||t[6]!==u.length||t[7]!==r?(c=a.length>0?r||u.length===0?y.jsx(Vn,{title:"Deprecated Fields",children:a.map(jO)}):y.jsx(Gn,{type:"button",onClick:o,children:"Show Deprecated Fields"}):null,t[5]=a,t[6]=u.length,t[7]=r,t[8]=c):c=t[8];let f;return t[9]!==l||t[10]!==c?(f=y.jsxs(y.Fragment,{children:[l,c]}),t[9]=l,t[10]=c,t[11]=f):f=t[11],f},uE=e=>{const t=me.c(22),{field:n}=e;let r,i,s;if(t[0]!==n){const d="args"in n?n.args.filter(BO):[];s="graphiql-doc-explorer-item",r=y.jsx(FO,{field:n}),i=d.length>0?y.jsxs(y.Fragment,{children:["(",y.jsx("span",{children:d.map(h=>d.length===1?y.jsx(pu,{arg:h,inline:!0},h.name):y.jsx("div",{className:"graphiql-doc-explorer-argument-multiple",children:y.jsx(pu,{arg:h,inline:!0})},h.name))}),")"]}):null,t[0]=n,t[1]=r,t[2]=i,t[3]=s}else r=t[1],i=t[2],s=t[3];let o;t[4]!==n.type?(o=y.jsx(Dr,{type:n.type}),t[4]=n.type,t[5]=o):o=t[5];let a;t[6]!==n?(a=y.jsx(fx,{field:n}),t[6]=n,t[7]=a):a=t[7];let u;t[8]!==r||t[9]!==i||t[10]!==o||t[11]!==a?(u=y.jsxs("div",{children:[r,i,": ",o,a]}),t[8]=r,t[9]=i,t[10]=o,t[11]=a,t[12]=u):u=t[12];let l;t[13]!==n.description?(l=n.description?y.jsx(yr,{type:"description",onlyShowFirstChild:!0,children:n.description}):null,t[13]=n.description,t[14]=l):l=t[14];let c;t[15]!==n.deprecationReason?(c=y.jsx(dx,{children:n.deprecationReason}),t[15]=n.deprecationReason,t[16]=c):c=t[16];let f;return t[17]!==s||t[18]!==u||t[19]!==l||t[20]!==c?(f=y.jsxs("div",{className:s,children:[u,l,c]}),t[17]=s,t[18]=u,t[19]=l,t[20]=c,t[21]=f):f=t[21],f},PO=e=>{const t=me.c(12),{type:n}=e,[r,i]=g.useState(!1);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{i(!0)},t[0]=s):s=t[0];const o=s;if(!bt(n))return null;let a,u,l;if(t[1]!==n){l=[],a=[];for(const d of n.getValues())d.deprecationReason?a.push(d):l.push(d);u=l.length>0&&y.jsx(Vn,{title:"Enum Values",children:l.map(UO)}),t[1]=n,t[2]=a,t[3]=u,t[4]=l}else a=t[2],u=t[3],l=t[4];let c;t[5]!==a||t[6]!==r||t[7]!==l.length?(c=a.length>0&&(r||!l.length?y.jsx(Vn,{title:"Deprecated Enum Values",children:a.map(qO)}):y.jsx(Gn,{type:"button",onClick:o,children:"Show Deprecated Values"})),t[5]=a,t[6]=r,t[7]=l.length,t[8]=c):c=t[8];let f;return t[9]!==u||t[10]!==c?(f=y.jsxs(y.Fragment,{children:[u,c]}),t[9]=u,t[10]=c,t[11]=f):f=t[11],f},lE=e=>{const t=me.c(10),{value:n}=e;let r;t[0]!==n.name?(r=y.jsx("div",{className:"graphiql-doc-explorer-enum-value",children:n.name}),t[0]=n.name,t[1]=r):r=t[1];let i;t[2]!==n.description?(i=n.description&&y.jsx(yr,{type:"description",children:n.description}),t[2]=n.description,t[3]=i):i=t[3];let s;t[4]!==n.deprecationReason?(s=n.deprecationReason&&y.jsx(yr,{type:"deprecation",children:n.deprecationReason}),t[4]=n.deprecationReason,t[5]=s):s=t[5];let o;return t[6]!==r||t[7]!==i||t[8]!==s?(o=y.jsxs("div",{className:"graphiql-doc-explorer-item",children:[r,i,s]}),t[6]=r,t[7]=i,t[8]=s,t[9]=o):o=t[9],o},MO=e=>{const t=me.c(6),{type:n}=e,r=Ct(zO);if(!r||!Qn(n))return null;const i=je(n)?"Implementations":"Possible Types";let s;t[0]!==r||t[1]!==n?(s=r.getPossibleTypes(n).map(HO),t[0]=r,t[1]=n,t[2]=s):s=t[2];let o;return t[3]!==i||t[4]!==s?(o=y.jsx(Vn,{title:i,children:s}),t[3]=i,t[4]=s,t[5]=o):o=t[5],o};function VO(e){return y.jsx("div",{children:y.jsx(Dr,{type:e})},e.name)}function $O(e){return y.jsx(uE,{field:e},e.name)}function jO(e){return y.jsx(uE,{field:e},e.name)}function BO(e){return!e.deprecationReason}function UO(e){return y.jsx(lE,{value:e},e.name)}function qO(e){return y.jsx(lE,{value:e},e.name)}function zO(e){return e.schema}function HO(e){return y.jsx("div",{children:y.jsx(Dr,{type:e})},e.name)}const GO=()=>{const e=me.c(39);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=er("fetchError","isIntrospecting","schema","validationErrors"),e[0]=t):t=e[0];const{fetchError:n,isIntrospecting:r,schema:i,validationErrors:s}=Ct(t),o=V0(),{pop:a}=Ku();let u,l;if(e[1]!==o||e[2]!==n||e[3]!==r||e[4]!==i||e[5]!==s){if(l=o.at(-1),u=null,n){let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=y.jsx("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}),e[8]=x):x=e[8],u=x}else if(s[0]){let x;e[9]!==s[0].message?(x=y.jsxs("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",s[0].message]}),e[9]=s[0].message,e[10]=x):x=e[10],u=x}else if(r){let x;e[11]===Symbol.for("react.memo_cache_sentinel")?(x=y.jsx(Hd,{}),e[11]=x):x=e[11],u=x}else if(i){if(o.length===1){let x;e[13]!==i?(x=y.jsx(oI,{schema:i}),e[13]=i,e[14]=x):x=e[14],u=x}else if(ws(l.def)){let x;e[15]!==l.def?(x=y.jsx(LO,{type:l.def}),e[15]=l.def,e[16]=x):x=e[16],u=x}else if(l.def){let x;e[17]!==l.def?(x=y.jsx(eI,{field:l.def}),e[17]=l.def,e[18]=x):x=e[18],u=x}}else{let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=y.jsx("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),e[12]=x):x=e[12],u=x}e[1]=o,e[2]=n,e[3]=r,e[4]=i,e[5]=s,e[6]=u,e[7]=l}else u=e[6],l=e[7];let c;if(o.length>1){let x;e[19]!==o?(x=o.at(-2),e[19]=o,e[20]=x):x=e[20],c=x.name}let f;e[21]!==a||e[22]!==c?(f=c&&y.jsxs("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:x=>{x.preventDefault(),a()},"aria-label":`Go back to ${c}`,children:[y.jsx(B6,{}),c]}),e[21]=a,e[22]=c,e[23]=f):f=e[23];let d;e[24]!==l.name?(d=y.jsx("div",{className:"graphiql-doc-explorer-title",children:l.name}),e[24]=l.name,e[25]=d):d=e[25];let h;e[26]!==f||e[27]!==d?(h=y.jsxs("div",{className:"graphiql-doc-explorer-header-content",children:[f,d]}),e[26]=f,e[27]=d,e[28]=h):h=e[28];let p;e[29]!==l.name?(p=y.jsx(SO,{},l.name),e[29]=l.name,e[30]=p):p=e[30];let b;e[31]!==h||e[32]!==p?(b=y.jsxs("div",{className:"graphiql-doc-explorer-header",children:[h,p]}),e[31]=h,e[32]=p,e[33]=b):b=e[33];let v;e[34]!==u?(v=y.jsx("div",{className:"graphiql-doc-explorer-content",children:u}),e[34]=u,e[35]=v):v=e[35];let _;return e[36]!==b||e[37]!==v?(_=y.jsxs("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[b,v]}),e[36]=b,e[37]=v,e[38]=_):_=e[38],_},Cf={title:"Documentation Explorer",icon:function(){return Ct(n=>n.visiblePlugin)===Cf?y.jsx(Q6,{}):y.jsx(Y6,{})},content:GO},va=[{name:"Docs"}],If=Rf((e,t)=>({explorerNavStack:va,actions:{push(n){e(r=>{const i=r.explorerNavStack;return{explorerNavStack:i.at(-1).def===n.def?i:[...i,n]}})},pop(){e(n=>{const r=n.explorerNavStack;return{explorerNavStack:r.length>1?r.slice(0,-1):r}})},reset(){e(n=>{const r=n.explorerNavStack;return{explorerNavStack:r.length===1?r:va}})},resolveSchemaReferenceToNavItem(n){if(!n)return;const{kind:r,typeInfo:i}=n,s=HC(r,i);if(!s)return;const{push:o}=t().actions;switch(s.kind){case"Type":{o({name:s.type.name,def:s.type});break}case"Field":{s.type&&o({name:s.type.name,def:s.type}),o({name:s.field.name,def:s.field});break}case"Argument":{s.field&&o({name:s.field.name,def:s.field});break}case"EnumValue":{s.type&&o({name:s.type.name,def:s.type});break}}},rebuildNavStackWithSchema(n){e(r=>{const i=r.explorerNavStack;if(i.length===1)return r;const s=[...va];let o=null;for(const a of i)if(a!==va[0])if(a.def)if(Vi(a.def)){const u=n.getType(a.def.name);if(u)s.push({name:a.name,def:u}),o=u;else break}else{if(o===null)break;if(Oe(o)||ze(o)){const u=o.getFields()[a.name];if(u)s.push({name:a.name,def:u});else break}else{if(hn(o)||bt(o)||je(o)||Nt(o))break;{const u=o;if(u.args.some(l=>l.name===a.name))s.push({name:a.name,def:u});else break}}}else o=null,s.push(a);return{explorerNavStack:s}})}}})),WO=e=>{const t=me.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=er("schema","validationErrors","schemaReference"),t[0]=r):r=t[0];const{schema:i,validationErrors:s,schemaReference:o}=Ct(r);let a,u;t[1]!==o?(a=()=>{const{resolveSchemaReferenceToNavItem:d}=If.getState().actions;d(o)},u=[o],t[1]=o,t[2]=a,t[3]=u):(a=t[2],u=t[3]),g.useEffect(a,u);let l,c;t[4]!==i||t[5]!==s?(l=()=>{const{reset:d,rebuildNavStackWithSchema:h}=If.getState().actions;i==null||s.length>0?d():h(i)},c=[i,s],t[4]=i,t[5]=s,t[6]=l,t[7]=c):(l=t[6],c=t[7]),g.useEffect(l,c);let f;return t[8]===Symbol.for("react.memo_cache_sentinel")?(f=[],t[8]=f):f=t[8],g.useEffect(YO,f),n},cE=Rd(If),V0=()=>cE(XO),Ku=()=>cE(JO);function QO(){const e=document.querySelector(".graphiql-doc-explorer-search-input");e==null||e.click()}function YO(){const e=function(n){if(!(n.altKey&&n[Yb?"metaKey":"ctrlKey"]&&n.code==="KeyK"))return;const i=document.querySelector('.graphiql-sidebar button[aria-label="Show Documentation Explorer"]');i==null||i.click(),requestAnimationFrame(QO)};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}function XO(e){return e.explorerNavStack}function JO(e){return e.actions}const ZO=e=>{const t=me.c(2),{children:n}=e;let r;return t[0]!==n?(r=y.jsx("div",{className:"graphiql-footer",children:n}),t[0]=n,t[1]=r):r=t[1],r},KO=e=>{const t=me.c(4),{prettify:n,copy:r,merge:i}=e;let s;return t[0]!==r||t[1]!==i||t[2]!==n?(s=y.jsxs(y.Fragment,{children:[n,i,r]}),t[0]=r,t[1]=i,t[2]=n,t[3]=s):s=t[3],s},eR=e=>{const t=me.c(14),{children:n}=e,r=n===void 0?KO:n,i=typeof r=="function",{copyQuery:s,prettifyEditors:o,mergeQuery:a}=Er();if(!i)return r;let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=y.jsx(o_,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),t[0]=u):u=t[0];let l;t[1]!==o?(l=y.jsx(Da,{onClick:o,label:`Prettify query (${_t.prettify.key})`,children:u}),t[1]=o,t[2]=l):l=t[2];const c=l;let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=y.jsx(n_,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),t[3]=f):f=t[3];let d;t[4]!==a?(d=y.jsx(Da,{onClick:a,label:`Merge fragments into query (${_t.mergeFragments.key})`,children:f}),t[4]=a,t[5]=d):d=t[5];const h=d;let p;t[6]===Symbol.for("react.memo_cache_sentinel")?(p=y.jsx(q6,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),t[6]=p):p=t[6];let b;t[7]!==s?(b=y.jsx(Da,{onClick:s,label:`Copy query (${_t.copyQuery.key})`,children:p}),t[7]=s,t[8]=b):b=t[8];const v=b;let _;return t[9]!==r||t[10]!==v||t[11]!==h||t[12]!==c?(_=r({prettify:c,copy:v,merge:h}),t[9]=r,t[10]=v,t[11]=h,t[12]=c,t[13]=_):_=t[13],_},tR=y.jsxs("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer",children:["Graph",y.jsx("em",{children:"i"}),"QL"]}),nR=e=>{const t=me.c(2),{children:n}=e,r=n===void 0?tR:n;let i;return t[0]!==r?(i=y.jsx("div",{className:"graphiql-logo",children:r}),t[0]=r,t[1]=i):i=t[1],i},rR=Object.entries({"Execute query":Ei(_t.runQuery.key),"Open the Command Palette (you must have focus in the editor)":"F1","Prettify editors":_t.prettify.key,"Copy query":_t.copyQuery.key,"Re-fetch schema using introspection":_t.refetchSchema.key,"Search in documentation":Ei(_t.searchInDocs.key),"Search in editor":Ei(_t.searchInEditor.key),"Merge fragments definitions into operation definition":_t.mergeFragments.key}),iR=()=>{const e=me.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=y.jsxs("table",{className:"graphiql-table",children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"Short Key"}),y.jsx("th",{children:"Function"})]})}),y.jsx("tbody",{children:rR.map(oR)})]}),e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=y.jsx("em",{children:"i"}),e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx("a",{href:"https://code.visualstudio.com/docs/reference/default-keybindings",target:"_blank",rel:"noreferrer",children:"Monaco editor shortcuts"}),e[2]=r):r=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=y.jsx("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf",target:"_blank",rel:"noreferrer",children:"macOS"}),e[3]=i):i=e[3];let s;return e[4]===Symbol.for("react.memo_cache_sentinel")?(s=y.jsxs("div",{children:[t,y.jsxs("p",{children:["This Graph",n,"QL editor uses"," ",r,", with keybindings similar to VS Code. See the full list of shortcuts for"," ",i," ","or"," ",y.jsx("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf",target:"_blank",rel:"noreferrer",children:"Windows"}),"."]})]}),e[4]=s):s=e[4],s};function sR(e,t,n){return y.jsxs(g.Fragment,{children:[y.jsx("code",{className:"graphiql-key",children:e}),t!==n.length-1&&" + "]},e)}function oR(e){const[t,n]=e;return y.jsxs("tr",{children:[y.jsx("td",{children:n.split("-").map(sR)}),y.jsx("td",{children:t})]},t)}const Wi={refetchSchema:`Re-fetch GraphQL schema (${_t.refetchSchema.key})`,shortCutDialog:"Open short keys dialog",settingsDialogs:"Open settings dialog"},aR=["light","dark","system"],uR=e=>{const t=me.c(70),{forcedTheme:n,showPersistHeadersSettings:r,setHiddenElement:i}=e,s=n&&aR.includes(n)?n:void 0,{setShouldPersistHeaders:o,introspect:a,setVisiblePlugin:u,setTheme:l}=Er();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=er("shouldPersistHeaders","isIntrospecting","visiblePlugin","plugins","theme","storage"),t[0]=c):c=t[0];const{shouldPersistHeaders:f,isIntrospecting:d,visiblePlugin:h,plugins:p,theme:b,storage:v}=Ct(c);let _,x;t[1]!==s||t[2]!==l?(_=()=>{s==="system"?l(null):(s==="light"||s==="dark")&&l(s)},x=[s,l],t[1]=s,t[2]=l,t[3]=_,t[4]=x):(_=t[3],x=t[4]),g.useEffect(_,x);const[E,T]=g.useState(null),[k,A]=g.useState();let I;t[5]===Symbol.for("react.memo_cache_sentinel")?(I=function(be){be||T(null)},t[5]=I):I=t[5];const U=I;let D;t[6]===Symbol.for("react.memo_cache_sentinel")?(D=function(be){be||(T(null),A(void 0))},t[6]=D):D=t[6];const z=D;let W;t[7]!==v?(W=function(){try{v.clear(),A("success")}catch{A("error")}},t[7]=v,t[8]=W):W=t[8];const Z=W;let O;t[9]!==o?(O=fe=>{o(fe.currentTarget.dataset.value==="true")},t[9]=o,t[10]=O):O=t[10];const N=O;let M;t[11]!==l?(M=fe=>{const be=fe.currentTarget.dataset.theme;l(be||null)},t[11]=l,t[12]=M):M=t[12];const q=M;let Q;t[13]===Symbol.for("react.memo_cache_sentinel")?(Q=fe=>{T(fe.currentTarget.dataset.value)},t[13]=Q):Q=t[13];const $=Q;let B;t[14]!==p||t[15]!==i||t[16]!==u||t[17]!==h?(B=fe=>{const be=Number(fe.currentTarget.dataset.index),Me=p.find((Ee,ye)=>be===ye);Me===h?(u(null),i("first")):(u(Me),i(null))},t[14]=p,t[15]=i,t[16]=u,t[17]=h,t[18]=B):B=t[18];const oe=B;let de;if(t[19]!==oe||t[20]!==p||t[21]!==h){let fe;t[23]!==oe||t[24]!==h?(fe=(be,Me)=>{const pe=be===h,Ee=`${pe?"Hide":"Show"} ${be.title}`;return y.jsx(cn,{label:Ee,children:y.jsx(Ot,{type:"button",className:We(pe&&"active"),onClick:oe,"data-index":Me,"aria-label":Ee,children:y.jsx(be.icon,{"aria-hidden":"true"})})},be.title)},t[23]=oe,t[24]=h,t[25]=fe):fe=t[25],de=p.map(fe),t[19]=oe,t[20]=p,t[21]=h,t[22]=de}else de=t[22];let V;t[26]===Symbol.for("react.memo_cache_sentinel")?(V={marginTop:"auto"},t[26]=V):V=t[26];const re=d&&"graphiql-spin";let L;t[27]!==re?(L=We(re),t[27]=re,t[28]=L):L=t[28];let ee;t[29]!==L?(ee=y.jsx(a_,{className:L,"aria-hidden":"true"}),t[29]=L,t[30]=ee):ee=t[30];let ue;t[31]!==a||t[32]!==d||t[33]!==ee?(ue=y.jsx(cn,{label:Wi.refetchSchema,children:y.jsx(Ot,{type:"button",disabled:d,onClick:a,"aria-label":Wi.refetchSchema,style:V,children:ee})}),t[31]=a,t[32]=d,t[33]=ee,t[34]=ue):ue=t[34];let ie;t[35]===Symbol.for("react.memo_cache_sentinel")?(ie=y.jsx(cn,{label:Wi.shortCutDialog,children:y.jsx(Ot,{type:"button","data-value":"short-keys",onClick:$,"aria-label":Wi.shortCutDialog,children:y.jsx(e_,{"aria-hidden":"true"})})}),t[35]=ie):ie=t[35];let H;t[36]===Symbol.for("react.memo_cache_sentinel")?(H=y.jsx(cn,{label:Wi.settingsDialogs,children:y.jsx(Ot,{type:"button","data-value":"settings",onClick:$,"aria-label":Wi.settingsDialogs,children:y.jsx(l_,{"aria-hidden":"true"})})}),t[36]=H):H=t[36];const ce=E==="short-keys";let ae;t[37]===Symbol.for("react.memo_cache_sentinel")?(ae=y.jsx(zr.Title,{className:"graphiql-dialog-title",children:"Short Keys"}),t[37]=ae):ae=t[37];let ke;t[38]===Symbol.for("react.memo_cache_sentinel")?(ke=y.jsxs("div",{className:"graphiql-dialog-header",children:[ae,y.jsx(tc,{children:y.jsx(zr.Description,{children:"This modal provides a list of available keyboard shortcuts and their functions."})}),y.jsx(zr.Close,{})]}),t[38]=ke):ke=t[38];let we;t[39]===Symbol.for("react.memo_cache_sentinel")?(we=y.jsx("div",{className:"graphiql-dialog-section",children:y.jsx(iR,{})}),t[39]=we):we=t[39];let R;t[40]!==ce?(R=y.jsxs(zr,{open:ce,onOpenChange:U,children:[ke,we]}),t[40]=ce,t[41]=R):R=t[41];const C=E==="settings";let te;t[42]===Symbol.for("react.memo_cache_sentinel")?(te=y.jsx(zr.Title,{className:"graphiql-dialog-title",children:"Settings"}),t[42]=te):te=t[42];let F;t[43]===Symbol.for("react.memo_cache_sentinel")?(F=y.jsxs("div",{className:"graphiql-dialog-header",children:[te,y.jsx(tc,{children:y.jsx(zr.Description,{children:"This modal lets you adjust header persistence, interface theme, and clear local storage."})}),y.jsx(zr.Close,{})]}),t[43]=F):F=t[43];let S;t[44]!==N||t[45]!==f||t[46]!==r?(S=r?y.jsxs("div",{className:"graphiql-dialog-section",children:[y.jsxs("div",{children:[y.jsx("div",{className:"graphiql-dialog-section-title",children:"Persist headers"}),y.jsxs("div",{className:"graphiql-dialog-section-caption",children:["Save headers upon reloading."," ",y.jsx("span",{className:"graphiql-warning-text",children:"Only enable if you trust this device."})]})]}),y.jsxs(Yc,{children:[y.jsx(Gn,{type:"button",id:"enable-persist-headers",className:We(f&&"active"),"data-value":"true",onClick:N,children:"On"}),y.jsx(Gn,{type:"button",id:"disable-persist-headers",className:We(!f&&"active"),onClick:N,children:"Off"})]})]}):null,t[44]=N,t[45]=f,t[46]=r,t[47]=S):S=t[47];let K;t[48]!==s||t[49]!==q||t[50]!==b?(K=!s&&y.jsxs("div",{className:"graphiql-dialog-section",children:[y.jsxs("div",{children:[y.jsx("div",{className:"graphiql-dialog-section-title",children:"Theme"}),y.jsx("div",{className:"graphiql-dialog-section-caption",children:"Adjust how the interface appears."})]}),y.jsxs(Yc,{children:[y.jsx(Gn,{type:"button",className:We(b===null&&"active"),onClick:q,children:"System"}),y.jsx(Gn,{type:"button",className:We(b==="light"&&"active"),"data-theme":"light",onClick:q,children:"Light"}),y.jsx(Gn,{type:"button",className:We(b==="dark"&&"active"),"data-theme":"dark",onClick:q,children:"Dark"})]})]}),t[48]=s,t[49]=q,t[50]=b,t[51]=K):K=t[51];let le;t[52]===Symbol.for("react.memo_cache_sentinel")?(le=y.jsxs("div",{children:[y.jsx("div",{className:"graphiql-dialog-section-title",children:"Clear storage"}),y.jsx("div",{className:"graphiql-dialog-section-caption",children:"Remove all locally stored data and start fresh."})]}),t[52]=le):le=t[52];const he=k==="success";let ne;t[53]!==k?(ne={success:"Cleared data",error:"Failed"}[k]||"Clear data",t[53]=k,t[54]=ne):ne=t[54];let P;t[55]!==k||t[56]!==Z||t[57]!==he||t[58]!==ne?(P=y.jsxs("div",{className:"graphiql-dialog-section",children:[le,y.jsx(Gn,{type:"button",state:k,disabled:he,onClick:Z,children:ne})]}),t[55]=k,t[56]=Z,t[57]=he,t[58]=ne,t[59]=P):P=t[59];let Y;t[60]!==C||t[61]!==S||t[62]!==K||t[63]!==P?(Y=y.jsxs(zr,{open:C,onOpenChange:z,children:[F,S,K,P]}),t[60]=C,t[61]=S,t[62]=K,t[63]=P,t[64]=Y):Y=t[64];let se;return t[65]!==de||t[66]!==ue||t[67]!==R||t[68]!==Y?(se=y.jsxs("div",{className:"graphiql-sidebar",children:[de,ue,ie,H,R,Y]}),t[65]=de,t[66]=ue,t[67]=R,t[68]=Y,t[69]=se):se=t[69],se},lR=e=>{var t,n;const r=me.c(54);let i,s,o,a,u,l,c,f,d,h,p,b,v,_,x;r[0]!==e?({maxHistoryLength:c,plugins:_,referencePlugin:x,onEditQuery:d,onEditVariables:h,onEditHeaders:f,responseTooltip:b,defaultEditorToolsVisibility:a,isHeadersEditorEnabled:l,showPersistHeadersSettings:v,forcedTheme:u,confirmCloseTab:o,className:s,children:i,...p}=e,r[0]=e,r[1]=i,r[2]=s,r[3]=o,r[4]=a,r[5]=u,r[6]=l,r[7]=c,r[8]=f,r[9]=d,r[10]=h,r[11]=p,r[12]=b,r[13]=v,r[14]=_,r[15]=x):(i=r[1],s=r[2],o=r[3],a=r[4],u=r[5],l=r[6],c=r[7],f=r[8],d=r[9],h=r[10],p=r[11],b=r[12],v=r[13],_=r[14],x=r[15]);let E;r[16]!==_?(E=_===void 0?[vf]:_,r[16]=_,r[17]=E):E=r[17];const T=E,k=x===void 0?Cf:x;if((t=p.toolbar)!=null&&t.additionalContent)throw new TypeError("The `toolbar.additionalContent` prop has been removed. Use render props on `GraphiQL.Toolbar` component instead.");if((n=p.toolbar)!=null&&n.additionalComponent)throw new TypeError("The `toolbar.additionalComponent` prop has been removed. Use render props on `GraphiQL.Toolbar` component instead.");if(p.keyMap)throw new TypeError("`keyMap` was removed. To use Vim or Emacs keybindings in Monaco, you can use community plugins. Monaco Vim: https://github.com/brijeshb42/monaco-vim. Monaco Emacs: https://github.com/aioutecism/monaco-emacs");if(p.readOnly)throw new TypeError("The `readOnly` prop has been removed.");const A=v??p.shouldPersistHeaders!==!1;let I;r[18]!==s||r[19]!==o||r[20]!==a||r[21]!==u||r[22]!==l||r[23]!==f||r[24]!==d||r[25]!==h||r[26]!==b||r[27]!==A?(I={showPersistHeadersSettings:A,onEditQuery:d,onEditVariables:h,onEditHeaders:f,responseTooltip:b,defaultEditorToolsVisibility:a,isHeadersEditorEnabled:l,forcedTheme:u,confirmCloseTab:o,className:s},r[18]=s,r[19]=o,r[20]=a,r[21]=u,r[22]=l,r[23]=f,r[24]=d,r[25]=h,r[26]=b,r[27]=A,r[28]=I):I=r[28];const U=I;let D;r[29]!==T?(D=T.includes(vf),r[29]=T,r[30]=D):D=r[30];const z=D,W=z?FC:g.Fragment,Z=k===Cf?WO:g.Fragment;let O;r[31]!==k?(O=k?[k]:[],r[31]=k,r[32]=O):O=r[32];let N;r[33]!==T||r[34]!==O?(N=[...O,...T],r[33]=T,r[34]=O,r[35]=N):N=r[35];let M;r[36]!==z||r[37]!==c?(M=z&&{maxHistoryLength:c},r[36]=z,r[37]=c,r[38]=M):M=r[38];let q;r[39]!==i||r[40]!==U?(q=y.jsx(cR,{...U,children:i}),r[39]=i,r[40]=U,r[41]=q):q=r[41];let Q;r[42]!==Z||r[43]!==q?(Q=y.jsx(Z,{children:q}),r[42]=Z,r[43]=q,r[44]=Q):Q=r[44];let $;r[45]!==W||r[46]!==Q||r[47]!==M?($=y.jsx(W,{...M,children:Q}),r[45]=W,r[46]=Q,r[47]=M,r[48]=$):$=r[48];let B;return r[49]!==p||r[50]!==k||r[51]!==$||r[52]!==N?(B=y.jsx($8,{plugins:N,referencePlugin:k,...p,children:$}),r[49]=p,r[50]=k,r[51]=$,r[52]=N,r[53]=B):B=r[53],B},ec="graphiql-session-tab-",sb={newTab:"New tab"},cR=e=>{const t=me.c(146),{forcedTheme:n,isHeadersEditorEnabled:r,defaultEditorToolsVisibility:i,children:s,confirmCloseTab:o,className:a,onEditQuery:u,onEditVariables:l,onEditHeaders:c,responseTooltip:f,showPersistHeadersSettings:d}=e,h=r===void 0?!0:r,{addTab:p,moveTab:b,closeTab:v,changeTab:_,setVisiblePlugin:x}=Er();let E;t[0]===Symbol.for("react.memo_cache_sentinel")?(E=er("initialVariables","initialHeaders","tabs","activeTabIndex","isFetching","visiblePlugin"),t[0]=E):E=t[0];const{initialVariables:T,initialHeaders:k,tabs:A,activeTabIndex:I,isFetching:U,visiblePlugin:D}=Ct(E),z=D==null?void 0:D.content,W=D?void 0:"first";let Z;t[1]!==x||t[2]!==W?(Z={defaultSizeRelation:.3333333333333333,direction:"horizontal",initiallyHidden:W,onHiddenElementChange(lt){lt==="first"&&x(null)},sizeThresholdSecond:200,storageKey:"docExplorerFlex"},t[1]=x,t[2]=W,t[3]=Z):Z=t[3];const O=Al(Z);let N;t[4]===Symbol.for("react.memo_cache_sentinel")?(N={direction:"horizontal",storageKey:"editorFlex"},t[4]=N):N=t[4];const M=Al(N);let q;t[5]!==k||t[6]!==T?(q=lt=>{if(!(lt==="variables"||lt==="headers"))return typeof lt=="boolean"?lt?void 0:"second":T||k?void 0:"second"},t[5]=k,t[6]=T,t[7]=q):q=t[7];let Q;t[8]!==i||t[9]!==q?(Q=q(i),t[8]=i,t[9]=q,t[10]=Q):Q=t[10];let $;t[11]!==Q?($={defaultSizeRelation:3,direction:"vertical",initiallyHidden:Q,sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"},t[11]=Q,t[12]=$):$=t[12];const B=Al($);let oe;t[13]!==i||t[14]!==k||t[15]!==T||t[16]!==h?(oe=()=>i==="variables"||i==="headers"?i:!T&&k&&h?"headers":"variables",t[13]=i,t[14]=k,t[15]=T,t[16]=h,t[17]=oe):oe=t[17];const[de,V]=g.useState(oe);let re;if(t[18]!==s){let lt,mn;t[20]===Symbol.for("react.memo_cache_sentinel")?(lt=y.jsx(ki.Logo,{}),mn=y.jsx(ki.Toolbar,{}),t[20]=lt,t[21]=mn):(lt=t[20],mn=t[21]),re=g.Children.toArray(s).reduce(dR,{logo:lt,toolbar:mn,children:[]}),t[18]=s,t[19]=re}else re=t[19];const{logo:L,toolbar:ee,footer:ue,children:ie}=re;let H;t[22]!==O?(H=function(){O.hiddenElement==="first"&&O.setHiddenElement(null)},t[22]=O,t[23]=H):H=t[23];const ce=H;let ae;t[24]!==B?(ae=lt=>{B.hiddenElement==="second"&&B.setHiddenElement(null);const mn=lt.currentTarget.dataset.name;V(mn)},t[24]=B,t[25]=ae):ae=t[25];const ke=ae;let we;t[26]!==B?(we=()=>{B.setHiddenElement(B.hiddenElement==="second"?null:"second")},t[26]=B,t[27]=we):we=t[27];const R=we;let C;t[28]!==v||t[29]!==o?(C=async lt=>{const mn=lt.currentTarget.previousSibling,Jo=Number(mn.id.replace(ec,""));(!o||await o(Jo))&&v(Jo)},t[28]=v,t[29]=o,t[30]=C):C=t[30];const te=C;let F;t[31]!==_?(F=lt=>{const mn=Number(lt.currentTarget.id.replace(ec,""));_(mn)},t[31]=_,t[32]=F):F=t[32];const S=F,K=`${B.hiddenElement==="second"?"Show":"Hide"} editor tools`,le=B.hiddenElement==="second"?U6:j6,he=M.firstRef;let ne;t[33]!==ce||t[34]!==u?(ne=y.jsx($A,{onClickReference:ce,onEdit:u}),t[33]=ce,t[34]=u,t[35]=ne):ne=t[35];let P;t[36]===Symbol.for("react.memo_cache_sentinel")?(P=y.jsx(LA,{}),t[36]=P):P=t[36];let Y;t[37]!==ee?(Y=y.jsxs("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands",children:[P,ee]}),t[37]=ee,t[38]=Y):Y=t[38];let se;t[39]!==B.firstRef||t[40]!==ne||t[41]!==Y?(se=y.jsxs("section",{className:"graphiql-query-editor","aria-label":"Operation Editor",ref:B.firstRef,children:[ne,Y]}),t[39]=B.firstRef,t[40]=ne,t[41]=Y,t[42]=se):se=t[42];const fe=B.dragBarRef,be=de==="variables"&&B.hiddenElement!=="second"&&"active";let Me;t[43]!==be?(Me=We(be),t[43]=be,t[44]=Me):Me=t[44];let pe;t[45]!==ke||t[46]!==Me?(pe=y.jsx(Ot,{type:"button",className:Me,onClick:ke,"data-name":"variables",children:"Variables"}),t[45]=ke,t[46]=Me,t[47]=pe):pe=t[47];let Ee;t[48]!==de||t[49]!==B.hiddenElement||t[50]!==ke||t[51]!==h?(Ee=h&&y.jsx(Ot,{type:"button",className:We(de==="headers"&&B.hiddenElement!=="second"&&"active"),onClick:ke,"data-name":"headers",children:"Headers"}),t[48]=de,t[49]=B.hiddenElement,t[50]=ke,t[51]=h,t[52]=Ee):Ee=t[52];let ye;t[53]!==le?(ye=y.jsx(le,{className:"graphiql-chevron-icon","aria-hidden":"true"}),t[53]=le,t[54]=ye):ye=t[54];let Ie;t[55]!==K||t[56]!==ye||t[57]!==R?(Ie=y.jsx(Ot,{type:"button",onClick:R,"aria-label":K,className:"graphiql-toggle-editor-tools",children:ye}),t[55]=K,t[56]=ye,t[57]=R,t[58]=Ie):Ie=t[58];let Ae;t[59]!==K||t[60]!==Ie?(Ae=y.jsx(cn,{label:K,children:Ie}),t[59]=K,t[60]=Ie,t[61]=Ae):Ae=t[61];let Be;t[62]!==B.dragBarRef||t[63]!==pe||t[64]!==Ee||t[65]!==Ae?(Be=y.jsxs("div",{ref:fe,className:"graphiql-editor-tools",children:[pe,Ee,Ae]}),t[62]=B.dragBarRef,t[63]=pe,t[64]=Ee,t[65]=Ae,t[66]=Be):Be=t[66];const tt=de==="variables"?"Variables":"Headers",Pt=de==="variables"?"":"hidden";let ut;t[67]!==l||t[68]!==Pt?(ut=y.jsx(UA,{className:Pt,onEdit:l}),t[67]=l,t[68]=Pt,t[69]=ut):ut=t[69];let It;t[70]!==de||t[71]!==h||t[72]!==c?(It=h&&y.jsx(RA,{className:de==="headers"?"":"hidden",onEdit:c}),t[70]=de,t[71]=h,t[72]=c,t[73]=It):It=t[73];let kt;t[74]!==B.secondRef||t[75]!==tt||t[76]!==ut||t[77]!==It?(kt=y.jsxs("section",{className:"graphiql-editor-tool","aria-label":tt,ref:B.secondRef,children:[ut,It]}),t[74]=B.secondRef,t[75]=tt,t[76]=ut,t[77]=It,t[78]=kt):kt=t[78];let Sn;t[79]!==M.firstRef||t[80]!==se||t[81]!==Be||t[82]!==kt?(Sn=y.jsxs("div",{className:"graphiql-editors",ref:he,children:[se,Be,kt]}),t[79]=M.firstRef,t[80]=se,t[81]=Be,t[82]=kt,t[83]=Sn):Sn=t[83];const Ft=Sn,Br=g.useRef(null);let pn;t[84]!==a?(pn=We("graphiql-container",a),t[84]=a,t[85]=pn):pn=t[85];let kn;t[86]!==n||t[87]!==O.setHiddenElement||t[88]!==d?(kn=y.jsx(uR,{forcedTheme:n,showPersistHeadersSettings:d,setHiddenElement:O.setHiddenElement}),t[86]=n,t[87]=O.setHiddenElement,t[88]=d,t[89]=kn):kn=t[89];let Se;t[90]===Symbol.for("react.memo_cache_sentinel")?(Se={minWidth:"200px"},t[90]=Se):Se=t[90];let Ne;t[91]!==z?(Ne=z&&y.jsx(z,{}),t[91]=z,t[92]=Ne):Ne=t[92];let Ge;t[93]!==O.firstRef||t[94]!==Ne?(Ge=y.jsx("div",{ref:O.firstRef,className:"graphiql-plugin",style:Se,children:Ne}),t[93]=O.firstRef,t[94]=Ne,t[95]=Ge):Ge=t[95];let Je;t[96]!==O.dragBarRef||t[97]!==D?(Je=D&&y.jsx("div",{className:"graphiql-horizontal-drag-bar",ref:O.dragBarRef}),t[96]=O.dragBarRef,t[97]=D,t[98]=Je):Je=t[98];const Mt=O.secondRef;let Re;t[99]!==I||t[100]!==S||t[101]!==te||t[102]!==A?(Re=A.map((lt,mn,Jo)=>y.jsxs(Ul,{dragConstraints:Br,value:lt,isActive:mn===I,children:[y.jsx(Ul.Button,{"aria-controls":"graphiql-session",id:`graphiql-session-tab-${mn}`,title:lt.title,onClick:S,children:lt.title}),Jo.length>1&&y.jsx(Ul.Close,{onClick:te})]},lt.id)),t[99]=I,t[100]=S,t[101]=te,t[102]=A,t[103]=Re):Re=t[103];let Ye;t[104]!==b||t[105]!==Re||t[106]!==A?(Ye=y.jsx(ox,{ref:Br,values:A,onReorder:b,"aria-label":"Select active operation",className:"no-scrollbar",children:Re}),t[104]=b,t[105]=Re,t[106]=A,t[107]=Ye):Ye=t[107];let ot;t[108]===Symbol.for("react.memo_cache_sentinel")?(ot=y.jsx(s_,{"aria-hidden":"true"}),t[108]=ot):ot=t[108];let sn;t[109]!==p?(sn=y.jsx(cn,{label:sb.newTab,children:y.jsx(Ot,{type:"button",className:"graphiql-tab-add",onClick:p,"aria-label":sb.newTab,children:ot})}),t[109]=p,t[110]=sn):sn=t[110];let ir;t[111]!==L||t[112]!==Ye||t[113]!==sn?(ir=y.jsxs("div",{className:"graphiql-session-header",children:[Ye,sn,L]}),t[111]=L,t[112]=Ye,t[113]=sn,t[114]=ir):ir=t[114];const ai=`${ec}${I}`;let An;t[115]!==M.dragBarRef?(An=y.jsx("div",{className:"graphiql-horizontal-drag-bar",ref:M.dragBarRef}),t[115]=M.dragBarRef,t[116]=An):An=t[116];let Dn;t[117]!==U?(Dn=U&&y.jsx(Hd,{}),t[117]=U,t[118]=Dn):Dn=t[118];let zt;t[119]!==f?(zt=y.jsx(jA,{responseTooltip:f}),t[119]=f,t[120]=zt):zt=t[120];let Xt;t[121]!==M.secondRef||t[122]!==ue||t[123]!==Dn||t[124]!==zt?(Xt=y.jsxs("div",{className:"graphiql-response",ref:M.secondRef,children:[Dn,zt,ue]}),t[121]=M.secondRef,t[122]=ue,t[123]=Dn,t[124]=zt,t[125]=Xt):Xt=t[125];let sr;t[126]!==Ft||t[127]!==ai||t[128]!==An||t[129]!==Xt?(sr=y.jsxs("div",{role:"tabpanel",id:"graphiql-session","aria-labelledby":ai,children:[Ft,An,Xt]}),t[126]=Ft,t[127]=ai,t[128]=An,t[129]=Xt,t[130]=sr):sr=t[130];let or;t[131]!==O.secondRef||t[132]!==ir||t[133]!==sr?(or=y.jsxs("div",{ref:Mt,className:"graphiql-sessions",children:[ir,sr]}),t[131]=O.secondRef,t[132]=ir,t[133]=sr,t[134]=or):or=t[134];let Sr;t[135]!==Ge||t[136]!==Je||t[137]!==or?(Sr=y.jsxs("div",{className:"graphiql-main",children:[Ge,Je,or]}),t[135]=Ge,t[136]=Je,t[137]=or,t[138]=Sr):Sr=t[138];let Bi;t[139]!==pn||t[140]!==kn||t[141]!==Sr?(Bi=y.jsxs("div",{className:pn,children:[kn,Sr]}),t[139]=pn,t[140]=kn,t[141]=Sr,t[142]=Bi):Bi=t[142];let Xo;return t[143]!==ie||t[144]!==Bi?(Xo=y.jsxs(cn.Provider,{children:[Bi,ie]}),t[143]=ie,t[144]=Bi,t[145]=Xo):Xo=t[145],Xo};function fR(e){if(e&&typeof e=="object"&&"type"in e&&typeof e.type=="function")return e.type}const ki=Object.assign(lR,{Logo:nR,Toolbar:eR,Footer:ZO});function dR(e,t){e:switch(fR(t)){case ki.Logo:{e.logo=t;break e}case ki.Toolbar:{e.toolbar=t;break e}case ki.Footer:{e.footer=t;break e}default:e.children.push(t)}return e}var Qi={},Vs={};const hR=LE(fw);var ob;function pR(){if(ob)return Vs;ob=1,Object.defineProperty(Vs,"__esModule",{value:!0});var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},t=function(){function R(C,te){var F=[],S=!0,K=!1,le=void 0;try{for(var he=C[Symbol.iterator](),ne;!(S=(ne=he.next()).done)&&(F.push(ne.value),!(te&&F.length===te));S=!0);}catch(P){K=!0,le=P}finally{try{!S&&he.return&&he.return()}finally{if(K)throw le}}return F}return function(C,te){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return R(C,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=Object.assign||function(R){for(var C=1;C<arguments.length;C++){var te=arguments[C];for(var F in te)Object.prototype.hasOwnProperty.call(te,F)&&(R[F]=te[F])}return R},r=function(){function R(C,te){for(var F=0;F<te.length;F++){var S=te[F];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(C,S.key,S)}}return function(C,te,F){return te&&R(C.prototype,te),F&&R(C,F),C}}();Vs.defaultValue=z;var i=Of(),s=a(i),o=hR;function a(R){if(R&&R.__esModule)return R;var C={};if(R!=null)for(var te in R)Object.prototype.hasOwnProperty.call(R,te)&&(C[te]=R[te]);return C.default=R,C}function u(R,C,te){return C in R?Object.defineProperty(R,C,{value:te,enumerable:!0,configurable:!0,writable:!0}):R[C]=te,R}function l(R){if(Array.isArray(R)){for(var C=0,te=Array(R.length);C<R.length;C++)te[C]=R[C];return te}else return Array.from(R)}function c(R,C){if(!(R instanceof C))throw new TypeError("Cannot call a class as a function")}function f(R,C){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:R}function d(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);R.prototype=Object.create(C&&C.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(R,C):R.__proto__=C)}function h(R){return R.charAt(0).toUpperCase()+R.slice(1)}var p={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},b=s.createElement("svg",{width:"12",height:"9"},s.createElement("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),v=s.createElement("svg",{width:"12",height:"9"},s.createElement("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),_=s.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z",fill:"#666"})),x=s.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z",fill:"#CCC"}));function E(R){return R.checked?R.styleConfig.checkboxChecked:R.styleConfig.checkboxUnchecked}function T(R){var C=R.getFields();if(C.id){var te=["id"];return C.email?te.push("email"):C.name&&te.push("name"),te}if(C.edges)return["edges"];if(C.node)return["node"];if(C.nodes)return["nodes"];var F=[];return Object.keys(C).forEach(function(S){(0,o.isLeafType)(C[S].type)&&F.push(S)}),F.length?F.slice(0,2):["__typename"]}function k(R){return(0,o.isNonNullType)(R.type)&&R.defaultValue===void 0}function A(R){for(var C=R;(0,o.isWrappingType)(C);)C=C.ofType;return C}function I(R){for(var C=R;(0,o.isWrappingType)(C);)C=C.ofType;return C}function U(R,C){if(typeof C!="string"&&C.kind==="VariableDefinition")return C.variable;if((0,o.isScalarType)(R))try{switch(R.name){case"String":return{kind:"StringValue",value:String(R.parseValue(C))};case"Float":return{kind:"FloatValue",value:String(R.parseValue(parseFloat(C)))};case"Int":return{kind:"IntValue",value:String(R.parseValue(parseInt(C,10)))};case"Boolean":try{var te=JSON.parse(C);return typeof te=="boolean"?{kind:"BooleanValue",value:te}:{kind:"BooleanValue",value:!1}}catch{return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(R.parseValue(C))}}}catch(S){return console.error("error coercing arg value",S,C),{kind:"StringValue",value:C}}else try{var F=R.parseValue(C);return F?{kind:"EnumValue",value:String(F)}:{kind:"EnumValue",value:R.getValues()[0].name}}catch{return{kind:"EnumValue",value:R.getValues()[0].name}}}var D=function(R){d(C,R);function C(){var te,F,S,K;c(this,C);for(var le=arguments.length,he=Array(le),ne=0;ne<le;ne++)he[ne]=arguments[ne];return K=(F=(S=f(this,(te=C.__proto__||Object.getPrototypeOf(C)).call.apply(te,[this].concat(he))),S),S._getArgSelection=function(){return S.props.selection.fields.find(function(P){return P.name.value===S.props.arg.name})},S._removeArg=function(){var P=S.props.selection,Y=S._getArgSelection();S._previousArgSelection=Y,S.props.modifyFields(P.fields.filter(function(se){return se!==Y}),!0)},S._addArg=function(){var P=S.props,Y=P.selection,se=P.arg,fe=P.getDefaultScalarArgValue,be=P.parentField,Me=P.makeDefaultArg,pe=I(se.type),Ee=null;if(S._previousArgSelection)Ee=S._previousArgSelection;else if((0,o.isInputObjectType)(pe)){var ye=pe.getFields();Ee={kind:"ObjectField",name:{kind:"Name",value:se.name},value:{kind:"ObjectValue",fields:B(fe,Me,be,Object.keys(ye).map(function(Ie){return ye[Ie]}))}}}else(0,o.isLeafType)(pe)&&(Ee={kind:"ObjectField",name:{kind:"Name",value:se.name},value:fe(be,se,pe)});if(!Ee)console.error("Unable to add arg for argType",pe);else return S.props.modifyFields([].concat(l(Y.fields||[]),[Ee]),!0)},S._setArgValue=function(P,Y){var se=!1,fe=!1,be=!1;try{P.kind==="VariableDefinition"?fe=!0:P===null||typeof P>"u"?se=!0:typeof P.kind=="string"&&(be=!0)}catch{}var Me=S.props.selection,pe=S._getArgSelection();if(!pe){console.error("missing arg selection when setting arg value");return}var Ee=I(S.props.arg.type),ye=(0,o.isLeafType)(Ee)||fe||se||be;if(!ye){console.warn("Unable to handle non leaf types in InputArgView.setArgValue",P);return}var Ie=void 0,Ae=void 0;P===null||typeof P>"u"?Ae=null:!P.target&&P.kind&&P.kind==="VariableDefinition"?(Ie=P,Ae=Ie.variable):typeof P.kind=="string"?Ae=P:P.target&&typeof P.target.value=="string"&&(Ie=P.target.value,Ae=U(Ee,Ie));var Be=S.props.modifyFields((Me.fields||[]).map(function(tt){var Pt=tt===pe,ut=Pt?n({},tt,{value:Ae}):tt;return ut}),Y);return Be},S._modifyChildFields=function(P){return S.props.modifyFields(S.props.selection.fields.map(function(Y){return Y.name.value===S.props.arg.name?n({},Y,{value:{kind:"ObjectValue",fields:P}}):Y}),!0)},F),f(S,K)}return r(C,[{key:"render",value:function(){var F=this.props,S=F.arg,K=F.parentField,le=this._getArgSelection();return s.createElement(q,{argValue:le?le.value:null,arg:S,parentField:K,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),C}(s.PureComponent);function z(R){if((0,o.isEnumType)(R))return{kind:"EnumValue",value:R.getValues()[0].name};switch(R.name){case"String":return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1};default:return{kind:"StringValue",value:""}}}function W(R,C,te){return z(te)}var Z=function(R){d(C,R);function C(){var te,F,S,K;c(this,C);for(var le=arguments.length,he=Array(le),ne=0;ne<le;ne++)he[ne]=arguments[ne];return K=(F=(S=f(this,(te=C.__proto__||Object.getPrototypeOf(C)).call.apply(te,[this].concat(he))),S),S._getArgSelection=function(){var P=S.props.selection;return(P.arguments||[]).find(function(Y){return Y.name.value===S.props.arg.name})},S._removeArg=function(P){var Y=S.props.selection,se=S._getArgSelection();return S._previousArgSelection=se,S.props.modifyArguments((Y.arguments||[]).filter(function(fe){return fe!==se}),P)},S._addArg=function(P){var Y=S.props,se=Y.selection,fe=Y.getDefaultScalarArgValue,be=Y.makeDefaultArg,Me=Y.parentField,pe=Y.arg,Ee=I(pe.type),ye=null;if(S._previousArgSelection)ye=S._previousArgSelection;else if((0,o.isInputObjectType)(Ee)){var Ie=Ee.getFields();ye={kind:"Argument",name:{kind:"Name",value:pe.name},value:{kind:"ObjectValue",fields:B(fe,be,Me,Object.keys(Ie).map(function(Ae){return Ie[Ae]}))}}}else(0,o.isLeafType)(Ee)&&(ye={kind:"Argument",name:{kind:"Name",value:pe.name},value:fe(Me,pe,Ee)});return ye?S.props.modifyArguments([].concat(l(se.arguments||[]),[ye]),P):(console.error("Unable to add arg for argType",Ee),null)},S._setArgValue=function(P,Y){var se=!1,fe=!1,be=!1;try{P.kind==="VariableDefinition"?fe=!0:P===null||typeof P>"u"?se=!0:typeof P.kind=="string"&&(be=!0)}catch{}var Me=S.props.selection,pe=S._getArgSelection();if(!pe&&!fe){console.error("missing arg selection when setting arg value");return}var Ee=I(S.props.arg.type),ye=(0,o.isLeafType)(Ee)||fe||se||be;if(!ye){console.warn("Unable to handle non leaf types in ArgView._setArgValue");return}var Ie=void 0,Ae=void 0;return P===null||typeof P>"u"?Ae=null:P.target&&typeof P.target.value=="string"?(Ie=P.target.value,Ae=U(Ee,Ie)):!P.target&&P.kind==="VariableDefinition"?(Ie=P,Ae=Ie.variable):typeof P.kind=="string"&&(Ae=P),S.props.modifyArguments((Me.arguments||[]).map(function(Be){return Be===pe?n({},Be,{value:Ae}):Be}),Y)},S._setArgFields=function(P,Y){var se=S.props.selection,fe=S._getArgSelection();if(!fe){console.error("missing arg selection when setting arg value");return}return S.props.modifyArguments((se.arguments||[]).map(function(be){return be===fe?n({},be,{value:{kind:"ObjectValue",fields:P}}):be}),Y)},F),f(S,K)}return r(C,[{key:"render",value:function(){var F=this.props,S=F.arg,K=F.parentField,le=this._getArgSelection();return s.createElement(q,{argValue:le?le.value:null,arg:S,parentField:K,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),C}(s.PureComponent);function O(R){return R.ctrlKey&&R.key==="Enter"}function N(R){return R!=="FragmentDefinition"}var M=function(R){d(C,R);function C(){var te,F,S,K;c(this,C);for(var le=arguments.length,he=Array(le),ne=0;ne<le;ne++)he[ne]=arguments[ne];return K=(F=(S=f(this,(te=C.__proto__||Object.getPrototypeOf(C)).call.apply(te,[this].concat(he))),S),S._handleChange=function(P){S.props.setArgValue(P,!0)},F),f(S,K)}return r(C,[{key:"componentDidMount",value:function(){var F=this._ref,S=document.activeElement;F&&S&&!(S instanceof HTMLTextAreaElement)&&(F.focus(),F.setSelectionRange(0,F.value.length))}},{key:"render",value:function(){var F=this,S=this.props,K=S.arg,le=S.argValue,he=S.styleConfig,ne=I(K.type),P=typeof le.value=="string"?le.value:"",Y=this.props.argValue.kind==="StringValue"?he.colors.string:he.colors.number;return s.createElement("span",{style:{color:Y}},ne.name==="String"?'"':"",s.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(1,Math.min(15,P.length))+"ch",color:Y},ref:function(fe){F._ref=fe},type:"text",onChange:this._handleChange,value:P}),ne.name==="String"?'"':"")}}]),C}(s.PureComponent),q=function(R){d(C,R);function C(){var te,F,S,K;c(this,C);for(var le=arguments.length,he=Array(le),ne=0;ne<le;ne++)he[ne]=arguments[ne];return K=(F=(S=f(this,(te=C.__proto__||Object.getPrototypeOf(C)).call.apply(te,[this].concat(he))),S),S.state={displayArgActions:!1},F),f(S,K)}return r(C,[{key:"render",value:function(){var F=this,S=this.props,K=S.argValue,le=S.arg,he=S.styleConfig,ne=I(le.type),P=null;if(K){if(K.kind==="Variable")P=s.createElement("span",{style:{color:he.colors.variable}},"$",K.name.value);else if((0,o.isScalarType)(ne))ne.name==="Boolean"?P=s.createElement("select",{style:{color:he.colors.builtin},onChange:this.props.setArgValue,value:K.kind==="BooleanValue"?K.value:void 0},s.createElement("option",{key:"true",value:"true"},"true"),s.createElement("option",{key:"false",value:"false"},"false")):P=s.createElement(M,{setArgValue:this.props.setArgValue,arg:le,argValue:K,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,o.isEnumType)(ne))K.kind==="EnumValue"?P=s.createElement("select",{style:{backgroundColor:"white",color:he.colors.string2},onChange:this.props.setArgValue,value:K.value},ne.getValues().map(function(pe){return s.createElement("option",{key:pe.name,value:pe.name},pe.name)})):console.error("arg mismatch between arg and selection",ne,K);else if((0,o.isInputObjectType)(ne))if(K.kind==="ObjectValue"){var Y=ne.getFields();P=s.createElement("div",{style:{marginLeft:16}},Object.keys(Y).sort().map(function(pe){return s.createElement(D,{key:pe,arg:Y[pe],parentField:F.props.parentField,selection:K,modifyFields:F.props.setArgFields,getDefaultScalarArgValue:F.props.getDefaultScalarArgValue,makeDefaultArg:F.props.makeDefaultArg,onRunOperation:F.props.onRunOperation,styleConfig:F.props.styleConfig,onCommit:F.props.onCommit,definition:F.props.definition})}))}else console.error("arg mismatch between arg and selection",ne,K)}var se=function(){var Ee=le.name,ye=(F.props.definition.variableDefinitions||[]).filter(function(Re){return Re.variable.name.value.startsWith(Ee)}).length,Ie=void 0;ye>0?Ie=""+Ee+ye:Ie=Ee;var Ae=le.type.toString(),Be=(0,o.parseType)(Ae),tt={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:Ie}},type:Be,directives:[]},Pt=function(Ye){return(F.props.definition.variableDefinitions||[]).find(function(ot){return ot.variable.name.value===Ye})},ut=void 0,It={};if(typeof K<"u"&&K!==null){var kt=(0,o.visit)(K,{Variable:function(Ye){var ot=Ye.name.value,sn=Pt(ot);if(It[ot]=It[ot]+1||1,!!sn)return sn.defaultValue}}),Sn=tt.type.kind==="NonNullType",Ft=Sn?n({},tt,{type:tt.type.type}):tt;ut=n({},Ft,{defaultValue:kt})}else ut=tt;var Br=Object.entries(It).filter(function(Re){var Ye=t(Re,2);Ye[0];var ot=Ye[1];return ot<2}).map(function(Re){var Ye=t(Re,2),ot=Ye[0];return Ye[1],ot});if(ut){var pn=F.props.setArgValue(ut,!1);if(pn){var kn=pn.definitions.find(function(Re){return Re.operation&&Re.name&&Re.name.value&&F.props.definition.name&&F.props.definition.name.value?Re.name.value===F.props.definition.name.value:!1}),Se=[].concat(l(kn.variableDefinitions||[]),[ut]).filter(function(Re){return Br.indexOf(Re.variable.name.value)===-1}),Ne=n({},kn,{variableDefinitions:Se}),Ge=pn.definitions,Je=Ge.map(function(Re){return kn===Re?Ne:Re}),Mt=n({},pn,{definitions:Je});F.props.onCommit(Mt)}}},fe=function(){if(!(!K||!K.name||!K.name.value)){var Ee=K.name.value,ye=(F.props.definition.variableDefinitions||[]).find(function(Ft){return Ft.variable.name.value===Ee});if(ye){var Ie=ye.defaultValue,Ae=F.props.setArgValue(Ie,{commit:!1});if(Ae){var Be=Ae.definitions.find(function(Ft){return Ft.name.value===F.props.definition.name.value});if(!Be)return;var tt=0;(0,o.visit)(Be,{Variable:function(Br){Br.name.value===Ee&&(tt=tt+1)}});var Pt=Be.variableDefinitions||[];tt<2&&(Pt=Pt.filter(function(Ft){return Ft.variable.name.value!==Ee}));var ut=n({},Be,{variableDefinitions:Pt}),It=Ae.definitions,kt=It.map(function(Ft){return Be===Ft?ut:Ft}),Sn=n({},Ae,{definitions:kt});F.props.onCommit(Sn)}}}},be=K&&K.kind==="Variable",Me=this.state.displayArgActions?s.createElement("button",{type:"submit",className:"toolbar-button",title:be?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(Ee){Ee.preventDefault(),Ee.stopPropagation(),be?fe():se()},style:he.styles.actionButtonStyle},s.createElement("span",{style:{color:he.colors.variable}},"$")):null;return s.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":le.name,"data-arg-type":ne.name,className:"graphiql-explorer-"+le.name},s.createElement("span",{style:{cursor:"pointer"},onClick:function(Ee){var ye=!K;ye?F.props.addArg(!0):F.props.removeArg(!0),F.setState({displayArgActions:ye})}},(0,o.isInputObjectType)(ne)?s.createElement("span",null,K?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):s.createElement(E,{checked:!!K,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:he.colors.attribute},title:le.description,onMouseEnter:function(){K!==null&&typeof K<"u"&&F.setState({displayArgActions:!0})},onMouseLeave:function(){return F.setState({displayArgActions:!1})}},le.name,k(le)?"*":"",": ",Me," ")," "),P||s.createElement("span",null)," ")}}]),C}(s.PureComponent),Q=function(R){d(C,R);function C(){var te,F,S,K;c(this,C);for(var le=arguments.length,he=Array(le),ne=0;ne<le;ne++)he[ne]=arguments[ne];return K=(F=(S=f(this,(te=C.__proto__||Object.getPrototypeOf(C)).call.apply(te,[this].concat(he))),S),S._addFragment=function(){S.props.modifySelections([].concat(l(S.props.selections),[S._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:S.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:S.props.getDefaultFieldNames(S.props.implementingType).map(function(P){return{kind:"Field",name:{kind:"Name",value:P}}})}}]))},S._removeFragment=function(){var P=S._getSelection();S._previousSelection=P,S.props.modifySelections(S.props.selections.filter(function(Y){return Y!==P}))},S._getSelection=function(){var P=S.props.selections.find(function(Y){return Y.kind==="InlineFragment"&&Y.typeCondition&&S.props.implementingType.name===Y.typeCondition.name.value});if(!P)return null;if(P.kind==="InlineFragment")return P},S._modifyChildSelections=function(P,Y){var se=S._getSelection();return S.props.modifySelections(S.props.selections.map(function(fe){return fe===se?{directives:fe.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:S.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:P}}:fe}),Y)},F),f(S,K)}return r(C,[{key:"render",value:function(){var F=this,S=this.props,K=S.implementingType,le=S.schema,he=S.getDefaultFieldNames,ne=S.styleConfig,P=this._getSelection(),Y=K.getFields(),se=P?P.selectionSet?P.selectionSet.selections:[]:[];return s.createElement("div",{className:"graphiql-explorer-"+K.name},s.createElement("span",{style:{cursor:"pointer"},onClick:P?this._removeFragment:this._addFragment},s.createElement(E,{checked:!!P,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:ne.colors.atom}},this.props.implementingType.name)),P?s.createElement("div",{style:{marginLeft:16}},Object.keys(Y).sort().map(function(fe){return s.createElement(de,{key:fe,field:Y[fe],selections:se,modifySelections:F._modifyChildSelections,schema:le,getDefaultFieldNames:he,getDefaultScalarArgValue:F.props.getDefaultScalarArgValue,makeDefaultArg:F.props.makeDefaultArg,onRunOperation:F.props.onRunOperation,onCommit:F.props.onCommit,styleConfig:F.props.styleConfig,definition:F.props.definition,availableFragments:F.props.availableFragments})})):null)}}]),C}(s.PureComponent),$=function(R){d(C,R);function C(){var te,F,S,K;c(this,C);for(var le=arguments.length,he=Array(le),ne=0;ne<le;ne++)he[ne]=arguments[ne];return K=(F=(S=f(this,(te=C.__proto__||Object.getPrototypeOf(C)).call.apply(te,[this].concat(he))),S),S._addFragment=function(){S.props.modifySelections([].concat(l(S.props.selections),[S._previousSelection||{kind:"FragmentSpread",name:S.props.fragment.name}]))},S._removeFragment=function(){var P=S._getSelection();S._previousSelection=P,S.props.modifySelections(S.props.selections.filter(function(Y){var se=Y.kind==="FragmentSpread"&&Y.name.value===S.props.fragment.name.value;return!se}))},S._getSelection=function(){var P=S.props.selections.find(function(Y){return Y.kind==="FragmentSpread"&&Y.name.value===S.props.fragment.name.value});return P},F),f(S,K)}return r(C,[{key:"render",value:function(){var F=this.props.styleConfig,S=this._getSelection();return s.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},s.createElement("span",{style:{cursor:"pointer"},onClick:S?this._removeFragment:this._addFragment},s.createElement(E,{checked:!!S,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:F.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),C}(s.PureComponent);function B(R,C,te,F){var S=[],K=!0,le=!1,he=void 0;try{for(var ne=F[Symbol.iterator](),P;!(K=(P=ne.next()).done);K=!0){var Y=P.value;if((0,o.isRequiredInputField)(Y)||C&&C(te,Y)){var se=I(Y.type);(0,o.isInputObjectType)(se)?function(){var fe=se.getFields();S.push({kind:"ObjectField",name:{kind:"Name",value:Y.name},value:{kind:"ObjectValue",fields:B(R,C,te,Object.keys(fe).map(function(be){return fe[be]}))}})}():(0,o.isLeafType)(se)&&S.push({kind:"ObjectField",name:{kind:"Name",value:Y.name},value:R(te,Y,se)})}}}catch(fe){le=!0,he=fe}finally{try{!K&&ne.return&&ne.return()}finally{if(le)throw he}}return S}function oe(R,C,te){var F=[],S=!0,K=!1,le=void 0;try{for(var he=te.args[Symbol.iterator](),ne;!(S=(ne=he.next()).done);S=!0){var P=ne.value;if(k(P)||C&&C(te,P)){var Y=I(P.type);(0,o.isInputObjectType)(Y)?function(){var se=Y.getFields();F.push({kind:"Argument",name:{kind:"Name",value:P.name},value:{kind:"ObjectValue",fields:B(R,C,te,Object.keys(se).map(function(fe){return se[fe]}))}})}():(0,o.isLeafType)(Y)&&F.push({kind:"Argument",name:{kind:"Name",value:P.name},value:R(te,P,Y)})}}}catch(se){K=!0,le=se}finally{try{!S&&he.return&&he.return()}finally{if(K)throw le}}return F}var de=function(R){d(C,R);function C(){var te,F,S,K;c(this,C);for(var le=arguments.length,he=Array(le),ne=0;ne<le;ne++)he[ne]=arguments[ne];return K=(F=(S=f(this,(te=C.__proto__||Object.getPrototypeOf(C)).call.apply(te,[this].concat(he))),S),S.state={displayFieldActions:!1},S._addAllFieldsToSelections=function(P){var Y=P?Object.keys(P).map(function(be){return{kind:"Field",name:{kind:"Name",value:be},arguments:[]}}):[],se={kind:"SelectionSet",selections:Y},fe=[].concat(l(S.props.selections.filter(function(be){return be.kind==="InlineFragment"?!0:be.name.value!==S.props.field.name})),[{kind:"Field",name:{kind:"Name",value:S.props.field.name},arguments:oe(S.props.getDefaultScalarArgValue,S.props.makeDefaultArg,S.props.field),selectionSet:se}]);S.props.modifySelections(fe)},S._addFieldToSelections=function(P){var Y=[].concat(l(S.props.selections),[S._previousSelection||{kind:"Field",name:{kind:"Name",value:S.props.field.name},arguments:oe(S.props.getDefaultScalarArgValue,S.props.makeDefaultArg,S.props.field)}]);S.props.modifySelections(Y)},S._handleUpdateSelections=function(P){var Y=S._getSelection();if(Y&&!P.altKey)S._removeFieldFromSelections();else{var se=(0,o.getNamedType)(S.props.field.type),fe=(0,o.isObjectType)(se)&&se.getFields(),be=!!fe&&P.altKey;be?S._addAllFieldsToSelections(fe):S._addFieldToSelections(fe)}},S._removeFieldFromSelections=function(){var P=S._getSelection();S._previousSelection=P,S.props.modifySelections(S.props.selections.filter(function(Y){return Y!==P}))},S._getSelection=function(){var P=S.props.selections.find(function(Y){return Y.kind==="Field"&&S.props.field.name===Y.name.value});if(!P)return null;if(P.kind==="Field")return P},S._setArguments=function(P,Y){var se=S._getSelection();if(!se){console.error("Missing selection when setting arguments",P);return}return S.props.modifySelections(S.props.selections.map(function(fe){return fe===se?{alias:se.alias,arguments:P,directives:se.directives,kind:"Field",name:se.name,selectionSet:se.selectionSet}:fe}),Y)},S._modifyChildSelections=function(P,Y){return S.props.modifySelections(S.props.selections.map(function(se){if(se.kind==="Field"&&S.props.field.name===se.name.value){if(se.kind!=="Field")throw new Error("invalid selection");return{alias:se.alias,arguments:se.arguments,directives:se.directives,kind:"Field",name:se.name,selectionSet:{kind:"SelectionSet",selections:P}}}return se}),Y)},F),f(S,K)}return r(C,[{key:"render",value:function(){var F=this,S=this.props,K=S.field,le=S.schema,he=S.getDefaultFieldNames,ne=S.styleConfig,P=this._getSelection(),Y=A(K.type),se=K.args.sort(function(ye,Ie){return ye.name.localeCompare(Ie.name)}),fe="graphiql-explorer-node graphiql-explorer-"+K.name;K.isDeprecated&&(fe+=" graphiql-explorer-deprecated");var be=(0,o.isObjectType)(Y)||(0,o.isInterfaceType)(Y)||(0,o.isUnionType)(Y)?this.props.availableFragments&&this.props.availableFragments[Y.name]:null,Me=s.createElement("div",{className:fe},s.createElement("span",{title:K.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":K.name,"data-field-type":Y.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){var Ie=(0,o.isObjectType)(Y)&&P&&P.selectionSet&&P.selectionSet.selections.filter(function(Ae){return Ae.kind!=="FragmentSpread"}).length>0;Ie&&F.setState({displayFieldActions:!0})},onMouseLeave:function(){return F.setState({displayFieldActions:!1})}},(0,o.isObjectType)(Y)?s.createElement("span",null,P?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,o.isObjectType)(Y)?null:s.createElement(E,{checked:!!P,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:ne.colors.property},className:"graphiql-explorer-field-view"},K.name),this.state.displayFieldActions?s.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(Ie){Ie.preventDefault(),Ie.stopPropagation();var Ae=Y.name,Be=Ae+"Fragment",tt=(be||[]).filter(function(Ft){return Ft.name.value.startsWith(Be)}).length;tt>0&&(Be=""+Be+tt);var Pt=P?P.selectionSet?P.selectionSet.selections:[]:[],ut=[{kind:"FragmentSpread",name:{kind:"Name",value:Be},directives:[]}],It={kind:"FragmentDefinition",name:{kind:"Name",value:Be},typeCondition:{kind:"NamedType",name:{kind:"Name",value:Y.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:Pt}},kt=F._modifyChildSelections(ut,!1);if(kt){var Sn=n({},kt,{definitions:[].concat(l(kt.definitions),[It])});F.props.onCommit(Sn)}else console.warn("Unable to complete extractFragment operation")},style:n({},ne.styles.actionButtonStyle)},s.createElement("span",null,"…")):null),P&&se.length?s.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},se.map(function(ye){return s.createElement(Z,{key:ye.name,parentField:K,arg:ye,selection:P,modifyArguments:F._setArguments,getDefaultScalarArgValue:F.props.getDefaultScalarArgValue,makeDefaultArg:F.props.makeDefaultArg,onRunOperation:F.props.onRunOperation,styleConfig:F.props.styleConfig,onCommit:F.props.onCommit,definition:F.props.definition})})):null);if(P&&((0,o.isObjectType)(Y)||(0,o.isInterfaceType)(Y)||(0,o.isUnionType)(Y))){var pe=(0,o.isUnionType)(Y)?{}:Y.getFields(),Ee=P?P.selectionSet?P.selectionSet.selections:[]:[];return s.createElement("div",{className:"graphiql-explorer-"+K.name},Me,s.createElement("div",{style:{marginLeft:16}},be?be.map(function(ye){var Ie=le.getType(ye.typeCondition.name.value),Ae=ye.name.value;return Ie?s.createElement($,{key:Ae,fragment:ye,selections:Ee,modifySelections:F._modifyChildSelections,schema:le,styleConfig:F.props.styleConfig,onCommit:F.props.onCommit}):null}):null,Object.keys(pe).sort().map(function(ye){return s.createElement(C,{key:ye,field:pe[ye],selections:Ee,modifySelections:F._modifyChildSelections,schema:le,getDefaultFieldNames:he,getDefaultScalarArgValue:F.props.getDefaultScalarArgValue,makeDefaultArg:F.props.makeDefaultArg,onRunOperation:F.props.onRunOperation,styleConfig:F.props.styleConfig,onCommit:F.props.onCommit,definition:F.props.definition,availableFragments:F.props.availableFragments})}),(0,o.isInterfaceType)(Y)||(0,o.isUnionType)(Y)?le.getPossibleTypes(Y).map(function(ye){return s.createElement(Q,{key:ye.name,implementingType:ye,selections:Ee,modifySelections:F._modifyChildSelections,schema:le,getDefaultFieldNames:he,getDefaultScalarArgValue:F.props.getDefaultScalarArgValue,makeDefaultArg:F.props.makeDefaultArg,onRunOperation:F.props.onRunOperation,styleConfig:F.props.styleConfig,onCommit:F.props.onCommit,definition:F.props.definition})}):null))}return Me}}]),C}(s.PureComponent);function V(R){try{return R.trim()?(0,o.parse)(R,{noLocation:!0}):null}catch(C){return new Error(C)}}var re={kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}},L={kind:"Document",definitions:[re]},ee=null;function ue(R){if(ee&&ee[0]===R)return ee[1];var C=V(R);return C?C instanceof Error?ee?ee[1]:L:(ee=[R,C],C):L}var ie={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},H=function(R){d(C,R);function C(){var te,F,S,K;c(this,C);for(var le=arguments.length,he=Array(le),ne=0;ne<le;ne++)he[ne]=arguments[ne];return K=(F=(S=f(this,(te=C.__proto__||Object.getPrototypeOf(C)).call.apply(te,[this].concat(he))),S),S.state={newOperationType:"query",displayTitleActions:!1},S._modifySelections=function(P,Y){var se=S.props.definition;se.selectionSet.selections.length===0&&S._previousOperationDef&&(se=S._previousOperationDef);var fe=void 0;if(se.kind==="FragmentDefinition")fe=n({},se,{selectionSet:n({},se.selectionSet,{selections:P})});else if(se.kind==="OperationDefinition"){var be=P.filter(function(Me){return!(Me.kind==="Field"&&Me.name.value==="__typename")});be.length===0&&(be=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),fe=n({},se,{selectionSet:n({},se.selectionSet,{selections:be})})}return S.props.onEdit(fe,Y)},S._onOperationRename=function(P){return S.props.onOperationRename(P.target.value)},S._handlePotentialRun=function(P){O(P)&&N(S.props.definition.kind)&&S.props.onRunOperation(S.props.name)},S._rootViewElId=function(){var P=S.props,Y=P.operationType,se=P.name,fe=Y+"-"+(se||"unknown");return fe},F),f(S,K)}return r(C,[{key:"componentDidMount",value:function(){var F=this._rootViewElId();this.props.onMount(F)}},{key:"render",value:function(){var F=this,S=this.props,K=S.operationType,le=S.definition,he=S.schema,ne=S.getDefaultFieldNames,P=S.styleConfig,Y=this._rootViewElId(),se=this.props.fields||{},fe=le,be=fe.selectionSet.selections,Me=this.props.name||h(K)+" Name";return s.createElement("div",{id:Y,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},s.createElement("div",{style:{color:P.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return F.setState({displayTitleActions:!0})},onMouseLeave:function(){return F.setState({displayTitleActions:!1})}},K," ",s.createElement("span",{style:{color:P.colors.def}},s.createElement("input",{style:{color:P.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,Me.length)+"ch"},autoComplete:"false",placeholder:h(K)+" Name",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?s.createElement("span",null,s.createElement("br",null),"on "+this.props.onTypeName):"",this.state.displayTitleActions?s.createElement(s.Fragment,null,s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return F.props.onOperationDestroy()},style:n({},P.styles.actionButtonStyle)},s.createElement("span",null,"✕")),s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return F.props.onOperationClone()},style:n({},P.styles.actionButtonStyle)},s.createElement("span",null,"⎘"))):""),Object.keys(se).sort().map(function(pe){return s.createElement(de,{key:pe,field:se[pe],selections:be,modifySelections:F._modifySelections,schema:he,getDefaultFieldNames:ne,getDefaultScalarArgValue:F.props.getDefaultScalarArgValue,makeDefaultArg:F.props.makeDefaultArg,onRunOperation:F.props.onRunOperation,styleConfig:F.props.styleConfig,onCommit:F.props.onCommit,definition:F.props.definition,availableFragments:F.props.availableFragments})}))}}]),C}(s.PureComponent);function ce(){return s.createElement("div",{style:{fontFamily:"sans-serif",display:"flex",flexDirection:"column",alignItems:"center",margin:"1em",marginTop:0,flexGrow:1,justifyContent:"flex-end"}},s.createElement("div",{style:{borderTop:"1px solid #d6d6d6",paddingTop:"1em",width:"100%",textAlign:"center"}},"GraphiQL Explorer by ",s.createElement("a",{href:"https://www.onegraph.com"},"OneGraph")),s.createElement("div",null,"Contribute on"," ",s.createElement("a",{href:"https://github.com/OneGraph/graphiql-explorer"},"GitHub")))}var ae=function(R){d(C,R);function C(){var te,F,S,K;c(this,C);for(var le=arguments.length,he=Array(le),ne=0;ne<le;ne++)he[ne]=arguments[ne];return K=(F=(S=f(this,(te=C.__proto__||Object.getPrototypeOf(C)).call.apply(te,[this].concat(he))),S),S.state={newOperationType:"query",operation:null,operationToScrollTo:null},S._resetScroll=function(){var P=S._ref;P&&(P.scrollLeft=0)},S._onEdit=function(P){return S.props.onEdit(P)},S._setAddOperationType=function(P){S.setState({newOperationType:P})},S._handleRootViewMount=function(P){if(S.state.operationToScrollTo&&S.state.operationToScrollTo===P){var Y=".graphiql-explorer-root #"+P,se=document.querySelector(Y);se&&se.scrollIntoView()}},F),f(S,K)}return r(C,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var F=this,S=this.props,K=S.schema,le=S.query,he=S.makeDefaultArg;if(!K)return s.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var ne={colors:this.props.colors||p,checkboxChecked:this.props.checkboxChecked||_,checkboxUnchecked:this.props.checkboxUnchecked||x,arrowClosed:this.props.arrowClosed||v,arrowOpen:this.props.arrowOpen||b,styles:this.props.styles?n({},ie,this.props.styles):ie},P=K.getQueryType(),Y=K.getMutationType(),se=K.getSubscriptionType();if(!P&&!Y&&!se)return s.createElement("div",null,"Missing query type");var fe=P&&P.getFields(),be=Y&&Y.getFields(),Me=se&&se.getFields(),pe=ue(le),Ee=this.props.getDefaultFieldNames||T,ye=this.props.getDefaultScalarArgValue||W,Ie=pe.definitions,Ae=Ie.map(function(Se){return Se.kind==="FragmentDefinition"||Se.kind==="OperationDefinition"?Se:null}).filter(Boolean),Be=Ae.length===0?L.definitions:Ae,tt=function(Ne,Ge){var Je=Ge==null||Ge===""?null:{kind:"Name",value:Ge,loc:void 0},Mt=n({},Ne,{name:Je}),Re=pe.definitions,Ye=Re.map(function(ot){return Ne===ot?Mt:ot});return n({},pe,{definitions:Ye})},Pt=function(Ne){var Ge=void 0;Ne.kind==="FragmentDefinition"?Ge="fragment":Ge=Ne.operation;var Je=(Ne.name&&Ne.name.value||"")+"Copy",Mt={kind:"Name",value:Je,loc:void 0},Re=n({},Ne,{name:Mt}),Ye=pe.definitions,ot=[].concat(l(Ye),[Re]);return F.setState({operationToScrollTo:Ge+"-"+Je}),n({},pe,{definitions:ot})},ut=function(Ne){var Ge=pe.definitions,Je=Ge.filter(function(Mt){return Ne!==Mt});return n({},pe,{definitions:Je})},It=function(Ne){var Ge=pe.definitions,Je=pe.definitions.length===1&&pe.definitions[0]===L.definitions[0],Mt=Je?[]:Ge.filter(function(An){return An.kind==="OperationDefinition"?An.operation===Ne:!1}),Re="My"+h(Ne)+(Mt.length===0?"":Mt.length+1),Ye="__typename # Placeholder value",ot={kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:Ye,loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},sn={kind:"OperationDefinition",operation:Ne,name:{kind:"Name",value:Re},variableDefinitions:[],directives:[],selectionSet:ot,loc:null},ir=Je?[sn]:[].concat(l(pe.definitions),[sn]),ai=n({},pe,{definitions:ir});F.setState({operationToScrollTo:Ne+"-"+Re}),F.props.onEdit((0,o.print)(ai))},kt=[fe?s.createElement("option",{key:"query",className:"toolbar-button",style:ne.styles.buttonStyle,type:"link",value:"query"},"Query"):null,be?s.createElement("option",{key:"mutation",className:"toolbar-button",style:ne.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,Me?s.createElement("option",{key:"subscription",className:"toolbar-button",style:ne.styles.buttonStyle,type:"link",value:"subscription"},"Subscription"):null].filter(Boolean),Sn=kt.length===0||this.props.hideActions?null:s.createElement("div",{style:{minHeight:"50px",maxHeight:"50px",overflow:"none"}},s.createElement("form",{className:"variable-editor-title graphiql-explorer-actions",style:n({},ne.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(Ne){return Ne.preventDefault()}},s.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),s.createElement("select",{onChange:function(Ne){return F._setAddOperationType(Ne.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},kt),s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return F.state.newOperationType?It(F.state.newOperationType):null},style:n({},ne.styles.buttonStyle,{height:"22px",width:"22px"})},s.createElement("span",null,"+")))),Ft=this.props.externalFragments&&this.props.externalFragments.reduce(function(Se,Ne){if(Ne.kind==="FragmentDefinition"){var Ge=Ne.typeCondition.name.value,Je=Se[Ge]||[],Mt=[].concat(l(Je),[Ne]).sort(function(Re,Ye){return Re.name.value.localeCompare(Ye.name.value)});return n({},Se,u({},Ge,Mt))}return Se},{}),Br=Be.reduce(function(Se,Ne){if(Ne.kind==="FragmentDefinition"){var Ge=Ne.typeCondition.name.value,Je=Se[Ge]||[],Mt=[].concat(l(Je),[Ne]).sort(function(Re,Ye){return Re.name.value.localeCompare(Ye.name.value)});return n({},Se,u({},Ge,Mt))}return Se},{}),pn=n({},Br,Ft),kn=this.props.showAttribution?s.createElement(ce,null):null;return s.createElement("div",{ref:function(Ne){F._ref=Ne},style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:8,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root"},s.createElement("div",{style:{flexGrow:"1",overflow:"scroll"}},Be.map(function(Se,Ne){var Ge=Se&&Se.name&&Se.name.value,Je=Se.kind==="FragmentDefinition"?"fragment":Se&&Se.operation||"query",Mt=function(zt){var Xt=tt(Se,zt);F.props.onEdit((0,o.print)(Xt))},Re=function(){var zt=Pt(Se);F.props.onEdit((0,o.print)(zt))},Ye=function(){var zt=ut(Se);F.props.onEdit((0,o.print)(zt))},ot=Se.kind==="FragmentDefinition"&&Se.typeCondition.kind==="NamedType"&&K.getType(Se.typeCondition.name.value),sn=ot instanceof o.GraphQLObjectType?ot.getFields():null,ir=Je==="query"?fe:Je==="mutation"?be:Je==="subscription"?Me:Se.kind==="FragmentDefinition"?sn:null,ai=Se.kind==="FragmentDefinition"?Se.typeCondition.name.value:null,An=function(zt){var Xt=(0,o.print)(zt);F.props.onEdit(Xt)};return s.createElement(H,{key:Ne,isLast:Ne===Be.length-1,fields:ir,operationType:Je,name:Ge,definition:Se,onOperationRename:Mt,onOperationDestroy:Ye,onOperationClone:Re,onTypeName:ai,onMount:F._handleRootViewMount,onCommit:An,onEdit:function(zt,Xt){var sr=void 0;if((typeof Xt>"u"?"undefined":e(Xt))==="object"&&typeof Xt.commit<"u"?sr=Xt.commit:sr=!0,zt){var or=n({},pe,{definitions:pe.definitions.map(function(Sr){return Sr===Se?zt:Sr})});return sr&&An(or),or}else return pe},schema:K,getDefaultFieldNames:Ee,getDefaultScalarArgValue:ye,makeDefaultArg:he,onRunOperation:function(){F.props.onRunOperation&&F.props.onRunOperation(Ge)},styleConfig:ne,availableFragments:pn})}),kn),Sn)}}]),C}(s.PureComponent);ae.defaultProps={getDefaultFieldNames:T,getDefaultScalarArgValue:W};var ke=function(R){d(C,R);function C(){var te,F,S,K;c(this,C);for(var le=arguments.length,he=Array(le),ne=0;ne<le;ne++)he[ne]=arguments[ne];return K=(F=(S=f(this,(te=C.__proto__||Object.getPrototypeOf(C)).call.apply(te,[this].concat(he))),S),S.state={hasError:!1,error:null,errorInfo:null},F),f(S,K)}return r(C,[{key:"componentDidCatch",value:function(F,S){this.setState({hasError:!0,error:F,errorInfo:S}),console.error("Error in component",F,S)}},{key:"render",value:function(){return this.state.hasError?s.createElement("div",{style:{padding:18,fontFamily:"sans-serif"}},s.createElement("div",null,"Something went wrong"),s.createElement("details",{style:{whiteSpace:"pre-wrap"}},this.state.error?this.state.error.toString():null,s.createElement("br",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),C}(s.Component),we=function(R){d(C,R);function C(){return c(this,C),f(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return r(C,[{key:"render",value:function(){return s.createElement("div",{className:"docExplorerWrap",style:{height:"100%",width:this.props.width,minWidth:this.props.width,zIndex:7,display:this.props.explorerIsOpen?"flex":"none",flexDirection:"column",overflow:"hidden"}},s.createElement("div",{className:"doc-explorer-title-bar"},s.createElement("div",{className:"doc-explorer-title"},this.props.title),s.createElement("div",{className:"doc-explorer-rhs"},s.createElement("div",{className:"docExplorerHide",onClick:this.props.onToggleExplorer},"✕"))),s.createElement("div",{className:"doc-explorer-contents",style:{padding:"0px",overflowY:"unset"}},s.createElement(ke,null,s.createElement(ae,this.props))))}}]),C}(s.PureComponent);return we.defaultValue=z,we.defaultProps={width:320,title:"Explorer"},Vs.default=we,Vs}var ab;function mR(){if(ab)return Qi;ab=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.Explorer=void 0;var e=pR(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}return Qi.Explorer=t.default,Qi.default=t.default,Qi}var gR=mR();const fE=({title:e,titleId:t,...n})=>g.createElement("svg",{width:5,height:8,viewBox:"0 0 5 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M0.910453 6.86965L3.88955 3.89061C4.09782 3.68233 4.09782 3.34465 3.88955 3.13637L0.910453 0.157278C0.574475 -0.178701 0 0.0592511 0 0.534408V6.49259C0 6.96768 0.574475 7.20565 0.910453 6.86965Z"})),bR=({title:e,titleId:t,...n})=>g.createElement("svg",{height:"1em",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M18 6H20M22 6H20M20 6V4M20 6V8",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M21.4 20H2.6C2.26863 20 2 19.7314 2 19.4V11H21.4C21.7314 11 22 11.2686 22 11.6V19.4C22 19.7314 21.7314 20 21.4 20Z"}),g.createElement("path",{d:"M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H14",strokeLinecap:"round",strokeLinejoin:"round"})),vR=({title:e,titleId:t,...n})=>g.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",fill:"none","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("circle",{cx:7.5,cy:7.5,r:6,strokeWidth:2})),yR=({title:e,titleId:t,...n})=>g.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-labelledby":t,...n},e?g.createElement("title",{id:t},e):null,g.createElement("circle",{cx:7.5,cy:7.5,r:7.5}),g.createElement("path",{d:"M4.64641 7.00106L6.8801 9.23256L10.5017 5.61325",stroke:"white",strokeWidth:1.5})),xR={keyword:"hsl(var(--color-primary))",def:"hsl(var(--color-tertiary))",property:"hsl(var(--color-info))",qualifier:"hsl(var(--color-secondary))",attribute:"hsl(var(--color-tertiary))",number:"hsl(var(--color-success))",string:"hsl(var(--color-warning))",builtin:"hsl(var(--color-success))",string2:"hsl(var(--color-secondary))",variable:"hsl(var(--color-secondary))",atom:"hsl(var(--color-tertiary))"},ER=y.jsx(fE,{style:{width:"var(--px-16)",transform:"rotate(90deg)"}}),_R=y.jsx(fE,{style:{width:"var(--px-16)"}}),TR=y.jsx(vR,{style:{marginRight:"var(--px-4)"}}),wR=y.jsx(yR,{style:{fill:"hsl(var(--color-info))",marginRight:"var(--px-4)"}}),SR={buttonStyle:{cursor:"pointer",fontSize:"2em",lineHeight:0},explorerActionsStyle:{paddingTop:"var(--px-16)"},actionButtonStyle:{}},kR=e=>{const{setOperationName:t,run:n}=Er(),r=Ct(a=>a.schema),i=g.useCallback(a=>{a&&t(a),n()},[n,t]),[s,o]=Hw(zw());return y.jsx(gR.Explorer,{schema:r,onRunOperation:i,explorerIsOpen:!0,colors:xR,arrowOpen:ER,arrowClosed:_R,checkboxUnchecked:TR,checkboxChecked:wR,styles:SR,query:s,onEdit:o,...e})};function AR(e){return{title:"GraphiQL Explorer",icon:bR,content:()=>y.jsx(kR,{...e})}}function DR(){const e=Tw({url:`${OE}/graphql`}),t=[vf,AR()];return y.jsxs("div",{className:"insites-graphql-container",children:[y.jsx(ki,{fetcher:e,plugins:t,children:y.jsxs(ki.Logo,{children:[y.jsx("span",{className:"font-bold",children:"Insites"})," GraphQL"]})}),";"]})}function NR(){return y.jsx("div",{className:"absolute top-[80px] left-0 right-0 bottom-0",children:y.jsx(DR,{})})}const CR=NR,nM=Object.freeze(Object.defineProperty({__proto__:null,component:CR},Symbol.toStringTag,{value:"Module"}));export{GP as $,qR as A,Fb as B,bn as C,oo as D,w_ as E,ve as F,LP as G,BR as H,rc as I,mP as J,B0 as K,b_ as L,hP as M,P_ as N,pP as O,uo as P,fP as Q,hr as R,g_ as S,JR as T,cs as U,Bf as V,IP as W,VR as X,D_ as Y,Vb as Z,t4 as _,XP as a,ph as a$,Uf as a0,$R as a1,zR as a2,wP as a3,_P as a4,TP as a5,bP as a6,EP as a7,xP as a8,yP as a9,CP as aA,FP as aB,YR as aC,M_ as aD,ZR as aE,eh as aF,jh as aG,Rh as aH,Th as aI,Wh as aJ,Gh as aK,Hh as aL,zh as aM,Vh as aN,$h as aO,Mh as aP,Ph as aQ,xh as aR,Lh as aS,Fh as aT,Nh as aU,Dh as aV,Ah as aW,yh as aX,vh as aY,bh as aZ,gh as a_,lc as aa,VP as ab,MP as ac,a4 as ad,zP as ae,n4 as af,Mb as ag,KR as ah,AP as ai,T_ as aj,HR as ak,QR as al,OP as am,Ib as an,Pa as ao,UR as ap,gn as aq,HP as ar,eP as as,DP as at,uP as au,Lb as av,XR as aw,WR as ax,gP as ay,NP as az,jR as b,hh as b0,dh as b1,oh as b2,$P as b3,UP as b4,Eh as b5,Oh as b6,Ih as b7,Ch as b8,ah as b9,Z0 as bA,nh as bB,th as bC,GR as bD,lP as bE,BP as bF,nM as bG,kh as ba,Sh as bb,wh as bc,Bh as bd,fh as be,_h as bf,qh as bg,Uh as bh,uh as bi,ch as bj,lh as bk,mh as bl,qP as bm,MR as bn,nP as bo,A_ as bp,J0 as bq,X0 as br,Q0 as bs,jP as bt,rh as bu,ih as bv,Y0 as bw,tP as bx,K0 as by,sh as bz,L_ as c,rP as d,ao as e,an as f,JP as g,Ra as h,iP as i,Pb as j,m_ as k,vP as l,sP as m,Di as n,il as o,tn as p,aP as q,Wb as r,cP as s,so as t,SP as u,et as v,oP as w,dP as x,Wf as y,kP as z};