@saasquatch/mint-components 1.3.2-1 → 1.3.2-13

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 (285) hide show
  1. package/dist/cjs/{ShadowViewAddon-75c18b96.js → ShadowViewAddon-a85b8c8d.js} +1 -1
  2. package/dist/cjs/{global-041b5338.js → global-6223fe8f.js} +110 -56
  3. package/dist/cjs/{index.module-6a7bda18.js → index.module-7dd4b981.js} +2 -1
  4. package/dist/cjs/loader.cjs.js +3 -4
  5. package/dist/cjs/mint-components.cjs.js +3 -4
  6. package/dist/cjs/{re-render-7cdb2d81.js → re-render-6111d4bd.js} +1 -1
  7. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  8. package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
  9. package/dist/cjs/{sqm-divided-layout_27.cjs.entry.js → sqm-divided-layout_30.cjs.entry.js} +1959 -766
  10. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  11. package/dist/cjs/{index-19309631.js → sqm-leaderboard-rank-view-7dd44d62.js} +10 -3
  12. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -9
  13. package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
  14. package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
  15. package/dist/cjs/{sqm-navigation-sidebar-item-view-e99b4a10.js → sqm-navigation-sidebar-item-view-6c7f78e6.js} +1 -1
  16. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  18. package/dist/cjs/{sqm-portal-email-verification-view-5e955797.js → sqm-portal-email-verification-view-08d1848c.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -4
  20. package/dist/cjs/{sqm-portal-footer-view-9089feb7.js → sqm-portal-footer-view-69c73802.js} +1 -1
  21. package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -4
  22. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
  23. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  24. package/dist/cjs/{sqm-portal-profile-view-a23ea292.js → sqm-portal-profile-view-14b41436.js} +1 -1
  25. package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -4
  26. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  27. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
  28. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
  29. package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
  30. package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
  31. package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
  32. package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
  33. package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
  34. package/dist/cjs/sqm-share-code.cjs.entry.js +1 -1
  35. package/dist/cjs/{useDemoBigStat-17e61803.js → useDemoBigStat-2786227e.js} +117 -21
  36. package/dist/collection/collection-manifest.json +2 -1
  37. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +8 -1
  38. package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +3 -0
  39. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
  40. package/dist/collection/components/sqm-big-stat/useBigStat.js +115 -20
  41. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +1 -0
  42. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -1
  43. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +21 -0
  44. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +218 -0
  45. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +5 -14
  46. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +31 -43
  47. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +175 -100
  48. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +6 -8
  49. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +10 -32
  50. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +53 -0
  51. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +120 -0
  52. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +11 -16
  53. package/dist/collection/components/{sqm-rewards-table → sqm-router}/Router.stories.js +0 -0
  54. package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
  55. package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
  56. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +7 -1
  57. package/dist/collection/components/sqm-task-card/SVGs.js +0 -6
  58. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +165 -389
  59. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +41 -0
  60. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +7 -0
  61. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +318 -0
  62. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +93 -346
  63. package/dist/collection/components/sqm-task-card/sqm-task-card.js +127 -53
  64. package/dist/collection/global/styles.js +3 -0
  65. package/dist/collection/global/styles.ts +3 -0
  66. package/dist/collection/stories/NewPortal.stories.js +15 -15
  67. package/dist/esm/{ShadowViewAddon-fff5d35d.js → ShadowViewAddon-a3f510db.js} +1 -1
  68. package/dist/esm/{global-5ecbf81a.js → global-90da933f.js} +57 -3
  69. package/dist/esm/{index.module-f80561db.js → index.module-90d2c3ad.js} +2 -2
  70. package/dist/esm/loader.js +3 -4
  71. package/dist/esm/mint-components.js +3 -4
  72. package/dist/esm/{re-render-9ab5fe0f.js → re-render-e06f2f7f.js} +1 -1
  73. package/dist/esm/sqm-asset-card.entry.js +1 -1
  74. package/dist/esm/sqm-big-stat.entry.js +2 -2
  75. package/dist/esm/{sqm-divided-layout_27.entry.js → sqm-divided-layout_30.entry.js} +1939 -749
  76. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  77. package/dist/esm/{index-2f5dd0a1.js → sqm-leaderboard-rank-view-47844836.js} +9 -3
  78. package/dist/esm/sqm-leaderboard-rank.entry.js +3 -5
  79. package/dist/esm/sqm-leaderboard.entry.js +2 -2
  80. package/dist/esm/sqm-name-fields.entry.js +1 -1
  81. package/dist/esm/{sqm-navigation-sidebar-item-view-8a3f374b.js → sqm-navigation-sidebar-item-view-f2304ad9.js} +1 -1
  82. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  83. package/dist/esm/sqm-popup-container.entry.js +1 -1
  84. package/dist/esm/{sqm-portal-email-verification-view-90781be2.js → sqm-portal-email-verification-view-8cefe480.js} +1 -1
  85. package/dist/esm/sqm-portal-email-verification.entry.js +3 -4
  86. package/dist/esm/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-d9fe0bf8.js} +1 -1
  87. package/dist/esm/sqm-portal-footer.entry.js +3 -4
  88. package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
  89. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  90. package/dist/esm/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-b67467b4.js} +1 -1
  91. package/dist/esm/sqm-portal-profile.entry.js +3 -4
  92. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  93. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  94. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  95. package/dist/esm/sqm-referral-table-column.entry.js +2 -2
  96. package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
  97. package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
  98. package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
  99. package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
  100. package/dist/esm/sqm-share-code.entry.js +1 -1
  101. package/dist/esm/{useDemoBigStat-b71fe122.js → useDemoBigStat-c3b955b7.js} +117 -21
  102. package/dist/esm-es5/{ShadowViewAddon-fff5d35d.js → ShadowViewAddon-a3f510db.js} +1 -1
  103. package/dist/esm-es5/{global-5ecbf81a.js → global-90da933f.js} +16 -2
  104. package/dist/esm-es5/{index.module-f80561db.js → index.module-90d2c3ad.js} +1 -1
  105. package/dist/esm-es5/loader.js +1 -1
  106. package/dist/esm-es5/mint-components.js +1 -1
  107. package/dist/esm-es5/{re-render-9ab5fe0f.js → re-render-e06f2f7f.js} +1 -1
  108. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  109. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  110. package/dist/esm-es5/sqm-divided-layout_30.entry.js +1 -0
  111. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  112. package/dist/esm-es5/sqm-leaderboard-rank-view-47844836.js +1 -0
  113. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  114. package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
  115. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  116. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-8a3f374b.js → sqm-navigation-sidebar-item-view-f2304ad9.js} +1 -1
  117. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  118. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  119. package/dist/esm-es5/{sqm-portal-email-verification-view-90781be2.js → sqm-portal-email-verification-view-8cefe480.js} +1 -1
  120. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  121. package/dist/esm-es5/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-d9fe0bf8.js} +1 -1
  122. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  123. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  124. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  125. package/dist/esm-es5/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-b67467b4.js} +1 -1
  126. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  127. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  128. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  129. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  130. package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
  131. package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
  132. package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
  133. package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
  134. package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
  135. package/dist/esm-es5/sqm-share-code.entry.js +1 -1
  136. package/dist/esm-es5/useDemoBigStat-c3b955b7.js +1 -0
  137. package/dist/mint-components/global/styles.ts +3 -0
  138. package/dist/mint-components/mint-components.css +1 -0
  139. package/dist/mint-components/mint-components.esm.js +1 -1
  140. package/dist/mint-components/mint-components.js +1 -1
  141. package/dist/mint-components/{p-3052c913.system.js → p-07c924fa.system.js} +1 -1
  142. package/dist/mint-components/{p-05cca77b.js → p-0eb3e89c.js} +1 -1
  143. package/dist/mint-components/{p-337b49ee.entry.js → p-160bd62f.entry.js} +1 -1
  144. package/dist/mint-components/p-16f5a7cb.system.js +1 -0
  145. package/dist/mint-components/{p-4ba2faf2.system.entry.js → p-1a09e4e1.system.entry.js} +1 -1
  146. package/dist/mint-components/p-1c8b0290.entry.js +1 -0
  147. package/dist/mint-components/{p-7c13e32e.system.entry.js → p-1dcdca58.system.entry.js} +1 -1
  148. package/dist/mint-components/p-20d41ab1.entry.js +1 -0
  149. package/dist/mint-components/{p-e9ab90a1.entry.js → p-221a4097.entry.js} +1 -1
  150. package/dist/mint-components/{p-a0045707.system.entry.js → p-223b42bd.system.entry.js} +1 -1
  151. package/dist/mint-components/{p-cc3510c8.js → p-224504ad.js} +1 -1
  152. package/dist/mint-components/{p-2a025d2a.system.entry.js → p-24b3c6f0.system.entry.js} +1 -1
  153. package/dist/mint-components/{p-1b414d8f.system.entry.js → p-24c9a599.system.entry.js} +1 -1
  154. package/dist/mint-components/{p-a7f0b2f6.entry.js → p-29fab29b.entry.js} +1 -1
  155. package/dist/mint-components/{p-e475a5ff.system.entry.js → p-304e6c82.system.entry.js} +1 -1
  156. package/dist/mint-components/{p-5f28af29.entry.js → p-3397167c.entry.js} +1 -1
  157. package/dist/mint-components/p-33c5ffb7.entry.js +1 -0
  158. package/dist/mint-components/{p-04516274.system.entry.js → p-396bf448.system.entry.js} +1 -1
  159. package/dist/mint-components/p-3b97aed8.system.js +1 -0
  160. package/dist/mint-components/{p-3b0acfcd.system.js → p-3ce2fb83.system.js} +1 -1
  161. package/dist/mint-components/{p-82d7a2ba.entry.js → p-3d856985.entry.js} +1 -1
  162. package/dist/mint-components/p-3f7218fb.entry.js +335 -0
  163. package/dist/mint-components/{p-af06ea5b.system.entry.js → p-4052b948.system.entry.js} +1 -1
  164. package/dist/mint-components/{p-57a53dbd.system.entry.js → p-412a9226.system.entry.js} +1 -1
  165. package/dist/mint-components/p-44d0fc80.system.entry.js +1 -0
  166. package/dist/mint-components/{p-844f9bad.entry.js → p-45c752a0.entry.js} +1 -1
  167. package/dist/mint-components/{p-f1e1086e.js → p-46a4269a.js} +17 -2
  168. package/dist/mint-components/p-52802c88.entry.js +13 -0
  169. package/dist/mint-components/p-5480e4ee.entry.js +1 -0
  170. package/dist/mint-components/{p-db723323.system.entry.js → p-55508395.system.entry.js} +1 -1
  171. package/dist/mint-components/{p-844fd903.js → p-563253e8.js} +1 -1
  172. package/dist/mint-components/p-60855d33.system.js +1 -0
  173. package/dist/mint-components/p-67ae18d1.system.entry.js +1 -0
  174. package/dist/mint-components/{p-434ee9c1.js → p-6882070c.js} +1 -1
  175. package/dist/mint-components/{p-1ac9c24b.system.entry.js → p-69bcf4fa.system.entry.js} +1 -1
  176. package/dist/mint-components/p-6bf0a4d9.system.entry.js +1 -0
  177. package/dist/mint-components/p-6e245fa3.system.entry.js +1 -0
  178. package/dist/mint-components/{p-a4a00461.entry.js → p-723ebe45.entry.js} +1 -1
  179. package/dist/mint-components/{p-5dfc6804.system.entry.js → p-73148868.system.entry.js} +1 -1
  180. package/dist/mint-components/{p-6cdc70f4.entry.js → p-8435a22d.entry.js} +1 -1
  181. package/dist/mint-components/p-883a32e7.entry.js +1 -0
  182. package/dist/mint-components/p-9c554ca0.system.js +1 -0
  183. package/dist/mint-components/{p-d3787c3a.entry.js → p-9d6dbb2d.entry.js} +1 -1
  184. package/dist/mint-components/p-9e4fee30.system.entry.js +1 -0
  185. package/dist/mint-components/{p-2bce988c.js → p-a2c3cff3.js} +1 -1
  186. package/dist/mint-components/{p-d9cc041f.entry.js → p-a4c2c7ed.entry.js} +1 -1
  187. package/dist/mint-components/{p-1813b9b9.system.js → p-a6094ff9.system.js} +1 -1
  188. package/dist/mint-components/{p-aba21f90.entry.js → p-ade44a4e.entry.js} +1 -1
  189. package/dist/mint-components/p-b1bb07db.entry.js +1 -0
  190. package/dist/mint-components/{p-ceeaf074.system.js → p-b608f7a4.system.js} +35 -21
  191. package/dist/mint-components/p-b6b4022a.system.entry.js +1 -0
  192. package/dist/mint-components/{p-2f171597.entry.js → p-b8bd2607.entry.js} +1 -1
  193. package/dist/mint-components/{p-0688c9c2.system.entry.js → p-be2738b0.system.entry.js} +1 -1
  194. package/dist/mint-components/{p-82ab88fe.system.js → p-c6114bfe.system.js} +1 -1
  195. package/dist/mint-components/{p-16535642.system.entry.js → p-c79c608d.system.entry.js} +1 -1
  196. package/dist/mint-components/{p-505f5c59.system.entry.js → p-cca9026f.system.entry.js} +1 -1
  197. package/dist/mint-components/{p-71d942af.entry.js → p-cd410a05.entry.js} +2 -2
  198. package/dist/mint-components/{p-a0cfd3d9.system.js → p-cdeae699.system.js} +1 -1
  199. package/dist/mint-components/{p-3fd33dee.system.entry.js → p-d174d0bc.system.entry.js} +1 -1
  200. package/dist/mint-components/p-d21e0dbd.js +1 -0
  201. package/dist/mint-components/{p-00190438.js → p-d35b0366.js} +1 -1
  202. package/dist/mint-components/{p-8e37c08d.js → p-db2e4c42.js} +1 -1
  203. package/dist/mint-components/p-dc603d08.system.entry.js +1 -0
  204. package/dist/mint-components/{p-1fb688a9.system.js → p-e7f633b9.system.js} +1 -1
  205. package/dist/mint-components/{p-16da5146.entry.js → p-f17050de.entry.js} +1 -1
  206. package/dist/mint-components/p-f90486ca.js +235 -0
  207. package/dist/mint-components/p-fce1dbf6.entry.js +1 -0
  208. package/dist/types/components/sqm-big-stat/UseBigStat.stories.d.ts +6 -0
  209. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
  210. package/dist/types/components/sqm-big-stat/useBigStat.d.ts +4 -1
  211. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +6 -0
  212. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +81 -0
  213. package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +1 -0
  214. package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +3 -2
  215. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +3 -4
  216. package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +16 -0
  217. package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +20 -0
  218. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +33 -0
  219. package/dist/types/components/{sqm-rewards-table → sqm-router}/Router.stories.d.ts +0 -0
  220. package/dist/types/components/sqm-task-card/SVGs.d.ts +0 -1
  221. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +12 -5
  222. package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +10 -0
  223. package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
  224. package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +11 -0
  225. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +13 -22
  226. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +29 -14
  227. package/dist/types/components.d.ts +86 -36
  228. package/dist/types/global/styles.d.ts +1 -1
  229. package/grapesjs/grapesjs.js +1 -1
  230. package/package.json +1 -1
  231. package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +0 -10
  232. package/dist/cjs/sqm-rewards-table.cjs.entry.js +0 -332
  233. package/dist/cjs/sqm-task-card-view-57066e67.js +0 -476
  234. package/dist/cjs/sqm-task-card.cjs.entry.js +0 -56
  235. package/dist/cjs/tslib.es6-0e81fab1.js +0 -56
  236. package/dist/cjs/useChildElements-428ca5b8.js +0 -21
  237. package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +0 -8
  238. package/dist/esm/sqm-rewards-table.entry.js +0 -328
  239. package/dist/esm/sqm-task-card-view-2ee495af.js +0 -474
  240. package/dist/esm/sqm-task-card.entry.js +0 -52
  241. package/dist/esm/tslib.es6-7ac9d7e4.js +0 -53
  242. package/dist/esm/useChildElements-506f00d0.js +0 -19
  243. package/dist/esm-es5/index-2f5dd0a1.js +0 -1
  244. package/dist/esm-es5/sqm-divided-layout_27.entry.js +0 -1
  245. package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +0 -1
  246. package/dist/esm-es5/sqm-rewards-table.entry.js +0 -1
  247. package/dist/esm-es5/sqm-task-card-view-2ee495af.js +0 -1
  248. package/dist/esm-es5/sqm-task-card.entry.js +0 -1
  249. package/dist/esm-es5/tslib.es6-7ac9d7e4.js +0 -15
  250. package/dist/esm-es5/useChildElements-506f00d0.js +0 -1
  251. package/dist/esm-es5/useDemoBigStat-b71fe122.js +0 -1
  252. package/dist/mint-components/p-11c75956.entry.js +0 -1
  253. package/dist/mint-components/p-189219ee.system.js +0 -1
  254. package/dist/mint-components/p-1e248afc.system.entry.js +0 -1
  255. package/dist/mint-components/p-21dfdeb8.entry.js +0 -1
  256. package/dist/mint-components/p-23a0bdae.entry.js +0 -1
  257. package/dist/mint-components/p-353b4413.system.js +0 -1
  258. package/dist/mint-components/p-405a9253.js +0 -227
  259. package/dist/mint-components/p-55e02769.entry.js +0 -13
  260. package/dist/mint-components/p-58d9b2f0.js +0 -15
  261. package/dist/mint-components/p-684850a7.entry.js +0 -287
  262. package/dist/mint-components/p-6d545e13.entry.js +0 -1
  263. package/dist/mint-components/p-70837c1c.entry.js +0 -49
  264. package/dist/mint-components/p-7c138c84.entry.js +0 -1
  265. package/dist/mint-components/p-7c261ea0.system.entry.js +0 -1
  266. package/dist/mint-components/p-8034f81c.system.entry.js +0 -1
  267. package/dist/mint-components/p-81dbda90.system.entry.js +0 -1
  268. package/dist/mint-components/p-8c16f04e.js +0 -1
  269. package/dist/mint-components/p-8f5e2af4.entry.js +0 -1
  270. package/dist/mint-components/p-91d39961.system.js +0 -1
  271. package/dist/mint-components/p-b3af1c6f.js +0 -1
  272. package/dist/mint-components/p-bf04a8e1.system.entry.js +0 -1
  273. package/dist/mint-components/p-bf055b6c.system.js +0 -1
  274. package/dist/mint-components/p-c3866bfa.system.entry.js +0 -1
  275. package/dist/mint-components/p-c9c4f31b.system.entry.js +0 -1
  276. package/dist/mint-components/p-dd6a666e.system.js +0 -15
  277. package/dist/mint-components/p-dfc3cf82.js +0 -1
  278. package/dist/mint-components/p-e19a57a4.system.entry.js +0 -1
  279. package/dist/mint-components/p-e22eed7b.entry.js +0 -1
  280. package/dist/mint-components/p-e2ebe90c.entry.js +0 -1
  281. package/dist/mint-components/p-e78a5a91.js +0 -1
  282. package/dist/mint-components/p-ecbabf6e.system.js +0 -1
  283. package/dist/mint-components/p-f41ab9e1.system.js +0 -1
  284. package/dist/mint-components/p-f87d8f53.system.js +0 -1
  285. package/dist/mint-components/p-fcaa5886.system.entry.js +0 -1
@@ -1 +1 @@
1
- import{c as n,a as t,d as e,_ as i,u as r,e as o,h as u,f as s,i as a,j as c}from"./p-44578b22.js";import{u as f}from"./p-ba505a8c.js";function l(n){this.message=n}(l.prototype=new Error).name="InvalidCharacterError";var h="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(n){var t=String(n).replace(/=+$/,"");if(t.length%4==1)throw new l("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,i,r=0,o=0,u="";i=t.charAt(o++);~i&&(e=r%4?64*e+i:i,r++%4)?u+=String.fromCharCode(255&e>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return u};function d(n){var t=n.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(h(n).replace(/(.)/g,(function(n,t){var e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(t)}catch(n){return h(t)}}function v(n){this.message=n}function p(n,t){if("string"!=typeof n)throw new v("Invalid token specified");var e=!0===(t=t||{}).header?0:1;try{return JSON.parse(d(n.split(".")[e]))}catch(n){throw new v("Invalid token specified: "+n.message)}}(v.prototype=new Error).name="InvalidTokenError";var m=Object.prototype,y=m.toString,b=m.hasOwnProperty,w=Function.prototype.toString,E=new Map;function g(n,t){try{return S(n,t)}finally{E.clear()}}function S(n,t){if(n===t)return!0;var e,i,r,o=y.call(n);if(o!==y.call(t))return!1;switch(o){case"[object Array]":if(n.length!==t.length)return!1;case"[object Object]":if(N(n,t))return!0;var u=I(n),s=I(t),a=u.length;if(a!==s.length)return!1;for(var c=0;c<a;++c)if(!b.call(t,u[c]))return!1;for(c=0;c<a;++c){var f=u[c];if(!S(n[f],t[f]))return!1}return!0;case"[object Error]":return n.name===t.name&&n.message===t.message;case"[object Number]":if(n!=n)return t!=t;case"[object Boolean]":case"[object Date]":return+n==+t;case"[object RegExp]":case"[object String]":return n==""+t;case"[object Map]":case"[object Set]":if(n.size!==t.size)return!1;if(N(n,t))return!0;for(var l=n.entries(),h="[object Map]"===o;;){var d=l.next();if(d.done)break;var v=d.value,p=v[0],m=v[1];if(!t.has(p))return!1;if(h&&!S(m,t.get(p)))return!1}return!0;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var E=w.call(n);return E===w.call(t)&&!((r=(e=E).length-(i=T).length)>=0&&e.indexOf(i,r)===r)}return!1}function I(n){return Object.keys(n).filter(O,n)}function O(n){return void 0!==this[n]}var T="{ [native code] }";function N(n,t){var e=E.get(n);if(e){if(e.has(t))return!0}else E.set(n,e=new Set);return e.add(t),!1}function F(n){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var C="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function D(n,t){for(var e,i=/\r\n|[\n\r]/g,r=1,o=t+1;(e=i.exec(n.body))&&e.index<t;)r+=1,o=t+1-(e.index+e[0].length);return{line:r,column:o}}function j(n,t){var e=n.locationOffset.column-1,i=_(e)+n.body,r=t.line-1,o=t.line+(n.locationOffset.line-1),u=t.column+(1===t.line?e:0),s="".concat(n.name,":").concat(o,":").concat(u,"\n"),a=i.split(/\r\n|[\n\r]/g),c=a[r];if(c.length>120){for(var f=Math.floor(u/80),l=u%80,h=[],d=0;d<c.length;d+=80)h.push(c.slice(d,d+80));return s+A([["".concat(o),h[0]]].concat(h.slice(1,f+1).map((function(n){return["",n]})),[[" ",_(l-1)+"^"],["",h[f+1]]]))}return s+A([["".concat(o-1),a[r-1]],["".concat(o),c],["",_(u-1)+"^"],["".concat(o+1),a[r+1]]])}function A(n){var t=n.filter((function(n){return void 0!==n[1]})),e=Math.max.apply(Math,t.map((function(n){return n[0].length})));return t.map((function(n){var t,i=n[1];return _(e-(t=n[0]).length)+t+(i?" | "+i:" |")})).join("\n")}function _(n){return Array(n+1).join(" ")}function x(n){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function k(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function P(n,t){return!t||"object"!==x(t)&&"function"!=typeof t?M(n):t}function M(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function V(n){var t="function"==typeof Map?new Map:void 0;return(V=function(n){if(null===n||-1===Function.toString.call(n).indexOf("[native code]"))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,e)}function e(){return R(n,arguments,L(this).constructor)}return e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),q(e,n)})(n)}function R(n,t,e){return(R=U()?Reflect.construct:function(n,t,e){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(n,i));return e&&q(r,e.prototype),r}).apply(null,arguments)}function U(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(n){return!1}}function q(n,t){return(q=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function L(n){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var B=function(){!function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&q(n,t)}(o,V(Error));var n,t,e,i,r=(n=o,t=U(),function(){var e,i=L(n);if(t){var r=L(this).constructor;e=Reflect.construct(i,arguments,r)}else e=i.apply(this,arguments);return P(this,e)});function o(n,t,e,i,u,s,a){var c,f,l,h,d;!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),d=r.call(this,n);var v,p=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,m=e;!m&&p&&(m=null===(v=p[0].loc)||void 0===v?void 0:v.source);var y,b=i;!b&&p&&(b=p.reduce((function(n,t){return t.loc&&n.push(t.loc.start),n}),[])),b&&0===b.length&&(b=void 0),i&&e?y=i.map((function(n){return D(e,n)})):p&&(y=p.reduce((function(n,t){return t.loc&&n.push(D(t.loc.source,t.loc.start)),n}),[]));var w,E=a;if(null==E&&null!=s){var g=s.extensions;"object"==F(w=g)&&null!==w&&(E=g)}return Object.defineProperties(M(d),{name:{value:"GraphQLError"},message:{value:n,enumerable:!0,writable:!0},locations:{value:null!==(c=y)&&void 0!==c?c:void 0,enumerable:null!=y},path:{value:null!=u?u:void 0,enumerable:null!=u},nodes:{value:null!=p?p:void 0},source:{value:null!==(f=m)&&void 0!==f?f:void 0},positions:{value:null!==(l=b)&&void 0!==l?l:void 0},originalError:{value:s},extensions:{value:null!==(h=E)&&void 0!==h?h:void 0,enumerable:null!=E}}),null!=s&&s.stack?(Object.defineProperty(M(d),"stack",{value:s.stack,writable:!0,configurable:!0}),P(d)):(Error.captureStackTrace?Error.captureStackTrace(M(d),o):Object.defineProperty(M(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return e=o,(i=[{key:"toString",value:function(){return function(n){var t,e=n.message;if(n.nodes)for(var i=0,r=n.nodes;i<r.length;i++){var o=r[i];o.loc&&(e+="\n\n"+j((t=o.loc).source,D(t.source,t.start)))}else if(n.source&&n.locations)for(var u=0,s=n.locations;u<s.length;u++)e+="\n\n"+j(n.source,s[u]);return e}(this)}},{key:C,get:function(){return"Object"}}])&&k(e.prototype,i),o}();function $(n,t,e){return new B("Syntax Error: ".concat(e),void 0,n,[t])}var J=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),G="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function H(n){var t=n.prototype.toJSON;"function"==typeof t||function(){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),n.prototype.inspect=t,G&&(n.prototype[G]=t)}var Y=function(){function n(n,t,e){this.start=n.start,this.end=t.end,this.startToken=n,this.endToken=t,this.source=e}return n.prototype.toJSON=function(){return{start:this.start,end:this.end}},n}();H(Y);var Q=function(){function n(n,t,e,i,r,o,u){this.kind=n,this.start=t,this.end=e,this.line=i,this.column=r,this.value=u,this.prev=o,this.next=null}return n.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},n}();function X(n){return null!=n&&"string"==typeof n.kind}H(Q);var z=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function W(n){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function K(n){return Z(n,[])}function Z(n,t){switch(W(n)){case"string":return JSON.stringify(n);case"function":return n.name?"[function ".concat(n.name,"]"):"[function]";case"object":return null===n?"null":function(n,t){if(-1!==t.indexOf(n))return"[Circular]";var e=[].concat(t,[n]),i=function(n){var t=n[String(G)];return"function"==typeof t?t:"function"==typeof n.inspect?n.inspect:void 0}(n);if(void 0!==i){var r=i.call(n);if(r!==n)return"string"==typeof r?r:Z(r,e)}else if(Array.isArray(n))return function(n,t){if(0===n.length)return"[]";if(t.length>2)return"[Array]";for(var e=Math.min(10,n.length),i=n.length-e,r=[],o=0;o<e;++o)r.push(Z(n[o],t));return 1===i?r.push("... 1 more item"):i>1&&r.push("... ".concat(i," more items")),"["+r.join(", ")+"]"}(n,e);return function(n,t){var e=Object.keys(n);return 0===e.length?"{}":t.length>2?"["+function(n){var t=Object.prototype.toString.call(n).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof n.constructor){var e=n.constructor.name;if("string"==typeof e&&""!==e)return e}return t}(n)+"]":"{ "+e.map((function(e){return e+": "+Z(n[e],t)})).join(", ")+" }"}(n,e)}(n,t);default:return String(n)}}function nn(n,t){if(!Boolean(n))throw new Error(t)}function tn(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}var en=function(){function n(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof n||nn(0,"Body must be a string. Received: ".concat(K(n),".")),this.body=n,this.name=t,this.locationOffset=e,this.locationOffset.line>0||nn(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||nn(0,"column in locationOffset is 1-indexed and must be positive.")}var t,e;return t=n,(e=[{key:C,get:function(){return"Source"}}])&&tn(t.prototype,e),n}(),rn=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function on(n){var t=n.split(/\r\n|[\n\r]/g),e=function(n){for(var t,e=!0,i=!0,r=0,o=null,u=0;u<n.length;++u)switch(n.charCodeAt(u)){case 13:10===n.charCodeAt(u+1)&&++u;case 10:e=!1,i=!0,r=0;break;case 9:case 32:++r;break;default:i&&!e&&(null===o||r<o)&&(o=r),i=!1}return null!==(t=o)&&void 0!==t?t:0}(n);if(0!==e)for(var i=1;i<t.length;i++)t[i]=t[i].slice(e);for(var r=0;r<t.length&&un(t[r]);)++r;for(var o=t.length;o>r&&un(t[o-1]);)--o;return t.slice(r,o).join("\n")}function un(n){for(var t=0;t<n.length;++t)if(" "!==n[t]&&"\t"!==n[t])return!1;return!0}var sn=function(){function n(n){var t=new Q(z.SOF,0,0,0,0,null);this.source=n,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=n.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var n=this.token;if(n.kind!==z.EOF)do{var t;n=null!==(t=n.next)&&void 0!==t?t:n.next=cn(this,n)}while(n.kind===z.COMMENT);return n},n}();function an(n){return isNaN(n)?z.EOF:n<127?JSON.stringify(String.fromCharCode(n)):'"\\u'.concat(("00"+n.toString(16).toUpperCase()).slice(-4),'"')}function cn(n,t){for(var e=n.source,i=e.body,r=i.length,o=t.end;o<r;){var u=i.charCodeAt(o),s=n.line,a=1+o-n.lineStart;switch(u){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++n.line,n.lineStart=o;continue;case 13:10===i.charCodeAt(o+1)?o+=2:++o,++n.line,n.lineStart=o;continue;case 33:return new Q(z.BANG,o,o+1,s,a,t);case 35:return ln(e,o,s,a,t);case 36:return new Q(z.DOLLAR,o,o+1,s,a,t);case 38:return new Q(z.AMP,o,o+1,s,a,t);case 40:return new Q(z.PAREN_L,o,o+1,s,a,t);case 41:return new Q(z.PAREN_R,o,o+1,s,a,t);case 46:if(46===i.charCodeAt(o+1)&&46===i.charCodeAt(o+2))return new Q(z.SPREAD,o,o+3,s,a,t);break;case 58:return new Q(z.COLON,o,o+1,s,a,t);case 61:return new Q(z.EQUALS,o,o+1,s,a,t);case 64:return new Q(z.AT,o,o+1,s,a,t);case 91:return new Q(z.BRACKET_L,o,o+1,s,a,t);case 93:return new Q(z.BRACKET_R,o,o+1,s,a,t);case 123:return new Q(z.BRACE_L,o,o+1,s,a,t);case 124:return new Q(z.PIPE,o,o+1,s,a,t);case 125:return new Q(z.BRACE_R,o,o+1,s,a,t);case 34:return 34===i.charCodeAt(o+1)&&34===i.charCodeAt(o+2)?pn(e,o,s,a,t,n):vn(e,o,s,a,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return hn(e,o,u,s,a,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return bn(e,o,s,a,t)}throw $(e,o,fn(u))}return new Q(z.EOF,r,r,n.line,1+o-n.lineStart,t)}function fn(n){return n<32&&9!==n&&10!==n&&13!==n?"Cannot contain the invalid character ".concat(an(n),"."):39===n?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(an(n),".")}function ln(n,t,e,i,r){var o,u=n.body,s=t;do{o=u.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new Q(z.COMMENT,t,s,e,i,r,u.slice(t+1,s))}function hn(n,t,e,i,r,o){var u=n.body,s=e,a=t,c=!1;if(45===s&&(s=u.charCodeAt(++a)),48===s){if((s=u.charCodeAt(++a))>=48&&s<=57)throw $(n,a,"Invalid number, unexpected digit after 0: ".concat(an(s),"."))}else a=dn(n,a,s),s=u.charCodeAt(a);if(46===s&&(c=!0,s=u.charCodeAt(++a),a=dn(n,a,s),s=u.charCodeAt(a)),69!==s&&101!==s||(c=!0,43!==(s=u.charCodeAt(++a))&&45!==s||(s=u.charCodeAt(++a)),a=dn(n,a,s),s=u.charCodeAt(a)),46===s||function(n){return 95===n||n>=65&&n<=90||n>=97&&n<=122}(s))throw $(n,a,"Invalid number, expected digit but got: ".concat(an(s),"."));return new Q(c?z.FLOAT:z.INT,t,a,i,r,o,u.slice(t,a))}function dn(n,t,e){var i=n.body,r=t,o=e;if(o>=48&&o<=57){do{o=i.charCodeAt(++r)}while(o>=48&&o<=57);return r}throw $(n,r,"Invalid number, expected digit but got: ".concat(an(o),"."))}function vn(n,t,e,i,r){for(var o=n.body,u=t+1,s=u,a=0,c="";u<o.length&&!isNaN(a=o.charCodeAt(u))&&10!==a&&13!==a;){if(34===a)return c+=o.slice(s,u),new Q(z.STRING,t,u+1,e,i,r,c);if(a<32&&9!==a)throw $(n,u,"Invalid character within String: ".concat(an(a),"."));if(++u,92===a){switch(c+=o.slice(s,u-1),a=o.charCodeAt(u)){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:var f=mn(o.charCodeAt(u+1),o.charCodeAt(u+2),o.charCodeAt(u+3),o.charCodeAt(u+4));if(f<0){var l=o.slice(u+1,u+5);throw $(n,u,"Invalid character escape sequence: \\u".concat(l,"."))}c+=String.fromCharCode(f),u+=4;break;default:throw $(n,u,"Invalid character escape sequence: \\".concat(String.fromCharCode(a),"."))}s=++u}}throw $(n,u,"Unterminated string.")}function pn(n,t,e,i,r,o){for(var u=n.body,s=t+3,a=s,c=0,f="";s<u.length&&!isNaN(c=u.charCodeAt(s));){if(34===c&&34===u.charCodeAt(s+1)&&34===u.charCodeAt(s+2))return f+=u.slice(a,s),new Q(z.BLOCK_STRING,t,s+3,e,i,r,on(f));if(c<32&&9!==c&&10!==c&&13!==c)throw $(n,s,"Invalid character within String: ".concat(an(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===u.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===u.charCodeAt(s+1)&&34===u.charCodeAt(s+2)&&34===u.charCodeAt(s+3)?(f+=u.slice(a,s)+'"""',a=s+=4):++s}throw $(n,s,"Unterminated string.")}function mn(n,t,e,i){return yn(n)<<12|yn(t)<<8|yn(e)<<4|yn(i)}function yn(n){return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:-1}function bn(n,t,e,i,r){for(var o=n.body,u=o.length,s=t+1,a=0;s!==u&&!isNaN(a=o.charCodeAt(s))&&(95===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122);)++s;return new Q(z.NAME,t,s,e,i,r,o.slice(t,s))}function wn(n,t){return new En(n,t).parseDocument()}var En=function(){function n(n,t){var e=function(n){return n instanceof en}(n)?n:new en(n);this._lexer=new sn(e),this._options=t}var t=n.prototype;return t.parseName=function(){var n=this.expectToken(z.NAME);return{kind:J.NAME,value:n.value,loc:this.loc(n)}},t.parseDocument=function(){var n=this._lexer.token;return{kind:J.DOCUMENT,definitions:this.many(z.SOF,this.parseDefinition,z.EOF),loc:this.loc(n)}},t.parseDefinition=function(){if(this.peek(z.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(z.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(z.BRACE_L))return{kind:J.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var t,e=this.parseOperationType();return this.peek(z.NAME)&&(t=this.parseName()),{kind:J.OPERATION_DEFINITION,operation:e,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseOperationType=function(){var n=this.expectToken(z.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},t.parseVariableDefinitions=function(){return this.optionalMany(z.PAREN_L,this.parseVariableDefinition,z.PAREN_R)},t.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:J.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(z.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(z.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(n)}},t.parseVariable=function(){var n=this._lexer.token;return this.expectToken(z.DOLLAR),{kind:J.VARIABLE,name:this.parseName(),loc:this.loc(n)}},t.parseSelectionSet=function(){var n=this._lexer.token;return{kind:J.SELECTION_SET,selections:this.many(z.BRACE_L,this.parseSelection,z.BRACE_R),loc:this.loc(n)}},t.parseSelection=function(){return this.peek(z.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var n,t,e=this._lexer.token,i=this.parseName();return this.expectOptionalToken(z.COLON)?(n=i,t=this.parseName()):t=i,{kind:J.FIELD,alias:n,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(z.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(e)}},t.parseArguments=function(n){return this.optionalMany(z.PAREN_L,n?this.parseConstArgument:this.parseArgument,z.PAREN_R)},t.parseArgument=function(){var n=this._lexer.token,t=this.parseName();return this.expectToken(z.COLON),{kind:J.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(n)}},t.parseConstArgument=function(){var n=this._lexer.token;return{kind:J.ARGUMENT,name:this.parseName(),value:(this.expectToken(z.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}},t.parseFragment=function(){var n=this._lexer.token;this.expectToken(z.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(z.NAME)?{kind:J.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:J.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseFragmentDefinition=function(){var n,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(n=this._options)||void 0===n?void 0:n.experimentalFragmentVariables)?{kind:J.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:J.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(n){var t=this._lexer.token;switch(t.kind){case z.BRACKET_L:return this.parseList(n);case z.BRACE_L:return this.parseObject(n);case z.INT:return this._lexer.advance(),{kind:J.INT,value:t.value,loc:this.loc(t)};case z.FLOAT:return this._lexer.advance(),{kind:J.FLOAT,value:t.value,loc:this.loc(t)};case z.STRING:case z.BLOCK_STRING:return this.parseStringLiteral();case z.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:J.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:J.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:J.NULL,loc:this.loc(t)};default:return{kind:J.ENUM,value:t.value,loc:this.loc(t)}}case z.DOLLAR:if(!n)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var n=this._lexer.token;return this._lexer.advance(),{kind:J.STRING,value:n.value,block:n.kind===z.BLOCK_STRING,loc:this.loc(n)}},t.parseList=function(n){var t=this,e=this._lexer.token;return{kind:J.LIST,values:this.any(z.BRACKET_L,(function(){return t.parseValueLiteral(n)}),z.BRACKET_R),loc:this.loc(e)}},t.parseObject=function(n){var t=this,e=this._lexer.token;return{kind:J.OBJECT,fields:this.any(z.BRACE_L,(function(){return t.parseObjectField(n)}),z.BRACE_R),loc:this.loc(e)}},t.parseObjectField=function(n){var t=this._lexer.token,e=this.parseName();return this.expectToken(z.COLON),{kind:J.OBJECT_FIELD,name:e,value:this.parseValueLiteral(n),loc:this.loc(t)}},t.parseDirectives=function(n){for(var t=[];this.peek(z.AT);)t.push(this.parseDirective(n));return t},t.parseDirective=function(n){var t=this._lexer.token;return this.expectToken(z.AT),{kind:J.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(t)}},t.parseTypeReference=function(){var n,t=this._lexer.token;return this.expectOptionalToken(z.BRACKET_L)?(n=this.parseTypeReference(),this.expectToken(z.BRACKET_R),n={kind:J.LIST_TYPE,type:n,loc:this.loc(t)}):n=this.parseNamedType(),this.expectOptionalToken(z.BANG)?{kind:J.NON_NULL_TYPE,type:n,loc:this.loc(t)}:n},t.parseNamedType=function(){var n=this._lexer.token;return{kind:J.NAMED_TYPE,name:this.parseName(),loc:this.loc(n)}},t.parseTypeSystemDefinition=function(){var n=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(n.kind===z.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()}throw this.unexpected(n)},t.peekDescription=function(){return this.peek(z.STRING)||this.peek(z.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var e=this.parseDirectives(!0),i=this.many(z.BRACE_L,this.parseOperationTypeDefinition,z.BRACE_R);return{kind:J.SCHEMA_DEFINITION,description:t,directives:e,operationTypes:i,loc:this.loc(n)}},t.parseOperationTypeDefinition=function(){var n=this._lexer.token,t=this.parseOperationType();this.expectToken(z.COLON);var e=this.parseNamedType();return{kind:J.OPERATION_TYPE_DEFINITION,operation:t,type:e,loc:this.loc(n)}},t.parseScalarTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var e=this.parseName(),i=this.parseDirectives(!0);return{kind:J.SCALAR_TYPE_DEFINITION,description:t,name:e,directives:i,loc:this.loc(n)}},t.parseObjectTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var e=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:J.OBJECT_TYPE_DEFINITION,description:t,name:e,interfaces:i,directives:r,fields:o,loc:this.loc(n)}},t.parseImplementsInterfaces=function(){var n;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(n=this._options)||void 0===n?void 0:n.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(z.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(z.AMP)||this.peek(z.NAME));return t}return this.delimitedMany(z.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var n;return!0===(null===(n=this._options)||void 0===n?void 0:n.allowLegacySDLEmptyFields)&&this.peek(z.BRACE_L)&&this._lexer.lookahead().kind===z.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(z.BRACE_L,this.parseFieldDefinition,z.BRACE_R)},t.parseFieldDefinition=function(){var n=this._lexer.token,t=this.parseDescription(),e=this.parseName(),i=this.parseArgumentDefs();this.expectToken(z.COLON);var r=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:J.FIELD_DEFINITION,description:t,name:e,arguments:i,type:r,directives:o,loc:this.loc(n)}},t.parseArgumentDefs=function(){return this.optionalMany(z.PAREN_L,this.parseInputValueDef,z.PAREN_R)},t.parseInputValueDef=function(){var n=this._lexer.token,t=this.parseDescription(),e=this.parseName();this.expectToken(z.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(z.EQUALS)&&(i=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:J.INPUT_VALUE_DEFINITION,description:t,name:e,type:r,defaultValue:i,directives:o,loc:this.loc(n)}},t.parseInterfaceTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var e=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:J.INTERFACE_TYPE_DEFINITION,description:t,name:e,interfaces:i,directives:r,fields:o,loc:this.loc(n)}},t.parseUnionTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var e=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:J.UNION_TYPE_DEFINITION,description:t,name:e,directives:i,types:r,loc:this.loc(n)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(z.EQUALS)?this.delimitedMany(z.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var e=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:J.ENUM_TYPE_DEFINITION,description:t,name:e,directives:i,values:r,loc:this.loc(n)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(z.BRACE_L,this.parseEnumValueDefinition,z.BRACE_R)},t.parseEnumValueDefinition=function(){var n=this._lexer.token,t=this.parseDescription(),e=this.parseName(),i=this.parseDirectives(!0);return{kind:J.ENUM_VALUE_DEFINITION,description:t,name:e,directives:i,loc:this.loc(n)}},t.parseInputObjectTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var e=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:J.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:e,directives:i,fields:r,loc:this.loc(n)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(z.BRACE_L,this.parseInputValueDef,z.BRACE_R)},t.parseTypeSystemExtension=function(){var n=this._lexer.lookahead();if(n.kind===z.NAME)switch(n.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(n)},t.parseSchemaExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),e=this.optionalMany(z.BRACE_L,this.parseOperationTypeDefinition,z.BRACE_R);if(0===t.length&&0===e.length)throw this.unexpected();return{kind:J.SCHEMA_EXTENSION,directives:t,operationTypes:e,loc:this.loc(n)}},t.parseScalarTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),e=this.parseDirectives(!0);if(0===e.length)throw this.unexpected();return{kind:J.SCALAR_TYPE_EXTENSION,name:t,directives:e,loc:this.loc(n)}},t.parseObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),e=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===e.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:J.OBJECT_TYPE_EXTENSION,name:t,interfaces:e,directives:i,fields:r,loc:this.loc(n)}},t.parseInterfaceTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),e=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===e.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:J.INTERFACE_TYPE_EXTENSION,name:t,interfaces:e,directives:i,fields:r,loc:this.loc(n)}},t.parseUnionTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),e=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===e.length&&0===i.length)throw this.unexpected();return{kind:J.UNION_TYPE_EXTENSION,name:t,directives:e,types:i,loc:this.loc(n)}},t.parseEnumTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),e=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===e.length&&0===i.length)throw this.unexpected();return{kind:J.ENUM_TYPE_EXTENSION,name:t,directives:e,values:i,loc:this.loc(n)}},t.parseInputObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),e=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===e.length&&0===i.length)throw this.unexpected();return{kind:J.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:e,fields:i,loc:this.loc(n)}},t.parseDirectiveDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(z.AT);var e=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:J.DIRECTIVE_DEFINITION,description:t,name:e,arguments:i,repeatable:r,locations:o,loc:this.loc(n)}},t.parseDirectiveLocations=function(){return this.delimitedMany(z.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var n=this._lexer.token,t=this.parseName();if(void 0!==rn[t.value])return t;throw this.unexpected(n)},t.loc=function(n){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new Y(n,this._lexer.lastToken,this._lexer.source)},t.peek=function(n){return this._lexer.token.kind===n},t.expectToken=function(n){var t=this._lexer.token;if(t.kind===n)return this._lexer.advance(),t;throw $(this._lexer.source,t.start,"Expected ".concat(Sn(n),", found ").concat(gn(t),"."))},t.expectOptionalToken=function(n){var t=this._lexer.token;if(t.kind===n)return this._lexer.advance(),t},t.expectKeyword=function(n){var t=this._lexer.token;if(t.kind!==z.NAME||t.value!==n)throw $(this._lexer.source,t.start,'Expected "'.concat(n,'", found ').concat(gn(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(n){var t=this._lexer.token;return t.kind===z.NAME&&t.value===n&&(this._lexer.advance(),!0)},t.unexpected=function(n){var t=null!=n?n:this._lexer.token;return $(this._lexer.source,t.start,"Unexpected ".concat(gn(t),"."))},t.any=function(n,t,e){this.expectToken(n);for(var i=[];!this.expectOptionalToken(e);)i.push(t.call(this));return i},t.optionalMany=function(n,t,e){if(this.expectOptionalToken(n)){var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(e));return i}return[]},t.many=function(n,t,e){this.expectToken(n);var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(e));return i},t.delimitedMany=function(n,t){this.expectOptionalToken(n);var e=[];do{e.push(t.call(this))}while(this.expectOptionalToken(n));return e},n}();function gn(n){var t=n.value;return Sn(n.kind)+(null!=t?' "'.concat(t,'"'):"")}function Sn(n){return function(n){return n===z.BANG||n===z.DOLLAR||n===z.AMP||n===z.PAREN_L||n===z.PAREN_R||n===z.SPREAD||n===z.COLON||n===z.EQUALS||n===z.AT||n===z.BRACKET_L||n===z.BRACKET_R||n===z.BRACE_L||n===z.PIPE||n===z.BRACE_R}(n)?'"'.concat(n,'"'):n}var In={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"]},On=Object.freeze({});function Tn(n,t,e){var i=n[t];if(i){if(!e&&"function"==typeof i)return i;var r=e?i.leave:i.enter;if("function"==typeof r)return r}else{var o=e?n.leave:n.enter;if(o){if("function"==typeof o)return o;var u=o[t];if("function"==typeof u)return u}}}function Nn(n){return function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:In,i=void 0,r=Array.isArray(n),o=[n],u=-1,s=[],a=void 0,c=void 0,f=void 0,l=[],h=[],d=n;do{var v=++u===o.length,p=v&&0!==s.length;if(v){if(c=0===h.length?void 0:l[l.length-1],a=f,f=h.pop(),p){if(r)a=a.slice();else{for(var m={},y=0,b=Object.keys(a);y<b.length;y++){var w=b[y];m[w]=a[w]}a=m}for(var E=0,g=0;g<s.length;g++){var S=s[g][0],I=s[g][1];r&&(S-=E),r&&null===I?(a.splice(S,1),E++):a[S]=I}}u=i.index,o=i.keys,s=i.edits,r=i.inArray,i=i.prev}else{if(c=f?r?u:o[u]:void 0,null==(a=f?f[c]:d))continue;f&&l.push(c)}var O,T=void 0;if(!Array.isArray(a)){if(!X(a))throw new Error("Invalid AST Node: ".concat(K(a),"."));var N=Tn(t,a.kind,v);if(N){if((T=N.call(t,a,c,f,l,h))===On)break;if(!1===T){if(!v){l.pop();continue}}else if(void 0!==T&&(s.push([c,T]),!v)){if(!X(T)){l.pop();continue}a=T}}}void 0===T&&p&&s.push([c,a]),v?l.pop():(i={inArray:r,index:u,keys:o,edits:s,prev:i},o=(r=Array.isArray(a))?a:null!==(O=e[a.kind])&&void 0!==O?O:[],u=-1,s=[],f&&h.push(f),f=a)}while(void 0!==i);return 0!==s.length&&(d=s[s.length-1][1]),d}(n,{leave:Fn})}var Fn={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return Dn(n.definitions,"\n\n")+"\n"},OperationDefinition:function(n){var t=n.operation,e=n.name,i=An("(",Dn(n.variableDefinitions,", "),")"),r=Dn(n.directives," "),o=n.selectionSet;return e||r||i||"query"!==t?Dn([t,Dn([e,i]),r,o]," "):o},VariableDefinition:function(n){var t=n.directives;return n.variable+": "+n.type+An(" = ",n.defaultValue)+An(" ",Dn(t," "))},SelectionSet:function(n){return jn(n.selections)},Field:function(n){var t=n.name,e=n.arguments,i=n.directives,r=n.selectionSet,o=An("",n.alias,": ")+t,u=o+An("(",Dn(e,", "),")");return u.length>80&&(u=o+An("(\n",_n(Dn(e,"\n")),"\n)")),Dn([u,Dn(i," "),r]," ")},Argument:function(n){return n.name+": "+n.value},FragmentSpread:function(n){return"..."+n.name+An(" ",Dn(n.directives," "))},InlineFragment:function(n){var t=n.directives,e=n.selectionSet;return Dn(["...",An("on ",n.typeCondition),Dn(t," "),e]," ")},FragmentDefinition:function(n){var t=n.typeCondition,e=n.variableDefinitions,i=n.directives,r=n.selectionSet;return"fragment ".concat(n.name).concat(An("(",Dn(e,", "),")")," ")+"on ".concat(t," ").concat(An("",Dn(i," ")," "))+r},IntValue:function(n){return n.value},FloatValue:function(n){return n.value},StringValue:function(n,t){var e=n.value;return n.block?function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===n.indexOf("\n"),r=" "===n[0]||"\t"===n[0],o='"'===n[n.length-1],u="\\"===n[n.length-1],s=!i||o||u||e,a="";return!s||i&&r||(a+="\n"+t),a+=t?n.replace(/\n/g,"\n"+t):n,s&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}(e,"description"===t?"":" "):JSON.stringify(e)},BooleanValue:function(n){return n.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(n){return n.value},ListValue:function(n){return"["+Dn(n.values,", ")+"]"},ObjectValue:function(n){return"{"+Dn(n.fields,", ")+"}"},ObjectField:function(n){return n.name+": "+n.value},Directive:function(n){return"@"+n.name+An("(",Dn(n.arguments,", "),")")},NamedType:function(n){return n.name},ListType:function(n){return"["+n.type+"]"},NonNullType:function(n){return n.type+"!"},SchemaDefinition:Cn((function(n){var t=n.operationTypes;return Dn(["schema",Dn(n.directives," "),jn(t)]," ")})),OperationTypeDefinition:function(n){return n.operation+": "+n.type},ScalarTypeDefinition:Cn((function(n){return Dn(["scalar",n.name,Dn(n.directives," ")]," ")})),ObjectTypeDefinition:Cn((function(n){var t=n.directives,e=n.fields;return Dn(["type",n.name,An("implements ",Dn(n.interfaces," & ")),Dn(t," "),jn(e)]," ")})),FieldDefinition:Cn((function(n){var t=n.arguments,e=n.type,i=n.directives;return n.name+(kn(t)?An("(\n",_n(Dn(t,"\n")),"\n)"):An("(",Dn(t,", "),")"))+": "+e+An(" ",Dn(i," "))})),InputValueDefinition:Cn((function(n){var t=n.directives;return Dn([n.name+": "+n.type,An("= ",n.defaultValue),Dn(t," ")]," ")})),InterfaceTypeDefinition:Cn((function(n){var t=n.directives,e=n.fields;return Dn(["interface",n.name,An("implements ",Dn(n.interfaces," & ")),Dn(t," "),jn(e)]," ")})),UnionTypeDefinition:Cn((function(n){var t=n.types;return Dn(["union",n.name,Dn(n.directives," "),t&&0!==t.length?"= "+Dn(t," | "):""]," ")})),EnumTypeDefinition:Cn((function(n){var t=n.values;return Dn(["enum",n.name,Dn(n.directives," "),jn(t)]," ")})),EnumValueDefinition:Cn((function(n){return Dn([n.name,Dn(n.directives," ")]," ")})),InputObjectTypeDefinition:Cn((function(n){var t=n.fields;return Dn(["input",n.name,Dn(n.directives," "),jn(t)]," ")})),DirectiveDefinition:Cn((function(n){var t=n.arguments,e=n.repeatable,i=n.locations;return"directive @"+n.name+(kn(t)?An("(\n",_n(Dn(t,"\n")),"\n)"):An("(",Dn(t,", "),")"))+(e?" repeatable":"")+" on "+Dn(i," | ")})),SchemaExtension:function(n){var t=n.operationTypes;return Dn(["extend schema",Dn(n.directives," "),jn(t)]," ")},ScalarTypeExtension:function(n){return Dn(["extend scalar",n.name,Dn(n.directives," ")]," ")},ObjectTypeExtension:function(n){var t=n.directives,e=n.fields;return Dn(["extend type",n.name,An("implements ",Dn(n.interfaces," & ")),Dn(t," "),jn(e)]," ")},InterfaceTypeExtension:function(n){var t=n.directives,e=n.fields;return Dn(["extend interface",n.name,An("implements ",Dn(n.interfaces," & ")),Dn(t," "),jn(e)]," ")},UnionTypeExtension:function(n){var t=n.types;return Dn(["extend union",n.name,Dn(n.directives," "),t&&0!==t.length?"= "+Dn(t," | "):""]," ")},EnumTypeExtension:function(n){var t=n.values;return Dn(["extend enum",n.name,Dn(n.directives," "),jn(t)]," ")},InputObjectTypeExtension:function(n){var t=n.fields;return Dn(["extend input",n.name,Dn(n.directives," "),jn(t)]," ")}};function Cn(n){return function(t){return Dn([t.description,n(t)],"\n")}}function Dn(n){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==n?void 0:n.filter((function(n){return n})).join(e))&&void 0!==t?t:""}function jn(n){return An("{\n",_n(Dn(n,"\n")),"\n}")}function An(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?n+t+e:""}function _n(n){return An(" ",n.replace(/\n/g,"\n "))}function xn(n){return-1!==n.indexOf("\n")}function kn(n){return null!=n&&n.some(xn)}function Pn(n,t,e,i){var r,o=null==(r=i)||"number"==typeof r||"boolean"==typeof r?i:e(i),u=t.get(o);return void 0===u&&(u=n.call(this,i),t.set(o,u)),u}function Mn(n,t,e){var i=Array.prototype.slice.call(arguments,3),r=e(i),o=t.get(r);return void 0===o&&(o=n.apply(this,i),t.set(r,o)),o}function Vn(n,t,e,i,r){return e.bind(t,n,i,r)}function Rn(n,t){return Vn(n,this,1===n.length?Pn:Mn,t.cache.create(),t.serializer)}function Un(){return JSON.stringify(arguments)}function qn(){this.cache=Object.create(null)}qn.prototype.has=function(n){return n in this.cache},qn.prototype.get=function(n){return this.cache[n]},qn.prototype.set=function(n,t){this.cache[n]=t};var Ln={create:function(){return new qn}},Bn=function(n,t){return(t&&t.strategy?t.strategy:Rn)(n,{cache:t&&t.cache?t.cache:Ln,serializer:t&&t.serializer?t.serializer:Un})},$n={variadic:function(n,t){return Vn(n,this,Mn,t.cache.create(),t.serializer)},monadic:function(n,t){return Vn(n,this,Pn,t.cache.create(),t.serializer)}};Bn.strategies=$n;const Jn=Object.freeze(Object.assign(Object.create(null),Bn,{default:Bn,strategies:$n}));function Gn(n){return"function"==typeof n}let Hn=!1;const Yn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else Hn&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Hn=n},get useDeprecatedSynchronousErrorHandling(){return Hn}};function Qn(n){setTimeout((()=>{throw n}),0)}const Xn={closed:!0,next(n){},error(n){if(Yn.useDeprecatedSynchronousErrorHandling)throw n;Qn(n)},complete(){}},zn=Array.isArray||(n=>n&&"number"==typeof n.length);function Wn(n){return null!==n&&"object"==typeof n}const Kn=(()=>{function n(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map(((n,t)=>`${t+1}) ${n.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return n.prototype=Object.create(Error.prototype),n})();class Zn{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:e,_unsubscribe:i,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof Zn)t.remove(this);else if(null!==t)for(let n=0;n<t.length;++n)t[n].remove(this);if(Gn(i)){e&&(this._unsubscribe=void 0);try{i.call(this)}catch(t){n=t instanceof Kn?nt(t.errors):[t]}}if(zn(r)){let t=-1,e=r.length;for(;++t<e;){const e=r[t];if(Wn(e))try{e.unsubscribe()}catch(t){n=n||[],t instanceof Kn?n=n.concat(nt(t.errors)):n.push(t)}}}if(n)throw new Kn(n)}add(n){let t=n;if(!n)return Zn.EMPTY;switch(typeof n){case"function":t=new Zn(n);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof Zn)){const n=t;t=new Zn,t._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}let{_parentOrParents:e}=t;if(null===e)t._parentOrParents=this;else if(e instanceof Zn){if(e===this)return t;t._parentOrParents=[e,this]}else{if(-1!==e.indexOf(this))return t;e.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[t]:i.push(t),t}remove(n){const t=this._subscriptions;if(t){const e=t.indexOf(n);-1!==e&&t.splice(e,1)}}}function nt(n){return n.reduce(((n,t)=>n.concat(t instanceof Kn?t.errors:t)),[])}Zn.EMPTY=function(n){return n.closed=!0,n}(new Zn);const tt="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class et extends Zn{constructor(n,t,e){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Xn;break;case 1:if(!n){this.destination=Xn;break}if("object"==typeof n){n instanceof et?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new it(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new it(this,n,t,e)}}[tt](){return this}static create(n,t,e){const i=new et(n,t,e);return i.syncErrorThrowable=!1,i}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class it extends et{constructor(n,t,e,i){let r;super(),this._parentSubscriber=n;let o=this;Gn(t)?r=t:t&&(r=t.next,e=t.error,i=t.complete,t!==Xn&&(o=Object.create(t),Gn(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=e,this._complete=i}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Yn.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:e}=Yn;if(this._error)e&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(t.syncErrorThrowable)e?(t.syncErrorValue=n,t.syncErrorThrown=!0):Qn(n),this.unsubscribe();else{if(this.unsubscribe(),e)throw n;Qn(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const t=()=>this._complete.call(this._context);Yn.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,t){try{n.call(this._context,t)}catch(n){if(this.unsubscribe(),Yn.useDeprecatedSynchronousErrorHandling)throw n;Qn(n)}}__tryOrSetError(n,t,e){if(!Yn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,e)}catch(t){return Yn.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=t,n.syncErrorThrown=!0,!0):(Qn(t),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const rt="function"==typeof Symbol&&Symbol.observable||"@@observable";function ot(n){return n}class ut{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const t=new ut;return t.source=this,t.operator=n,t}subscribe(n,t,e){const{operator:i}=this,r=function(n,t,e){if(n){if(n instanceof et)return n;if(n[tt])return n[tt]()}return n||t||e?new et(n,t,e):new et(Xn)}(n,t,e);if(r.add(i?i.call(r,this.source):this.source||Yn.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),Yn.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(n){try{return this._subscribe(n)}catch(t){Yn.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=t),function(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof et?e:null}return!0}(n)?n.error(t):console.warn(t)}}forEach(n,t){return new(t=st(t))(((t,e)=>{let i;i=this.subscribe((t=>{try{n(t)}catch(n){e(n),i&&i.unsubscribe()}}),e,t)}))}_subscribe(n){const{source:t}=this;return t&&t.subscribe(n)}[rt](){return this}pipe(...n){return 0===n.length?this:(0===(t=n).length?ot:1===t.length?t[0]:function(n){return t.reduce(((n,t)=>t(n)),n)})(this);var t}toPromise(n){return new(n=st(n))(((n,t)=>{let e;this.subscribe((n=>e=n),(n=>t(n)),(()=>n(e)))}))}}function st(n){if(n||(n=Promise),!n)throw new Error("no Promise impl found");return n}ut.create=n=>new ut(n);const at=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class ct extends Zn{constructor(n,t){super(),this.subject=n,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,t=n.observers;if(this.subject=null,!t||0===t.length||n.isStopped||n.closed)return;const e=t.indexOf(this.subscriber);-1!==e&&t.splice(e,1)}}class ft extends et{constructor(n){super(n),this.destination=n}}class lt extends ut{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[tt](){return new ft(this)}lift(n){const t=new ht(this,this);return t.operator=n,t}next(n){if(this.closed)throw new at;if(!this.isStopped){const{observers:t}=this,e=t.length,i=t.slice();for(let t=0;t<e;t++)i[t].next(n)}}error(n){if(this.closed)throw new at;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:t}=this,e=t.length,i=t.slice();for(let t=0;t<e;t++)i[t].error(n);this.observers.length=0}complete(){if(this.closed)throw new at;this.isStopped=!0;const{observers:n}=this,t=n.length,e=n.slice();for(let n=0;n<t;n++)e[n].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new at;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new at;return this.hasError?(n.error(this.thrownError),Zn.EMPTY):this.isStopped?(n.complete(),Zn.EMPTY):(this.observers.push(n),new ct(this,n))}asObservable(){const n=new ut;return n.source=this,n}}lt.create=(n,t)=>new ht(n,t);class ht extends lt{constructor(n,t){super(),this.destination=n,this.source=t}next(n){const{destination:t}=this;t&&t.next&&t.next(n)}error(n){const{destination:t}=this;t&&t.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:t}=this;return t?this.source.subscribe(n):Zn.EMPTY}}class dt extends Zn{constructor(n,t){super()}schedule(n,t=0){return this}}class vt{constructor(n,t=vt.now){this.SchedulerAction=n,this.now=t}schedule(n,t=0,e){return new this.SchedulerAction(this,n).schedule(e,t)}}vt.now=()=>Date.now();class pt extends vt{constructor(n,t=vt.now){super(n,(()=>pt.delegate&&pt.delegate!==this?pt.delegate.now():t())),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,t=0,e){return pt.delegate&&pt.delegate!==this?pt.delegate.schedule(n,t,e):super.schedule(n,t,e)}flush(n){const{actions:t}=this;if(this.active)return void t.push(n);let e;this.active=!0;do{if(e=n.execute(n.state,n.delay))break}while(n=t.shift());if(this.active=!1,e){for(;n=t.shift();)n.unsubscribe();throw e}}}function mt(n){return n&&"function"==typeof n.schedule}const yt=new pt(class extends dt{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){if(this.closed)return this;this.state=n;const e=this.id,i=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(i,e,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(n,t,e=0){return setInterval(n.flush.bind(n,this),e)}recycleAsyncId(n,t,e=0){if(null!==e&&this.delay===e&&!1===this.pending)return t;clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const e=this._execute(n,t);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let e,i=!1;try{this.work(n)}catch(n){i=!0,e=!!n&&n||new Error(n)}if(i)return this.unsubscribe(),e}_unsubscribe(){const n=this.id,t=this.scheduler,e=t.actions,i=e.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&e.splice(i,1),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null}});class bt{constructor(n,t,e,i){this.bufferTimeSpan=n,this.bufferCreationInterval=t,this.maxBufferSize=e,this.scheduler=i}call(n,t){return t.subscribe(new Et(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class wt{constructor(){this.buffer=[]}}class Et extends et{constructor(n,t,e,i,r){super(n),this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=r,this.contexts=[];const o=this.openContext();if(this.timespanOnly=null==e||e<0,this.timespanOnly)this.add(o.closeAction=r.schedule(gt,t,{subscriber:this,context:o,bufferTimeSpan:t}));else{const n={bufferTimeSpan:t,bufferCreationInterval:e,subscriber:this,scheduler:r};this.add(o.closeAction=r.schedule(It,t,{subscriber:this,context:o})),this.add(r.schedule(St,e,n))}}_next(n){const t=this.contexts,e=t.length;let i;for(let r=0;r<e;r++){const e=t[r],o=e.buffer;o.push(n),o.length==this.maxBufferSize&&(i=e)}i&&this.onBufferFull(i)}_error(n){this.contexts.length=0,super._error(n)}_complete(){const{contexts:n,destination:t}=this;for(;n.length>0;){const e=n.shift();t.next(e.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const t=n.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){n=this.openContext();const t=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(gt,t,{subscriber:this,context:n,bufferTimeSpan:t}))}}openContext(){const n=new wt;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const t=this.contexts;(t?t.indexOf(n):-1)>=0&&t.splice(t.indexOf(n),1)}}function gt(n){const t=n.subscriber,e=n.context;e&&t.closeContext(e),t.closed||(n.context=t.openContext(),n.context.closeAction=this.schedule(n,n.bufferTimeSpan))}function St(n){const{bufferCreationInterval:t,bufferTimeSpan:e,subscriber:i,scheduler:r}=n,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(It,e,{subscriber:i,context:o})),this.schedule(n,t))}function It(n){const{subscriber:t,context:e}=n;t.closeContext(e)}var Ot=n((function(n,e){var i,r=t&&t.__extends||(i=function(n,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])})(n,t)},function(n,t){function e(){this.constructor=n}i(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.ClientError=void 0;var o=function(n){function t(e,i){var r=this,o=t.extractMessage(e)+": "+JSON.stringify({response:e,request:i});return r=n.call(this,o)||this,Object.setPrototypeOf(r,t.prototype),r.response=e,r.request=i,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(r,t),r}return r(t,n),t.extractMessage=function(n){try{return n.errors[0].message}catch(t){return"GraphQL Error (Code: "+n.status+")"}},t}(Error);e.ClientError=o})),Tt=n((function(n,e){var i="undefined"!=typeof self?self:t,r=function(){function n(){this.fetch=!1,this.DOMException=i.DOMException}return n.prototype=i,new n}();!function(n){!function(t){var e="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,r="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(n){return!1}}(),o="FormData"in n,u="ArrayBuffer"in n;if(u)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(n){return n&&s.indexOf(Object.prototype.toString.call(n))>-1};function c(n){if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new TypeError("Invalid character in header field name");return n.toLowerCase()}function f(n){return"string"!=typeof n&&(n=String(n)),n}function l(n){var t={next:function(){var t=n.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function h(n){this.map={},n instanceof h?n.forEach((function(n,t){this.append(t,n)}),this):Array.isArray(n)?n.forEach((function(n){this.append(n[0],n[1])}),this):n&&Object.getOwnPropertyNames(n).forEach((function(t){this.append(t,n[t])}),this)}function d(n){if(n.bodyUsed)return Promise.reject(new TypeError("Already read"));n.bodyUsed=!0}function v(n){return new Promise((function(t,e){n.onload=function(){t(n.result)},n.onerror=function(){e(n.error)}}))}function p(n){var t=new FileReader,e=v(t);return t.readAsArrayBuffer(n),e}function m(n){if(n.slice)return n.slice(0);var t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(n){var t;this._bodyInit=n,n?"string"==typeof n?this._bodyText=n:r&&Blob.prototype.isPrototypeOf(n)?this._bodyBlob=n:o&&FormData.prototype.isPrototypeOf(n)?this._bodyFormData=n:e&&URLSearchParams.prototype.isPrototypeOf(n)?this._bodyText=n.toString():u&&r&&(t=n)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=m(n.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(n)||a(n))?this._bodyArrayBuffer=m(n):this._bodyText=n=Object.prototype.toString.call(n):this._bodyText="",this.headers.get("content-type")||("string"==typeof n?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(n)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var n=d(this);if(n)return n;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var n,t,e,i=d(this);if(i)return i;if(this._bodyBlob)return n=this._bodyBlob,e=v(t=new FileReader),t.readAsText(n),e;if(this._bodyArrayBuffer)return Promise.resolve(function(n){for(var t=new Uint8Array(n),e=new Array(t.length),i=0;i<t.length;i++)e[i]=String.fromCharCode(t[i]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(n,t){n=c(n),t=f(t);var e=this.map[n];this.map[n]=e?e+", "+t:t},h.prototype.delete=function(n){delete this.map[c(n)]},h.prototype.get=function(n){return n=c(n),this.has(n)?this.map[n]:null},h.prototype.has=function(n){return this.map.hasOwnProperty(c(n))},h.prototype.set=function(n,t){this.map[c(n)]=f(t)},h.prototype.forEach=function(n,t){for(var e in this.map)this.map.hasOwnProperty(e)&&n.call(t,this.map[e],e,this)},h.prototype.keys=function(){var n=[];return this.forEach((function(t,e){n.push(e)})),l(n)},h.prototype.values=function(){var n=[];return this.forEach((function(t){n.push(t)})),l(n)},h.prototype.entries=function(){var n=[];return this.forEach((function(t,e){n.push([e,t])})),l(n)},i&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(n,t){var e,i,r=(t=t||{}).body;if(n instanceof w){if(n.bodyUsed)throw new TypeError("Already read");this.url=n.url,this.credentials=n.credentials,t.headers||(this.headers=new h(n.headers)),this.method=n.method,this.mode=n.mode,this.signal=n.signal,r||null==n._bodyInit||(r=n._bodyInit,n.bodyUsed=!0)}else this.url=String(n);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(i=(e=t.method||this.method||"GET").toUpperCase(),b.indexOf(i)>-1?i:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function E(n){var t=new FormData;return n.trim().split("&").forEach((function(n){if(n){var e=n.split("="),i=e.shift().replace(/\+/g," "),r=e.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}})),t}function g(n,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(n)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},y.call(w.prototype),y.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},g.error=function(){var n=new g(null,{status:0,statusText:""});return n.type="error",n};var S=[301,302,303,307,308];g.redirect=function(n,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:n}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(n){t.DOMException=function(n,t){this.message=n,this.name=t;var e=Error(n);this.stack=e.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function I(n,e){return new Promise((function(i,o){var u=new w(n,e);if(u.signal&&u.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function a(){s.abort()}s.onload=function(){var n,t,e={status:s.status,statusText:s.statusText,headers:(n=s.getAllResponseHeaders()||"",t=new h,n.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(n){var e=n.split(":"),i=e.shift().trim();if(i){var r=e.join(":").trim();t.append(i,r)}})),t)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL"),i(new g("response"in s?s.response:s.responseText,e))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(u.method,u.url,!0),"include"===u.credentials?s.withCredentials=!0:"omit"===u.credentials&&(s.withCredentials=!1),"responseType"in s&&r&&(s.responseType="blob"),u.headers.forEach((function(n,t){s.setRequestHeader(t,n)})),u.signal&&(u.signal.addEventListener("abort",a),s.onreadystatechange=function(){4===s.readyState&&u.signal.removeEventListener("abort",a)}),s.send(void 0===u._bodyInit?null:u._bodyInit)}))}I.polyfill=!0,n.fetch||(n.fetch=I,n.Headers=h,n.Request=w,n.Response=g),t.Headers=h,t.Request=w,t.Response=g,t.fetch=I,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(e=o.fetch).default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,n.exports=e})),Nt=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=e})),Ft=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return o(n,[])};var e,i=(e=Nt)&&e.__esModule?e:{default:e};function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,t){switch(r(n)){case"string":return JSON.stringify(n);case"function":return n.name?"[function ".concat(n.name,"]"):"[function]";case"object":return null===n?"null":function(n,t){if(-1!==t.indexOf(n))return"[Circular]";var e=[].concat(t,[n]),r=function(n){var t=n[String(i.default)];return"function"==typeof t?t:"function"==typeof n.inspect?n.inspect:void 0}(n);if(void 0!==r){var u=r.call(n);if(u!==n)return"string"==typeof u?u:o(u,e)}else if(Array.isArray(n))return function(n,t){if(0===n.length)return"[]";if(t.length>2)return"[Array]";for(var e=Math.min(10,n.length),i=n.length-e,r=[],u=0;u<e;++u)r.push(o(n[u],t));return 1===i?r.push("... 1 more item"):i>1&&r.push("... ".concat(i," more items")),"["+r.join(", ")+"]"}(n,e);return function(n,t){var e=Object.keys(n);return 0===e.length?"{}":t.length>2?"["+function(n){var t=Object.prototype.toString.call(n).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof n.constructor){var e=n.constructor.name;if("string"==typeof e&&""!==e)return e}return t}(n)+"]":"{ "+e.map((function(e){return e+": "+o(n[e],t)})).join(", ")+" }"}(n,e)}(n,t);default:return String(n)}}})),Ct=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n,t){if(!Boolean(n))throw new Error(null!=t?t:"Unexpected invariant triggered.")}})),Dt=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var t=n.prototype.toJSON;"function"==typeof t||(0,e.default)(0),n.prototype.inspect=t,i.default&&(n.prototype[i.default]=t)};var e=r(Ct),i=r(Nt);function r(n){return n&&n.__esModule?n:{default:n}}})),jt=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=function(n){return null!=n&&"string"==typeof n.kind},t.Token=t.Location=void 0;var e,i=(e=Dt)&&e.__esModule?e:{default:e},r=function(){function n(n,t,e){this.start=n.start,this.end=t.end,this.startToken=n,this.endToken=t,this.source=e}return n.prototype.toJSON=function(){return{start:this.start,end:this.end}},n}();t.Location=r,(0,i.default)(r);var o=function(){function n(n,t,e,i,r,o,u){this.kind=n,this.start=t,this.end=e,this.line=i,this.column=r,this.value=u,this.prev=o,this.next=null}return n.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},n}();t.Token=o,(0,i.default)(o)})),At=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,s=void 0,a=Array.isArray(n),c=[n],f=-1,l=[],h=void 0,d=void 0,v=void 0,p=[],m=[],y=n;do{var b=++f===c.length,w=b&&0!==l.length;if(b){if(d=0===m.length?void 0:p[p.length-1],h=v,v=m.pop(),w){if(a)h=h.slice();else{for(var E={},g=0,S=Object.keys(h);g<S.length;g++){var I=S[g];E[I]=h[I]}h=E}for(var O=0,T=0;T<l.length;T++){var N=l[T][0],F=l[T][1];a&&(N-=O),a&&null===F?(h.splice(N,1),O++):h[N]=F}}f=s.index,c=s.keys,l=s.edits,a=s.inArray,s=s.prev}else{if(d=v?a?f:c[f]:void 0,null==(h=v?v[d]:y))continue;v&&p.push(d)}var C,D=void 0;if(!Array.isArray(h)){if(!(0,jt.isNode)(h))throw new Error("Invalid AST Node: ".concat((0,i.default)(h),"."));var j=u(t,h.kind,b);if(j){if((D=j.call(t,h,d,v,p,m))===o)break;if(!1===D){if(!b){p.pop();continue}}else if(void 0!==D&&(l.push([d,D]),!b)){if(!(0,jt.isNode)(D)){p.pop();continue}h=D}}}void 0===D&&w&&l.push([d,h]),b?p.pop():(s={inArray:a,index:f,keys:c,edits:l,prev:s},c=(a=Array.isArray(h))?h:null!==(C=e[h.kind])&&void 0!==C?C:[],f=-1,l=[],v&&m.push(v),v=h)}while(void 0!==s);return 0!==l.length&&(y=l[l.length-1][1]),y},t.visitInParallel=function(n){var t=new Array(n.length);return{enter:function(e){for(var i=0;i<n.length;i++)if(null==t[i]){var r=u(n[i],e.kind,!1);if(r){var s=r.apply(n[i],arguments);if(!1===s)t[i]=e;else if(s===o)t[i]=o;else if(void 0!==s)return s}}},leave:function(e){for(var i=0;i<n.length;i++)if(null==t[i]){var r=u(n[i],e.kind,!0);if(r){var s=r.apply(n[i],arguments);if(s===o)t[i]=o;else if(void 0!==s&&!1!==s)return s}}else t[i]===e&&(t[i]=null)}}},t.getVisitFn=u,t.BREAK=t.QueryDocumentKeys=void 0;var e,i=(e=Ft)&&e.__esModule?e:{default:e},r={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"]};t.QueryDocumentKeys=r;var o=Object.freeze({});function u(n,t,e){var i=n[t];if(i){if(!e&&"function"==typeof i)return i;var r=e?i.leave:i.enter;if("function"==typeof r)return r}else{var o=e?n.leave:n.enter;if(o){if("function"==typeof o)return o;var u=o[t];if("function"==typeof u)return u}}}t.BREAK=o})),_t=n((function(n,t){function e(n){for(var t=0;t<n.length;++t)if(" "!==n[t]&&"\t"!==n[t])return!1;return!0}function i(n){for(var t,e=!0,i=!0,r=0,o=null,u=0;u<n.length;++u)switch(n.charCodeAt(u)){case 13:10===n.charCodeAt(u+1)&&++u;case 10:e=!1,i=!0,r=0;break;case 9:case 32:++r;break;default:i&&!e&&(null===o||r<o)&&(o=r),i=!1}return null!==(t=o)&&void 0!==t?t:0}Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringValue=function(n){var t=n.split(/\r\n|[\n\r]/g),r=i(n);if(0!==r)for(var o=1;o<t.length;o++)t[o]=t[o].slice(r);for(var u=0;u<t.length&&e(t[u]);)++u;for(var s=t.length;s>u&&e(t[s-1]);)--s;return t.slice(u,s).join("\n")},t.getBlockStringIndentation=i,t.printBlockString=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===n.indexOf("\n"),r=" "===n[0]||"\t"===n[0],o='"'===n[n.length-1],u="\\"===n[n.length-1],s=!i||o||u||e,a="";return!s||i&&r||(a+="\n"+t),a+=t?n.replace(/\n/g,"\n"+t):n,s&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}})),xt=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(n){return(0,At.visit)(n,{leave:e})};var e={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return r(n.definitions,"\n\n")+"\n"},OperationDefinition:function(n){var t=n.operation,e=n.name,i=u("(",r(n.variableDefinitions,", "),")"),o=r(n.directives," "),s=n.selectionSet;return e||o||i||"query"!==t?r([t,r([e,i]),o,s]," "):s},VariableDefinition:function(n){var t=n.directives;return n.variable+": "+n.type+u(" = ",n.defaultValue)+u(" ",r(t," "))},SelectionSet:function(n){return o(n.selections)},Field:function(n){var t=n.name,e=n.arguments,i=n.directives,o=n.selectionSet,a=u("",n.alias,": ")+t,c=a+u("(",r(e,", "),")");return c.length>80&&(c=a+u("(\n",s(r(e,"\n")),"\n)")),r([c,r(i," "),o]," ")},Argument:function(n){return n.name+": "+n.value},FragmentSpread:function(n){return"..."+n.name+u(" ",r(n.directives," "))},InlineFragment:function(n){var t=n.directives,e=n.selectionSet;return r(["...",u("on ",n.typeCondition),r(t," "),e]," ")},FragmentDefinition:function(n){var t=n.typeCondition,e=n.variableDefinitions,i=n.directives,o=n.selectionSet;return"fragment ".concat(n.name).concat(u("(",r(e,", "),")")," ")+"on ".concat(t," ").concat(u("",r(i," ")," "))+o},IntValue:function(n){return n.value},FloatValue:function(n){return n.value},StringValue:function(n,t){var e=n.value;return n.block?(0,_t.printBlockString)(e,"description"===t?"":" "):JSON.stringify(e)},BooleanValue:function(n){return n.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(n){return n.value},ListValue:function(n){return"["+r(n.values,", ")+"]"},ObjectValue:function(n){return"{"+r(n.fields,", ")+"}"},ObjectField:function(n){return n.name+": "+n.value},Directive:function(n){return"@"+n.name+u("(",r(n.arguments,", "),")")},NamedType:function(n){return n.name},ListType:function(n){return"["+n.type+"]"},NonNullType:function(n){return n.type+"!"},SchemaDefinition:i((function(n){var t=n.operationTypes;return r(["schema",r(n.directives," "),o(t)]," ")})),OperationTypeDefinition:function(n){return n.operation+": "+n.type},ScalarTypeDefinition:i((function(n){return r(["scalar",n.name,r(n.directives," ")]," ")})),ObjectTypeDefinition:i((function(n){var t=n.directives,e=n.fields;return r(["type",n.name,u("implements ",r(n.interfaces," & ")),r(t," "),o(e)]," ")})),FieldDefinition:i((function(n){var t=n.arguments,e=n.type,i=n.directives;return n.name+(c(t)?u("(\n",s(r(t,"\n")),"\n)"):u("(",r(t,", "),")"))+": "+e+u(" ",r(i," "))})),InputValueDefinition:i((function(n){var t=n.directives;return r([n.name+": "+n.type,u("= ",n.defaultValue),r(t," ")]," ")})),InterfaceTypeDefinition:i((function(n){var t=n.directives,e=n.fields;return r(["interface",n.name,u("implements ",r(n.interfaces," & ")),r(t," "),o(e)]," ")})),UnionTypeDefinition:i((function(n){var t=n.types;return r(["union",n.name,r(n.directives," "),t&&0!==t.length?"= "+r(t," | "):""]," ")})),EnumTypeDefinition:i((function(n){var t=n.values;return r(["enum",n.name,r(n.directives," "),o(t)]," ")})),EnumValueDefinition:i((function(n){return r([n.name,r(n.directives," ")]," ")})),InputObjectTypeDefinition:i((function(n){var t=n.fields;return r(["input",n.name,r(n.directives," "),o(t)]," ")})),DirectiveDefinition:i((function(n){var t=n.arguments,e=n.repeatable,i=n.locations;return"directive @"+n.name+(c(t)?u("(\n",s(r(t,"\n")),"\n)"):u("(",r(t,", "),")"))+(e?" repeatable":"")+" on "+r(i," | ")})),SchemaExtension:function(n){var t=n.operationTypes;return r(["extend schema",r(n.directives," "),o(t)]," ")},ScalarTypeExtension:function(n){return r(["extend scalar",n.name,r(n.directives," ")]," ")},ObjectTypeExtension:function(n){var t=n.directives,e=n.fields;return r(["extend type",n.name,u("implements ",r(n.interfaces," & ")),r(t," "),o(e)]," ")},InterfaceTypeExtension:function(n){var t=n.directives,e=n.fields;return r(["extend interface",n.name,u("implements ",r(n.interfaces," & ")),r(t," "),o(e)]," ")},UnionTypeExtension:function(n){var t=n.types;return r(["extend union",n.name,r(n.directives," "),t&&0!==t.length?"= "+r(t," | "):""]," ")},EnumTypeExtension:function(n){var t=n.values;return r(["extend enum",n.name,r(n.directives," "),o(t)]," ")},InputObjectTypeExtension:function(n){var t=n.fields;return r(["extend input",n.name,r(n.directives," "),o(t)]," ")}};function i(n){return function(t){return r([t.description,n(t)],"\n")}}function r(n){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==n?void 0:n.filter((function(n){return n})).join(e))&&void 0!==t?t:""}function o(n){return u("{\n",s(r(n,"\n")),"\n}")}function u(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?n+t+e:""}function s(n){return u(" ",n.replace(/\n/g,"\n "))}function a(n){return-1!==n.indexOf("\n")}function c(n){return null!=n&&n.some(a)}})),kt=function(n){var t=n.name,e=n.type;this.uri=n.uri,this.name=t,this.type=e},Pt=function(n){return"undefined"!=typeof File&&n instanceof File||"undefined"!=typeof Blob&&n instanceof Blob||n instanceof kt},Mt=function n(t,e,i){var r;void 0===e&&(e=""),void 0===i&&(i=Pt);var o=new Map;function u(n,t){var e=o.get(t);e?e.push.apply(e,n):o.set(t,n)}if(i(t))r=null,u([e],t);else{var s=e?e+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)r=Array.prototype.map.call(t,(function(n,t){return u([""+s+t],n),null}));else if(Array.isArray(t))r=t.map((function(t,e){var r=n(t,""+s+e,i);return r.files.forEach(u),r.clone}));else if(t&&t.constructor===Object)for(var a in r={},t){var c=n(t[a],""+s+a,i);c.files.forEach(u),r[a]=c.clone}else r=t}return{clone:r,files:o}},Vt=Pt,Rt="object"==typeof self?self.FormData:window.FormData,Ut=n((function(n,e){var i=t&&t.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(Rt),o=function(n){return Vt(n)||null!==n&&"object"==typeof n&&"function"==typeof n.pipe};e.default=function(n,t){var e=Mt({query:n,variables:t},"",o),i=e.clone,u=e.files;if(0===u.size)return JSON.stringify(i);var s=new("undefined"==typeof FormData?r.default:FormData);s.append("operations",JSON.stringify(i));var a={},c=0;return u.forEach((function(n){a[++c]=n})),s.append("map",JSON.stringify(a)),c=0,u.forEach((function(n,t){s.append(""+ ++c,t)})),s}})),qt=n((function(n,e){var i=t&&t.__assign||function(){return(i=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)},r=t&&t.__createBinding||(Object.create?function(n,t,e,i){void 0===i&&(i=e),Object.defineProperty(n,i,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,i){void 0===i&&(i=e),n[i]=t[e]}),o=t&&t.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=t&&t.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return o(t,n),t},s=t&&t.__awaiter||function(n,t,e,i){return new(e||(e=Promise))((function(r,o){function u(n){try{a(i.next(n))}catch(n){o(n)}}function s(n){try{a(i.throw(n))}catch(n){o(n)}}function a(n){var t;n.done?r(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(u,s)}a((i=i.apply(n,t||[])).next())}))},a=t&&t.__generator||function(n,t){var e,i,r,o,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,i=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((r=(r=u.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){u.label=o[1];break}if(6===o[0]&&u.label<r[1]){u.label=r[1],r=o;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(o);break}r[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(n,u)}catch(n){o=[6,n],i=0}finally{e=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},c=t&&t.__rest||function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(n);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(e[i[r]]=n[i[r]])}return e},f=t&&t.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.gql=e.request=e.rawRequest=e.GraphQLClient=e.ClientError=void 0;var l=u(Tt),h=l,d=f(Ut),v=Ot;Object.defineProperty(e,"ClientError",{enumerable:!0,get:function(){return v.ClientError}});var p=function(n){var t={};return n&&("undefined"!=typeof Headers&&n instanceof Headers||n instanceof h.Headers?t=function(n){var t={};return n.forEach((function(n,e){t[e]=n})),t}(n):Array.isArray(n)?n.forEach((function(n){t[n[0]]=n[1]})):t=n),t},m=function(){function n(n,t){this.url=n,this.options=t||{}}return n.prototype.rawRequest=function(n,t,e){return s(this,void 0,void 0,(function(){var r,o,u,s,f,h,v,m,y,w;return a(this,(function(a){switch(a.label){case 0:return o=(r=this.options).headers,s=void 0===(u=r.fetch)?l.default:u,f=c(r,["headers","fetch"]),h=d.default(n,t),[4,s(this.url,i({method:"POST",headers:i(i(i({},"string"==typeof h?{"Content-Type":"application/json"}:{}),p(o)),p(e)),body:h},f))];case 1:return[4,b(v=a.sent())];case 2:if(m=a.sent(),v.ok&&!m.errors&&m.data)return y=v.headers,w=v.status,[2,i(i({},m),{headers:y,status:w})];throw new Ot.ClientError(i(i({},"string"==typeof m?{error:m}:m),{status:v.status,headers:v.headers}),{query:n,variables:t})}}))}))},n.prototype.request=function(n,t,e){return s(this,void 0,void 0,(function(){var r,o,u,s,f,h,v,m,y;return a(this,(function(a){switch(a.label){case 0:return o=(r=this.options).headers,s=void 0===(u=r.fetch)?l.default:u,f=c(r,["headers","fetch"]),h=function(n){return"string"==typeof n?n:xt.print(n)}(n),v=d.default(h,t),[4,s(this.url,i({method:"POST",headers:i(i(i({},"string"==typeof v?{"Content-Type":"application/json"}:{}),p(o)),p(e)),body:v},f))];case 1:return[4,b(m=a.sent())];case 2:if(y=a.sent(),m.ok&&!y.errors&&y.data)return[2,y.data];throw new Ot.ClientError(i(i({},"string"==typeof y?{error:y}:y),{status:m.status}),{query:h,variables:t})}}))}))},n.prototype.setHeaders=function(n){return this.options.headers=n,this},n.prototype.setHeader=function(n,t){var e,i=this.options.headers;return i?i[n]=t:this.options.headers=((e={})[n]=t,e),this},n}();function y(n,t,e){return s(this,void 0,void 0,(function(){return a(this,(function(){return[2,new m(n).request(t,e)]}))}))}function b(n){var t=n.headers.get("Content-Type");return t&&t.startsWith("application/json")?n.json():n.text()}e.GraphQLClient=m,e.rawRequest=function(n,t,e){return s(this,void 0,void 0,(function(){return a(this,(function(){return[2,new m(n).rawRequest(t,e)]}))}))},e.request=y,e.default=y,e.gql=function(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return n.reduce((function(n,e,i){return""+n+e+(i in t?t[i]:"")}),"")}})),Lt=n((function(n,e){var i=t&&t.__assign||function(){return(i=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)},r=t&&t.__spreadArrays||function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var i=Array(n),r=0;for(t=0;t<e;t++)for(var o=arguments[t],u=0,s=o.length;u<s;u++,r++)i[r]=o[u];return i};function o(n,t){return"Variable"===n.kind?i(i({},n),{name:i(i({},n.name),{value:t(n.name.value)})}):"ObjectValue"===n.kind?i(i({},n),{fields:n.fields.map((function(n){return i(i({},n),{value:o(n.value,t)})}))}):"ListValue"===n.kind?i(i({},n),{values:n.values.map((function(n){return o(n,t)}))}):n}function u(n,t){return i(i({},n),{value:o(n.value,t)})}function s(n,t){var e;return i(i({},n),{arguments:null===(e=n.arguments)||void 0===e?void 0:e.map((function(n){return u(n,t)}))})}function a(n,t){var e;return i(i({},n),{variable:i(i({},n.variable),{name:i(i({},n.variable.name),{value:t(n.variable.name.value)})}),directives:null===(e=n.directives)||void 0===e?void 0:e.map((function(n){return s(n,t)}))})}function c(n,t){return i(i({},n),{selections:n.selections.map((function(n){var e,r,o;switch(n.kind){case"Field":return i(i({},n),{arguments:null===(e=n.arguments)||void 0===e?void 0:e.map((function(n){return u(n,t)})),selectionSet:n.selectionSet?c(n.selectionSet,t):void 0});case"FragmentSpread":return i(i({},n),{directives:null===(r=n.directives)||void 0===r?void 0:r.map((function(n){return s(n,t)}))});case"InlineFragment":return i(i({},n),{directives:null===(o=n.directives)||void 0===o?void 0:o.map((function(n){return s(n,t)})),selectionSet:c(n.selectionSet,t)})}}))})}function f(n,t,e){var r,o;return i(i({},n),{variableDefinitions:null===(r=n.variableDefinitions)||void 0===r?void 0:r.map((function(n){return a(n,t)})),directives:null===(o=n.directives)||void 0===o?void 0:o.map((function(n){return s(n,t)})),selectionSet:c(i(i({},n.selectionSet),{selections:n.selectionSet.selections.map((function(n){var t,r;switch(n.kind){case"Field":return i(i({},n),{alias:i(i({},n.name),{value:e(null!==(r=null===(t=n.alias)||void 0===t?void 0:t.value)&&void 0!==r?r:n.name.value)})});default:return n}}))}),t)})}Object.defineProperty(e,"__esModule",{value:!0}),e.renameVariables=e.renameVariablesAndTopLevelFields=e.renameVariablesAndTopLevelFieldsOnOpDef=e.renameSelectionSetArguments=e.renameVariableDefinition=e.renameDirectiveArguments=e.renameArgument=e.renameValue=e.defaultRenameFn=void 0,e.defaultRenameFn=function(n,t){return n+"_"+t},e.renameValue=o,e.renameArgument=u,e.renameDirectiveArguments=s,e.renameVariableDefinition=a,e.renameSelectionSetArguments=c,e.renameVariablesAndTopLevelFieldsOnOpDef=f,e.renameVariablesAndTopLevelFields=function(n,t,e){return i(i({},n),{definitions:r(n.definitions.filter((function(n){return"OperationDefinition"!==n.kind})),n.definitions.filter((function(n){return"OperationDefinition"===n.kind})).map((function(n){return f(n,t,e)})))})},e.renameVariables=function(n,t){return Object.keys(n).reduce((function(e,r){var o;return i(i({},e),((o={})[t(r)]=n[r],o))}),{})}}));const Bt=e(n((function(n,e){var i,r=t&&t.__extends||(i=function(n,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)},function(n,t){function e(){this.constructor=n}i(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}),o=t&&t.__assign||function(){return(o=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)},u=t&&t.__spreadArrays||function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var i=Array(n),r=0;for(t=0;t<e;t++)for(var o=arguments[t],u=0,s=o.length;u<s;u++,r++)i[r]=o[u];return i};Object.defineProperty(e,"__esModule",{value:!0});var s={kind:"Document",definitions:[]},a=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r(t,n),t}(Error),c=function(){function n(n,t,e){this.operationName=n,this.document=t,this.variables=e}return n.prototype.add=function(t,e){var i=this,r=this.document.definitions.concat(t.definitions).filter((function(n){return"OperationDefinition"===n.kind}));if(!r.length)throw new a("Expected at least one OperationDefinition, but found none.");r.forEach((function(n){var t,e,i=r.filter((function(t){return t!==n}));i.forEach((function(t){var e,i;if(t.operation!==n.operation)throw new a("expected all operations to be of the smae type, but "+(null===(e=t.name)||void 0===e?void 0:e.value)+" is "+t.operation+" and "+(null===(i=n.name)||void 0===i?void 0:i.value)+" is "+n.operation)})),null===(t=n.selectionSet.selections)||void 0===t||t.filter((function(n){return"Field"===n.kind})).forEach((function(t){i.forEach((function(e){var i;return null===(i=e.selectionSet.selections)||void 0===i?void 0:i.filter((function(n){return"Field"===n.kind})).forEach((function(i){var r,o,u,s;if(((null===(r=t.alias)||void 0===r?void 0:r.value)||t.name.value)===((null===(o=i.alias)||void 0===o?void 0:o.value)||i.name.value))throw new a("duplicate field definition "+i.name.value+" for oprations "+(null===(u=n.name)||void 0===u?void 0:u.value)+" and "+(null===(s=e.name)||void 0===s?void 0:s.value))}))}))})),null===(e=n.variableDefinitions)||void 0===e||e.forEach((function(t){i.forEach((function(e){var i;return null===(i=e.variableDefinitions)||void 0===i?void 0:i.forEach((function(i){var r,o;if(t.variable.name.value===i.variable.name.value)throw new a("duplicate variable definition "+i.variable.name.value+" for oprations "+(null===(r=n.name)||void 0===r?void 0:r.value)+" and "+(null===(o=e.name)||void 0===o?void 0:o.value))}))}))}))}));for(var s=i.variables&&e?o(o({},i.variables),e):e||i.variables,c=[{kind:"OperationDefinition",directives:r.flatMap((function(n){return n.directives||[]})),name:{kind:"Name",value:this.operationName},operation:r[0].operation,selectionSet:{kind:"SelectionSet",selections:r.flatMap((function(n){return n.selectionSet.selections}))},variableDefinitions:r.flatMap((function(n){return n.variableDefinitions||[]}))}],f=new Set,l=0,h=this.document.definitions.concat(t.definitions);l<h.length;l++){var d=h[l];if("OperationDefinition"!==d.kind){if("FragmentDefinition"===d.kind){if(f.has(d.name.value))continue;f.add(d.name.value)}c=u([d],c)}}return new n(this.operationName,{kind:"Document",definitions:c},s)},n.prototype.addN=function(n,t,e,i){return void 0===e&&(e=Lt.defaultRenameFn),void 0===i&&(i=Lt.defaultRenameFn),t.length?t.reduce((function(t,r,o){var u=Lt.renameVariablesAndTopLevelFields(n,(function(n){return e(n,o)}),(function(n){return i(n,o)})),s=Lt.renameVariables(r,(function(n){return e(n,o)}));return t.add(u,s)}),this):this},n}();e.default=function(n){return{operationName:n,add:function(n,t){return new c(this.operationName,n,t)},addN:function(n,t,e,i){return new c(this.operationName,s).addN(n,t,e,i)}}}})));var $t,Jt=$t||($t={});function Gt(n){n.preventDefault(),n.returnValue=""}function Ht(){var n=[];return{get length(){return n.length},push:function(t){return n.push(t),function(){n=n.filter((function(n){return n!==t}))}},call:function(t){n.forEach((function(n){return n&&n(t)}))}}}function Yt(){return Math.random().toString(36).substr(2,8)}function Qt(n){var t=n.pathname,e=n.search;return(void 0===t?"/":t)+(void 0===e?"":e)+(void 0===(n=n.hash)?"":n)}function Xt(n){var t={};if(n){var e=n.indexOf("#");0<=e&&(t.hash=n.substr(e),n=n.substr(0,e)),0<=(e=n.indexOf("?"))&&(t.search=n.substr(e),n=n.substr(0,e)),n&&(t.pathname=n)}return t}Jt.Pop="POP",Jt.Push="PUSH",Jt.Replace="REPLACE";var zt={current:void 0};function Wt(){if(void 0===zt.current)throw new Error("no implementation of useHost provided");return zt.current()}function Kt(n){if(!n)throw new Error("Must supply an implementation");if("function"!=typeof n)throw new Error("implementation must be a function");zt.current=n}function Zt(){!function(){var n;window.squatchProgramId||(window.squatchProgramId=new a({element:document.documentElement,initialState:(null==(n=window.widgetIdent)?void 0:n.programId)||void 0,contextName:"sq:program-id"}).start())}();var n=Wt();return u(n,"sq:program-id")}function ne(){var n,t;return window.SquatchAndroid?{type:"SquatchAndroid",android:window.SquatchAndroid,widgetIdent:window.widgetIdent}:window.SquatchPortal?{type:"SquatchPortal",env:window.SquatchPortal}:window.SquatchAdmin?{type:"SquatchAdmin",adminSDK:window.SquatchAdmin}:window.widgetIdent&&"demo"!==(null==(n=window.widgetIdent)?void 0:n.env)?{type:"SquatchJS2",api:null==(t=window.frameElement)?void 0:t.squatchJsApi,widgetIdent:window.widgetIdent}:{type:"None"}}function te(){var n=ne();return"None"===n.type||"SquatchAdmin"===n.type}function ee(){var n=ne();switch(n.type){case"SquatchAndroid":case"SquatchJS2":return n.widgetIdent.tenantAlias;case"SquatchAdmin":case"None":return"demo";case"SquatchPortal":return n.env.tenantAlias}}function ie(){var n=ne();switch(n.type){case"SquatchJS2":return n.widgetIdent.engagementMedium||"EMBED";case"SquatchAndroid":case"SquatchPortal":case"SquatchAdmin":case"None":return"EMBED"}}function re(){return(t=null==(n=navigator.language)?void 0:n.split("-"))&&1!==t.length?t[0]+"_"+t[1].toUpperCase():n;var n,t}function oe(){return(oe=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n}).apply(this,arguments)}function ue(n,t){return(ue=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function se(n,t){return t||(t=n.slice(0)),n.raw=t,n}function ae(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,i=new Array(t);e<t;e++)i[e]=n[e];return i}function ce(n,t){var e;if("undefined"==typeof Symbol||null==n[Symbol.iterator]){if(Array.isArray(n)||(e=function(n,t){if(n){if("string"==typeof n)return ae(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ae(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var i=0;return function(){return i>=n.length?{done:!0}:{done:!1,value:n[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(e=n[Symbol.iterator]()).next.bind(e)}function fe(){window.squatchUserIdentity||(window.squatchUserIdentity=new a({element:document.documentElement,initialState:he(),contextName:"sq:user-identity"}).start())}function le(n){if(n)try{var t,e,i=p(n),r=i.exp;if(function(n){return n.sub&&/.*:.*@.*:users/.test(n.sub)}(i)){var o=i.sub.match(/(.*):(.*)@(.*):users/);e=atob(o[1]),t=atob(o[2])}else(function(n){return n.user&&n.user.id&&n.user.accountId})(i)&&(e=i.user.accountId,t=i.user.id);if(!t||!e)return;if(r&&Date.now()>=1e3*r)return;return{id:t,accountId:e,jwt:n}}catch(n){return}}function he(){var n=ne();switch(n.type){case"SquatchAndroid":case"SquatchJS2":return{id:n.widgetIdent.userId,accountId:n.widgetIdent.accountId,jwt:n.widgetIdent.token};case"SquatchPortal":var t=new URLSearchParams(document.location.search);if(t.has("jwt"))return le(t.get("jwt"));var e=localStorage.getItem("sq:user-identity");if(!e)return;try{var i=JSON.parse(e),r=le(i.jwt);return r?oe({},i,r):void 0}catch(n){return}case"SquatchAdmin":case"None":return}}function de(n){fe();var t=window.squatchUserIdentity;g(t.context,n)||(t.context=n),n&&"SquatchPortal"===ne().type?localStorage.setItem("sq:user-identity",JSON.stringify(n)):localStorage.removeItem("sq:user-identity")}function ve(){var n;return null==(n=pe())?void 0:n.jwt}function pe(){fe();var n=Wt(),t=u(n,"sq:user-identity");if(le(null==t?void 0:t.jwt))return t;de(void 0)}var me=function(){return(me=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)},ye=new Map,be=new Map,we=!0,Ee=!1;function ge(n){return n.replace(/[\s,]+/g," ").trim()}function Se(n){var t,e,i,r=ge(n);if(!ye.has(r)){var o=wn(n,{experimentalFragmentVariables:Ee});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");ye.set(r,function(n){var t=new Set(n.definitions);t.forEach((function(n){n.loc&&delete n.loc,Object.keys(n).forEach((function(e){var i=n[e];i&&"object"==typeof i&&t.add(i)}))}));var e=n.loc;return e&&(delete e.startToken,delete e.endToken),n}((t=o,e=new Set,i=[],t.definitions.forEach((function(n){if("FragmentDefinition"===n.kind){var t=n.name.value,r=ge((u=n.loc).source.body.substring(u.start,u.end)),o=be.get(t);o&&!o.has(r)?we&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||be.set(t,o=new Set),o.add(r),e.has(r)||(e.add(r),i.push(n))}else i.push(n);var u})),me(me({},t),{definitions:i}))))}return ye.get(r)}function Ie(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];"string"==typeof n&&(n=[n]);var i=n[0];return t.forEach((function(t,e){i+=t&&"Document"===t.kind?t.loc.source.body:t,i+=n[e+1]})),Se(i)}var Oe,Te=Ie;(Oe=Ie||(Ie={})).gql=Te,Oe.resetCaches=function(){ye.clear(),be.clear()},Oe.disableFragmentWarnings=function(){we=!1},Oe.enableExperimentalFragmentVariables=function(){Ee=!0},Oe.disableExperimentalFragmentVariables=function(){Ee=!1},Ie.default=Ie;var Ne=Ie;function Fe(n,t){try{var e=n()}catch(n){return t(n)}return e&&e.then?e.then(void 0,t):e}var Ce=function(n){var t,e;function i(t,e){var i;(i=n.call(this,t,e)||this).subject=new lt;var r=new lt;return i.subject.pipe(function(n){let t=arguments.length,e=yt;mt(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],t--);let i=null;t>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return t>=3&&(r=arguments[2]),function(t){return t.lift(new bt(n,i,r,e))}}(200,void 0,10)).subscribe((function(n){try{if(!n.length)return Promise.resolve();for(var t,e=_e(n),o=e.mergedQuery,u=e.mergedVariables,s=e.mergedQueryAddedEvents,a=ce(e.unmergedQueryAddedEvents);!(t=a()).done;)r.next(t.value);return s.length?Promise.resolve(Fe((function(){return Promise.resolve(i.superRequest(o,u)).then((function(n){Pe(n,s)}))}),(function(n){if(n instanceof Ot.ClientError){var t=function(){var t=n.response,e=t.data,i=t.errors;if(!e)return{v:Ve(s,n)};for(var r,o=Object.keys(e),u=[].concat(s),a=function(){var t=r.value,e=void 0;t.path.find((function(i,r,s){if(o.includes(i)){var a=Ae(i),c=u.findIndex((function(n){return n.id===a}));if(-1===c)return!1;o.splice(r,1),e=u.splice(c,1)[0];var f=xe(n.response.data,e);s[r]=je(s[r],a);var l=e.query,h=e.variables,d=oe({},n.response,{errors:[t],data:f,path:s}),v=new Ot.ClientError(d,{query:"string"!=typeof l?Nn(l):l,variables:h});return Me(e,v),!0}return!1}))},c=ce(i);!(r=c()).done;)a();Pe(e,u)}();if("object"==typeof t)return t.v}else Ve(s,n)}))):Promise.resolve()}catch(n){return Promise.reject(n)}})),r.subscribe((function(n){try{var t=Fe((function(){return Promise.resolve(i.superRequest(n.query,n.variables)).then((function(t){ke(t,n)}))}),(function(t){Me(n,t)}));return Promise.resolve(t&&t.then?t.then((function(){})):void 0)}catch(n){return Promise.reject(n)}})),i}e=n,(t=i).prototype=Object.create(e.prototype),t.prototype.constructor=t,ue(t,e);var r=i.prototype;return r.superRequest=function(t,e){return n.prototype.request.call(this,t,e)},r.request=function(n,t){var e=this;return new Promise((function(i,r){var o={query:n,variables:t,id:De(),resolve:i,reject:r};e.subject.next(o)}))},i}(qt.GraphQLClient),De=function(){return((n=21)=>{let t="",e=crypto.getRandomValues(new Uint8Array(n));for(;n--;){let i=63&e[n];t+=i<36?i.toString(36):i<62?(i-26).toString(36).toUpperCase():i<63?"_":"-"}return t})().replace(/[-_]/g,"")},je=function(n,t){return n.replace("_"+t,"")},Ae=function(n){var t=n.split("_");return t[t.length-1]},_e=function(n){var t=[],e=[],i=n.reduce((function(n,i){var r=i.query,o=i.variables,u=i.id;try{var s="string"==typeof r?wn(r):r,a=s.definitions.find((function(n){return"FragmentDefinition"===n.kind})),c="string"==typeof r?r:Nn(r),f=/@/.test(c);if(a||f)return e.push(i),n;var l=function(n){return function(n,t){return n+"_"+t}(n,u)};return n=n.addN(s,[o],l,l),t.push(i),n}catch(t){return e.push(i),n}}),Bt("BatchedQuery")),r=i.document,o=i.variables;return{mergedQuery:r&&Nn(r),mergedVariables:o,mergedQueryAddedEvents:t,unmergedQueryAddedEvents:e}},xe=function(n,t){if(!n)return n;var e=Object.keys(n),i=t.id;return e.reduce((function(t,e){var r;return e.endsWith(i)&&(t=oe({},t,((r={})[je(e,i)]=n[e],r))),t}),{})},ke=function(n,t){(0,t.resolve)(n)},Pe=function(n,t){for(var e,i=ce(t);!(e=i()).done;){var r=e.value,o=xe(n,r);r.resolve(o)}},Me=function(n,t){(0,n.reject)(t)},Ve=function(n,t){for(var e,i=ce(n);!(e=i()).done;)(0,e.value.reject)(t)},Re="sq:graphql-client",Ue=Bn((function(n,t,e){return new Ce(n+"/api/v1/"+t+"/graphql",{headers:{Authorization:"Bearer "+(e||"")}})}));function qe(n,t){switch(t.type){case"loading":return{data:void 0,errors:void 0,loading:!0};case"data":return{data:t.payload,errors:void 0,loading:!1};case"errors":return{data:void 0,errors:t.payload,loading:!1}}}function Le(n,t){var e,i,o,s,a,c,l=(e=ve(),i=function(){var n,t=ne();switch(t.type){case"SquatchAndroid":case"SquatchJS2":return t.widgetIdent.appDomain;case"SquatchPortal":return(null==(n=t.env)?void 0:n.appDomain)||"https://app.referralsaasquatch.com";case"SquatchAdmin":case"None":return"https://app.referralsaasquatch.com"}}(),o=ee(),s=Ue(i,o,e),a=Wt(),null!=(c=u(a,"sq:graphql-client",{attempts:0}))?c:s),h=r(qe,t),d=h[1];return[h[0],f((function(t){try{if(!l)return d({type:"errors",payload:new Error("No GraphQL client found")}),Promise.resolve();var e=function(e,i){try{var r=(d({type:"loading"}),Promise.resolve(l.request(n,t)).then((function(n){d({type:"data",payload:n})})))}catch(n){return i(n)}return r&&r.then?r.then(void 0,i):r}(0,(function(n){d({type:"errors",payload:n})}));return Promise.resolve(e&&e.then?e.then((function(){})):void 0)}catch(t){return Promise.reject(t)}}),[l,n,d])]}var Be,$e={loading:!1,data:void 0,errors:void 0};function Je(n){var t=Le(n,$e);return[t[1],t[0]]}var Ge,He=Ne(Be||(Be=se(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ye(){var n=Je(He),t=n[0],e=n[1],i=e.loading,r=e.data,u=e.errors;return o((function(){if(null!=r&&r.authenticateManagedIdentityWithEmailAndPassword){var n=r.authenticateManagedIdentityWithEmailAndPassword,t=n.token,e=p(t).user;de({jwt:t,id:e.id,accountId:e.accountId,managedIdentity:{email:n.email,emailVerified:n.emailVerified,sessionData:n.sessionData}})}}),[null==r?void 0:r.authenticateManagedIdentityWithEmailAndPassword]),[t,{loading:i,data:r,errors:u}]}var Qe,Xe=Ne(Ge||(Ge=se(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function ze(){var n=Je(Xe),t=n[0],e=n[1],i=e.loading,r=e.data,u=e.errors;return o((function(){if(null!=r&&r.registerManagedIdentityWithEmailAndPassword){var n=r.registerManagedIdentityWithEmailAndPassword,t=n.token,e=p(t).user;de({jwt:t,id:e.id,accountId:e.accountId,managedIdentity:{email:n.email,emailVerified:n.emailVerified,sessionData:n.sessionData}})}}),[null==r?void 0:r.registerManagedIdentityWithEmailAndPassword]),[t,{loading:i,data:r,errors:u}]}var We,Ke=Ne(Qe||(Qe=se(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function Ze(){var n=Je(Ke),t=n[1];return[n[0],{loading:t.loading,data:t.data,errors:t.errors}]}var ni,ti=Ne(We||(We=se(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function ei(){var n=Je(ti),t=n[0],e=n[1],i=e.loading,r=e.data,u=e.errors;return o((function(){if(null!=r&&r.resetManagedIdentityPassword){var n=r.resetManagedIdentityPassword,t=n.token,e=p(t).user;de({jwt:t,id:e.id,accountId:e.accountId,managedIdentity:{email:n.email,emailVerified:n.emailVerified,sessionData:n.sessionData}})}}),[null==r?void 0:r.resetManagedIdentityPassword]),[t,{loading:i,data:r,errors:u}]}var ii=Ne(ni||(ni=se(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function ri(){return Je(ii)}var oi,ui={loading:!1,data:void 0,errors:void 0};function si(n){var t=Le(n,ui),e=t[1];return[e,oe({},t[0],{refetch:function(n){return e(n)}})]}var ai,ci,fi=Ne(oi||(oi=se(["\n query ManagedIdentity {\n managedIdentity {\n email\n emailVerified\n sessionData\n }\n }\n"]))),li=Ne(ai||(ai=se(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function hi(){var n,t=function(){var n=pe(),t=si(fi),e=t[0],i=t[1],r=i.loading,u=i.data,s=i.errors,a=i.refetch;return o((function(){null!=u&&u.managedIdentity&&de(oe({},n,{managedIdentity:u.managedIdentity}))}),[null==u?void 0:u.managedIdentity]),[f((function(){return e({})}),[e]),{loading:r,data:u,errors:s,refetch:a}]}()[0],e=Je(li),i=e[0],r=e[1],u=r.loading,s=r.data,a=r.errors;return o((function(){var n;null!=s&&null!=(n=s.verifyManagedIdentityEmail)&&n.success&&t()}),[null==s||null==(n=s.verifyManagedIdentityEmail)?void 0:n.success]),[i,{loading:u,data:s,errors:a}]}var di,vi=Ne(ci||(ci=se(["\n mutation RequestPasswordResetEmail($email: String!, $urlParams: RSJsonNode) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n }\n ) {\n success\n }\n }\n"])));function pi(){return Je(vi)}var mi=Ne(di||(di=se(["\n mutation RequestVerificationEmail($email: String!, $urlParams: RSJsonNode) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n }\n ) {\n success\n }\n }\n"])));function yi(){return Je(mi)}function bi(){return r((function(n){return n+1}),0)}function wi(n){for(var t,e=ce(Object.getOwnPropertyNames(n));!(t=e()).done;){var i=n[t.value];i&&"object"==typeof i&&wi(i)}return Object.freeze(n)}var Ei={loading:!0,data:void 0,errors:void 0};function gi(n,t,e){var i=Le(n,Ei),r=i[0],o=i[1],u=bi(),a=u[1];return function(n,t){var e=s();e.current&&g(t,e.current.key)||(e.current={key:t,value:n()})}((function(){!e&&o(t)}),[n,t,o,u[0],e]),wi(oe({},r,{refetch:a}))}function Si(){return window.squatchHistory=window.squatchHistory||function(){switch(ne().type){case"SquatchPortal":return function(n){function t(){var n=s.location,t=a.state||{};return[t.idx,{pathname:n.pathname,search:n.search,hash:n.hash,state:t.usr||null,key:t.key||"default"}]}function e(n){return"string"==typeof n?n:Qt(n)}function r(n,t){return void 0===t&&(t=null),i({pathname:h.pathname,hash:"",search:""},"string"==typeof n?Xt(n):n,{state:t,key:Yt()})}function o(n){f=n,n=t(),l=n[0],d.call({action:f,location:h=n[1]})}function u(n){a.go(n)}void 0===n&&(n={});var s=void 0===(n=n.window)?document.defaultView:n,a=s.history,c=null;s.addEventListener("popstate",(function(){if(c)v.call(c),c=null;else{var n=$t.Pop,e=t(),i=e[0];if(e=e[1],v.length){if(null!=i){var r=l-i;r&&(c={action:n,location:e,retry:function(){u(-1*r)}},u(r))}}else o(n)}}));var f=$t.Pop,l=(n=t())[0],h=n[1],d=Ht(),v=Ht();return null==l&&a.replaceState(i({},a.state,{idx:l=0}),""),{get action(){return f},get location(){return h},createHref:e,push:function n(t,i){var u=$t.Push,c=r(t,i);if(!v.length||(v.call({action:u,location:c,retry:function(){n(t,i)}}),0)){var f=[{usr:c.state,key:c.key,idx:l+1},e(c)];c=f[0],f=f[1];try{a.pushState(c,"",f)}catch(n){s.location.assign(f)}o(u)}},replace:function n(t,i){var u=$t.Replace,s=r(t,i);v.length&&(v.call({action:u,location:s,retry:function(){n(t,i)}}),1)||(s=[{usr:s.state,key:s.key,idx:l},e(s)],a.replaceState(s[0],"",s[1]),o(u))},go:u,back:function(){u(-1)},forward:function(){u(1)},listen:function(n){return d.push(n)},block:function(n){var t=v.push(n);return 1===v.length&&s.addEventListener("beforeunload",Gt),function(){t(),v.length||s.removeEventListener("beforeunload",Gt)}}}}();default:return function(n){function t(n,t){return void 0===t&&(t=null),i({pathname:f.pathname,search:"",hash:""},"string"==typeof n?Xt(n):n,{state:t,key:Yt()})}function e(n,t,e){return!h.length||(h.call({action:n,location:t,retry:e}),!1)}function r(n,t){l.call({action:c=n,location:f=t})}function o(n){var t=Math.min(Math.max(a+n,0),s.length-1),i=$t.Pop,u=s[t];e(i,u,(function(){o(n)}))&&(a=t,r(i,u))}void 0===n&&(n={});var u=n;n=u.initialEntries,u=u.initialIndex;var s=(void 0===n?["/"]:n).map((function(n){return i({pathname:"/",search:"",hash:"",state:null,key:Yt()},"string"==typeof n?Xt(n):n)})),a=Math.min(Math.max(null==u?s.length-1:u,0),s.length-1),c=$t.Pop,f=s[a],l=Ht(),h=Ht();return{get index(){return a},get action(){return c},get location(){return f},createHref:function(n){return"string"==typeof n?n:Qt(n)},push:function n(i,o){var u=$t.Push,c=t(i,o);e(u,c,(function(){n(i,o)}))&&(s.splice(a+=1,s.length,c),r(u,c))},replace:function n(i,o){var u=$t.Replace,c=t(i,o);e(u,c,(function(){n(i,o)}))&&(s[a]=c,r(u,c))},go:o,back:function(){o(-1)},forward:function(){o(1)},listen:function(n){return l.push(n)},block:function(n){return h.push(n)}}}()}}(),window.squatchHistory}var Ii,Oi={createHref:function(){var n;return(n=Si()).createHref.apply(n,[].slice.call(arguments))},push:function(){var n;return(n=Si()).push.apply(n,[].slice.call(arguments))},replace:function(){var n;return(n=Si()).replace.apply(n,[].slice.call(arguments))},go:function(){var n;return(n=Si()).go.apply(n,[].slice.call(arguments))},back:function(){return Si().back()},forward:function(){var n;return(n=Si()).forward.apply(n,[].slice.call(arguments))}};function Ti(){var n=bi()[1];return o((function(){return Si().listen((function(){n()}))}),[]),Si().location}function Ni(n,t,e,i,r){var o;void 0===i&&(i={}),void 0===r&&(r=!1);var u=function(n){var t=c({limit:n.limit,offset:n.offset}),e=t[0],i=t[1],r=e.offset,o=e.limit,u=function(n,t){return n*t},s=function(n,t){return Math.ceil(n/t)||0};return{limit:o,setLimit:function(n){var t=s(r,n),o=u(n,t);i(oe({},e,{limit:n,offset:o}))},offset:r,setCurrentPage:function(n){var t=u(n,o);i((function(n){return oe({},n,{offset:t})}))},calculatePagination:function(n,t){var e=s(r,o),i=function(n,t){return Math.ceil(n/t)||0}(t,o),u=0===n?"0":n>1?r+1+"-"+(r+n):""+(r+1);return{currentPage:e,pageCount:i,rangeOnPage:u,pageProgress:u+" of "+t}}}}(e),s=u.limit,a=u.setLimit,f=u.setCurrentPage,l=u.calculatePagination,h=gi(n,oe({limit:s,offset:u.offset},i),r),d=h.loading,v=h.errors,p=h.refetch,m=t(h.data),y=l((null==m||null==(o=m.data)?void 0:o.length)||0,(null==m?void 0:m.totalCount)||0);return{envelope:m,states:{errors:v,loading:d,limit:s,currentPage:y.currentPage,pageCount:y.pageCount,pageProgress:y.pageProgress},callbacks:{refetch:p,setLimit:a,setCurrentPage:f}}}qt.gql(Ii||(Ii=se(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Fi,Ci,Di,ji,Ai=1e3,_i=6e4,xi=60*_i,ki=24*xi,Pi=function(n,t){t=t||{};var e=typeof n;if("string"===e&&n.length>0)return function(n){if(!((n=String(n)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(n);if(t){var e=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*e;case"weeks":case"week":case"w":return 6048e5*e;case"days":case"day":case"d":return e*ki;case"hours":case"hour":case"hrs":case"hr":case"h":return e*xi;case"minutes":case"minute":case"mins":case"min":case"m":return e*_i;case"seconds":case"second":case"secs":case"sec":case"s":return e*Ai;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}}}(n);if("number"===e&&isFinite(n))return t.long?function(n){var t=Math.abs(n);return t>=ki?Mi(n,t,ki,"day"):t>=xi?Mi(n,t,xi,"hour"):t>=_i?Mi(n,t,_i,"minute"):t>=Ai?Mi(n,t,Ai,"second"):n+" ms"}(n):function(n){var t=Math.abs(n);return t>=ki?Math.round(n/ki)+"d":t>=xi?Math.round(n/xi)+"h":t>=_i?Math.round(n/_i)+"m":t>=Ai?Math.round(n/Ai)+"s":n+"ms"}(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))};function Mi(n,t,e,i){var r=t>=1.5*e;return Math.round(n/e)+" "+i+(r?"s":"")}(function(n,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const e="color: "+this.color;t.splice(1,0,e,"color: inherit");let i=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(n=>{"%%"!==n&&(i++,"%c"===n&&(r=i))})),t.splice(r,0,e)},t.save=function(n){try{n?t.storage.setItem("debug",n):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let n;try{n=t.storage.getItem("debug")}catch(n){}return!n&&"undefined"!=typeof process&&"env"in process&&(n=process.env.DEBUG),n},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(n){}}(),t.destroy=(()=>{let n=!1;return()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),n.exports=function(n){function t(n){let i,r=null;function o(...n){if(!o.enabled)return;const e=o,r=Number(new Date);e.diff=r-(i||r),e.prev=i,e.curr=r,i=r,n[0]=t.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");let u=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,((i,r)=>{if("%%"===i)return"%";u++;const o=t.formatters[r];return"function"==typeof o&&(i=o.call(e,n[u]),n.splice(u,1),u--),i})),t.formatArgs.call(e,n),(e.log||t.log).apply(e,n)}return o.namespace=n,o.useColors=t.useColors(),o.color=t.selectColor(n),o.extend=e,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===r?t.enabled(n):r,set:n=>{r=n}}),"function"==typeof t.init&&t.init(o),o}function e(n,e){const i=t(this.namespace+(void 0===e?":":e)+n);return i.log=this.log,i}function i(n){return n.toString().substring(2,n.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(n){return n instanceof Error?n.stack||n.message:n},t.disable=function(){const n=[...t.names.map(i),...t.skips.map(i).map((n=>"-"+n))].join(",");return t.enable(""),n},t.enable=function(n){let e;t.save(n),t.names=[],t.skips=[];const i=("string"==typeof n?n:"").split(/[\s,]+/),r=i.length;for(e=0;e<r;e++)i[e]&&("-"===(n=i[e].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+n.substr(1)+"$")):t.names.push(new RegExp("^"+n+"$")))},t.enabled=function(n){if("*"===n[n.length-1])return!0;let e,i;for(e=0,i=t.skips.length;e<i;e++)if(t.skips[e].test(n))return!1;for(e=0,i=t.names.length;e<i;e++)if(t.names[e].test(n))return!0;return!1},t.humanize=Pi,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(n).forEach((e=>{t[e]=n[e]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(n){let e=0;for(let t=0;t<n.length;t++)e=(e<<5)-e+n.charCodeAt(t),e|=0;return t.colors[Math.abs(e)%t.colors.length]},t.enable(t.load()),t}(t);const{formatters:e}=n.exports;e.j=function(n){try{return JSON.stringify(n)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}}}(Fi={exports:{}},Fi.exports),Fi.exports)("sq:useForm"),qt.gql(Ci||(Ci=se(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),qt.gql(Di||(Di=se(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),qt.gql(ji||(ji=se(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));export{ei as $,yi as B,Ze as D,ze as E,de as L,Zt as M,si as N,Wt as P,ve as Q,re as R,Kt as S,pe as T,bi as Z,Ni as a,Je as b,Ti as c,qt as d,gi as e,ne as f,Ue as g,Re as h,ri as i,te as j,ee as k,hi as l,Jn as m,wn as p,Ye as q,Oi as r,Bn as s,ie as x,pi as z}
1
+ import{c as n,a as t,d as e,_ as i,u as r,e as o,h as u,f as s,i as a,j as c}from"./p-44578b22.js";import{u as f}from"./p-ba505a8c.js";function l(n){this.message=n}(l.prototype=new Error).name="InvalidCharacterError";var h="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(n){var t=String(n).replace(/=+$/,"");if(t.length%4==1)throw new l("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,i,r=0,o=0,u="";i=t.charAt(o++);~i&&(e=r%4?64*e+i:i,r++%4)?u+=String.fromCharCode(255&e>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return u};function d(n){var t=n.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(h(n).replace(/(.)/g,(function(n,t){var e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(t)}catch(n){return h(t)}}function v(n){this.message=n}function p(n,t){if("string"!=typeof n)throw new v("Invalid token specified");var e=!0===(t=t||{}).header?0:1;try{return JSON.parse(d(n.split(".")[e]))}catch(n){throw new v("Invalid token specified: "+n.message)}}(v.prototype=new Error).name="InvalidTokenError";var m=Object.prototype,y=m.toString,b=m.hasOwnProperty,w=Function.prototype.toString,E=new Map;function g(n,t){try{return S(n,t)}finally{E.clear()}}function S(n,t){if(n===t)return!0;var e,i,r,o=y.call(n);if(o!==y.call(t))return!1;switch(o){case"[object Array]":if(n.length!==t.length)return!1;case"[object Object]":if(N(n,t))return!0;var u=I(n),s=I(t),a=u.length;if(a!==s.length)return!1;for(var c=0;c<a;++c)if(!b.call(t,u[c]))return!1;for(c=0;c<a;++c){var f=u[c];if(!S(n[f],t[f]))return!1}return!0;case"[object Error]":return n.name===t.name&&n.message===t.message;case"[object Number]":if(n!=n)return t!=t;case"[object Boolean]":case"[object Date]":return+n==+t;case"[object RegExp]":case"[object String]":return n==""+t;case"[object Map]":case"[object Set]":if(n.size!==t.size)return!1;if(N(n,t))return!0;for(var l=n.entries(),h="[object Map]"===o;;){var d=l.next();if(d.done)break;var v=d.value,p=v[0],m=v[1];if(!t.has(p))return!1;if(h&&!S(m,t.get(p)))return!1}return!0;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var E=w.call(n);return E===w.call(t)&&!((r=(e=E).length-(i=T).length)>=0&&e.indexOf(i,r)===r)}return!1}function I(n){return Object.keys(n).filter(O,n)}function O(n){return void 0!==this[n]}var T="{ [native code] }";function N(n,t){var e=E.get(n);if(e){if(e.has(t))return!0}else E.set(n,e=new Set);return e.add(t),!1}function F(n){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var C="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function D(n,t){for(var e,i=/\r\n|[\n\r]/g,r=1,o=t+1;(e=i.exec(n.body))&&e.index<t;)r+=1,o=t+1-(e.index+e[0].length);return{line:r,column:o}}function j(n,t){var e=n.locationOffset.column-1,i=_(e)+n.body,r=t.line-1,o=t.line+(n.locationOffset.line-1),u=t.column+(1===t.line?e:0),s="".concat(n.name,":").concat(o,":").concat(u,"\n"),a=i.split(/\r\n|[\n\r]/g),c=a[r];if(c.length>120){for(var f=Math.floor(u/80),l=u%80,h=[],d=0;d<c.length;d+=80)h.push(c.slice(d,d+80));return s+A([["".concat(o),h[0]]].concat(h.slice(1,f+1).map((function(n){return["",n]})),[[" ",_(l-1)+"^"],["",h[f+1]]]))}return s+A([["".concat(o-1),a[r-1]],["".concat(o),c],["",_(u-1)+"^"],["".concat(o+1),a[r+1]]])}function A(n){var t=n.filter((function(n){return void 0!==n[1]})),e=Math.max.apply(Math,t.map((function(n){return n[0].length})));return t.map((function(n){var t,i=n[1];return _(e-(t=n[0]).length)+t+(i?" | "+i:" |")})).join("\n")}function _(n){return Array(n+1).join(" ")}function x(n){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function k(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function P(n,t){return!t||"object"!==x(t)&&"function"!=typeof t?M(n):t}function M(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function V(n){var t="function"==typeof Map?new Map:void 0;return(V=function(n){if(null===n||-1===Function.toString.call(n).indexOf("[native code]"))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,e)}function e(){return R(n,arguments,L(this).constructor)}return e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),q(e,n)})(n)}function R(n,t,e){return(R=U()?Reflect.construct:function(n,t,e){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(n,i));return e&&q(r,e.prototype),r}).apply(null,arguments)}function U(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(n){return!1}}function q(n,t){return(q=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function L(n){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var B=function(){!function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&q(n,t)}(o,V(Error));var n,t,e,i,r=(n=o,t=U(),function(){var e,i=L(n);if(t){var r=L(this).constructor;e=Reflect.construct(i,arguments,r)}else e=i.apply(this,arguments);return P(this,e)});function o(n,t,e,i,u,s,a){var c,f,l,h,d;!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),d=r.call(this,n);var v,p=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,m=e;!m&&p&&(m=null===(v=p[0].loc)||void 0===v?void 0:v.source);var y,b=i;!b&&p&&(b=p.reduce((function(n,t){return t.loc&&n.push(t.loc.start),n}),[])),b&&0===b.length&&(b=void 0),i&&e?y=i.map((function(n){return D(e,n)})):p&&(y=p.reduce((function(n,t){return t.loc&&n.push(D(t.loc.source,t.loc.start)),n}),[]));var w,E=a;if(null==E&&null!=s){var g=s.extensions;"object"==F(w=g)&&null!==w&&(E=g)}return Object.defineProperties(M(d),{name:{value:"GraphQLError"},message:{value:n,enumerable:!0,writable:!0},locations:{value:null!==(c=y)&&void 0!==c?c:void 0,enumerable:null!=y},path:{value:null!=u?u:void 0,enumerable:null!=u},nodes:{value:null!=p?p:void 0},source:{value:null!==(f=m)&&void 0!==f?f:void 0},positions:{value:null!==(l=b)&&void 0!==l?l:void 0},originalError:{value:s},extensions:{value:null!==(h=E)&&void 0!==h?h:void 0,enumerable:null!=E}}),null!=s&&s.stack?(Object.defineProperty(M(d),"stack",{value:s.stack,writable:!0,configurable:!0}),P(d)):(Error.captureStackTrace?Error.captureStackTrace(M(d),o):Object.defineProperty(M(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return e=o,(i=[{key:"toString",value:function(){return function(n){var t,e=n.message;if(n.nodes)for(var i=0,r=n.nodes;i<r.length;i++){var o=r[i];o.loc&&(e+="\n\n"+j((t=o.loc).source,D(t.source,t.start)))}else if(n.source&&n.locations)for(var u=0,s=n.locations;u<s.length;u++)e+="\n\n"+j(n.source,s[u]);return e}(this)}},{key:C,get:function(){return"Object"}}])&&k(e.prototype,i),o}();function $(n,t,e){return new B("Syntax Error: ".concat(e),void 0,n,[t])}var J=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),G="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function H(n){var t=n.prototype.toJSON;"function"==typeof t||function(){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),n.prototype.inspect=t,G&&(n.prototype[G]=t)}var Y=function(){function n(n,t,e){this.start=n.start,this.end=t.end,this.startToken=n,this.endToken=t,this.source=e}return n.prototype.toJSON=function(){return{start:this.start,end:this.end}},n}();H(Y);var Q=function(){function n(n,t,e,i,r,o,u){this.kind=n,this.start=t,this.end=e,this.line=i,this.column=r,this.value=u,this.prev=o,this.next=null}return n.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},n}();function X(n){return null!=n&&"string"==typeof n.kind}H(Q);var z=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function W(n){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function K(n){return Z(n,[])}function Z(n,t){switch(W(n)){case"string":return JSON.stringify(n);case"function":return n.name?"[function ".concat(n.name,"]"):"[function]";case"object":return null===n?"null":function(n,t){if(-1!==t.indexOf(n))return"[Circular]";var e=[].concat(t,[n]),i=function(n){var t=n[String(G)];return"function"==typeof t?t:"function"==typeof n.inspect?n.inspect:void 0}(n);if(void 0!==i){var r=i.call(n);if(r!==n)return"string"==typeof r?r:Z(r,e)}else if(Array.isArray(n))return function(n,t){if(0===n.length)return"[]";if(t.length>2)return"[Array]";for(var e=Math.min(10,n.length),i=n.length-e,r=[],o=0;o<e;++o)r.push(Z(n[o],t));return 1===i?r.push("... 1 more item"):i>1&&r.push("... ".concat(i," more items")),"["+r.join(", ")+"]"}(n,e);return function(n,t){var e=Object.keys(n);return 0===e.length?"{}":t.length>2?"["+function(n){var t=Object.prototype.toString.call(n).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof n.constructor){var e=n.constructor.name;if("string"==typeof e&&""!==e)return e}return t}(n)+"]":"{ "+e.map((function(e){return e+": "+Z(n[e],t)})).join(", ")+" }"}(n,e)}(n,t);default:return String(n)}}function nn(n,t){if(!Boolean(n))throw new Error(t)}function tn(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}var en=function(){function n(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof n||nn(0,"Body must be a string. Received: ".concat(K(n),".")),this.body=n,this.name=t,this.locationOffset=e,this.locationOffset.line>0||nn(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||nn(0,"column in locationOffset is 1-indexed and must be positive.")}var t,e;return t=n,(e=[{key:C,get:function(){return"Source"}}])&&tn(t.prototype,e),n}(),rn=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function on(n){var t=n.split(/\r\n|[\n\r]/g),e=function(n){for(var t,e=!0,i=!0,r=0,o=null,u=0;u<n.length;++u)switch(n.charCodeAt(u)){case 13:10===n.charCodeAt(u+1)&&++u;case 10:e=!1,i=!0,r=0;break;case 9:case 32:++r;break;default:i&&!e&&(null===o||r<o)&&(o=r),i=!1}return null!==(t=o)&&void 0!==t?t:0}(n);if(0!==e)for(var i=1;i<t.length;i++)t[i]=t[i].slice(e);for(var r=0;r<t.length&&un(t[r]);)++r;for(var o=t.length;o>r&&un(t[o-1]);)--o;return t.slice(r,o).join("\n")}function un(n){for(var t=0;t<n.length;++t)if(" "!==n[t]&&"\t"!==n[t])return!1;return!0}var sn=function(){function n(n){var t=new Q(z.SOF,0,0,0,0,null);this.source=n,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=n.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var n=this.token;if(n.kind!==z.EOF)do{var t;n=null!==(t=n.next)&&void 0!==t?t:n.next=cn(this,n)}while(n.kind===z.COMMENT);return n},n}();function an(n){return isNaN(n)?z.EOF:n<127?JSON.stringify(String.fromCharCode(n)):'"\\u'.concat(("00"+n.toString(16).toUpperCase()).slice(-4),'"')}function cn(n,t){for(var e=n.source,i=e.body,r=i.length,o=t.end;o<r;){var u=i.charCodeAt(o),s=n.line,a=1+o-n.lineStart;switch(u){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++n.line,n.lineStart=o;continue;case 13:10===i.charCodeAt(o+1)?o+=2:++o,++n.line,n.lineStart=o;continue;case 33:return new Q(z.BANG,o,o+1,s,a,t);case 35:return ln(e,o,s,a,t);case 36:return new Q(z.DOLLAR,o,o+1,s,a,t);case 38:return new Q(z.AMP,o,o+1,s,a,t);case 40:return new Q(z.PAREN_L,o,o+1,s,a,t);case 41:return new Q(z.PAREN_R,o,o+1,s,a,t);case 46:if(46===i.charCodeAt(o+1)&&46===i.charCodeAt(o+2))return new Q(z.SPREAD,o,o+3,s,a,t);break;case 58:return new Q(z.COLON,o,o+1,s,a,t);case 61:return new Q(z.EQUALS,o,o+1,s,a,t);case 64:return new Q(z.AT,o,o+1,s,a,t);case 91:return new Q(z.BRACKET_L,o,o+1,s,a,t);case 93:return new Q(z.BRACKET_R,o,o+1,s,a,t);case 123:return new Q(z.BRACE_L,o,o+1,s,a,t);case 124:return new Q(z.PIPE,o,o+1,s,a,t);case 125:return new Q(z.BRACE_R,o,o+1,s,a,t);case 34:return 34===i.charCodeAt(o+1)&&34===i.charCodeAt(o+2)?pn(e,o,s,a,t,n):vn(e,o,s,a,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return hn(e,o,u,s,a,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return bn(e,o,s,a,t)}throw $(e,o,fn(u))}return new Q(z.EOF,r,r,n.line,1+o-n.lineStart,t)}function fn(n){return n<32&&9!==n&&10!==n&&13!==n?"Cannot contain the invalid character ".concat(an(n),"."):39===n?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(an(n),".")}function ln(n,t,e,i,r){var o,u=n.body,s=t;do{o=u.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new Q(z.COMMENT,t,s,e,i,r,u.slice(t+1,s))}function hn(n,t,e,i,r,o){var u=n.body,s=e,a=t,c=!1;if(45===s&&(s=u.charCodeAt(++a)),48===s){if((s=u.charCodeAt(++a))>=48&&s<=57)throw $(n,a,"Invalid number, unexpected digit after 0: ".concat(an(s),"."))}else a=dn(n,a,s),s=u.charCodeAt(a);if(46===s&&(c=!0,s=u.charCodeAt(++a),a=dn(n,a,s),s=u.charCodeAt(a)),69!==s&&101!==s||(c=!0,43!==(s=u.charCodeAt(++a))&&45!==s||(s=u.charCodeAt(++a)),a=dn(n,a,s),s=u.charCodeAt(a)),46===s||function(n){return 95===n||n>=65&&n<=90||n>=97&&n<=122}(s))throw $(n,a,"Invalid number, expected digit but got: ".concat(an(s),"."));return new Q(c?z.FLOAT:z.INT,t,a,i,r,o,u.slice(t,a))}function dn(n,t,e){var i=n.body,r=t,o=e;if(o>=48&&o<=57){do{o=i.charCodeAt(++r)}while(o>=48&&o<=57);return r}throw $(n,r,"Invalid number, expected digit but got: ".concat(an(o),"."))}function vn(n,t,e,i,r){for(var o=n.body,u=t+1,s=u,a=0,c="";u<o.length&&!isNaN(a=o.charCodeAt(u))&&10!==a&&13!==a;){if(34===a)return c+=o.slice(s,u),new Q(z.STRING,t,u+1,e,i,r,c);if(a<32&&9!==a)throw $(n,u,"Invalid character within String: ".concat(an(a),"."));if(++u,92===a){switch(c+=o.slice(s,u-1),a=o.charCodeAt(u)){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:var f=mn(o.charCodeAt(u+1),o.charCodeAt(u+2),o.charCodeAt(u+3),o.charCodeAt(u+4));if(f<0){var l=o.slice(u+1,u+5);throw $(n,u,"Invalid character escape sequence: \\u".concat(l,"."))}c+=String.fromCharCode(f),u+=4;break;default:throw $(n,u,"Invalid character escape sequence: \\".concat(String.fromCharCode(a),"."))}s=++u}}throw $(n,u,"Unterminated string.")}function pn(n,t,e,i,r,o){for(var u=n.body,s=t+3,a=s,c=0,f="";s<u.length&&!isNaN(c=u.charCodeAt(s));){if(34===c&&34===u.charCodeAt(s+1)&&34===u.charCodeAt(s+2))return f+=u.slice(a,s),new Q(z.BLOCK_STRING,t,s+3,e,i,r,on(f));if(c<32&&9!==c&&10!==c&&13!==c)throw $(n,s,"Invalid character within String: ".concat(an(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===u.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===u.charCodeAt(s+1)&&34===u.charCodeAt(s+2)&&34===u.charCodeAt(s+3)?(f+=u.slice(a,s)+'"""',a=s+=4):++s}throw $(n,s,"Unterminated string.")}function mn(n,t,e,i){return yn(n)<<12|yn(t)<<8|yn(e)<<4|yn(i)}function yn(n){return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:-1}function bn(n,t,e,i,r){for(var o=n.body,u=o.length,s=t+1,a=0;s!==u&&!isNaN(a=o.charCodeAt(s))&&(95===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122);)++s;return new Q(z.NAME,t,s,e,i,r,o.slice(t,s))}function wn(n,t){return new En(n,t).parseDocument()}var En=function(){function n(n,t){var e=function(n){return n instanceof en}(n)?n:new en(n);this._lexer=new sn(e),this._options=t}var t=n.prototype;return t.parseName=function(){var n=this.expectToken(z.NAME);return{kind:J.NAME,value:n.value,loc:this.loc(n)}},t.parseDocument=function(){var n=this._lexer.token;return{kind:J.DOCUMENT,definitions:this.many(z.SOF,this.parseDefinition,z.EOF),loc:this.loc(n)}},t.parseDefinition=function(){if(this.peek(z.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(z.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(z.BRACE_L))return{kind:J.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var t,e=this.parseOperationType();return this.peek(z.NAME)&&(t=this.parseName()),{kind:J.OPERATION_DEFINITION,operation:e,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseOperationType=function(){var n=this.expectToken(z.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},t.parseVariableDefinitions=function(){return this.optionalMany(z.PAREN_L,this.parseVariableDefinition,z.PAREN_R)},t.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:J.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(z.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(z.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(n)}},t.parseVariable=function(){var n=this._lexer.token;return this.expectToken(z.DOLLAR),{kind:J.VARIABLE,name:this.parseName(),loc:this.loc(n)}},t.parseSelectionSet=function(){var n=this._lexer.token;return{kind:J.SELECTION_SET,selections:this.many(z.BRACE_L,this.parseSelection,z.BRACE_R),loc:this.loc(n)}},t.parseSelection=function(){return this.peek(z.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var n,t,e=this._lexer.token,i=this.parseName();return this.expectOptionalToken(z.COLON)?(n=i,t=this.parseName()):t=i,{kind:J.FIELD,alias:n,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(z.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(e)}},t.parseArguments=function(n){return this.optionalMany(z.PAREN_L,n?this.parseConstArgument:this.parseArgument,z.PAREN_R)},t.parseArgument=function(){var n=this._lexer.token,t=this.parseName();return this.expectToken(z.COLON),{kind:J.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(n)}},t.parseConstArgument=function(){var n=this._lexer.token;return{kind:J.ARGUMENT,name:this.parseName(),value:(this.expectToken(z.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}},t.parseFragment=function(){var n=this._lexer.token;this.expectToken(z.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(z.NAME)?{kind:J.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:J.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseFragmentDefinition=function(){var n,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(n=this._options)||void 0===n?void 0:n.experimentalFragmentVariables)?{kind:J.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:J.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(n){var t=this._lexer.token;switch(t.kind){case z.BRACKET_L:return this.parseList(n);case z.BRACE_L:return this.parseObject(n);case z.INT:return this._lexer.advance(),{kind:J.INT,value:t.value,loc:this.loc(t)};case z.FLOAT:return this._lexer.advance(),{kind:J.FLOAT,value:t.value,loc:this.loc(t)};case z.STRING:case z.BLOCK_STRING:return this.parseStringLiteral();case z.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:J.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:J.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:J.NULL,loc:this.loc(t)};default:return{kind:J.ENUM,value:t.value,loc:this.loc(t)}}case z.DOLLAR:if(!n)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var n=this._lexer.token;return this._lexer.advance(),{kind:J.STRING,value:n.value,block:n.kind===z.BLOCK_STRING,loc:this.loc(n)}},t.parseList=function(n){var t=this,e=this._lexer.token;return{kind:J.LIST,values:this.any(z.BRACKET_L,(function(){return t.parseValueLiteral(n)}),z.BRACKET_R),loc:this.loc(e)}},t.parseObject=function(n){var t=this,e=this._lexer.token;return{kind:J.OBJECT,fields:this.any(z.BRACE_L,(function(){return t.parseObjectField(n)}),z.BRACE_R),loc:this.loc(e)}},t.parseObjectField=function(n){var t=this._lexer.token,e=this.parseName();return this.expectToken(z.COLON),{kind:J.OBJECT_FIELD,name:e,value:this.parseValueLiteral(n),loc:this.loc(t)}},t.parseDirectives=function(n){for(var t=[];this.peek(z.AT);)t.push(this.parseDirective(n));return t},t.parseDirective=function(n){var t=this._lexer.token;return this.expectToken(z.AT),{kind:J.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(t)}},t.parseTypeReference=function(){var n,t=this._lexer.token;return this.expectOptionalToken(z.BRACKET_L)?(n=this.parseTypeReference(),this.expectToken(z.BRACKET_R),n={kind:J.LIST_TYPE,type:n,loc:this.loc(t)}):n=this.parseNamedType(),this.expectOptionalToken(z.BANG)?{kind:J.NON_NULL_TYPE,type:n,loc:this.loc(t)}:n},t.parseNamedType=function(){var n=this._lexer.token;return{kind:J.NAMED_TYPE,name:this.parseName(),loc:this.loc(n)}},t.parseTypeSystemDefinition=function(){var n=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(n.kind===z.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()}throw this.unexpected(n)},t.peekDescription=function(){return this.peek(z.STRING)||this.peek(z.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var e=this.parseDirectives(!0),i=this.many(z.BRACE_L,this.parseOperationTypeDefinition,z.BRACE_R);return{kind:J.SCHEMA_DEFINITION,description:t,directives:e,operationTypes:i,loc:this.loc(n)}},t.parseOperationTypeDefinition=function(){var n=this._lexer.token,t=this.parseOperationType();this.expectToken(z.COLON);var e=this.parseNamedType();return{kind:J.OPERATION_TYPE_DEFINITION,operation:t,type:e,loc:this.loc(n)}},t.parseScalarTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var e=this.parseName(),i=this.parseDirectives(!0);return{kind:J.SCALAR_TYPE_DEFINITION,description:t,name:e,directives:i,loc:this.loc(n)}},t.parseObjectTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var e=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:J.OBJECT_TYPE_DEFINITION,description:t,name:e,interfaces:i,directives:r,fields:o,loc:this.loc(n)}},t.parseImplementsInterfaces=function(){var n;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(n=this._options)||void 0===n?void 0:n.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(z.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(z.AMP)||this.peek(z.NAME));return t}return this.delimitedMany(z.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var n;return!0===(null===(n=this._options)||void 0===n?void 0:n.allowLegacySDLEmptyFields)&&this.peek(z.BRACE_L)&&this._lexer.lookahead().kind===z.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(z.BRACE_L,this.parseFieldDefinition,z.BRACE_R)},t.parseFieldDefinition=function(){var n=this._lexer.token,t=this.parseDescription(),e=this.parseName(),i=this.parseArgumentDefs();this.expectToken(z.COLON);var r=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:J.FIELD_DEFINITION,description:t,name:e,arguments:i,type:r,directives:o,loc:this.loc(n)}},t.parseArgumentDefs=function(){return this.optionalMany(z.PAREN_L,this.parseInputValueDef,z.PAREN_R)},t.parseInputValueDef=function(){var n=this._lexer.token,t=this.parseDescription(),e=this.parseName();this.expectToken(z.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(z.EQUALS)&&(i=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:J.INPUT_VALUE_DEFINITION,description:t,name:e,type:r,defaultValue:i,directives:o,loc:this.loc(n)}},t.parseInterfaceTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var e=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:J.INTERFACE_TYPE_DEFINITION,description:t,name:e,interfaces:i,directives:r,fields:o,loc:this.loc(n)}},t.parseUnionTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var e=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:J.UNION_TYPE_DEFINITION,description:t,name:e,directives:i,types:r,loc:this.loc(n)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(z.EQUALS)?this.delimitedMany(z.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var e=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:J.ENUM_TYPE_DEFINITION,description:t,name:e,directives:i,values:r,loc:this.loc(n)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(z.BRACE_L,this.parseEnumValueDefinition,z.BRACE_R)},t.parseEnumValueDefinition=function(){var n=this._lexer.token,t=this.parseDescription(),e=this.parseName(),i=this.parseDirectives(!0);return{kind:J.ENUM_VALUE_DEFINITION,description:t,name:e,directives:i,loc:this.loc(n)}},t.parseInputObjectTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var e=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:J.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:e,directives:i,fields:r,loc:this.loc(n)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(z.BRACE_L,this.parseInputValueDef,z.BRACE_R)},t.parseTypeSystemExtension=function(){var n=this._lexer.lookahead();if(n.kind===z.NAME)switch(n.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(n)},t.parseSchemaExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),e=this.optionalMany(z.BRACE_L,this.parseOperationTypeDefinition,z.BRACE_R);if(0===t.length&&0===e.length)throw this.unexpected();return{kind:J.SCHEMA_EXTENSION,directives:t,operationTypes:e,loc:this.loc(n)}},t.parseScalarTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),e=this.parseDirectives(!0);if(0===e.length)throw this.unexpected();return{kind:J.SCALAR_TYPE_EXTENSION,name:t,directives:e,loc:this.loc(n)}},t.parseObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),e=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===e.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:J.OBJECT_TYPE_EXTENSION,name:t,interfaces:e,directives:i,fields:r,loc:this.loc(n)}},t.parseInterfaceTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),e=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===e.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:J.INTERFACE_TYPE_EXTENSION,name:t,interfaces:e,directives:i,fields:r,loc:this.loc(n)}},t.parseUnionTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),e=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===e.length&&0===i.length)throw this.unexpected();return{kind:J.UNION_TYPE_EXTENSION,name:t,directives:e,types:i,loc:this.loc(n)}},t.parseEnumTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),e=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===e.length&&0===i.length)throw this.unexpected();return{kind:J.ENUM_TYPE_EXTENSION,name:t,directives:e,values:i,loc:this.loc(n)}},t.parseInputObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),e=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===e.length&&0===i.length)throw this.unexpected();return{kind:J.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:e,fields:i,loc:this.loc(n)}},t.parseDirectiveDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(z.AT);var e=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:J.DIRECTIVE_DEFINITION,description:t,name:e,arguments:i,repeatable:r,locations:o,loc:this.loc(n)}},t.parseDirectiveLocations=function(){return this.delimitedMany(z.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var n=this._lexer.token,t=this.parseName();if(void 0!==rn[t.value])return t;throw this.unexpected(n)},t.loc=function(n){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new Y(n,this._lexer.lastToken,this._lexer.source)},t.peek=function(n){return this._lexer.token.kind===n},t.expectToken=function(n){var t=this._lexer.token;if(t.kind===n)return this._lexer.advance(),t;throw $(this._lexer.source,t.start,"Expected ".concat(Sn(n),", found ").concat(gn(t),"."))},t.expectOptionalToken=function(n){var t=this._lexer.token;if(t.kind===n)return this._lexer.advance(),t},t.expectKeyword=function(n){var t=this._lexer.token;if(t.kind!==z.NAME||t.value!==n)throw $(this._lexer.source,t.start,'Expected "'.concat(n,'", found ').concat(gn(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(n){var t=this._lexer.token;return t.kind===z.NAME&&t.value===n&&(this._lexer.advance(),!0)},t.unexpected=function(n){var t=null!=n?n:this._lexer.token;return $(this._lexer.source,t.start,"Unexpected ".concat(gn(t),"."))},t.any=function(n,t,e){this.expectToken(n);for(var i=[];!this.expectOptionalToken(e);)i.push(t.call(this));return i},t.optionalMany=function(n,t,e){if(this.expectOptionalToken(n)){var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(e));return i}return[]},t.many=function(n,t,e){this.expectToken(n);var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(e));return i},t.delimitedMany=function(n,t){this.expectOptionalToken(n);var e=[];do{e.push(t.call(this))}while(this.expectOptionalToken(n));return e},n}();function gn(n){var t=n.value;return Sn(n.kind)+(null!=t?' "'.concat(t,'"'):"")}function Sn(n){return function(n){return n===z.BANG||n===z.DOLLAR||n===z.AMP||n===z.PAREN_L||n===z.PAREN_R||n===z.SPREAD||n===z.COLON||n===z.EQUALS||n===z.AT||n===z.BRACKET_L||n===z.BRACKET_R||n===z.BRACE_L||n===z.PIPE||n===z.BRACE_R}(n)?'"'.concat(n,'"'):n}var In={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"]},On=Object.freeze({});function Tn(n,t,e){var i=n[t];if(i){if(!e&&"function"==typeof i)return i;var r=e?i.leave:i.enter;if("function"==typeof r)return r}else{var o=e?n.leave:n.enter;if(o){if("function"==typeof o)return o;var u=o[t];if("function"==typeof u)return u}}}function Nn(n){return function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:In,i=void 0,r=Array.isArray(n),o=[n],u=-1,s=[],a=void 0,c=void 0,f=void 0,l=[],h=[],d=n;do{var v=++u===o.length,p=v&&0!==s.length;if(v){if(c=0===h.length?void 0:l[l.length-1],a=f,f=h.pop(),p){if(r)a=a.slice();else{for(var m={},y=0,b=Object.keys(a);y<b.length;y++){var w=b[y];m[w]=a[w]}a=m}for(var E=0,g=0;g<s.length;g++){var S=s[g][0],I=s[g][1];r&&(S-=E),r&&null===I?(a.splice(S,1),E++):a[S]=I}}u=i.index,o=i.keys,s=i.edits,r=i.inArray,i=i.prev}else{if(c=f?r?u:o[u]:void 0,null==(a=f?f[c]:d))continue;f&&l.push(c)}var O,T=void 0;if(!Array.isArray(a)){if(!X(a))throw new Error("Invalid AST Node: ".concat(K(a),"."));var N=Tn(t,a.kind,v);if(N){if((T=N.call(t,a,c,f,l,h))===On)break;if(!1===T){if(!v){l.pop();continue}}else if(void 0!==T&&(s.push([c,T]),!v)){if(!X(T)){l.pop();continue}a=T}}}void 0===T&&p&&s.push([c,a]),v?l.pop():(i={inArray:r,index:u,keys:o,edits:s,prev:i},o=(r=Array.isArray(a))?a:null!==(O=e[a.kind])&&void 0!==O?O:[],u=-1,s=[],f&&h.push(f),f=a)}while(void 0!==i);return 0!==s.length&&(d=s[s.length-1][1]),d}(n,{leave:Fn})}var Fn={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return Dn(n.definitions,"\n\n")+"\n"},OperationDefinition:function(n){var t=n.operation,e=n.name,i=An("(",Dn(n.variableDefinitions,", "),")"),r=Dn(n.directives," "),o=n.selectionSet;return e||r||i||"query"!==t?Dn([t,Dn([e,i]),r,o]," "):o},VariableDefinition:function(n){var t=n.directives;return n.variable+": "+n.type+An(" = ",n.defaultValue)+An(" ",Dn(t," "))},SelectionSet:function(n){return jn(n.selections)},Field:function(n){var t=n.name,e=n.arguments,i=n.directives,r=n.selectionSet,o=An("",n.alias,": ")+t,u=o+An("(",Dn(e,", "),")");return u.length>80&&(u=o+An("(\n",_n(Dn(e,"\n")),"\n)")),Dn([u,Dn(i," "),r]," ")},Argument:function(n){return n.name+": "+n.value},FragmentSpread:function(n){return"..."+n.name+An(" ",Dn(n.directives," "))},InlineFragment:function(n){var t=n.directives,e=n.selectionSet;return Dn(["...",An("on ",n.typeCondition),Dn(t," "),e]," ")},FragmentDefinition:function(n){var t=n.typeCondition,e=n.variableDefinitions,i=n.directives,r=n.selectionSet;return"fragment ".concat(n.name).concat(An("(",Dn(e,", "),")")," ")+"on ".concat(t," ").concat(An("",Dn(i," ")," "))+r},IntValue:function(n){return n.value},FloatValue:function(n){return n.value},StringValue:function(n,t){var e=n.value;return n.block?function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===n.indexOf("\n"),r=" "===n[0]||"\t"===n[0],o='"'===n[n.length-1],u="\\"===n[n.length-1],s=!i||o||u||e,a="";return!s||i&&r||(a+="\n"+t),a+=t?n.replace(/\n/g,"\n"+t):n,s&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}(e,"description"===t?"":" "):JSON.stringify(e)},BooleanValue:function(n){return n.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(n){return n.value},ListValue:function(n){return"["+Dn(n.values,", ")+"]"},ObjectValue:function(n){return"{"+Dn(n.fields,", ")+"}"},ObjectField:function(n){return n.name+": "+n.value},Directive:function(n){return"@"+n.name+An("(",Dn(n.arguments,", "),")")},NamedType:function(n){return n.name},ListType:function(n){return"["+n.type+"]"},NonNullType:function(n){return n.type+"!"},SchemaDefinition:Cn((function(n){var t=n.operationTypes;return Dn(["schema",Dn(n.directives," "),jn(t)]," ")})),OperationTypeDefinition:function(n){return n.operation+": "+n.type},ScalarTypeDefinition:Cn((function(n){return Dn(["scalar",n.name,Dn(n.directives," ")]," ")})),ObjectTypeDefinition:Cn((function(n){var t=n.directives,e=n.fields;return Dn(["type",n.name,An("implements ",Dn(n.interfaces," & ")),Dn(t," "),jn(e)]," ")})),FieldDefinition:Cn((function(n){var t=n.arguments,e=n.type,i=n.directives;return n.name+(kn(t)?An("(\n",_n(Dn(t,"\n")),"\n)"):An("(",Dn(t,", "),")"))+": "+e+An(" ",Dn(i," "))})),InputValueDefinition:Cn((function(n){var t=n.directives;return Dn([n.name+": "+n.type,An("= ",n.defaultValue),Dn(t," ")]," ")})),InterfaceTypeDefinition:Cn((function(n){var t=n.directives,e=n.fields;return Dn(["interface",n.name,An("implements ",Dn(n.interfaces," & ")),Dn(t," "),jn(e)]," ")})),UnionTypeDefinition:Cn((function(n){var t=n.types;return Dn(["union",n.name,Dn(n.directives," "),t&&0!==t.length?"= "+Dn(t," | "):""]," ")})),EnumTypeDefinition:Cn((function(n){var t=n.values;return Dn(["enum",n.name,Dn(n.directives," "),jn(t)]," ")})),EnumValueDefinition:Cn((function(n){return Dn([n.name,Dn(n.directives," ")]," ")})),InputObjectTypeDefinition:Cn((function(n){var t=n.fields;return Dn(["input",n.name,Dn(n.directives," "),jn(t)]," ")})),DirectiveDefinition:Cn((function(n){var t=n.arguments,e=n.repeatable,i=n.locations;return"directive @"+n.name+(kn(t)?An("(\n",_n(Dn(t,"\n")),"\n)"):An("(",Dn(t,", "),")"))+(e?" repeatable":"")+" on "+Dn(i," | ")})),SchemaExtension:function(n){var t=n.operationTypes;return Dn(["extend schema",Dn(n.directives," "),jn(t)]," ")},ScalarTypeExtension:function(n){return Dn(["extend scalar",n.name,Dn(n.directives," ")]," ")},ObjectTypeExtension:function(n){var t=n.directives,e=n.fields;return Dn(["extend type",n.name,An("implements ",Dn(n.interfaces," & ")),Dn(t," "),jn(e)]," ")},InterfaceTypeExtension:function(n){var t=n.directives,e=n.fields;return Dn(["extend interface",n.name,An("implements ",Dn(n.interfaces," & ")),Dn(t," "),jn(e)]," ")},UnionTypeExtension:function(n){var t=n.types;return Dn(["extend union",n.name,Dn(n.directives," "),t&&0!==t.length?"= "+Dn(t," | "):""]," ")},EnumTypeExtension:function(n){var t=n.values;return Dn(["extend enum",n.name,Dn(n.directives," "),jn(t)]," ")},InputObjectTypeExtension:function(n){var t=n.fields;return Dn(["extend input",n.name,Dn(n.directives," "),jn(t)]," ")}};function Cn(n){return function(t){return Dn([t.description,n(t)],"\n")}}function Dn(n){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==n?void 0:n.filter((function(n){return n})).join(e))&&void 0!==t?t:""}function jn(n){return An("{\n",_n(Dn(n,"\n")),"\n}")}function An(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?n+t+e:""}function _n(n){return An(" ",n.replace(/\n/g,"\n "))}function xn(n){return-1!==n.indexOf("\n")}function kn(n){return null!=n&&n.some(xn)}function Pn(n,t,e,i){var r,o=null==(r=i)||"number"==typeof r||"boolean"==typeof r?i:e(i),u=t.get(o);return void 0===u&&(u=n.call(this,i),t.set(o,u)),u}function Mn(n,t,e){var i=Array.prototype.slice.call(arguments,3),r=e(i),o=t.get(r);return void 0===o&&(o=n.apply(this,i),t.set(r,o)),o}function Vn(n,t,e,i,r){return e.bind(t,n,i,r)}function Rn(n,t){return Vn(n,this,1===n.length?Pn:Mn,t.cache.create(),t.serializer)}function Un(){return JSON.stringify(arguments)}function qn(){this.cache=Object.create(null)}qn.prototype.has=function(n){return n in this.cache},qn.prototype.get=function(n){return this.cache[n]},qn.prototype.set=function(n,t){this.cache[n]=t};var Ln={create:function(){return new qn}},Bn=function(n,t){return(t&&t.strategy?t.strategy:Rn)(n,{cache:t&&t.cache?t.cache:Ln,serializer:t&&t.serializer?t.serializer:Un})},$n={variadic:function(n,t){return Vn(n,this,Mn,t.cache.create(),t.serializer)},monadic:function(n,t){return Vn(n,this,Pn,t.cache.create(),t.serializer)}};Bn.strategies=$n;const Jn=Object.freeze(Object.assign(Object.create(null),Bn,{default:Bn,strategies:$n}));function Gn(n){return"function"==typeof n}let Hn=!1;const Yn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else Hn&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Hn=n},get useDeprecatedSynchronousErrorHandling(){return Hn}};function Qn(n){setTimeout((()=>{throw n}),0)}const Xn={closed:!0,next(n){},error(n){if(Yn.useDeprecatedSynchronousErrorHandling)throw n;Qn(n)},complete(){}},zn=Array.isArray||(n=>n&&"number"==typeof n.length);function Wn(n){return null!==n&&"object"==typeof n}const Kn=(()=>{function n(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map(((n,t)=>`${t+1}) ${n.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return n.prototype=Object.create(Error.prototype),n})();class Zn{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:e,_unsubscribe:i,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof Zn)t.remove(this);else if(null!==t)for(let n=0;n<t.length;++n)t[n].remove(this);if(Gn(i)){e&&(this._unsubscribe=void 0);try{i.call(this)}catch(t){n=t instanceof Kn?nt(t.errors):[t]}}if(zn(r)){let t=-1,e=r.length;for(;++t<e;){const e=r[t];if(Wn(e))try{e.unsubscribe()}catch(t){n=n||[],t instanceof Kn?n=n.concat(nt(t.errors)):n.push(t)}}}if(n)throw new Kn(n)}add(n){let t=n;if(!n)return Zn.EMPTY;switch(typeof n){case"function":t=new Zn(n);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof Zn)){const n=t;t=new Zn,t._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}let{_parentOrParents:e}=t;if(null===e)t._parentOrParents=this;else if(e instanceof Zn){if(e===this)return t;t._parentOrParents=[e,this]}else{if(-1!==e.indexOf(this))return t;e.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[t]:i.push(t),t}remove(n){const t=this._subscriptions;if(t){const e=t.indexOf(n);-1!==e&&t.splice(e,1)}}}function nt(n){return n.reduce(((n,t)=>n.concat(t instanceof Kn?t.errors:t)),[])}Zn.EMPTY=function(n){return n.closed=!0,n}(new Zn);const tt="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class et extends Zn{constructor(n,t,e){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Xn;break;case 1:if(!n){this.destination=Xn;break}if("object"==typeof n){n instanceof et?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new it(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new it(this,n,t,e)}}[tt](){return this}static create(n,t,e){const i=new et(n,t,e);return i.syncErrorThrowable=!1,i}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class it extends et{constructor(n,t,e,i){let r;super(),this._parentSubscriber=n;let o=this;Gn(t)?r=t:t&&(r=t.next,e=t.error,i=t.complete,t!==Xn&&(o=Object.create(t),Gn(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=e,this._complete=i}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Yn.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:e}=Yn;if(this._error)e&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(t.syncErrorThrowable)e?(t.syncErrorValue=n,t.syncErrorThrown=!0):Qn(n),this.unsubscribe();else{if(this.unsubscribe(),e)throw n;Qn(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const t=()=>this._complete.call(this._context);Yn.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,t){try{n.call(this._context,t)}catch(n){if(this.unsubscribe(),Yn.useDeprecatedSynchronousErrorHandling)throw n;Qn(n)}}__tryOrSetError(n,t,e){if(!Yn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,e)}catch(t){return Yn.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=t,n.syncErrorThrown=!0,!0):(Qn(t),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const rt="function"==typeof Symbol&&Symbol.observable||"@@observable";function ot(n){return n}class ut{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const t=new ut;return t.source=this,t.operator=n,t}subscribe(n,t,e){const{operator:i}=this,r=function(n,t,e){if(n){if(n instanceof et)return n;if(n[tt])return n[tt]()}return n||t||e?new et(n,t,e):new et(Xn)}(n,t,e);if(r.add(i?i.call(r,this.source):this.source||Yn.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),Yn.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(n){try{return this._subscribe(n)}catch(t){Yn.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=t),function(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof et?e:null}return!0}(n)?n.error(t):console.warn(t)}}forEach(n,t){return new(t=st(t))(((t,e)=>{let i;i=this.subscribe((t=>{try{n(t)}catch(n){e(n),i&&i.unsubscribe()}}),e,t)}))}_subscribe(n){const{source:t}=this;return t&&t.subscribe(n)}[rt](){return this}pipe(...n){return 0===n.length?this:(0===(t=n).length?ot:1===t.length?t[0]:function(n){return t.reduce(((n,t)=>t(n)),n)})(this);var t}toPromise(n){return new(n=st(n))(((n,t)=>{let e;this.subscribe((n=>e=n),(n=>t(n)),(()=>n(e)))}))}}function st(n){if(n||(n=Promise),!n)throw new Error("no Promise impl found");return n}ut.create=n=>new ut(n);const at=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class ct extends Zn{constructor(n,t){super(),this.subject=n,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,t=n.observers;if(this.subject=null,!t||0===t.length||n.isStopped||n.closed)return;const e=t.indexOf(this.subscriber);-1!==e&&t.splice(e,1)}}class ft extends et{constructor(n){super(n),this.destination=n}}class lt extends ut{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[tt](){return new ft(this)}lift(n){const t=new ht(this,this);return t.operator=n,t}next(n){if(this.closed)throw new at;if(!this.isStopped){const{observers:t}=this,e=t.length,i=t.slice();for(let t=0;t<e;t++)i[t].next(n)}}error(n){if(this.closed)throw new at;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:t}=this,e=t.length,i=t.slice();for(let t=0;t<e;t++)i[t].error(n);this.observers.length=0}complete(){if(this.closed)throw new at;this.isStopped=!0;const{observers:n}=this,t=n.length,e=n.slice();for(let n=0;n<t;n++)e[n].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new at;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new at;return this.hasError?(n.error(this.thrownError),Zn.EMPTY):this.isStopped?(n.complete(),Zn.EMPTY):(this.observers.push(n),new ct(this,n))}asObservable(){const n=new ut;return n.source=this,n}}lt.create=(n,t)=>new ht(n,t);class ht extends lt{constructor(n,t){super(),this.destination=n,this.source=t}next(n){const{destination:t}=this;t&&t.next&&t.next(n)}error(n){const{destination:t}=this;t&&t.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:t}=this;return t?this.source.subscribe(n):Zn.EMPTY}}class dt extends Zn{constructor(n,t){super()}schedule(n,t=0){return this}}class vt{constructor(n,t=vt.now){this.SchedulerAction=n,this.now=t}schedule(n,t=0,e){return new this.SchedulerAction(this,n).schedule(e,t)}}vt.now=()=>Date.now();class pt extends vt{constructor(n,t=vt.now){super(n,(()=>pt.delegate&&pt.delegate!==this?pt.delegate.now():t())),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,t=0,e){return pt.delegate&&pt.delegate!==this?pt.delegate.schedule(n,t,e):super.schedule(n,t,e)}flush(n){const{actions:t}=this;if(this.active)return void t.push(n);let e;this.active=!0;do{if(e=n.execute(n.state,n.delay))break}while(n=t.shift());if(this.active=!1,e){for(;n=t.shift();)n.unsubscribe();throw e}}}function mt(n){return n&&"function"==typeof n.schedule}const yt=new pt(class extends dt{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){if(this.closed)return this;this.state=n;const e=this.id,i=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(i,e,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(n,t,e=0){return setInterval(n.flush.bind(n,this),e)}recycleAsyncId(n,t,e=0){if(null!==e&&this.delay===e&&!1===this.pending)return t;clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const e=this._execute(n,t);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let e,i=!1;try{this.work(n)}catch(n){i=!0,e=!!n&&n||new Error(n)}if(i)return this.unsubscribe(),e}_unsubscribe(){const n=this.id,t=this.scheduler,e=t.actions,i=e.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&e.splice(i,1),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null}});class bt{constructor(n,t,e,i){this.bufferTimeSpan=n,this.bufferCreationInterval=t,this.maxBufferSize=e,this.scheduler=i}call(n,t){return t.subscribe(new Et(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class wt{constructor(){this.buffer=[]}}class Et extends et{constructor(n,t,e,i,r){super(n),this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=r,this.contexts=[];const o=this.openContext();if(this.timespanOnly=null==e||e<0,this.timespanOnly)this.add(o.closeAction=r.schedule(gt,t,{subscriber:this,context:o,bufferTimeSpan:t}));else{const n={bufferTimeSpan:t,bufferCreationInterval:e,subscriber:this,scheduler:r};this.add(o.closeAction=r.schedule(It,t,{subscriber:this,context:o})),this.add(r.schedule(St,e,n))}}_next(n){const t=this.contexts,e=t.length;let i;for(let r=0;r<e;r++){const e=t[r],o=e.buffer;o.push(n),o.length==this.maxBufferSize&&(i=e)}i&&this.onBufferFull(i)}_error(n){this.contexts.length=0,super._error(n)}_complete(){const{contexts:n,destination:t}=this;for(;n.length>0;){const e=n.shift();t.next(e.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const t=n.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){n=this.openContext();const t=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(gt,t,{subscriber:this,context:n,bufferTimeSpan:t}))}}openContext(){const n=new wt;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const t=this.contexts;(t?t.indexOf(n):-1)>=0&&t.splice(t.indexOf(n),1)}}function gt(n){const t=n.subscriber,e=n.context;e&&t.closeContext(e),t.closed||(n.context=t.openContext(),n.context.closeAction=this.schedule(n,n.bufferTimeSpan))}function St(n){const{bufferCreationInterval:t,bufferTimeSpan:e,subscriber:i,scheduler:r}=n,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(It,e,{subscriber:i,context:o})),this.schedule(n,t))}function It(n){const{subscriber:t,context:e}=n;t.closeContext(e)}var Ot=n((function(n,e){var i,r=t&&t.__extends||(i=function(n,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])})(n,t)},function(n,t){function e(){this.constructor=n}i(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.ClientError=void 0;var o=function(n){function t(e,i){var r=this,o=t.extractMessage(e)+": "+JSON.stringify({response:e,request:i});return r=n.call(this,o)||this,Object.setPrototypeOf(r,t.prototype),r.response=e,r.request=i,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(r,t),r}return r(t,n),t.extractMessage=function(n){try{return n.errors[0].message}catch(t){return"GraphQL Error (Code: "+n.status+")"}},t}(Error);e.ClientError=o})),Tt=n((function(n,e){var i="undefined"!=typeof self?self:t,r=function(){function n(){this.fetch=!1,this.DOMException=i.DOMException}return n.prototype=i,new n}();!function(n){!function(t){var e="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,r="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(n){return!1}}(),o="FormData"in n,u="ArrayBuffer"in n;if(u)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(n){return n&&s.indexOf(Object.prototype.toString.call(n))>-1};function c(n){if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new TypeError("Invalid character in header field name");return n.toLowerCase()}function f(n){return"string"!=typeof n&&(n=String(n)),n}function l(n){var t={next:function(){var t=n.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function h(n){this.map={},n instanceof h?n.forEach((function(n,t){this.append(t,n)}),this):Array.isArray(n)?n.forEach((function(n){this.append(n[0],n[1])}),this):n&&Object.getOwnPropertyNames(n).forEach((function(t){this.append(t,n[t])}),this)}function d(n){if(n.bodyUsed)return Promise.reject(new TypeError("Already read"));n.bodyUsed=!0}function v(n){return new Promise((function(t,e){n.onload=function(){t(n.result)},n.onerror=function(){e(n.error)}}))}function p(n){var t=new FileReader,e=v(t);return t.readAsArrayBuffer(n),e}function m(n){if(n.slice)return n.slice(0);var t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(n){var t;this._bodyInit=n,n?"string"==typeof n?this._bodyText=n:r&&Blob.prototype.isPrototypeOf(n)?this._bodyBlob=n:o&&FormData.prototype.isPrototypeOf(n)?this._bodyFormData=n:e&&URLSearchParams.prototype.isPrototypeOf(n)?this._bodyText=n.toString():u&&r&&(t=n)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=m(n.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(n)||a(n))?this._bodyArrayBuffer=m(n):this._bodyText=n=Object.prototype.toString.call(n):this._bodyText="",this.headers.get("content-type")||("string"==typeof n?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(n)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var n=d(this);if(n)return n;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var n,t,e,i=d(this);if(i)return i;if(this._bodyBlob)return n=this._bodyBlob,e=v(t=new FileReader),t.readAsText(n),e;if(this._bodyArrayBuffer)return Promise.resolve(function(n){for(var t=new Uint8Array(n),e=new Array(t.length),i=0;i<t.length;i++)e[i]=String.fromCharCode(t[i]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(n,t){n=c(n),t=f(t);var e=this.map[n];this.map[n]=e?e+", "+t:t},h.prototype.delete=function(n){delete this.map[c(n)]},h.prototype.get=function(n){return n=c(n),this.has(n)?this.map[n]:null},h.prototype.has=function(n){return this.map.hasOwnProperty(c(n))},h.prototype.set=function(n,t){this.map[c(n)]=f(t)},h.prototype.forEach=function(n,t){for(var e in this.map)this.map.hasOwnProperty(e)&&n.call(t,this.map[e],e,this)},h.prototype.keys=function(){var n=[];return this.forEach((function(t,e){n.push(e)})),l(n)},h.prototype.values=function(){var n=[];return this.forEach((function(t){n.push(t)})),l(n)},h.prototype.entries=function(){var n=[];return this.forEach((function(t,e){n.push([e,t])})),l(n)},i&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(n,t){var e,i,r=(t=t||{}).body;if(n instanceof w){if(n.bodyUsed)throw new TypeError("Already read");this.url=n.url,this.credentials=n.credentials,t.headers||(this.headers=new h(n.headers)),this.method=n.method,this.mode=n.mode,this.signal=n.signal,r||null==n._bodyInit||(r=n._bodyInit,n.bodyUsed=!0)}else this.url=String(n);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(i=(e=t.method||this.method||"GET").toUpperCase(),b.indexOf(i)>-1?i:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function E(n){var t=new FormData;return n.trim().split("&").forEach((function(n){if(n){var e=n.split("="),i=e.shift().replace(/\+/g," "),r=e.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}})),t}function g(n,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(n)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},y.call(w.prototype),y.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},g.error=function(){var n=new g(null,{status:0,statusText:""});return n.type="error",n};var S=[301,302,303,307,308];g.redirect=function(n,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:n}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(n){t.DOMException=function(n,t){this.message=n,this.name=t;var e=Error(n);this.stack=e.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function I(n,e){return new Promise((function(i,o){var u=new w(n,e);if(u.signal&&u.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function a(){s.abort()}s.onload=function(){var n,t,e={status:s.status,statusText:s.statusText,headers:(n=s.getAllResponseHeaders()||"",t=new h,n.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(n){var e=n.split(":"),i=e.shift().trim();if(i){var r=e.join(":").trim();t.append(i,r)}})),t)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL"),i(new g("response"in s?s.response:s.responseText,e))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(u.method,u.url,!0),"include"===u.credentials?s.withCredentials=!0:"omit"===u.credentials&&(s.withCredentials=!1),"responseType"in s&&r&&(s.responseType="blob"),u.headers.forEach((function(n,t){s.setRequestHeader(t,n)})),u.signal&&(u.signal.addEventListener("abort",a),s.onreadystatechange=function(){4===s.readyState&&u.signal.removeEventListener("abort",a)}),s.send(void 0===u._bodyInit?null:u._bodyInit)}))}I.polyfill=!0,n.fetch||(n.fetch=I,n.Headers=h,n.Request=w,n.Response=g),t.Headers=h,t.Request=w,t.Response=g,t.fetch=I,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(e=o.fetch).default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,n.exports=e})),Nt=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=e})),Ft=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return o(n,[])};var e,i=(e=Nt)&&e.__esModule?e:{default:e};function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,t){switch(r(n)){case"string":return JSON.stringify(n);case"function":return n.name?"[function ".concat(n.name,"]"):"[function]";case"object":return null===n?"null":function(n,t){if(-1!==t.indexOf(n))return"[Circular]";var e=[].concat(t,[n]),r=function(n){var t=n[String(i.default)];return"function"==typeof t?t:"function"==typeof n.inspect?n.inspect:void 0}(n);if(void 0!==r){var u=r.call(n);if(u!==n)return"string"==typeof u?u:o(u,e)}else if(Array.isArray(n))return function(n,t){if(0===n.length)return"[]";if(t.length>2)return"[Array]";for(var e=Math.min(10,n.length),i=n.length-e,r=[],u=0;u<e;++u)r.push(o(n[u],t));return 1===i?r.push("... 1 more item"):i>1&&r.push("... ".concat(i," more items")),"["+r.join(", ")+"]"}(n,e);return function(n,t){var e=Object.keys(n);return 0===e.length?"{}":t.length>2?"["+function(n){var t=Object.prototype.toString.call(n).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof n.constructor){var e=n.constructor.name;if("string"==typeof e&&""!==e)return e}return t}(n)+"]":"{ "+e.map((function(e){return e+": "+o(n[e],t)})).join(", ")+" }"}(n,e)}(n,t);default:return String(n)}}})),Ct=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n,t){if(!Boolean(n))throw new Error(null!=t?t:"Unexpected invariant triggered.")}})),Dt=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var t=n.prototype.toJSON;"function"==typeof t||(0,e.default)(0),n.prototype.inspect=t,i.default&&(n.prototype[i.default]=t)};var e=r(Ct),i=r(Nt);function r(n){return n&&n.__esModule?n:{default:n}}})),jt=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=function(n){return null!=n&&"string"==typeof n.kind},t.Token=t.Location=void 0;var e,i=(e=Dt)&&e.__esModule?e:{default:e},r=function(){function n(n,t,e){this.start=n.start,this.end=t.end,this.startToken=n,this.endToken=t,this.source=e}return n.prototype.toJSON=function(){return{start:this.start,end:this.end}},n}();t.Location=r,(0,i.default)(r);var o=function(){function n(n,t,e,i,r,o,u){this.kind=n,this.start=t,this.end=e,this.line=i,this.column=r,this.value=u,this.prev=o,this.next=null}return n.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},n}();t.Token=o,(0,i.default)(o)})),At=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,s=void 0,a=Array.isArray(n),c=[n],f=-1,l=[],h=void 0,d=void 0,v=void 0,p=[],m=[],y=n;do{var b=++f===c.length,w=b&&0!==l.length;if(b){if(d=0===m.length?void 0:p[p.length-1],h=v,v=m.pop(),w){if(a)h=h.slice();else{for(var E={},g=0,S=Object.keys(h);g<S.length;g++){var I=S[g];E[I]=h[I]}h=E}for(var O=0,T=0;T<l.length;T++){var N=l[T][0],F=l[T][1];a&&(N-=O),a&&null===F?(h.splice(N,1),O++):h[N]=F}}f=s.index,c=s.keys,l=s.edits,a=s.inArray,s=s.prev}else{if(d=v?a?f:c[f]:void 0,null==(h=v?v[d]:y))continue;v&&p.push(d)}var C,D=void 0;if(!Array.isArray(h)){if(!(0,jt.isNode)(h))throw new Error("Invalid AST Node: ".concat((0,i.default)(h),"."));var j=u(t,h.kind,b);if(j){if((D=j.call(t,h,d,v,p,m))===o)break;if(!1===D){if(!b){p.pop();continue}}else if(void 0!==D&&(l.push([d,D]),!b)){if(!(0,jt.isNode)(D)){p.pop();continue}h=D}}}void 0===D&&w&&l.push([d,h]),b?p.pop():(s={inArray:a,index:f,keys:c,edits:l,prev:s},c=(a=Array.isArray(h))?h:null!==(C=e[h.kind])&&void 0!==C?C:[],f=-1,l=[],v&&m.push(v),v=h)}while(void 0!==s);return 0!==l.length&&(y=l[l.length-1][1]),y},t.visitInParallel=function(n){var t=new Array(n.length);return{enter:function(e){for(var i=0;i<n.length;i++)if(null==t[i]){var r=u(n[i],e.kind,!1);if(r){var s=r.apply(n[i],arguments);if(!1===s)t[i]=e;else if(s===o)t[i]=o;else if(void 0!==s)return s}}},leave:function(e){for(var i=0;i<n.length;i++)if(null==t[i]){var r=u(n[i],e.kind,!0);if(r){var s=r.apply(n[i],arguments);if(s===o)t[i]=o;else if(void 0!==s&&!1!==s)return s}}else t[i]===e&&(t[i]=null)}}},t.getVisitFn=u,t.BREAK=t.QueryDocumentKeys=void 0;var e,i=(e=Ft)&&e.__esModule?e:{default:e},r={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"]};t.QueryDocumentKeys=r;var o=Object.freeze({});function u(n,t,e){var i=n[t];if(i){if(!e&&"function"==typeof i)return i;var r=e?i.leave:i.enter;if("function"==typeof r)return r}else{var o=e?n.leave:n.enter;if(o){if("function"==typeof o)return o;var u=o[t];if("function"==typeof u)return u}}}t.BREAK=o})),_t=n((function(n,t){function e(n){for(var t=0;t<n.length;++t)if(" "!==n[t]&&"\t"!==n[t])return!1;return!0}function i(n){for(var t,e=!0,i=!0,r=0,o=null,u=0;u<n.length;++u)switch(n.charCodeAt(u)){case 13:10===n.charCodeAt(u+1)&&++u;case 10:e=!1,i=!0,r=0;break;case 9:case 32:++r;break;default:i&&!e&&(null===o||r<o)&&(o=r),i=!1}return null!==(t=o)&&void 0!==t?t:0}Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringValue=function(n){var t=n.split(/\r\n|[\n\r]/g),r=i(n);if(0!==r)for(var o=1;o<t.length;o++)t[o]=t[o].slice(r);for(var u=0;u<t.length&&e(t[u]);)++u;for(var s=t.length;s>u&&e(t[s-1]);)--s;return t.slice(u,s).join("\n")},t.getBlockStringIndentation=i,t.printBlockString=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===n.indexOf("\n"),r=" "===n[0]||"\t"===n[0],o='"'===n[n.length-1],u="\\"===n[n.length-1],s=!i||o||u||e,a="";return!s||i&&r||(a+="\n"+t),a+=t?n.replace(/\n/g,"\n"+t):n,s&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}})),xt=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(n){return(0,At.visit)(n,{leave:e})};var e={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return r(n.definitions,"\n\n")+"\n"},OperationDefinition:function(n){var t=n.operation,e=n.name,i=u("(",r(n.variableDefinitions,", "),")"),o=r(n.directives," "),s=n.selectionSet;return e||o||i||"query"!==t?r([t,r([e,i]),o,s]," "):s},VariableDefinition:function(n){var t=n.directives;return n.variable+": "+n.type+u(" = ",n.defaultValue)+u(" ",r(t," "))},SelectionSet:function(n){return o(n.selections)},Field:function(n){var t=n.name,e=n.arguments,i=n.directives,o=n.selectionSet,a=u("",n.alias,": ")+t,c=a+u("(",r(e,", "),")");return c.length>80&&(c=a+u("(\n",s(r(e,"\n")),"\n)")),r([c,r(i," "),o]," ")},Argument:function(n){return n.name+": "+n.value},FragmentSpread:function(n){return"..."+n.name+u(" ",r(n.directives," "))},InlineFragment:function(n){var t=n.directives,e=n.selectionSet;return r(["...",u("on ",n.typeCondition),r(t," "),e]," ")},FragmentDefinition:function(n){var t=n.typeCondition,e=n.variableDefinitions,i=n.directives,o=n.selectionSet;return"fragment ".concat(n.name).concat(u("(",r(e,", "),")")," ")+"on ".concat(t," ").concat(u("",r(i," ")," "))+o},IntValue:function(n){return n.value},FloatValue:function(n){return n.value},StringValue:function(n,t){var e=n.value;return n.block?(0,_t.printBlockString)(e,"description"===t?"":" "):JSON.stringify(e)},BooleanValue:function(n){return n.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(n){return n.value},ListValue:function(n){return"["+r(n.values,", ")+"]"},ObjectValue:function(n){return"{"+r(n.fields,", ")+"}"},ObjectField:function(n){return n.name+": "+n.value},Directive:function(n){return"@"+n.name+u("(",r(n.arguments,", "),")")},NamedType:function(n){return n.name},ListType:function(n){return"["+n.type+"]"},NonNullType:function(n){return n.type+"!"},SchemaDefinition:i((function(n){var t=n.operationTypes;return r(["schema",r(n.directives," "),o(t)]," ")})),OperationTypeDefinition:function(n){return n.operation+": "+n.type},ScalarTypeDefinition:i((function(n){return r(["scalar",n.name,r(n.directives," ")]," ")})),ObjectTypeDefinition:i((function(n){var t=n.directives,e=n.fields;return r(["type",n.name,u("implements ",r(n.interfaces," & ")),r(t," "),o(e)]," ")})),FieldDefinition:i((function(n){var t=n.arguments,e=n.type,i=n.directives;return n.name+(c(t)?u("(\n",s(r(t,"\n")),"\n)"):u("(",r(t,", "),")"))+": "+e+u(" ",r(i," "))})),InputValueDefinition:i((function(n){var t=n.directives;return r([n.name+": "+n.type,u("= ",n.defaultValue),r(t," ")]," ")})),InterfaceTypeDefinition:i((function(n){var t=n.directives,e=n.fields;return r(["interface",n.name,u("implements ",r(n.interfaces," & ")),r(t," "),o(e)]," ")})),UnionTypeDefinition:i((function(n){var t=n.types;return r(["union",n.name,r(n.directives," "),t&&0!==t.length?"= "+r(t," | "):""]," ")})),EnumTypeDefinition:i((function(n){var t=n.values;return r(["enum",n.name,r(n.directives," "),o(t)]," ")})),EnumValueDefinition:i((function(n){return r([n.name,r(n.directives," ")]," ")})),InputObjectTypeDefinition:i((function(n){var t=n.fields;return r(["input",n.name,r(n.directives," "),o(t)]," ")})),DirectiveDefinition:i((function(n){var t=n.arguments,e=n.repeatable,i=n.locations;return"directive @"+n.name+(c(t)?u("(\n",s(r(t,"\n")),"\n)"):u("(",r(t,", "),")"))+(e?" repeatable":"")+" on "+r(i," | ")})),SchemaExtension:function(n){var t=n.operationTypes;return r(["extend schema",r(n.directives," "),o(t)]," ")},ScalarTypeExtension:function(n){return r(["extend scalar",n.name,r(n.directives," ")]," ")},ObjectTypeExtension:function(n){var t=n.directives,e=n.fields;return r(["extend type",n.name,u("implements ",r(n.interfaces," & ")),r(t," "),o(e)]," ")},InterfaceTypeExtension:function(n){var t=n.directives,e=n.fields;return r(["extend interface",n.name,u("implements ",r(n.interfaces," & ")),r(t," "),o(e)]," ")},UnionTypeExtension:function(n){var t=n.types;return r(["extend union",n.name,r(n.directives," "),t&&0!==t.length?"= "+r(t," | "):""]," ")},EnumTypeExtension:function(n){var t=n.values;return r(["extend enum",n.name,r(n.directives," "),o(t)]," ")},InputObjectTypeExtension:function(n){var t=n.fields;return r(["extend input",n.name,r(n.directives," "),o(t)]," ")}};function i(n){return function(t){return r([t.description,n(t)],"\n")}}function r(n){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==n?void 0:n.filter((function(n){return n})).join(e))&&void 0!==t?t:""}function o(n){return u("{\n",s(r(n,"\n")),"\n}")}function u(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?n+t+e:""}function s(n){return u(" ",n.replace(/\n/g,"\n "))}function a(n){return-1!==n.indexOf("\n")}function c(n){return null!=n&&n.some(a)}})),kt=function(n){var t=n.name,e=n.type;this.uri=n.uri,this.name=t,this.type=e},Pt=function(n){return"undefined"!=typeof File&&n instanceof File||"undefined"!=typeof Blob&&n instanceof Blob||n instanceof kt},Mt=function n(t,e,i){var r;void 0===e&&(e=""),void 0===i&&(i=Pt);var o=new Map;function u(n,t){var e=o.get(t);e?e.push.apply(e,n):o.set(t,n)}if(i(t))r=null,u([e],t);else{var s=e?e+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)r=Array.prototype.map.call(t,(function(n,t){return u([""+s+t],n),null}));else if(Array.isArray(t))r=t.map((function(t,e){var r=n(t,""+s+e,i);return r.files.forEach(u),r.clone}));else if(t&&t.constructor===Object)for(var a in r={},t){var c=n(t[a],""+s+a,i);c.files.forEach(u),r[a]=c.clone}else r=t}return{clone:r,files:o}},Vt=Pt,Rt="object"==typeof self?self.FormData:window.FormData,Ut=n((function(n,e){var i=t&&t.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(Rt),o=function(n){return Vt(n)||null!==n&&"object"==typeof n&&"function"==typeof n.pipe};e.default=function(n,t){var e=Mt({query:n,variables:t},"",o),i=e.clone,u=e.files;if(0===u.size)return JSON.stringify(i);var s=new("undefined"==typeof FormData?r.default:FormData);s.append("operations",JSON.stringify(i));var a={},c=0;return u.forEach((function(n){a[++c]=n})),s.append("map",JSON.stringify(a)),c=0,u.forEach((function(n,t){s.append(""+ ++c,t)})),s}})),qt=n((function(n,e){var i=t&&t.__assign||function(){return(i=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)},r=t&&t.__createBinding||(Object.create?function(n,t,e,i){void 0===i&&(i=e),Object.defineProperty(n,i,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,i){void 0===i&&(i=e),n[i]=t[e]}),o=t&&t.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=t&&t.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return o(t,n),t},s=t&&t.__awaiter||function(n,t,e,i){return new(e||(e=Promise))((function(r,o){function u(n){try{a(i.next(n))}catch(n){o(n)}}function s(n){try{a(i.throw(n))}catch(n){o(n)}}function a(n){var t;n.done?r(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(u,s)}a((i=i.apply(n,t||[])).next())}))},a=t&&t.__generator||function(n,t){var e,i,r,o,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,i=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((r=(r=u.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){u.label=o[1];break}if(6===o[0]&&u.label<r[1]){u.label=r[1],r=o;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(o);break}r[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(n,u)}catch(n){o=[6,n],i=0}finally{e=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},c=t&&t.__rest||function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(n);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(e[i[r]]=n[i[r]])}return e},f=t&&t.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.gql=e.request=e.rawRequest=e.GraphQLClient=e.ClientError=void 0;var l=u(Tt),h=l,d=f(Ut),v=Ot;Object.defineProperty(e,"ClientError",{enumerable:!0,get:function(){return v.ClientError}});var p=function(n){var t={};return n&&("undefined"!=typeof Headers&&n instanceof Headers||n instanceof h.Headers?t=function(n){var t={};return n.forEach((function(n,e){t[e]=n})),t}(n):Array.isArray(n)?n.forEach((function(n){t[n[0]]=n[1]})):t=n),t},m=function(){function n(n,t){this.url=n,this.options=t||{}}return n.prototype.rawRequest=function(n,t,e){return s(this,void 0,void 0,(function(){var r,o,u,s,f,h,v,m,y,w;return a(this,(function(a){switch(a.label){case 0:return o=(r=this.options).headers,s=void 0===(u=r.fetch)?l.default:u,f=c(r,["headers","fetch"]),h=d.default(n,t),[4,s(this.url,i({method:"POST",headers:i(i(i({},"string"==typeof h?{"Content-Type":"application/json"}:{}),p(o)),p(e)),body:h},f))];case 1:return[4,b(v=a.sent())];case 2:if(m=a.sent(),v.ok&&!m.errors&&m.data)return y=v.headers,w=v.status,[2,i(i({},m),{headers:y,status:w})];throw new Ot.ClientError(i(i({},"string"==typeof m?{error:m}:m),{status:v.status,headers:v.headers}),{query:n,variables:t})}}))}))},n.prototype.request=function(n,t,e){return s(this,void 0,void 0,(function(){var r,o,u,s,f,h,v,m,y;return a(this,(function(a){switch(a.label){case 0:return o=(r=this.options).headers,s=void 0===(u=r.fetch)?l.default:u,f=c(r,["headers","fetch"]),h=function(n){return"string"==typeof n?n:xt.print(n)}(n),v=d.default(h,t),[4,s(this.url,i({method:"POST",headers:i(i(i({},"string"==typeof v?{"Content-Type":"application/json"}:{}),p(o)),p(e)),body:v},f))];case 1:return[4,b(m=a.sent())];case 2:if(y=a.sent(),m.ok&&!y.errors&&y.data)return[2,y.data];throw new Ot.ClientError(i(i({},"string"==typeof y?{error:y}:y),{status:m.status}),{query:h,variables:t})}}))}))},n.prototype.setHeaders=function(n){return this.options.headers=n,this},n.prototype.setHeader=function(n,t){var e,i=this.options.headers;return i?i[n]=t:this.options.headers=((e={})[n]=t,e),this},n}();function y(n,t,e){return s(this,void 0,void 0,(function(){return a(this,(function(){return[2,new m(n).request(t,e)]}))}))}function b(n){var t=n.headers.get("Content-Type");return t&&t.startsWith("application/json")?n.json():n.text()}e.GraphQLClient=m,e.rawRequest=function(n,t,e){return s(this,void 0,void 0,(function(){return a(this,(function(){return[2,new m(n).rawRequest(t,e)]}))}))},e.request=y,e.default=y,e.gql=function(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return n.reduce((function(n,e,i){return""+n+e+(i in t?t[i]:"")}),"")}})),Lt=n((function(n,e){var i=t&&t.__assign||function(){return(i=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)},r=t&&t.__spreadArrays||function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var i=Array(n),r=0;for(t=0;t<e;t++)for(var o=arguments[t],u=0,s=o.length;u<s;u++,r++)i[r]=o[u];return i};function o(n,t){return"Variable"===n.kind?i(i({},n),{name:i(i({},n.name),{value:t(n.name.value)})}):"ObjectValue"===n.kind?i(i({},n),{fields:n.fields.map((function(n){return i(i({},n),{value:o(n.value,t)})}))}):"ListValue"===n.kind?i(i({},n),{values:n.values.map((function(n){return o(n,t)}))}):n}function u(n,t){return i(i({},n),{value:o(n.value,t)})}function s(n,t){var e;return i(i({},n),{arguments:null===(e=n.arguments)||void 0===e?void 0:e.map((function(n){return u(n,t)}))})}function a(n,t){var e;return i(i({},n),{variable:i(i({},n.variable),{name:i(i({},n.variable.name),{value:t(n.variable.name.value)})}),directives:null===(e=n.directives)||void 0===e?void 0:e.map((function(n){return s(n,t)}))})}function c(n,t){return i(i({},n),{selections:n.selections.map((function(n){var e,r,o;switch(n.kind){case"Field":return i(i({},n),{arguments:null===(e=n.arguments)||void 0===e?void 0:e.map((function(n){return u(n,t)})),selectionSet:n.selectionSet?c(n.selectionSet,t):void 0});case"FragmentSpread":return i(i({},n),{directives:null===(r=n.directives)||void 0===r?void 0:r.map((function(n){return s(n,t)}))});case"InlineFragment":return i(i({},n),{directives:null===(o=n.directives)||void 0===o?void 0:o.map((function(n){return s(n,t)})),selectionSet:c(n.selectionSet,t)})}}))})}function f(n,t,e){var r,o;return i(i({},n),{variableDefinitions:null===(r=n.variableDefinitions)||void 0===r?void 0:r.map((function(n){return a(n,t)})),directives:null===(o=n.directives)||void 0===o?void 0:o.map((function(n){return s(n,t)})),selectionSet:c(i(i({},n.selectionSet),{selections:n.selectionSet.selections.map((function(n){var t,r;switch(n.kind){case"Field":return i(i({},n),{alias:i(i({},n.name),{value:e(null!==(r=null===(t=n.alias)||void 0===t?void 0:t.value)&&void 0!==r?r:n.name.value)})});default:return n}}))}),t)})}Object.defineProperty(e,"__esModule",{value:!0}),e.renameVariables=e.renameVariablesAndTopLevelFields=e.renameVariablesAndTopLevelFieldsOnOpDef=e.renameSelectionSetArguments=e.renameVariableDefinition=e.renameDirectiveArguments=e.renameArgument=e.renameValue=e.defaultRenameFn=void 0,e.defaultRenameFn=function(n,t){return n+"_"+t},e.renameValue=o,e.renameArgument=u,e.renameDirectiveArguments=s,e.renameVariableDefinition=a,e.renameSelectionSetArguments=c,e.renameVariablesAndTopLevelFieldsOnOpDef=f,e.renameVariablesAndTopLevelFields=function(n,t,e){return i(i({},n),{definitions:r(n.definitions.filter((function(n){return"OperationDefinition"!==n.kind})),n.definitions.filter((function(n){return"OperationDefinition"===n.kind})).map((function(n){return f(n,t,e)})))})},e.renameVariables=function(n,t){return Object.keys(n).reduce((function(e,r){var o;return i(i({},e),((o={})[t(r)]=n[r],o))}),{})}}));const Bt=e(n((function(n,e){var i,r=t&&t.__extends||(i=function(n,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)},function(n,t){function e(){this.constructor=n}i(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}),o=t&&t.__assign||function(){return(o=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)},u=t&&t.__spreadArrays||function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var i=Array(n),r=0;for(t=0;t<e;t++)for(var o=arguments[t],u=0,s=o.length;u<s;u++,r++)i[r]=o[u];return i};Object.defineProperty(e,"__esModule",{value:!0});var s={kind:"Document",definitions:[]},a=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r(t,n),t}(Error),c=function(){function n(n,t,e){this.operationName=n,this.document=t,this.variables=e}return n.prototype.add=function(t,e){var i=this,r=this.document.definitions.concat(t.definitions).filter((function(n){return"OperationDefinition"===n.kind}));if(!r.length)throw new a("Expected at least one OperationDefinition, but found none.");r.forEach((function(n){var t,e,i=r.filter((function(t){return t!==n}));i.forEach((function(t){var e,i;if(t.operation!==n.operation)throw new a("expected all operations to be of the smae type, but "+(null===(e=t.name)||void 0===e?void 0:e.value)+" is "+t.operation+" and "+(null===(i=n.name)||void 0===i?void 0:i.value)+" is "+n.operation)})),null===(t=n.selectionSet.selections)||void 0===t||t.filter((function(n){return"Field"===n.kind})).forEach((function(t){i.forEach((function(e){var i;return null===(i=e.selectionSet.selections)||void 0===i?void 0:i.filter((function(n){return"Field"===n.kind})).forEach((function(i){var r,o,u,s;if(((null===(r=t.alias)||void 0===r?void 0:r.value)||t.name.value)===((null===(o=i.alias)||void 0===o?void 0:o.value)||i.name.value))throw new a("duplicate field definition "+i.name.value+" for oprations "+(null===(u=n.name)||void 0===u?void 0:u.value)+" and "+(null===(s=e.name)||void 0===s?void 0:s.value))}))}))})),null===(e=n.variableDefinitions)||void 0===e||e.forEach((function(t){i.forEach((function(e){var i;return null===(i=e.variableDefinitions)||void 0===i?void 0:i.forEach((function(i){var r,o;if(t.variable.name.value===i.variable.name.value)throw new a("duplicate variable definition "+i.variable.name.value+" for oprations "+(null===(r=n.name)||void 0===r?void 0:r.value)+" and "+(null===(o=e.name)||void 0===o?void 0:o.value))}))}))}))}));for(var s=i.variables&&e?o(o({},i.variables),e):e||i.variables,c=[{kind:"OperationDefinition",directives:r.flatMap((function(n){return n.directives||[]})),name:{kind:"Name",value:this.operationName},operation:r[0].operation,selectionSet:{kind:"SelectionSet",selections:r.flatMap((function(n){return n.selectionSet.selections}))},variableDefinitions:r.flatMap((function(n){return n.variableDefinitions||[]}))}],f=new Set,l=0,h=this.document.definitions.concat(t.definitions);l<h.length;l++){var d=h[l];if("OperationDefinition"!==d.kind){if("FragmentDefinition"===d.kind){if(f.has(d.name.value))continue;f.add(d.name.value)}c=u([d],c)}}return new n(this.operationName,{kind:"Document",definitions:c},s)},n.prototype.addN=function(n,t,e,i){return void 0===e&&(e=Lt.defaultRenameFn),void 0===i&&(i=Lt.defaultRenameFn),t.length?t.reduce((function(t,r,o){var u=Lt.renameVariablesAndTopLevelFields(n,(function(n){return e(n,o)}),(function(n){return i(n,o)})),s=Lt.renameVariables(r,(function(n){return e(n,o)}));return t.add(u,s)}),this):this},n}();e.default=function(n){return{operationName:n,add:function(n,t){return new c(this.operationName,n,t)},addN:function(n,t,e,i){return new c(this.operationName,s).addN(n,t,e,i)}}}})));var $t,Jt=$t||($t={});function Gt(n){n.preventDefault(),n.returnValue=""}function Ht(){var n=[];return{get length(){return n.length},push:function(t){return n.push(t),function(){n=n.filter((function(n){return n!==t}))}},call:function(t){n.forEach((function(n){return n&&n(t)}))}}}function Yt(){return Math.random().toString(36).substr(2,8)}function Qt(n){var t=n.pathname,e=n.search;return(void 0===t?"/":t)+(void 0===e?"":e)+(void 0===(n=n.hash)?"":n)}function Xt(n){var t={};if(n){var e=n.indexOf("#");0<=e&&(t.hash=n.substr(e),n=n.substr(0,e)),0<=(e=n.indexOf("?"))&&(t.search=n.substr(e),n=n.substr(0,e)),n&&(t.pathname=n)}return t}Jt.Pop="POP",Jt.Push="PUSH",Jt.Replace="REPLACE";var zt={current:void 0};function Wt(){if(void 0===zt.current)throw new Error("no implementation of useHost provided");return zt.current()}function Kt(n){if(!n)throw new Error("Must supply an implementation");if("function"!=typeof n)throw new Error("implementation must be a function");zt.current=n}function Zt(){var n;window.squatchProgramId||(window.squatchProgramId=new a({element:document.documentElement,initialState:(null==(n=window.widgetIdent)?void 0:n.programId)||void 0,contextName:"sq:program-id"}).start())}function ne(){Zt();var n=Wt();return u(n,"sq:program-id")}function te(n){Zt(),window.squatchProgramId.context=n}function ee(){var n,t;return window.SquatchAndroid?{type:"SquatchAndroid",android:window.SquatchAndroid,widgetIdent:window.widgetIdent}:window.SquatchPortal?{type:"SquatchPortal",env:window.SquatchPortal}:window.SquatchAdmin?{type:"SquatchAdmin",adminSDK:window.SquatchAdmin}:window.widgetIdent&&"demo"!==(null==(n=window.widgetIdent)?void 0:n.env)?{type:"SquatchJS2",api:null==(t=window.frameElement)?void 0:t.squatchJsApi,widgetIdent:window.widgetIdent}:{type:"None"}}function ie(){var n=ee();return"None"===n.type||"SquatchAdmin"===n.type}function re(){var n=ee();switch(n.type){case"SquatchAndroid":case"SquatchJS2":return n.widgetIdent.tenantAlias;case"SquatchAdmin":case"None":return"demo";case"SquatchPortal":return n.env.tenantAlias}}function oe(){var n=ee();switch(n.type){case"SquatchJS2":return n.widgetIdent.engagementMedium||"EMBED";case"SquatchAndroid":case"SquatchPortal":case"SquatchAdmin":case"None":return"EMBED"}}function ue(){return(t=null==(n=navigator.language)?void 0:n.split("-"))&&1!==t.length?t[0]+"_"+t[1].toUpperCase():n;var n,t}function se(){return(se=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n}).apply(this,arguments)}function ae(n,t){return(ae=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function ce(n,t){return t||(t=n.slice(0)),n.raw=t,n}function fe(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,i=new Array(t);e<t;e++)i[e]=n[e];return i}function le(n,t){var e;if("undefined"==typeof Symbol||null==n[Symbol.iterator]){if(Array.isArray(n)||(e=function(n,t){if(n){if("string"==typeof n)return fe(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?fe(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var i=0;return function(){return i>=n.length?{done:!0}:{done:!1,value:n[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(e=n[Symbol.iterator]()).next.bind(e)}function he(){window.squatchUserIdentity||(window.squatchUserIdentity=new a({element:document.documentElement,initialState:ve(),contextName:"sq:user-identity"}).start())}function de(n){if(n)try{var t,e,i=p(n),r=i.exp;if(function(n){return n.sub&&/.*:.*@.*:users/.test(n.sub)}(i)){var o=i.sub.match(/(.*):(.*)@(.*):users/);e=atob(o[1]),t=atob(o[2])}else(function(n){return n.user&&n.user.id&&n.user.accountId})(i)&&(e=i.user.accountId,t=i.user.id);if(!t||!e)return;if(r&&Date.now()>=1e3*r)return;return{id:t,accountId:e,jwt:n}}catch(n){return}}function ve(){var n=ee();switch(n.type){case"SquatchAndroid":case"SquatchJS2":return{id:n.widgetIdent.userId,accountId:n.widgetIdent.accountId,jwt:n.widgetIdent.token};case"SquatchPortal":var t=new URLSearchParams(document.location.search);if(t.has("jwt"))return de(t.get("jwt"));var e=localStorage.getItem("sq:user-identity");if(!e)return;try{var i=JSON.parse(e),r=de(i.jwt);return r?se({},i,r):void 0}catch(n){return}case"SquatchAdmin":case"None":return}}function pe(n){he();var t=window.squatchUserIdentity;g(t.context,n)||(t.context=n),n&&"SquatchPortal"===ee().type?localStorage.setItem("sq:user-identity",JSON.stringify(n)):localStorage.removeItem("sq:user-identity")}function me(){var n;return null==(n=ye())?void 0:n.jwt}function ye(){he();var n=Wt(),t=u(n,"sq:user-identity");if(de(null==t?void 0:t.jwt))return t;pe(void 0)}var be=function(){return(be=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)},we=new Map,Ee=new Map,ge=!0,Se=!1;function Ie(n){return n.replace(/[\s,]+/g," ").trim()}function Oe(n){var t,e,i,r=Ie(n);if(!we.has(r)){var o=wn(n,{experimentalFragmentVariables:Se});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");we.set(r,function(n){var t=new Set(n.definitions);t.forEach((function(n){n.loc&&delete n.loc,Object.keys(n).forEach((function(e){var i=n[e];i&&"object"==typeof i&&t.add(i)}))}));var e=n.loc;return e&&(delete e.startToken,delete e.endToken),n}((t=o,e=new Set,i=[],t.definitions.forEach((function(n){if("FragmentDefinition"===n.kind){var t=n.name.value,r=Ie((u=n.loc).source.body.substring(u.start,u.end)),o=Ee.get(t);o&&!o.has(r)?ge&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Ee.set(t,o=new Set),o.add(r),e.has(r)||(e.add(r),i.push(n))}else i.push(n);var u})),be(be({},t),{definitions:i}))))}return we.get(r)}function Te(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];"string"==typeof n&&(n=[n]);var i=n[0];return t.forEach((function(t,e){i+=t&&"Document"===t.kind?t.loc.source.body:t,i+=n[e+1]})),Oe(i)}var Ne,Fe=Te;(Ne=Te||(Te={})).gql=Fe,Ne.resetCaches=function(){we.clear(),Ee.clear()},Ne.disableFragmentWarnings=function(){ge=!1},Ne.enableExperimentalFragmentVariables=function(){Se=!0},Ne.disableExperimentalFragmentVariables=function(){Se=!1},Te.default=Te;var Ce=Te;function De(n,t){try{var e=n()}catch(n){return t(n)}return e&&e.then?e.then(void 0,t):e}var je=function(n){var t,e;function i(t,e){var i;(i=n.call(this,t,e)||this).subject=new lt;var r=new lt;return i.subject.pipe(function(n){let t=arguments.length,e=yt;mt(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],t--);let i=null;t>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return t>=3&&(r=arguments[2]),function(t){return t.lift(new bt(n,i,r,e))}}(200,void 0,10)).subscribe((function(n){try{if(!n.length)return Promise.resolve();for(var t,e=ke(n),o=e.mergedQuery,u=e.mergedVariables,s=e.mergedQueryAddedEvents,a=le(e.unmergedQueryAddedEvents);!(t=a()).done;)r.next(t.value);return s.length?Promise.resolve(De((function(){return Promise.resolve(i.superRequest(o,u)).then((function(n){Ve(n,s)}))}),(function(n){if(n instanceof Ot.ClientError){var t=function(){var t=n.response,e=t.data,i=t.errors;if(!e)return{v:Ue(s,n)};for(var r,o=Object.keys(e),u=[].concat(s),a=function(){var t=r.value,e=void 0;t.path.find((function(i,r,s){if(o.includes(i)){var a=xe(i),c=u.findIndex((function(n){return n.id===a}));if(-1===c)return!1;o.splice(r,1),e=u.splice(c,1)[0];var f=Pe(n.response.data,e);s[r]=_e(s[r],a);var l=e.query,h=e.variables,d=se({},n.response,{errors:[t],data:f,path:s}),v=new Ot.ClientError(d,{query:"string"!=typeof l?Nn(l):l,variables:h});return Re(e,v),!0}return!1}))},c=le(i);!(r=c()).done;)a();Ve(e,u)}();if("object"==typeof t)return t.v}else Ue(s,n)}))):Promise.resolve()}catch(n){return Promise.reject(n)}})),r.subscribe((function(n){try{var t=De((function(){return Promise.resolve(i.superRequest(n.query,n.variables)).then((function(t){Me(t,n)}))}),(function(t){Re(n,t)}));return Promise.resolve(t&&t.then?t.then((function(){})):void 0)}catch(n){return Promise.reject(n)}})),i}e=n,(t=i).prototype=Object.create(e.prototype),t.prototype.constructor=t,ae(t,e);var r=i.prototype;return r.superRequest=function(t,e){return n.prototype.request.call(this,t,e)},r.request=function(n,t){var e=this;return new Promise((function(i,r){var o={query:n,variables:t,id:Ae(),resolve:i,reject:r};e.subject.next(o)}))},i}(qt.GraphQLClient),Ae=function(){return((n=21)=>{let t="",e=crypto.getRandomValues(new Uint8Array(n));for(;n--;){let i=63&e[n];t+=i<36?i.toString(36):i<62?(i-26).toString(36).toUpperCase():i<63?"_":"-"}return t})().replace(/[-_]/g,"")},_e=function(n,t){return n.replace("_"+t,"")},xe=function(n){var t=n.split("_");return t[t.length-1]},ke=function(n){var t=[],e=[],i=n.reduce((function(n,i){var r=i.query,o=i.variables,u=i.id;try{var s="string"==typeof r?wn(r):r,a=s.definitions.find((function(n){return"FragmentDefinition"===n.kind})),c="string"==typeof r?r:Nn(r),f=/@/.test(c);if(a||f)return e.push(i),n;var l=function(n){return function(n,t){return n+"_"+t}(n,u)};return n=n.addN(s,[o],l,l),t.push(i),n}catch(t){return e.push(i),n}}),Bt("BatchedQuery")),r=i.document,o=i.variables;return{mergedQuery:r&&Nn(r),mergedVariables:o,mergedQueryAddedEvents:t,unmergedQueryAddedEvents:e}},Pe=function(n,t){if(!n)return n;var e=Object.keys(n),i=t.id;return e.reduce((function(t,e){var r;return e.endsWith(i)&&(t=se({},t,((r={})[_e(e,i)]=n[e],r))),t}),{})},Me=function(n,t){(0,t.resolve)(n)},Ve=function(n,t){for(var e,i=le(t);!(e=i()).done;){var r=e.value,o=Pe(n,r);r.resolve(o)}},Re=function(n,t){(0,n.reject)(t)},Ue=function(n,t){for(var e,i=le(n);!(e=i()).done;)(0,e.value.reject)(t)},qe="sq:graphql-client",Le=Bn((function(n,t,e){return new je(n+"/api/v1/"+t+"/graphql",{headers:{Authorization:"Bearer "+(e||"")}})}));function Be(n,t){switch(t.type){case"loading":return{data:void 0,errors:void 0,loading:!0};case"data":return{data:t.payload,errors:void 0,loading:!1};case"errors":return{data:void 0,errors:t.payload,loading:!1}}}function $e(n,t){var e,i,o,s,a,c,l=(e=me(),i=function(){var n,t=ee();switch(t.type){case"SquatchAndroid":case"SquatchJS2":return t.widgetIdent.appDomain;case"SquatchPortal":return(null==(n=t.env)?void 0:n.appDomain)||"https://app.referralsaasquatch.com";case"SquatchAdmin":case"None":return"https://app.referralsaasquatch.com"}}(),o=re(),s=Le(i,o,e),a=Wt(),null!=(c=u(a,"sq:graphql-client",{attempts:0}))?c:s),h=r(Be,t),d=h[1];return[h[0],f((function(t){try{if(!l)return d({type:"errors",payload:new Error("No GraphQL client found")}),Promise.resolve();var e=function(e,i){try{var r=(d({type:"loading"}),Promise.resolve(l.request(n,t)).then((function(n){d({type:"data",payload:n})})))}catch(n){return i(n)}return r&&r.then?r.then(void 0,i):r}(0,(function(n){d({type:"errors",payload:n})}));return Promise.resolve(e&&e.then?e.then((function(){})):void 0)}catch(t){return Promise.reject(t)}}),[l,n,d])]}var Je,Ge={loading:!1,data:void 0,errors:void 0};function He(n){var t=$e(n,Ge);return[t[1],t[0]]}var Ye,Qe=Ce(Je||(Je=ce(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Xe(){var n=He(Qe),t=n[0],e=n[1],i=e.loading,r=e.data,u=e.errors;return o((function(){if(null!=r&&r.authenticateManagedIdentityWithEmailAndPassword){var n=r.authenticateManagedIdentityWithEmailAndPassword,t=n.token,e=p(t).user;pe({jwt:t,id:e.id,accountId:e.accountId,managedIdentity:{email:n.email,emailVerified:n.emailVerified,sessionData:n.sessionData}})}}),[null==r?void 0:r.authenticateManagedIdentityWithEmailAndPassword]),[t,{loading:i,data:r,errors:u}]}var ze,We=Ce(Ye||(Ye=ce(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ke(){var n=He(We),t=n[0],e=n[1],i=e.loading,r=e.data,u=e.errors;return o((function(){if(null!=r&&r.registerManagedIdentityWithEmailAndPassword){var n=r.registerManagedIdentityWithEmailAndPassword,t=n.token,e=p(t).user;pe({jwt:t,id:e.id,accountId:e.accountId,managedIdentity:{email:n.email,emailVerified:n.emailVerified,sessionData:n.sessionData}})}}),[null==r?void 0:r.registerManagedIdentityWithEmailAndPassword]),[t,{loading:i,data:r,errors:u}]}var Ze,ni=Ce(ze||(ze=ce(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function ti(){var n=He(ni),t=n[1];return[n[0],{loading:t.loading,data:t.data,errors:t.errors}]}var ei,ii=Ce(Ze||(Ze=ce(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function ri(){var n=He(ii),t=n[0],e=n[1],i=e.loading,r=e.data,u=e.errors;return o((function(){if(null!=r&&r.resetManagedIdentityPassword){var n=r.resetManagedIdentityPassword,t=n.token,e=p(t).user;pe({jwt:t,id:e.id,accountId:e.accountId,managedIdentity:{email:n.email,emailVerified:n.emailVerified,sessionData:n.sessionData}})}}),[null==r?void 0:r.resetManagedIdentityPassword]),[t,{loading:i,data:r,errors:u}]}var oi=Ce(ei||(ei=ce(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function ui(){return He(oi)}var si,ai={loading:!1,data:void 0,errors:void 0};function ci(n){var t=$e(n,ai),e=t[1];return[e,se({},t[0],{refetch:function(n){return e(n)}})]}var fi,li,hi=Ce(si||(si=ce(["\n query ManagedIdentity {\n managedIdentity {\n email\n emailVerified\n sessionData\n }\n }\n"]))),di=Ce(fi||(fi=ce(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function vi(){var n,t=function(){var n=ye(),t=ci(hi),e=t[0],i=t[1],r=i.loading,u=i.data,s=i.errors,a=i.refetch;return o((function(){null!=u&&u.managedIdentity&&pe(se({},n,{managedIdentity:u.managedIdentity}))}),[null==u?void 0:u.managedIdentity]),[f((function(){return e({})}),[e]),{loading:r,data:u,errors:s,refetch:a}]}()[0],e=He(di),i=e[0],r=e[1],u=r.loading,s=r.data,a=r.errors;return o((function(){var n;null!=s&&null!=(n=s.verifyManagedIdentityEmail)&&n.success&&t()}),[null==s||null==(n=s.verifyManagedIdentityEmail)?void 0:n.success]),[i,{loading:u,data:s,errors:a}]}var pi,mi=Ce(li||(li=ce(["\n mutation RequestPasswordResetEmail($email: String!, $urlParams: RSJsonNode) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n }\n ) {\n success\n }\n }\n"])));function yi(){return He(mi)}var bi=Ce(pi||(pi=ce(["\n mutation RequestVerificationEmail($email: String!, $urlParams: RSJsonNode) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n }\n ) {\n success\n }\n }\n"])));function wi(){return He(bi)}function Ei(){return r((function(n){return n+1}),0)}function gi(n){for(var t,e=le(Object.getOwnPropertyNames(n));!(t=e()).done;){var i=n[t.value];i&&"object"==typeof i&&gi(i)}return Object.freeze(n)}var Si={loading:!0,data:void 0,errors:void 0};function Ii(n,t,e){var i=$e(n,Si),r=i[0],o=i[1],u=Ei(),a=u[1];return function(n,t){var e=s();e.current&&g(t,e.current.key)||(e.current={key:t,value:n()})}((function(){!e&&o(t)}),[n,t,o,u[0],e]),gi(se({},r,{refetch:a}))}function Oi(){return window.squatchHistory=window.squatchHistory||function(){switch(ee().type){case"SquatchPortal":return function(n){function t(){var n=s.location,t=a.state||{};return[t.idx,{pathname:n.pathname,search:n.search,hash:n.hash,state:t.usr||null,key:t.key||"default"}]}function e(n){return"string"==typeof n?n:Qt(n)}function r(n,t){return void 0===t&&(t=null),i({pathname:h.pathname,hash:"",search:""},"string"==typeof n?Xt(n):n,{state:t,key:Yt()})}function o(n){f=n,n=t(),l=n[0],d.call({action:f,location:h=n[1]})}function u(n){a.go(n)}void 0===n&&(n={});var s=void 0===(n=n.window)?document.defaultView:n,a=s.history,c=null;s.addEventListener("popstate",(function(){if(c)v.call(c),c=null;else{var n=$t.Pop,e=t(),i=e[0];if(e=e[1],v.length){if(null!=i){var r=l-i;r&&(c={action:n,location:e,retry:function(){u(-1*r)}},u(r))}}else o(n)}}));var f=$t.Pop,l=(n=t())[0],h=n[1],d=Ht(),v=Ht();return null==l&&a.replaceState(i({},a.state,{idx:l=0}),""),{get action(){return f},get location(){return h},createHref:e,push:function n(t,i){var u=$t.Push,c=r(t,i);if(!v.length||(v.call({action:u,location:c,retry:function(){n(t,i)}}),0)){var f=[{usr:c.state,key:c.key,idx:l+1},e(c)];c=f[0],f=f[1];try{a.pushState(c,"",f)}catch(n){s.location.assign(f)}o(u)}},replace:function n(t,i){var u=$t.Replace,s=r(t,i);v.length&&(v.call({action:u,location:s,retry:function(){n(t,i)}}),1)||(s=[{usr:s.state,key:s.key,idx:l},e(s)],a.replaceState(s[0],"",s[1]),o(u))},go:u,back:function(){u(-1)},forward:function(){u(1)},listen:function(n){return d.push(n)},block:function(n){var t=v.push(n);return 1===v.length&&s.addEventListener("beforeunload",Gt),function(){t(),v.length||s.removeEventListener("beforeunload",Gt)}}}}();default:return function(n){function t(n,t){return void 0===t&&(t=null),i({pathname:f.pathname,search:"",hash:""},"string"==typeof n?Xt(n):n,{state:t,key:Yt()})}function e(n,t,e){return!h.length||(h.call({action:n,location:t,retry:e}),!1)}function r(n,t){l.call({action:c=n,location:f=t})}function o(n){var t=Math.min(Math.max(a+n,0),s.length-1),i=$t.Pop,u=s[t];e(i,u,(function(){o(n)}))&&(a=t,r(i,u))}void 0===n&&(n={});var u=n;n=u.initialEntries,u=u.initialIndex;var s=(void 0===n?["/"]:n).map((function(n){return i({pathname:"/",search:"",hash:"",state:null,key:Yt()},"string"==typeof n?Xt(n):n)})),a=Math.min(Math.max(null==u?s.length-1:u,0),s.length-1),c=$t.Pop,f=s[a],l=Ht(),h=Ht();return{get index(){return a},get action(){return c},get location(){return f},createHref:function(n){return"string"==typeof n?n:Qt(n)},push:function n(i,o){var u=$t.Push,c=t(i,o);e(u,c,(function(){n(i,o)}))&&(s.splice(a+=1,s.length,c),r(u,c))},replace:function n(i,o){var u=$t.Replace,c=t(i,o);e(u,c,(function(){n(i,o)}))&&(s[a]=c,r(u,c))},go:o,back:function(){o(-1)},forward:function(){o(1)},listen:function(n){return l.push(n)},block:function(n){return h.push(n)}}}()}}(),window.squatchHistory}var Ti,Ni={createHref:function(){var n;return(n=Oi()).createHref.apply(n,[].slice.call(arguments))},push:function(){var n;return(n=Oi()).push.apply(n,[].slice.call(arguments))},replace:function(){var n;return(n=Oi()).replace.apply(n,[].slice.call(arguments))},go:function(){var n;return(n=Oi()).go.apply(n,[].slice.call(arguments))},back:function(){return Oi().back()},forward:function(){var n;return(n=Oi()).forward.apply(n,[].slice.call(arguments))}};function Fi(){var n=Ei()[1];return o((function(){return Oi().listen((function(){n()}))}),[]),Oi().location}function Ci(n,t,e,i,r){var o;void 0===i&&(i={}),void 0===r&&(r=!1);var u=function(n){var t=c({limit:n.limit,offset:n.offset}),e=t[0],i=t[1],r=e.offset,o=e.limit,u=function(n,t){return n*t},s=function(n,t){return Math.ceil(n/t)||0};return{limit:o,setLimit:function(n){var t=s(r,n),o=u(n,t);i(se({},e,{limit:n,offset:o}))},offset:r,setCurrentPage:function(n){var t=u(n,o);i((function(n){return se({},n,{offset:t})}))},calculatePagination:function(n,t){var e=s(r,o),i=function(n,t){return Math.ceil(n/t)||0}(t,o),u=0===n?"0":n>1?r+1+"-"+(r+n):""+(r+1);return{currentPage:e,pageCount:i,rangeOnPage:u,pageProgress:u+" of "+t}}}}(e),s=u.limit,a=u.setLimit,f=u.setCurrentPage,l=u.calculatePagination,h=Ii(n,se({limit:s,offset:u.offset},i),r),d=h.loading,v=h.errors,p=h.refetch,m=t(h.data),y=l((null==m||null==(o=m.data)?void 0:o.length)||0,(null==m?void 0:m.totalCount)||0);return{envelope:m,states:{errors:v,loading:d,limit:s,currentPage:y.currentPage,pageCount:y.pageCount,pageProgress:y.pageProgress},callbacks:{refetch:p,setLimit:a,setCurrentPage:f}}}qt.gql(Ti||(Ti=ce(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Di,ji,Ai,_i,xi=1e3,ki=6e4,Pi=60*ki,Mi=24*Pi,Vi=function(n,t){t=t||{};var e=typeof n;if("string"===e&&n.length>0)return function(n){if(!((n=String(n)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(n);if(t){var e=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*e;case"weeks":case"week":case"w":return 6048e5*e;case"days":case"day":case"d":return e*Mi;case"hours":case"hour":case"hrs":case"hr":case"h":return e*Pi;case"minutes":case"minute":case"mins":case"min":case"m":return e*ki;case"seconds":case"second":case"secs":case"sec":case"s":return e*xi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}}}(n);if("number"===e&&isFinite(n))return t.long?function(n){var t=Math.abs(n);return t>=Mi?Ri(n,t,Mi,"day"):t>=Pi?Ri(n,t,Pi,"hour"):t>=ki?Ri(n,t,ki,"minute"):t>=xi?Ri(n,t,xi,"second"):n+" ms"}(n):function(n){var t=Math.abs(n);return t>=Mi?Math.round(n/Mi)+"d":t>=Pi?Math.round(n/Pi)+"h":t>=ki?Math.round(n/ki)+"m":t>=xi?Math.round(n/xi)+"s":n+"ms"}(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))};function Ri(n,t,e,i){var r=t>=1.5*e;return Math.round(n/e)+" "+i+(r?"s":"")}(function(n,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const e="color: "+this.color;t.splice(1,0,e,"color: inherit");let i=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(n=>{"%%"!==n&&(i++,"%c"===n&&(r=i))})),t.splice(r,0,e)},t.save=function(n){try{n?t.storage.setItem("debug",n):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let n;try{n=t.storage.getItem("debug")}catch(n){}return!n&&"undefined"!=typeof process&&"env"in process&&(n=process.env.DEBUG),n},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(n){}}(),t.destroy=(()=>{let n=!1;return()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),n.exports=function(n){function t(n){let i,r=null;function o(...n){if(!o.enabled)return;const e=o,r=Number(new Date);e.diff=r-(i||r),e.prev=i,e.curr=r,i=r,n[0]=t.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");let u=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,((i,r)=>{if("%%"===i)return"%";u++;const o=t.formatters[r];return"function"==typeof o&&(i=o.call(e,n[u]),n.splice(u,1),u--),i})),t.formatArgs.call(e,n),(e.log||t.log).apply(e,n)}return o.namespace=n,o.useColors=t.useColors(),o.color=t.selectColor(n),o.extend=e,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===r?t.enabled(n):r,set:n=>{r=n}}),"function"==typeof t.init&&t.init(o),o}function e(n,e){const i=t(this.namespace+(void 0===e?":":e)+n);return i.log=this.log,i}function i(n){return n.toString().substring(2,n.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(n){return n instanceof Error?n.stack||n.message:n},t.disable=function(){const n=[...t.names.map(i),...t.skips.map(i).map((n=>"-"+n))].join(",");return t.enable(""),n},t.enable=function(n){let e;t.save(n),t.names=[],t.skips=[];const i=("string"==typeof n?n:"").split(/[\s,]+/),r=i.length;for(e=0;e<r;e++)i[e]&&("-"===(n=i[e].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+n.substr(1)+"$")):t.names.push(new RegExp("^"+n+"$")))},t.enabled=function(n){if("*"===n[n.length-1])return!0;let e,i;for(e=0,i=t.skips.length;e<i;e++)if(t.skips[e].test(n))return!1;for(e=0,i=t.names.length;e<i;e++)if(t.names[e].test(n))return!0;return!1},t.humanize=Vi,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(n).forEach((e=>{t[e]=n[e]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(n){let e=0;for(let t=0;t<n.length;t++)e=(e<<5)-e+n.charCodeAt(t),e|=0;return t.colors[Math.abs(e)%t.colors.length]},t.enable(t.load()),t}(t);const{formatters:e}=n.exports;e.j=function(n){try{return JSON.stringify(n)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}}}(Di={exports:{}},Di.exports),Di.exports)("sq:useForm"),qt.gql(ji||(ji=ce(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),qt.gql(Ai||(Ai=ce(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),qt.gql(_i||(_i=ce(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));export{ri as $,te as A,wi as B,ti as D,Ke as E,pe as L,ne as M,ci as N,Wt as P,me as Q,ue as R,Kt as S,ye as T,Ei as Z,Ci as a,He as b,Fi as c,qt as d,Ii as e,ee as f,Le as g,qe as h,ui as i,ie as j,re as k,vi as l,Jn as m,wn as p,Xe as q,Ni as r,Bn as s,oe as x,yi as z}