@saasquatch/mint-components 1.13.0-41 → 1.13.0-42

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 (384) hide show
  1. package/dist/cjs/{ShadowViewAddon-44cb1a98.js → ShadowViewAddon-37f2cd8b.js} +132 -182
  2. package/dist/cjs/{copy-text-view-9b950efe.js → copy-text-view-67cb700e.js} +13 -12
  3. package/dist/cjs/{global-19fc8a7a.js → global-6fe7c678.js} +161 -10
  4. package/dist/cjs/index-e6bafae4.js +2227 -0
  5. package/dist/cjs/{index.module-57703088.js → index.module-b880d18a.js} +1196 -229
  6. package/dist/cjs/loader.cjs.js +4 -4
  7. package/dist/cjs/{luxon-2926d85f.js → luxon-78820ce9.js} +1 -1
  8. package/dist/cjs/mint-components.cjs.js +4 -4
  9. package/dist/cjs/{mockRewardData-272e22d6.js → mockRewardData-d117428d.js} +1 -1
  10. package/dist/cjs/{re-render-35b016ed.js → re-render-050852fe.js} +2 -2
  11. package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
  12. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +404 -403
  13. package/dist/cjs/sqm-big-stat_38.cjs.entry.js +71 -143
  14. package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
  15. package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
  16. package/dist/cjs/sqm-empty_4.cjs.entry.js +6 -6
  17. package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
  18. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +3 -3
  19. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
  20. package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
  21. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
  22. package/dist/cjs/{sqm-invoice-table-view-9dfa2a16.js → sqm-invoice-table-view-9b735809.js} +1 -1
  23. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -8
  24. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +8 -7
  25. package/dist/cjs/{sqm-navigation-sidebar-item-view-9bba5f7e.js → sqm-navigation-sidebar-item-view-b76869c1.js} +1 -1
  26. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
  27. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
  28. package/dist/cjs/sqm-pagination_3.cjs.entry.js +10 -9
  29. package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
  30. package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
  31. package/dist/cjs/{sqm-portal-email-verification-view-98d84549.js → sqm-portal-email-verification-view-39add3d2.js} +1 -1
  32. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -5
  33. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
  34. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +130 -0
  35. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +9 -7
  36. package/dist/cjs/sqm-portal-login-view-761a4d8e.js +58 -0
  37. package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
  38. package/dist/cjs/{sqm-portal-profile-view-bae28ea0.js → sqm-portal-profile-view-a722b40a.js} +1 -1
  39. package/dist/cjs/sqm-portal-profile.cjs.entry.js +12 -11
  40. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
  41. package/dist/cjs/{sqm-portal-registration-form-view-bd72eeff.js → sqm-portal-registration-form-view-ebf355a6.js} +12 -11
  42. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +8 -7
  43. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +4 -4
  44. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
  45. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +17 -16
  46. package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
  47. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
  48. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
  49. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +62 -61
  50. package/dist/cjs/sqm-stencilbook.cjs.entry.js +22 -31
  51. package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
  52. package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
  53. package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
  54. package/dist/cjs/{stencil-hooks.module-3a336b0f.js → stencil-hooks.module-b248b384.js} +1 -4
  55. package/dist/cjs/{useChildElements-854cd1e5.js → useChildElements-e2139cb4.js} +2 -2
  56. package/dist/cjs/{useInstantAccessRegistration-daff8290.js → useInstantAccessRegistration-653d2aba.js} +3 -3
  57. package/dist/cjs/usePortalLogin-521b6d8f.js +74 -0
  58. package/dist/cjs/{usePortalRegistrationForm-a89d736e.js → usePortalRegistrationForm-f7dfd694.js} +5 -4
  59. package/dist/cjs/{useReferralTable-283d2316.js → useReferralTable-43818f78.js} +14 -13
  60. package/dist/cjs/{useRegistrationFormState-986b5ea1.js → useRegistrationFormState-9aa98cfa.js} +2 -2
  61. package/dist/cjs/{utilities-c135f16f.js → utilities-d691629b.js} +2 -2
  62. package/dist/collection/collection-manifest.json +2 -1
  63. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +428 -0
  64. package/dist/collection/components/sqm-portal-google-login/usePortalGoogleLogin.js +0 -0
  65. package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +3 -2
  66. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +2 -13
  67. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +2 -56
  68. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +12 -11
  69. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +1 -1
  70. package/dist/esm/{ShadowViewAddon-eba44767.js → ShadowViewAddon-864e3ca8.js} +107 -156
  71. package/dist/esm/{copy-text-view-b060162f.js → copy-text-view-4655f200.js} +3 -2
  72. package/dist/esm/{global-bedc4329.js → global-2f2a008c.js} +161 -10
  73. package/dist/esm/index-c5f8b525.js +2225 -0
  74. package/dist/esm/{index.module-a2989d3c.js → index.module-863d1595.js} +1194 -224
  75. package/dist/esm/loader.js +4 -4
  76. package/dist/esm/{luxon-8d51c92b.js → luxon-e0fc3e69.js} +1 -1
  77. package/dist/esm/mint-components.js +4 -4
  78. package/dist/esm/{mockRewardData-8bd1b356.js → mockRewardData-6c2e62c8.js} +1 -1
  79. package/dist/esm/{re-render-268bb9c8.js → re-render-fcba2f50.js} +2 -2
  80. package/dist/esm/sqm-asset-card.entry.js +2 -2
  81. package/dist/esm/sqm-banking-info-form_16.entry.js +10 -9
  82. package/dist/esm/sqm-big-stat_38.entry.js +17 -89
  83. package/dist/esm/sqm-close-button.entry.js +2 -2
  84. package/dist/esm/sqm-context-router.entry.js +2 -2
  85. package/dist/esm/sqm-empty_4.entry.js +3 -3
  86. package/dist/esm/sqm-form-message.entry.js +1 -1
  87. package/dist/esm/sqm-google-sign-in.entry.js +2 -2
  88. package/dist/esm/sqm-graphql-client-provider.entry.js +2 -2
  89. package/dist/esm/sqm-header-logo.entry.js +1 -1
  90. package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
  91. package/dist/esm/{sqm-invoice-table-view-8e2bb54a.js → sqm-invoice-table-view-c58334ce.js} +1 -1
  92. package/dist/esm/sqm-leaderboard-rank.entry.js +4 -3
  93. package/dist/esm/sqm-logout-current-user.entry.js +3 -2
  94. package/dist/esm/{sqm-navigation-sidebar-item-view-56da6bca.js → sqm-navigation-sidebar-item-view-306c5953.js} +1 -1
  95. package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
  96. package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
  97. package/dist/esm/sqm-pagination_3.entry.js +5 -4
  98. package/dist/esm/sqm-password-field.entry.js +3 -3
  99. package/dist/esm/sqm-popup-container.entry.js +2 -2
  100. package/dist/esm/{sqm-portal-email-verification-view-44c8970f.js → sqm-portal-email-verification-view-d6b1ddab.js} +1 -1
  101. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  102. package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
  103. package/dist/esm/sqm-portal-google-login.entry.js +126 -0
  104. package/dist/esm/sqm-portal-google-registration-form.entry.js +8 -6
  105. package/dist/esm/sqm-portal-login-view-7e49609a.js +56 -0
  106. package/dist/esm/sqm-portal-logout.entry.js +2 -2
  107. package/dist/esm/{sqm-portal-profile-view-39039274.js → sqm-portal-profile-view-61c075cb.js} +1 -1
  108. package/dist/esm/sqm-portal-profile.entry.js +6 -5
  109. package/dist/esm/sqm-portal-protected-route.entry.js +2 -2
  110. package/dist/esm/{sqm-portal-registration-form-view-c08eafea.js → sqm-portal-registration-form-view-32c4b488.js} +12 -11
  111. package/dist/esm/sqm-portal-registration-form.entry.js +7 -6
  112. package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
  113. package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
  114. package/dist/esm/sqm-referral-table_11.entry.js +9 -8
  115. package/dist/esm/sqm-referred-registration.entry.js +5 -5
  116. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  117. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
  118. package/dist/esm/sqm-rewards-table_9.entry.js +9 -8
  119. package/dist/esm/sqm-stencilbook.entry.js +18 -27
  120. package/dist/esm/sqm-tab.entry.js +3 -3
  121. package/dist/esm/sqm-tabs.entry.js +4 -4
  122. package/dist/esm/sqm-text-span.entry.js +1 -1
  123. package/dist/esm/{stencil-hooks.module-4bc38af4.js → stencil-hooks.module-bb10e6ff.js} +1 -1
  124. package/dist/esm/{useChildElements-38c11321.js → useChildElements-9d51a845.js} +2 -2
  125. package/dist/esm/{useInstantAccessRegistration-7255b0ca.js → useInstantAccessRegistration-b1ce1e58.js} +3 -3
  126. package/dist/esm/usePortalLogin-79bf5c9d.js +72 -0
  127. package/dist/esm/{usePortalRegistrationForm-5715c7a5.js → usePortalRegistrationForm-be236318.js} +4 -3
  128. package/dist/esm/{useReferralTable-d77b11f5.js → useReferralTable-4d03e881.js} +5 -4
  129. package/dist/esm/{useRegistrationFormState-01cdd8c7.js → useRegistrationFormState-f63404a4.js} +2 -2
  130. package/dist/esm/{utilities-863d06d1.js → utilities-6b8f9180.js} +2 -2
  131. package/dist/esm-es5/ShadowViewAddon-864e3ca8.js +1 -0
  132. package/dist/esm-es5/copy-text-view-4655f200.js +1 -0
  133. package/dist/esm-es5/global-2f2a008c.js +285 -0
  134. package/dist/esm-es5/index-c5f8b525.js +1 -0
  135. package/dist/esm-es5/index.module-863d1595.js +53 -0
  136. package/dist/esm-es5/loader.js +1 -1
  137. package/dist/esm-es5/{luxon-8d51c92b.js → luxon-e0fc3e69.js} +1 -1
  138. package/dist/esm-es5/mint-components.js +1 -1
  139. package/dist/esm-es5/{mockRewardData-8bd1b356.js → mockRewardData-6c2e62c8.js} +1 -1
  140. package/dist/esm-es5/{re-render-268bb9c8.js → re-render-fcba2f50.js} +1 -1
  141. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  142. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  143. package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
  144. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  145. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  146. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  147. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  148. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  149. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  150. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  151. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  152. package/dist/esm-es5/{sqm-invoice-table-view-8e2bb54a.js → sqm-invoice-table-view-c58334ce.js} +1 -1
  153. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  154. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  155. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-56da6bca.js → sqm-navigation-sidebar-item-view-306c5953.js} +1 -1
  156. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  157. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  158. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  159. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  160. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  161. package/dist/esm-es5/{sqm-portal-email-verification-view-44c8970f.js → sqm-portal-email-verification-view-d6b1ddab.js} +1 -1
  162. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  163. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  164. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -0
  165. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  166. package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +1 -0
  167. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  168. package/dist/esm-es5/{sqm-portal-profile-view-39039274.js → sqm-portal-profile-view-61c075cb.js} +1 -1
  169. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  170. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  171. package/dist/esm-es5/sqm-portal-registration-form-view-32c4b488.js +1 -0
  172. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  173. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  174. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  175. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  176. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  177. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  178. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  179. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  180. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  181. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  182. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  183. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  184. package/dist/esm-es5/{stencil-hooks.module-4bc38af4.js → stencil-hooks.module-bb10e6ff.js} +1 -1
  185. package/dist/esm-es5/useChildElements-9d51a845.js +1 -0
  186. package/dist/esm-es5/{useInstantAccessRegistration-7255b0ca.js → useInstantAccessRegistration-b1ce1e58.js} +1 -1
  187. package/dist/esm-es5/usePortalLogin-79bf5c9d.js +1 -0
  188. package/dist/esm-es5/usePortalRegistrationForm-be236318.js +1 -0
  189. package/dist/esm-es5/useReferralTable-4d03e881.js +1 -0
  190. package/dist/esm-es5/{useRegistrationFormState-01cdd8c7.js → useRegistrationFormState-f63404a4.js} +1 -1
  191. package/dist/esm-es5/{utilities-863d06d1.js → utilities-6b8f9180.js} +1 -1
  192. package/dist/mint-components/mint-components.esm.js +1 -1
  193. package/dist/mint-components/mint-components.js +1 -1
  194. package/dist/mint-components/p-04172660.entry.js +1 -0
  195. package/dist/mint-components/p-0700c219.system.entry.js +1 -0
  196. package/dist/mint-components/{p-1c5cffae.js → p-07606410.js} +1 -1
  197. package/dist/mint-components/p-0cb8e830.entry.js +1 -0
  198. package/dist/mint-components/{p-5bedb58c.js → p-0d2cd2a9.js} +1 -1
  199. package/dist/mint-components/p-0ebab63e.system.js +1 -0
  200. package/dist/mint-components/{p-8056fd5b.system.entry.js → p-0f91825b.system.entry.js} +1 -1
  201. package/dist/mint-components/p-11f8a69e.system.js +53 -0
  202. package/dist/mint-components/p-1340e1f7.js +391 -0
  203. package/dist/mint-components/p-1b448f3c.system.entry.js +1 -0
  204. package/dist/mint-components/p-1bbbaae1.entry.js +1 -0
  205. package/dist/mint-components/p-1dc033fc.entry.js +1 -0
  206. package/dist/mint-components/{p-3972037c.system.entry.js → p-1df12a3a.system.entry.js} +1 -1
  207. package/dist/mint-components/{p-bd4810c7.system.entry.js → p-1f969054.system.entry.js} +1 -1
  208. package/dist/mint-components/{p-8d77feee.js → p-1f98e479.js} +1 -1
  209. package/dist/mint-components/{p-57bcf2d0.system.entry.js → p-220ab3d5.system.entry.js} +1 -1
  210. package/dist/mint-components/{p-857947fa.system.entry.js → p-231def02.system.entry.js} +1 -1
  211. package/dist/mint-components/{p-4ae54b04.entry.js → p-2857247a.entry.js} +1 -1
  212. package/dist/mint-components/{p-48135f99.system.js → p-28bb7dca.system.js} +2 -2
  213. package/dist/mint-components/{p-b9d17fa1.entry.js → p-2a543e93.entry.js} +3 -3
  214. package/dist/mint-components/p-2c26f787.system.entry.js +1 -0
  215. package/dist/mint-components/p-2def85b5.system.js +1 -0
  216. package/dist/mint-components/{p-a4a5beb5.system.entry.js → p-30e2f7d0.system.entry.js} +1 -1
  217. package/dist/mint-components/p-3205d5e4.system.entry.js +1 -0
  218. package/dist/mint-components/{p-75f50e5a.entry.js → p-35287ac8.entry.js} +1 -1
  219. package/dist/mint-components/p-37d6e0ec.entry.js +1 -0
  220. package/dist/mint-components/{p-f2fd1910.system.js → p-3b51a63e.system.js} +22 -22
  221. package/dist/mint-components/{p-79ea1597.system.entry.js → p-3f3accb6.system.entry.js} +1 -1
  222. package/dist/mint-components/{p-380bfde1.entry.js → p-432ca81a.entry.js} +1 -1
  223. package/dist/mint-components/{p-8413ade9.system.js → p-457d9d1d.system.js} +1 -1
  224. package/dist/mint-components/{p-35698aaa.system.js → p-49534fa6.system.js} +1 -1
  225. package/dist/mint-components/p-49e4c6e3.js +13 -0
  226. package/dist/mint-components/p-4f9f85e9.system.js +1 -0
  227. package/dist/mint-components/p-546c3b82.system.js +1 -0
  228. package/dist/mint-components/{p-faba3198.entry.js → p-5567b408.entry.js} +1 -1
  229. package/dist/mint-components/p-558141b7.entry.js +9 -0
  230. package/dist/mint-components/{p-3bdd338c.system.js → p-558fd481.system.js} +1 -1
  231. package/dist/mint-components/{p-2ab3b8d6.js → p-5e8d57ba.js} +3 -3
  232. package/dist/mint-components/p-5ef1b48a.system.entry.js +1 -0
  233. package/dist/mint-components/p-6094ba6f.entry.js +11 -0
  234. package/dist/mint-components/{p-2126e1e6.entry.js → p-6529dfc7.entry.js} +1 -1
  235. package/dist/mint-components/{p-8975c2be.entry.js → p-65af5296.entry.js} +3 -3
  236. package/dist/mint-components/{p-09c5e3ee.system.js → p-697dd7e7.system.js} +1 -1
  237. package/dist/mint-components/{p-046f4631.system.js → p-6ba5d2b9.system.js} +1 -1
  238. package/dist/mint-components/p-6bcb0866.entry.js +13 -0
  239. package/dist/mint-components/{p-19bc3406.system.entry.js → p-6bcfb9cf.system.entry.js} +1 -1
  240. package/dist/mint-components/p-6c6a7851.js +1 -0
  241. package/dist/mint-components/p-6c6edca0.system.entry.js +1 -0
  242. package/dist/mint-components/{p-1b3ab15a.system.entry.js → p-6cc9ec64.system.entry.js} +1 -1
  243. package/dist/mint-components/p-76ba0be8.js +1 -0
  244. package/dist/mint-components/{p-31a691af.js → p-78454d0a.js} +1 -1
  245. package/dist/mint-components/p-793d2130.js +1 -0
  246. package/dist/mint-components/{p-571c451e.entry.js → p-7957b8c3.entry.js} +1 -1
  247. package/dist/mint-components/{p-4f45be94.system.js → p-7a1f55af.system.js} +1 -1
  248. package/dist/mint-components/{p-492fdaf9.js → p-7bde0cf0.js} +1 -1
  249. package/dist/mint-components/p-7f65b53e.system.entry.js +1 -0
  250. package/dist/mint-components/p-851c9fe2.system.entry.js +1 -0
  251. package/dist/mint-components/{p-988ea164.system.entry.js → p-8793aebf.system.entry.js} +1 -1
  252. package/dist/mint-components/{p-2bbff88f.entry.js → p-879cf5af.entry.js} +1 -1
  253. package/dist/mint-components/{p-cd651f81.js → p-8b34d321.js} +1 -1
  254. package/dist/mint-components/{p-1ef299d7.js → p-8c4cbcde.js} +4 -4
  255. package/dist/mint-components/{p-8fa44e18.entry.js → p-8d49ad11.entry.js} +16 -16
  256. package/dist/mint-components/{p-7dabdca6.system.entry.js → p-97ef59a8.system.entry.js} +1 -1
  257. package/dist/mint-components/p-99053795.entry.js +1 -0
  258. package/dist/mint-components/{p-6de85677.js → p-9b0c0d2e.js} +1 -1
  259. package/dist/mint-components/p-9f4dd5f8.system.entry.js +1 -0
  260. package/dist/mint-components/p-a0ba1119.system.entry.js +1 -0
  261. package/dist/mint-components/{p-e544bb9a.entry.js → p-a1a22146.entry.js} +1 -1
  262. package/dist/mint-components/p-a2e9c945.entry.js +1 -0
  263. package/dist/mint-components/p-a765b696.system.js +1 -0
  264. package/dist/mint-components/{p-a21d1a30.system.entry.js → p-a7cac365.system.entry.js} +1 -1
  265. package/dist/mint-components/{p-506679e9.js → p-a9c24c77.js} +153 -153
  266. package/dist/mint-components/{p-aee674c8.entry.js → p-ab3dc379.entry.js} +1 -1
  267. package/dist/mint-components/p-acef9f8b.entry.js +1 -0
  268. package/dist/mint-components/p-afee1c9d.system.entry.js +1 -0
  269. package/dist/mint-components/{p-aaeaff1a.system.entry.js → p-b494d7ca.system.entry.js} +1 -1
  270. package/dist/mint-components/{p-ac2b7eb8.system.js → p-b4cfad1f.system.js} +1 -1
  271. package/dist/mint-components/{p-b207beeb.entry.js → p-b583ae26.entry.js} +1 -1
  272. package/dist/mint-components/p-b93047d2.entry.js +1 -0
  273. package/dist/mint-components/p-bab24c42.system.js +1 -0
  274. package/dist/mint-components/p-bb0f585c.system.js +1 -0
  275. package/dist/mint-components/p-bcc4a18b.system.entry.js +1 -0
  276. package/dist/mint-components/p-bd8beca3.js +1 -0
  277. package/dist/mint-components/p-c1371461.system.entry.js +1 -0
  278. package/dist/mint-components/{p-726a9924.js → p-c45b3e78.js} +1 -1
  279. package/dist/mint-components/p-c6cbe2d5.system.js +1 -0
  280. package/dist/mint-components/p-c7570a8d.system.js +1 -0
  281. package/dist/mint-components/p-c9f568b2.js +1 -0
  282. package/dist/mint-components/p-ca0f7772.entry.js +1 -0
  283. package/dist/mint-components/{p-2dc5e60a.entry.js → p-cca54a99.entry.js} +1 -1
  284. package/dist/mint-components/{p-ca740238.system.entry.js → p-cfdd5894.system.entry.js} +1 -1
  285. package/dist/mint-components/p-d0091b40.entry.js +1 -0
  286. package/dist/mint-components/{p-9f231a48.system.entry.js → p-d10037c5.system.entry.js} +1 -1
  287. package/dist/mint-components/{p-f9de8a59.system.js → p-d1608ef4.system.js} +1 -1
  288. package/dist/mint-components/{p-f32c8cb5.entry.js → p-d3b9ccb7.entry.js} +1 -1
  289. package/dist/mint-components/{p-1833c4f5.js → p-d9b04935.js} +1 -1
  290. package/dist/mint-components/p-dbcb5359.js +1 -0
  291. package/dist/mint-components/{p-b114e746.entry.js → p-dd16dde6.entry.js} +1 -1
  292. package/dist/mint-components/{p-635aaf11.system.entry.js → p-dd170c45.system.entry.js} +1 -1
  293. package/dist/mint-components/{p-28042d23.entry.js → p-de524512.entry.js} +10 -10
  294. package/dist/mint-components/p-de6b3ed7.system.entry.js +1 -0
  295. package/dist/mint-components/p-eb333400.entry.js +1 -0
  296. package/dist/mint-components/p-edcc6bdf.js +42 -0
  297. package/dist/mint-components/p-ee2bf706.system.js +1 -0
  298. package/dist/mint-components/p-ef6f9d3f.entry.js +1 -0
  299. package/dist/mint-components/{p-f4a1dc19.entry.js → p-ef848304.entry.js} +1 -1
  300. package/dist/mint-components/{p-f0c23e81.system.entry.js → p-efe87bd6.system.entry.js} +1 -1
  301. package/dist/mint-components/{p-cd480e3f.entry.js → p-f065a5d3.entry.js} +3 -3
  302. package/dist/mint-components/{p-9a16a3d8.system.entry.js → p-f0c830ec.system.entry.js} +1 -1
  303. package/dist/mint-components/p-f0d145d4.system.js +1 -0
  304. package/dist/mint-components/p-f3a4ed64.entry.js +1 -0
  305. package/dist/mint-components/p-f41cf5f2.system.entry.js +1 -0
  306. package/dist/mint-components/{p-7989a098.system.entry.js → p-f676b27e.system.entry.js} +1 -1
  307. package/dist/mint-components/p-f8c32c82.system.entry.js +1 -0
  308. package/dist/mint-components/{p-6d9e52c7.system.js → p-fa43f96c.system.js} +1 -1
  309. package/dist/mint-components/p-fbbc27c5.system.entry.js +1 -0
  310. package/dist/mint-components/{p-81665df6.system.entry.js → p-fe65104b.system.entry.js} +1 -1
  311. package/dist/mint-components/{p-618e1342.entry.js → p-fe75c80f.entry.js} +1 -1
  312. package/dist/mint-components/p-feb44492.js +1 -0
  313. package/dist/types/components/sqm-portal-google-login/sqm-portal-google-login.d.ts +74 -0
  314. package/dist/types/components/sqm-portal-google-login/usePortalGoogleLogin.d.ts +0 -0
  315. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -9
  316. package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +2 -1
  317. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
  318. package/dist/types/components.d.ts +134 -17
  319. package/dist/types/global/android.d.ts +7 -0
  320. package/dist/types/global/demo.d.ts +2 -0
  321. package/dist/types/stories/features.d.ts +4 -0
  322. package/dist/types/stories/templates.d.ts +4 -0
  323. package/docs/docs.docx +0 -0
  324. package/docs/raisins.json +1 -1
  325. package/grapesjs/grapesjs.js +1 -1
  326. package/package.json +1 -1
  327. package/dist/collection/components/sqm-portal-google-registration-form/small-views/RegistrationFieldsView.js +0 -86
  328. package/dist/esm-es5/ShadowViewAddon-eba44767.js +0 -1
  329. package/dist/esm-es5/copy-text-view-b060162f.js +0 -1
  330. package/dist/esm-es5/global-bedc4329.js +0 -285
  331. package/dist/esm-es5/index.module-a2989d3c.js +0 -1
  332. package/dist/esm-es5/sqm-portal-registration-form-view-c08eafea.js +0 -1
  333. package/dist/esm-es5/useChildElements-38c11321.js +0 -1
  334. package/dist/esm-es5/usePortalRegistrationForm-5715c7a5.js +0 -1
  335. package/dist/esm-es5/useReferralTable-d77b11f5.js +0 -1
  336. package/dist/mint-components/p-0873eaa8.entry.js +0 -1
  337. package/dist/mint-components/p-0aa62b64.entry.js +0 -1
  338. package/dist/mint-components/p-0c5dae79.entry.js +0 -1
  339. package/dist/mint-components/p-0e53c59e.system.js +0 -1
  340. package/dist/mint-components/p-168a3298.entry.js +0 -1
  341. package/dist/mint-components/p-16c7bfda.js +0 -391
  342. package/dist/mint-components/p-1b0c58bc.system.entry.js +0 -1
  343. package/dist/mint-components/p-230baeff.system.entry.js +0 -1
  344. package/dist/mint-components/p-24c4e0b8.system.entry.js +0 -1
  345. package/dist/mint-components/p-30108c0e.js +0 -1
  346. package/dist/mint-components/p-31004ef4.entry.js +0 -9
  347. package/dist/mint-components/p-36233648.js +0 -1
  348. package/dist/mint-components/p-39b1a7fe.js +0 -1
  349. package/dist/mint-components/p-3ec660e9.js +0 -1
  350. package/dist/mint-components/p-3f6e0197.system.entry.js +0 -1
  351. package/dist/mint-components/p-40e99b24.js +0 -1
  352. package/dist/mint-components/p-4448febd.entry.js +0 -1
  353. package/dist/mint-components/p-45436d5a.entry.js +0 -1
  354. package/dist/mint-components/p-46ab5f80.system.js +0 -1
  355. package/dist/mint-components/p-53aaa0a4.entry.js +0 -1
  356. package/dist/mint-components/p-550ef977.js +0 -13
  357. package/dist/mint-components/p-7166caa6.system.js +0 -1
  358. package/dist/mint-components/p-731aa5c6.system.entry.js +0 -1
  359. package/dist/mint-components/p-749c7c9c.system.js +0 -1
  360. package/dist/mint-components/p-7bcf4467.system.entry.js +0 -1
  361. package/dist/mint-components/p-7cb919d4.system.entry.js +0 -1
  362. package/dist/mint-components/p-80fc549b.entry.js +0 -1
  363. package/dist/mint-components/p-85c49452.system.entry.js +0 -1
  364. package/dist/mint-components/p-868f176e.entry.js +0 -1
  365. package/dist/mint-components/p-92a25556.system.entry.js +0 -1
  366. package/dist/mint-components/p-95c64cfd.system.js +0 -1
  367. package/dist/mint-components/p-9a0c3ed9.system.entry.js +0 -1
  368. package/dist/mint-components/p-9b779add.entry.js +0 -1
  369. package/dist/mint-components/p-9e49479a.entry.js +0 -13
  370. package/dist/mint-components/p-9fc19501.system.entry.js +0 -1
  371. package/dist/mint-components/p-a8524459.system.js +0 -1
  372. package/dist/mint-components/p-b58661b3.system.js +0 -1
  373. package/dist/mint-components/p-b611eefd.entry.js +0 -1
  374. package/dist/mint-components/p-c470caf6.entry.js +0 -11
  375. package/dist/mint-components/p-c4b21562.system.entry.js +0 -1
  376. package/dist/mint-components/p-ca04737a.entry.js +0 -1
  377. package/dist/mint-components/p-cf505e92.system.js +0 -1
  378. package/dist/mint-components/p-d671e44e.system.js +0 -1
  379. package/dist/mint-components/p-de9afac2.system.entry.js +0 -1
  380. package/dist/mint-components/p-e0b344fb.entry.js +0 -1
  381. package/dist/mint-components/p-e9307725.system.entry.js +0 -1
  382. package/dist/mint-components/p-ebdcea27.system.entry.js +0 -1
  383. package/dist/mint-components/p-fe4a9dfe.system.entry.js +0 -1
  384. package/dist/types/components/sqm-portal-google-registration-form/small-views/RegistrationFieldsView.d.ts +0 -31
@@ -0,0 +1,2227 @@
1
+ 'use strict';
2
+
3
+ const stencilHooks_module = require('./stencil-hooks.module-b248b384.js');
4
+
5
+ var browserPonyfill = stencilHooks_module.createCommonjsModule(function (module, exports) {
6
+ var global = typeof self !== 'undefined' ? self : stencilHooks_module.commonjsGlobal;
7
+ var __self__ = (function () {
8
+ function F() {
9
+ this.fetch = false;
10
+ this.DOMException = global.DOMException;
11
+ }
12
+ F.prototype = global;
13
+ return new F();
14
+ })();
15
+ (function(self) {
16
+
17
+ var irrelevant = (function (exports) {
18
+
19
+ var support = {
20
+ searchParams: 'URLSearchParams' in self,
21
+ iterable: 'Symbol' in self && 'iterator' in Symbol,
22
+ blob:
23
+ 'FileReader' in self &&
24
+ 'Blob' in self &&
25
+ (function() {
26
+ try {
27
+ new Blob();
28
+ return true
29
+ } catch (e) {
30
+ return false
31
+ }
32
+ })(),
33
+ formData: 'FormData' in self,
34
+ arrayBuffer: 'ArrayBuffer' in self
35
+ };
36
+
37
+ function isDataView(obj) {
38
+ return obj && DataView.prototype.isPrototypeOf(obj)
39
+ }
40
+
41
+ if (support.arrayBuffer) {
42
+ var viewClasses = [
43
+ '[object Int8Array]',
44
+ '[object Uint8Array]',
45
+ '[object Uint8ClampedArray]',
46
+ '[object Int16Array]',
47
+ '[object Uint16Array]',
48
+ '[object Int32Array]',
49
+ '[object Uint32Array]',
50
+ '[object Float32Array]',
51
+ '[object Float64Array]'
52
+ ];
53
+
54
+ var isArrayBufferView =
55
+ ArrayBuffer.isView ||
56
+ function(obj) {
57
+ return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
58
+ };
59
+ }
60
+
61
+ function normalizeName(name) {
62
+ if (typeof name !== 'string') {
63
+ name = String(name);
64
+ }
65
+ if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name)) {
66
+ throw new TypeError('Invalid character in header field name')
67
+ }
68
+ return name.toLowerCase()
69
+ }
70
+
71
+ function normalizeValue(value) {
72
+ if (typeof value !== 'string') {
73
+ value = String(value);
74
+ }
75
+ return value
76
+ }
77
+
78
+ // Build a destructive iterator for the value list
79
+ function iteratorFor(items) {
80
+ var iterator = {
81
+ next: function() {
82
+ var value = items.shift();
83
+ return {done: value === undefined, value: value}
84
+ }
85
+ };
86
+
87
+ if (support.iterable) {
88
+ iterator[Symbol.iterator] = function() {
89
+ return iterator
90
+ };
91
+ }
92
+
93
+ return iterator
94
+ }
95
+
96
+ function Headers(headers) {
97
+ this.map = {};
98
+
99
+ if (headers instanceof Headers) {
100
+ headers.forEach(function(value, name) {
101
+ this.append(name, value);
102
+ }, this);
103
+ } else if (Array.isArray(headers)) {
104
+ headers.forEach(function(header) {
105
+ this.append(header[0], header[1]);
106
+ }, this);
107
+ } else if (headers) {
108
+ Object.getOwnPropertyNames(headers).forEach(function(name) {
109
+ this.append(name, headers[name]);
110
+ }, this);
111
+ }
112
+ }
113
+
114
+ Headers.prototype.append = function(name, value) {
115
+ name = normalizeName(name);
116
+ value = normalizeValue(value);
117
+ var oldValue = this.map[name];
118
+ this.map[name] = oldValue ? oldValue + ', ' + value : value;
119
+ };
120
+
121
+ Headers.prototype['delete'] = function(name) {
122
+ delete this.map[normalizeName(name)];
123
+ };
124
+
125
+ Headers.prototype.get = function(name) {
126
+ name = normalizeName(name);
127
+ return this.has(name) ? this.map[name] : null
128
+ };
129
+
130
+ Headers.prototype.has = function(name) {
131
+ return this.map.hasOwnProperty(normalizeName(name))
132
+ };
133
+
134
+ Headers.prototype.set = function(name, value) {
135
+ this.map[normalizeName(name)] = normalizeValue(value);
136
+ };
137
+
138
+ Headers.prototype.forEach = function(callback, thisArg) {
139
+ for (var name in this.map) {
140
+ if (this.map.hasOwnProperty(name)) {
141
+ callback.call(thisArg, this.map[name], name, this);
142
+ }
143
+ }
144
+ };
145
+
146
+ Headers.prototype.keys = function() {
147
+ var items = [];
148
+ this.forEach(function(value, name) {
149
+ items.push(name);
150
+ });
151
+ return iteratorFor(items)
152
+ };
153
+
154
+ Headers.prototype.values = function() {
155
+ var items = [];
156
+ this.forEach(function(value) {
157
+ items.push(value);
158
+ });
159
+ return iteratorFor(items)
160
+ };
161
+
162
+ Headers.prototype.entries = function() {
163
+ var items = [];
164
+ this.forEach(function(value, name) {
165
+ items.push([name, value]);
166
+ });
167
+ return iteratorFor(items)
168
+ };
169
+
170
+ if (support.iterable) {
171
+ Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
172
+ }
173
+
174
+ function consumed(body) {
175
+ if (body.bodyUsed) {
176
+ return Promise.reject(new TypeError('Already read'))
177
+ }
178
+ body.bodyUsed = true;
179
+ }
180
+
181
+ function fileReaderReady(reader) {
182
+ return new Promise(function(resolve, reject) {
183
+ reader.onload = function() {
184
+ resolve(reader.result);
185
+ };
186
+ reader.onerror = function() {
187
+ reject(reader.error);
188
+ };
189
+ })
190
+ }
191
+
192
+ function readBlobAsArrayBuffer(blob) {
193
+ var reader = new FileReader();
194
+ var promise = fileReaderReady(reader);
195
+ reader.readAsArrayBuffer(blob);
196
+ return promise
197
+ }
198
+
199
+ function readBlobAsText(blob) {
200
+ var reader = new FileReader();
201
+ var promise = fileReaderReady(reader);
202
+ reader.readAsText(blob);
203
+ return promise
204
+ }
205
+
206
+ function readArrayBufferAsText(buf) {
207
+ var view = new Uint8Array(buf);
208
+ var chars = new Array(view.length);
209
+
210
+ for (var i = 0; i < view.length; i++) {
211
+ chars[i] = String.fromCharCode(view[i]);
212
+ }
213
+ return chars.join('')
214
+ }
215
+
216
+ function bufferClone(buf) {
217
+ if (buf.slice) {
218
+ return buf.slice(0)
219
+ } else {
220
+ var view = new Uint8Array(buf.byteLength);
221
+ view.set(new Uint8Array(buf));
222
+ return view.buffer
223
+ }
224
+ }
225
+
226
+ function Body() {
227
+ this.bodyUsed = false;
228
+
229
+ this._initBody = function(body) {
230
+ this._bodyInit = body;
231
+ if (!body) {
232
+ this._bodyText = '';
233
+ } else if (typeof body === 'string') {
234
+ this._bodyText = body;
235
+ } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
236
+ this._bodyBlob = body;
237
+ } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
238
+ this._bodyFormData = body;
239
+ } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
240
+ this._bodyText = body.toString();
241
+ } else if (support.arrayBuffer && support.blob && isDataView(body)) {
242
+ this._bodyArrayBuffer = bufferClone(body.buffer);
243
+ // IE 10-11 can't handle a DataView body.
244
+ this._bodyInit = new Blob([this._bodyArrayBuffer]);
245
+ } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
246
+ this._bodyArrayBuffer = bufferClone(body);
247
+ } else {
248
+ this._bodyText = body = Object.prototype.toString.call(body);
249
+ }
250
+
251
+ if (!this.headers.get('content-type')) {
252
+ if (typeof body === 'string') {
253
+ this.headers.set('content-type', 'text/plain;charset=UTF-8');
254
+ } else if (this._bodyBlob && this._bodyBlob.type) {
255
+ this.headers.set('content-type', this._bodyBlob.type);
256
+ } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
257
+ this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
258
+ }
259
+ }
260
+ };
261
+
262
+ if (support.blob) {
263
+ this.blob = function() {
264
+ var rejected = consumed(this);
265
+ if (rejected) {
266
+ return rejected
267
+ }
268
+
269
+ if (this._bodyBlob) {
270
+ return Promise.resolve(this._bodyBlob)
271
+ } else if (this._bodyArrayBuffer) {
272
+ return Promise.resolve(new Blob([this._bodyArrayBuffer]))
273
+ } else if (this._bodyFormData) {
274
+ throw new Error('could not read FormData body as blob')
275
+ } else {
276
+ return Promise.resolve(new Blob([this._bodyText]))
277
+ }
278
+ };
279
+
280
+ this.arrayBuffer = function() {
281
+ if (this._bodyArrayBuffer) {
282
+ return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
283
+ } else {
284
+ return this.blob().then(readBlobAsArrayBuffer)
285
+ }
286
+ };
287
+ }
288
+
289
+ this.text = function() {
290
+ var rejected = consumed(this);
291
+ if (rejected) {
292
+ return rejected
293
+ }
294
+
295
+ if (this._bodyBlob) {
296
+ return readBlobAsText(this._bodyBlob)
297
+ } else if (this._bodyArrayBuffer) {
298
+ return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
299
+ } else if (this._bodyFormData) {
300
+ throw new Error('could not read FormData body as text')
301
+ } else {
302
+ return Promise.resolve(this._bodyText)
303
+ }
304
+ };
305
+
306
+ if (support.formData) {
307
+ this.formData = function() {
308
+ return this.text().then(decode)
309
+ };
310
+ }
311
+
312
+ this.json = function() {
313
+ return this.text().then(JSON.parse)
314
+ };
315
+
316
+ return this
317
+ }
318
+
319
+ // HTTP methods whose capitalization should be normalized
320
+ var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
321
+
322
+ function normalizeMethod(method) {
323
+ var upcased = method.toUpperCase();
324
+ return methods.indexOf(upcased) > -1 ? upcased : method
325
+ }
326
+
327
+ function Request(input, options) {
328
+ options = options || {};
329
+ var body = options.body;
330
+
331
+ if (input instanceof Request) {
332
+ if (input.bodyUsed) {
333
+ throw new TypeError('Already read')
334
+ }
335
+ this.url = input.url;
336
+ this.credentials = input.credentials;
337
+ if (!options.headers) {
338
+ this.headers = new Headers(input.headers);
339
+ }
340
+ this.method = input.method;
341
+ this.mode = input.mode;
342
+ this.signal = input.signal;
343
+ if (!body && input._bodyInit != null) {
344
+ body = input._bodyInit;
345
+ input.bodyUsed = true;
346
+ }
347
+ } else {
348
+ this.url = String(input);
349
+ }
350
+
351
+ this.credentials = options.credentials || this.credentials || 'same-origin';
352
+ if (options.headers || !this.headers) {
353
+ this.headers = new Headers(options.headers);
354
+ }
355
+ this.method = normalizeMethod(options.method || this.method || 'GET');
356
+ this.mode = options.mode || this.mode || null;
357
+ this.signal = options.signal || this.signal;
358
+ this.referrer = null;
359
+
360
+ if ((this.method === 'GET' || this.method === 'HEAD') && body) {
361
+ throw new TypeError('Body not allowed for GET or HEAD requests')
362
+ }
363
+ this._initBody(body);
364
+ }
365
+
366
+ Request.prototype.clone = function() {
367
+ return new Request(this, {body: this._bodyInit})
368
+ };
369
+
370
+ function decode(body) {
371
+ var form = new FormData();
372
+ body
373
+ .trim()
374
+ .split('&')
375
+ .forEach(function(bytes) {
376
+ if (bytes) {
377
+ var split = bytes.split('=');
378
+ var name = split.shift().replace(/\+/g, ' ');
379
+ var value = split.join('=').replace(/\+/g, ' ');
380
+ form.append(decodeURIComponent(name), decodeURIComponent(value));
381
+ }
382
+ });
383
+ return form
384
+ }
385
+
386
+ function parseHeaders(rawHeaders) {
387
+ var headers = new Headers();
388
+ // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
389
+ // https://tools.ietf.org/html/rfc7230#section-3.2
390
+ var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
391
+ preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
392
+ var parts = line.split(':');
393
+ var key = parts.shift().trim();
394
+ if (key) {
395
+ var value = parts.join(':').trim();
396
+ headers.append(key, value);
397
+ }
398
+ });
399
+ return headers
400
+ }
401
+
402
+ Body.call(Request.prototype);
403
+
404
+ function Response(bodyInit, options) {
405
+ if (!options) {
406
+ options = {};
407
+ }
408
+
409
+ this.type = 'default';
410
+ this.status = options.status === undefined ? 200 : options.status;
411
+ this.ok = this.status >= 200 && this.status < 300;
412
+ this.statusText = 'statusText' in options ? options.statusText : 'OK';
413
+ this.headers = new Headers(options.headers);
414
+ this.url = options.url || '';
415
+ this._initBody(bodyInit);
416
+ }
417
+
418
+ Body.call(Response.prototype);
419
+
420
+ Response.prototype.clone = function() {
421
+ return new Response(this._bodyInit, {
422
+ status: this.status,
423
+ statusText: this.statusText,
424
+ headers: new Headers(this.headers),
425
+ url: this.url
426
+ })
427
+ };
428
+
429
+ Response.error = function() {
430
+ var response = new Response(null, {status: 0, statusText: ''});
431
+ response.type = 'error';
432
+ return response
433
+ };
434
+
435
+ var redirectStatuses = [301, 302, 303, 307, 308];
436
+
437
+ Response.redirect = function(url, status) {
438
+ if (redirectStatuses.indexOf(status) === -1) {
439
+ throw new RangeError('Invalid status code')
440
+ }
441
+
442
+ return new Response(null, {status: status, headers: {location: url}})
443
+ };
444
+
445
+ exports.DOMException = self.DOMException;
446
+ try {
447
+ new exports.DOMException();
448
+ } catch (err) {
449
+ exports.DOMException = function(message, name) {
450
+ this.message = message;
451
+ this.name = name;
452
+ var error = Error(message);
453
+ this.stack = error.stack;
454
+ };
455
+ exports.DOMException.prototype = Object.create(Error.prototype);
456
+ exports.DOMException.prototype.constructor = exports.DOMException;
457
+ }
458
+
459
+ function fetch(input, init) {
460
+ return new Promise(function(resolve, reject) {
461
+ var request = new Request(input, init);
462
+
463
+ if (request.signal && request.signal.aborted) {
464
+ return reject(new exports.DOMException('Aborted', 'AbortError'))
465
+ }
466
+
467
+ var xhr = new XMLHttpRequest();
468
+
469
+ function abortXhr() {
470
+ xhr.abort();
471
+ }
472
+
473
+ xhr.onload = function() {
474
+ var options = {
475
+ status: xhr.status,
476
+ statusText: xhr.statusText,
477
+ headers: parseHeaders(xhr.getAllResponseHeaders() || '')
478
+ };
479
+ options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
480
+ var body = 'response' in xhr ? xhr.response : xhr.responseText;
481
+ resolve(new Response(body, options));
482
+ };
483
+
484
+ xhr.onerror = function() {
485
+ reject(new TypeError('Network request failed'));
486
+ };
487
+
488
+ xhr.ontimeout = function() {
489
+ reject(new TypeError('Network request failed'));
490
+ };
491
+
492
+ xhr.onabort = function() {
493
+ reject(new exports.DOMException('Aborted', 'AbortError'));
494
+ };
495
+
496
+ xhr.open(request.method, request.url, true);
497
+
498
+ if (request.credentials === 'include') {
499
+ xhr.withCredentials = true;
500
+ } else if (request.credentials === 'omit') {
501
+ xhr.withCredentials = false;
502
+ }
503
+
504
+ if ('responseType' in xhr && support.blob) {
505
+ xhr.responseType = 'blob';
506
+ }
507
+
508
+ request.headers.forEach(function(value, name) {
509
+ xhr.setRequestHeader(name, value);
510
+ });
511
+
512
+ if (request.signal) {
513
+ request.signal.addEventListener('abort', abortXhr);
514
+
515
+ xhr.onreadystatechange = function() {
516
+ // DONE (success or failure)
517
+ if (xhr.readyState === 4) {
518
+ request.signal.removeEventListener('abort', abortXhr);
519
+ }
520
+ };
521
+ }
522
+
523
+ xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);
524
+ })
525
+ }
526
+
527
+ fetch.polyfill = true;
528
+
529
+ if (!self.fetch) {
530
+ self.fetch = fetch;
531
+ self.Headers = Headers;
532
+ self.Request = Request;
533
+ self.Response = Response;
534
+ }
535
+
536
+ exports.Headers = Headers;
537
+ exports.Request = Request;
538
+ exports.Response = Response;
539
+ exports.fetch = fetch;
540
+
541
+ Object.defineProperty(exports, '__esModule', { value: true });
542
+
543
+ return exports;
544
+
545
+ })({});
546
+ })(__self__);
547
+ __self__.fetch.ponyfill = true;
548
+ // Remove "polyfill" property added by whatwg-fetch
549
+ delete __self__.fetch.polyfill;
550
+ // Choose between native implementation (global) or custom implementation (__self__)
551
+ // var ctx = global.fetch ? global : __self__;
552
+ var ctx = __self__; // this line disable service worker support temporarily
553
+ exports = ctx.fetch; // To enable: import fetch from 'cross-fetch'
554
+ exports.default = ctx.fetch; // For TypeScript consumers without esModuleInterop.
555
+ exports.fetch = ctx.fetch; // To enable: import {fetch} from 'cross-fetch'
556
+ exports.Headers = ctx.Headers;
557
+ exports.Request = ctx.Request;
558
+ exports.Response = ctx.Response;
559
+ module.exports = exports;
560
+ });
561
+
562
+ var nodejsCustomInspectSymbol_1 = stencilHooks_module.createCommonjsModule(function (module, exports) {
563
+
564
+ Object.defineProperty(exports, "__esModule", {
565
+ value: true
566
+ });
567
+ exports.default = void 0;
568
+ // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
569
+ var nodejsCustomInspectSymbol = typeof Symbol === 'function' && typeof Symbol.for === 'function' ? Symbol.for('nodejs.util.inspect.custom') : undefined;
570
+ var _default = nodejsCustomInspectSymbol;
571
+ exports.default = _default;
572
+ });
573
+
574
+ var inspect_1 = stencilHooks_module.createCommonjsModule(function (module, exports) {
575
+
576
+ Object.defineProperty(exports, "__esModule", {
577
+ value: true
578
+ });
579
+ exports.default = inspect;
580
+
581
+ var _nodejsCustomInspectSymbol = _interopRequireDefault(nodejsCustomInspectSymbol_1);
582
+
583
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
584
+
585
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
586
+
587
+ var MAX_ARRAY_LENGTH = 10;
588
+ var MAX_RECURSIVE_DEPTH = 2;
589
+ /**
590
+ * Used to print values in error messages.
591
+ */
592
+
593
+ function inspect(value) {
594
+ return formatValue(value, []);
595
+ }
596
+
597
+ function formatValue(value, seenValues) {
598
+ switch (_typeof(value)) {
599
+ case 'string':
600
+ return JSON.stringify(value);
601
+
602
+ case 'function':
603
+ return value.name ? "[function ".concat(value.name, "]") : '[function]';
604
+
605
+ case 'object':
606
+ if (value === null) {
607
+ return 'null';
608
+ }
609
+
610
+ return formatObjectValue(value, seenValues);
611
+
612
+ default:
613
+ return String(value);
614
+ }
615
+ }
616
+
617
+ function formatObjectValue(value, previouslySeenValues) {
618
+ if (previouslySeenValues.indexOf(value) !== -1) {
619
+ return '[Circular]';
620
+ }
621
+
622
+ var seenValues = [].concat(previouslySeenValues, [value]);
623
+ var customInspectFn = getCustomFn(value);
624
+
625
+ if (customInspectFn !== undefined) {
626
+ var customValue = customInspectFn.call(value); // check for infinite recursion
627
+
628
+ if (customValue !== value) {
629
+ return typeof customValue === 'string' ? customValue : formatValue(customValue, seenValues);
630
+ }
631
+ } else if (Array.isArray(value)) {
632
+ return formatArray(value, seenValues);
633
+ }
634
+
635
+ return formatObject(value, seenValues);
636
+ }
637
+
638
+ function formatObject(object, seenValues) {
639
+ var keys = Object.keys(object);
640
+
641
+ if (keys.length === 0) {
642
+ return '{}';
643
+ }
644
+
645
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
646
+ return '[' + getObjectTag(object) + ']';
647
+ }
648
+
649
+ var properties = keys.map(function (key) {
650
+ var value = formatValue(object[key], seenValues);
651
+ return key + ': ' + value;
652
+ });
653
+ return '{ ' + properties.join(', ') + ' }';
654
+ }
655
+
656
+ function formatArray(array, seenValues) {
657
+ if (array.length === 0) {
658
+ return '[]';
659
+ }
660
+
661
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
662
+ return '[Array]';
663
+ }
664
+
665
+ var len = Math.min(MAX_ARRAY_LENGTH, array.length);
666
+ var remaining = array.length - len;
667
+ var items = [];
668
+
669
+ for (var i = 0; i < len; ++i) {
670
+ items.push(formatValue(array[i], seenValues));
671
+ }
672
+
673
+ if (remaining === 1) {
674
+ items.push('... 1 more item');
675
+ } else if (remaining > 1) {
676
+ items.push("... ".concat(remaining, " more items"));
677
+ }
678
+
679
+ return '[' + items.join(', ') + ']';
680
+ }
681
+
682
+ function getCustomFn(object) {
683
+ var customInspectFn = object[String(_nodejsCustomInspectSymbol.default)];
684
+
685
+ if (typeof customInspectFn === 'function') {
686
+ return customInspectFn;
687
+ }
688
+
689
+ if (typeof object.inspect === 'function') {
690
+ return object.inspect;
691
+ }
692
+ }
693
+
694
+ function getObjectTag(object) {
695
+ var tag = Object.prototype.toString.call(object).replace(/^\[object /, '').replace(/]$/, '');
696
+
697
+ if (tag === 'Object' && typeof object.constructor === 'function') {
698
+ var name = object.constructor.name;
699
+
700
+ if (typeof name === 'string' && name !== '') {
701
+ return name;
702
+ }
703
+ }
704
+
705
+ return tag;
706
+ }
707
+ });
708
+
709
+ var invariant_1 = stencilHooks_module.createCommonjsModule(function (module, exports) {
710
+
711
+ Object.defineProperty(exports, "__esModule", {
712
+ value: true
713
+ });
714
+ exports.default = invariant;
715
+
716
+ function invariant(condition, message) {
717
+ var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')
718
+
719
+ if (!booleanCondition) {
720
+ throw new Error(message != null ? message : 'Unexpected invariant triggered.');
721
+ }
722
+ }
723
+ });
724
+
725
+ var defineInspect_1 = stencilHooks_module.createCommonjsModule(function (module, exports) {
726
+
727
+ Object.defineProperty(exports, "__esModule", {
728
+ value: true
729
+ });
730
+ exports.default = defineInspect;
731
+
732
+ var _invariant = _interopRequireDefault(invariant_1);
733
+
734
+ var _nodejsCustomInspectSymbol = _interopRequireDefault(nodejsCustomInspectSymbol_1);
735
+
736
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
737
+
738
+ /**
739
+ * The `defineInspect()` function defines `inspect()` prototype method as alias of `toJSON`
740
+ */
741
+ function defineInspect(classObject) {
742
+ var fn = classObject.prototype.toJSON;
743
+ typeof fn === 'function' || (0, _invariant.default)(0);
744
+ classObject.prototype.inspect = fn; // istanbul ignore else (See: 'https://github.com/graphql/graphql-js/issues/2317')
745
+
746
+ if (_nodejsCustomInspectSymbol.default) {
747
+ classObject.prototype[_nodejsCustomInspectSymbol.default] = fn;
748
+ }
749
+ }
750
+ });
751
+
752
+ var ast = stencilHooks_module.createCommonjsModule(function (module, exports) {
753
+
754
+ Object.defineProperty(exports, "__esModule", {
755
+ value: true
756
+ });
757
+ exports.isNode = isNode;
758
+ exports.Token = exports.Location = void 0;
759
+
760
+ var _defineInspect = _interopRequireDefault(defineInspect_1);
761
+
762
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
763
+
764
+ /**
765
+ * Contains a range of UTF-8 character offsets and token references that
766
+ * identify the region of the source from which the AST derived.
767
+ */
768
+ var Location = /*#__PURE__*/function () {
769
+ /**
770
+ * The character offset at which this Node begins.
771
+ */
772
+
773
+ /**
774
+ * The character offset at which this Node ends.
775
+ */
776
+
777
+ /**
778
+ * The Token at which this Node begins.
779
+ */
780
+
781
+ /**
782
+ * The Token at which this Node ends.
783
+ */
784
+
785
+ /**
786
+ * The Source document the AST represents.
787
+ */
788
+ function Location(startToken, endToken, source) {
789
+ this.start = startToken.start;
790
+ this.end = endToken.end;
791
+ this.startToken = startToken;
792
+ this.endToken = endToken;
793
+ this.source = source;
794
+ }
795
+
796
+ var _proto = Location.prototype;
797
+
798
+ _proto.toJSON = function toJSON() {
799
+ return {
800
+ start: this.start,
801
+ end: this.end
802
+ };
803
+ };
804
+
805
+ return Location;
806
+ }(); // Print a simplified form when appearing in `inspect` and `util.inspect`.
807
+
808
+
809
+ exports.Location = Location;
810
+ (0, _defineInspect.default)(Location);
811
+ /**
812
+ * Represents a range of characters represented by a lexical token
813
+ * within a Source.
814
+ */
815
+
816
+ var Token = /*#__PURE__*/function () {
817
+ /**
818
+ * The kind of Token.
819
+ */
820
+
821
+ /**
822
+ * The character offset at which this Node begins.
823
+ */
824
+
825
+ /**
826
+ * The character offset at which this Node ends.
827
+ */
828
+
829
+ /**
830
+ * The 1-indexed line number on which this Token appears.
831
+ */
832
+
833
+ /**
834
+ * The 1-indexed column number at which this Token begins.
835
+ */
836
+
837
+ /**
838
+ * For non-punctuation tokens, represents the interpreted value of the token.
839
+ */
840
+
841
+ /**
842
+ * Tokens exist as nodes in a double-linked-list amongst all tokens
843
+ * including ignored tokens. <SOF> is always the first node and <EOF>
844
+ * the last.
845
+ */
846
+ function Token(kind, start, end, line, column, prev, value) {
847
+ this.kind = kind;
848
+ this.start = start;
849
+ this.end = end;
850
+ this.line = line;
851
+ this.column = column;
852
+ this.value = value;
853
+ this.prev = prev;
854
+ this.next = null;
855
+ }
856
+
857
+ var _proto2 = Token.prototype;
858
+
859
+ _proto2.toJSON = function toJSON() {
860
+ return {
861
+ kind: this.kind,
862
+ value: this.value,
863
+ line: this.line,
864
+ column: this.column
865
+ };
866
+ };
867
+
868
+ return Token;
869
+ }(); // Print a simplified form when appearing in `inspect` and `util.inspect`.
870
+
871
+
872
+ exports.Token = Token;
873
+ (0, _defineInspect.default)(Token);
874
+ /**
875
+ * @internal
876
+ */
877
+
878
+ function isNode(maybeNode) {
879
+ return maybeNode != null && typeof maybeNode.kind === 'string';
880
+ }
881
+ /**
882
+ * The list of all possible AST node types.
883
+ */
884
+ });
885
+
886
+ var visitor = stencilHooks_module.createCommonjsModule(function (module, exports) {
887
+
888
+ Object.defineProperty(exports, "__esModule", {
889
+ value: true
890
+ });
891
+ exports.visit = visit;
892
+ exports.visitInParallel = visitInParallel;
893
+ exports.getVisitFn = getVisitFn;
894
+ exports.BREAK = exports.QueryDocumentKeys = void 0;
895
+
896
+ var _inspect = _interopRequireDefault(inspect_1);
897
+
898
+
899
+
900
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
901
+
902
+ var QueryDocumentKeys = {
903
+ Name: [],
904
+ Document: ['definitions'],
905
+ OperationDefinition: ['name', 'variableDefinitions', 'directives', 'selectionSet'],
906
+ VariableDefinition: ['variable', 'type', 'defaultValue', 'directives'],
907
+ Variable: ['name'],
908
+ SelectionSet: ['selections'],
909
+ Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet'],
910
+ Argument: ['name', 'value'],
911
+ FragmentSpread: ['name', 'directives'],
912
+ InlineFragment: ['typeCondition', 'directives', 'selectionSet'],
913
+ FragmentDefinition: ['name', // Note: fragment variable definitions are experimental and may be changed
914
+ // or removed in the future.
915
+ 'variableDefinitions', 'typeCondition', 'directives', 'selectionSet'],
916
+ IntValue: [],
917
+ FloatValue: [],
918
+ StringValue: [],
919
+ BooleanValue: [],
920
+ NullValue: [],
921
+ EnumValue: [],
922
+ ListValue: ['values'],
923
+ ObjectValue: ['fields'],
924
+ ObjectField: ['name', 'value'],
925
+ Directive: ['name', 'arguments'],
926
+ NamedType: ['name'],
927
+ ListType: ['type'],
928
+ NonNullType: ['type'],
929
+ SchemaDefinition: ['description', 'directives', 'operationTypes'],
930
+ OperationTypeDefinition: ['type'],
931
+ ScalarTypeDefinition: ['description', 'name', 'directives'],
932
+ ObjectTypeDefinition: ['description', 'name', 'interfaces', 'directives', 'fields'],
933
+ FieldDefinition: ['description', 'name', 'arguments', 'type', 'directives'],
934
+ InputValueDefinition: ['description', 'name', 'type', 'defaultValue', 'directives'],
935
+ InterfaceTypeDefinition: ['description', 'name', 'interfaces', 'directives', 'fields'],
936
+ UnionTypeDefinition: ['description', 'name', 'directives', 'types'],
937
+ EnumTypeDefinition: ['description', 'name', 'directives', 'values'],
938
+ EnumValueDefinition: ['description', 'name', 'directives'],
939
+ InputObjectTypeDefinition: ['description', 'name', 'directives', 'fields'],
940
+ DirectiveDefinition: ['description', 'name', 'arguments', 'locations'],
941
+ SchemaExtension: ['directives', 'operationTypes'],
942
+ ScalarTypeExtension: ['name', 'directives'],
943
+ ObjectTypeExtension: ['name', 'interfaces', 'directives', 'fields'],
944
+ InterfaceTypeExtension: ['name', 'interfaces', 'directives', 'fields'],
945
+ UnionTypeExtension: ['name', 'directives', 'types'],
946
+ EnumTypeExtension: ['name', 'directives', 'values'],
947
+ InputObjectTypeExtension: ['name', 'directives', 'fields']
948
+ };
949
+ exports.QueryDocumentKeys = QueryDocumentKeys;
950
+ var BREAK = Object.freeze({});
951
+ /**
952
+ * visit() will walk through an AST using a depth-first traversal, calling
953
+ * the visitor's enter function at each node in the traversal, and calling the
954
+ * leave function after visiting that node and all of its child nodes.
955
+ *
956
+ * By returning different values from the enter and leave functions, the
957
+ * behavior of the visitor can be altered, including skipping over a sub-tree of
958
+ * the AST (by returning false), editing the AST by returning a value or null
959
+ * to remove the value, or to stop the whole traversal by returning BREAK.
960
+ *
961
+ * When using visit() to edit an AST, the original AST will not be modified, and
962
+ * a new version of the AST with the changes applied will be returned from the
963
+ * visit function.
964
+ *
965
+ * const editedAST = visit(ast, {
966
+ * enter(node, key, parent, path, ancestors) {
967
+ * // @return
968
+ * // undefined: no action
969
+ * // false: skip visiting this node
970
+ * // visitor.BREAK: stop visiting altogether
971
+ * // null: delete this node
972
+ * // any value: replace this node with the returned value
973
+ * },
974
+ * leave(node, key, parent, path, ancestors) {
975
+ * // @return
976
+ * // undefined: no action
977
+ * // false: no action
978
+ * // visitor.BREAK: stop visiting altogether
979
+ * // null: delete this node
980
+ * // any value: replace this node with the returned value
981
+ * }
982
+ * });
983
+ *
984
+ * Alternatively to providing enter() and leave() functions, a visitor can
985
+ * instead provide functions named the same as the kinds of AST nodes, or
986
+ * enter/leave visitors at a named key, leading to four permutations of the
987
+ * visitor API:
988
+ *
989
+ * 1) Named visitors triggered when entering a node of a specific kind.
990
+ *
991
+ * visit(ast, {
992
+ * Kind(node) {
993
+ * // enter the "Kind" node
994
+ * }
995
+ * })
996
+ *
997
+ * 2) Named visitors that trigger upon entering and leaving a node of
998
+ * a specific kind.
999
+ *
1000
+ * visit(ast, {
1001
+ * Kind: {
1002
+ * enter(node) {
1003
+ * // enter the "Kind" node
1004
+ * }
1005
+ * leave(node) {
1006
+ * // leave the "Kind" node
1007
+ * }
1008
+ * }
1009
+ * })
1010
+ *
1011
+ * 3) Generic visitors that trigger upon entering and leaving any node.
1012
+ *
1013
+ * visit(ast, {
1014
+ * enter(node) {
1015
+ * // enter any node
1016
+ * },
1017
+ * leave(node) {
1018
+ * // leave any node
1019
+ * }
1020
+ * })
1021
+ *
1022
+ * 4) Parallel visitors for entering and leaving nodes of a specific kind.
1023
+ *
1024
+ * visit(ast, {
1025
+ * enter: {
1026
+ * Kind(node) {
1027
+ * // enter the "Kind" node
1028
+ * }
1029
+ * },
1030
+ * leave: {
1031
+ * Kind(node) {
1032
+ * // leave the "Kind" node
1033
+ * }
1034
+ * }
1035
+ * })
1036
+ */
1037
+
1038
+ exports.BREAK = BREAK;
1039
+
1040
+ function visit(root, visitor) {
1041
+ var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys;
1042
+
1043
+ /* eslint-disable no-undef-init */
1044
+ var stack = undefined;
1045
+ var inArray = Array.isArray(root);
1046
+ var keys = [root];
1047
+ var index = -1;
1048
+ var edits = [];
1049
+ var node = undefined;
1050
+ var key = undefined;
1051
+ var parent = undefined;
1052
+ var path = [];
1053
+ var ancestors = [];
1054
+ var newRoot = root;
1055
+ /* eslint-enable no-undef-init */
1056
+
1057
+ do {
1058
+ index++;
1059
+ var isLeaving = index === keys.length;
1060
+ var isEdited = isLeaving && edits.length !== 0;
1061
+
1062
+ if (isLeaving) {
1063
+ key = ancestors.length === 0 ? undefined : path[path.length - 1];
1064
+ node = parent;
1065
+ parent = ancestors.pop();
1066
+
1067
+ if (isEdited) {
1068
+ if (inArray) {
1069
+ node = node.slice();
1070
+ } else {
1071
+ var clone = {};
1072
+
1073
+ for (var _i2 = 0, _Object$keys2 = Object.keys(node); _i2 < _Object$keys2.length; _i2++) {
1074
+ var k = _Object$keys2[_i2];
1075
+ clone[k] = node[k];
1076
+ }
1077
+
1078
+ node = clone;
1079
+ }
1080
+
1081
+ var editOffset = 0;
1082
+
1083
+ for (var ii = 0; ii < edits.length; ii++) {
1084
+ var editKey = edits[ii][0];
1085
+ var editValue = edits[ii][1];
1086
+
1087
+ if (inArray) {
1088
+ editKey -= editOffset;
1089
+ }
1090
+
1091
+ if (inArray && editValue === null) {
1092
+ node.splice(editKey, 1);
1093
+ editOffset++;
1094
+ } else {
1095
+ node[editKey] = editValue;
1096
+ }
1097
+ }
1098
+ }
1099
+
1100
+ index = stack.index;
1101
+ keys = stack.keys;
1102
+ edits = stack.edits;
1103
+ inArray = stack.inArray;
1104
+ stack = stack.prev;
1105
+ } else {
1106
+ key = parent ? inArray ? index : keys[index] : undefined;
1107
+ node = parent ? parent[key] : newRoot;
1108
+
1109
+ if (node === null || node === undefined) {
1110
+ continue;
1111
+ }
1112
+
1113
+ if (parent) {
1114
+ path.push(key);
1115
+ }
1116
+ }
1117
+
1118
+ var result = void 0;
1119
+
1120
+ if (!Array.isArray(node)) {
1121
+ if (!(0, ast.isNode)(node)) {
1122
+ throw new Error("Invalid AST Node: ".concat((0, _inspect.default)(node), "."));
1123
+ }
1124
+
1125
+ var visitFn = getVisitFn(visitor, node.kind, isLeaving);
1126
+
1127
+ if (visitFn) {
1128
+ result = visitFn.call(visitor, node, key, parent, path, ancestors);
1129
+
1130
+ if (result === BREAK) {
1131
+ break;
1132
+ }
1133
+
1134
+ if (result === false) {
1135
+ if (!isLeaving) {
1136
+ path.pop();
1137
+ continue;
1138
+ }
1139
+ } else if (result !== undefined) {
1140
+ edits.push([key, result]);
1141
+
1142
+ if (!isLeaving) {
1143
+ if ((0, ast.isNode)(result)) {
1144
+ node = result;
1145
+ } else {
1146
+ path.pop();
1147
+ continue;
1148
+ }
1149
+ }
1150
+ }
1151
+ }
1152
+ }
1153
+
1154
+ if (result === undefined && isEdited) {
1155
+ edits.push([key, node]);
1156
+ }
1157
+
1158
+ if (isLeaving) {
1159
+ path.pop();
1160
+ } else {
1161
+ var _visitorKeys$node$kin;
1162
+
1163
+ stack = {
1164
+ inArray: inArray,
1165
+ index: index,
1166
+ keys: keys,
1167
+ edits: edits,
1168
+ prev: stack
1169
+ };
1170
+ inArray = Array.isArray(node);
1171
+ keys = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];
1172
+ index = -1;
1173
+ edits = [];
1174
+
1175
+ if (parent) {
1176
+ ancestors.push(parent);
1177
+ }
1178
+
1179
+ parent = node;
1180
+ }
1181
+ } while (stack !== undefined);
1182
+
1183
+ if (edits.length !== 0) {
1184
+ newRoot = edits[edits.length - 1][1];
1185
+ }
1186
+
1187
+ return newRoot;
1188
+ }
1189
+ /**
1190
+ * Creates a new visitor instance which delegates to many visitors to run in
1191
+ * parallel. Each visitor will be visited for each node before moving on.
1192
+ *
1193
+ * If a prior visitor edits a node, no following visitors will see that node.
1194
+ */
1195
+
1196
+
1197
+ function visitInParallel(visitors) {
1198
+ var skipping = new Array(visitors.length);
1199
+ return {
1200
+ enter: function enter(node) {
1201
+ for (var i = 0; i < visitors.length; i++) {
1202
+ if (skipping[i] == null) {
1203
+ var fn = getVisitFn(visitors[i], node.kind,
1204
+ /* isLeaving */
1205
+ false);
1206
+
1207
+ if (fn) {
1208
+ var result = fn.apply(visitors[i], arguments);
1209
+
1210
+ if (result === false) {
1211
+ skipping[i] = node;
1212
+ } else if (result === BREAK) {
1213
+ skipping[i] = BREAK;
1214
+ } else if (result !== undefined) {
1215
+ return result;
1216
+ }
1217
+ }
1218
+ }
1219
+ }
1220
+ },
1221
+ leave: function leave(node) {
1222
+ for (var i = 0; i < visitors.length; i++) {
1223
+ if (skipping[i] == null) {
1224
+ var fn = getVisitFn(visitors[i], node.kind,
1225
+ /* isLeaving */
1226
+ true);
1227
+
1228
+ if (fn) {
1229
+ var result = fn.apply(visitors[i], arguments);
1230
+
1231
+ if (result === BREAK) {
1232
+ skipping[i] = BREAK;
1233
+ } else if (result !== undefined && result !== false) {
1234
+ return result;
1235
+ }
1236
+ }
1237
+ } else if (skipping[i] === node) {
1238
+ skipping[i] = null;
1239
+ }
1240
+ }
1241
+ }
1242
+ };
1243
+ }
1244
+ /**
1245
+ * Given a visitor instance, if it is leaving or not, and a node kind, return
1246
+ * the function the visitor runtime should call.
1247
+ */
1248
+
1249
+
1250
+ function getVisitFn(visitor, kind, isLeaving) {
1251
+ var kindVisitor = visitor[kind];
1252
+
1253
+ if (kindVisitor) {
1254
+ if (!isLeaving && typeof kindVisitor === 'function') {
1255
+ // { Kind() {} }
1256
+ return kindVisitor;
1257
+ }
1258
+
1259
+ var kindSpecificVisitor = isLeaving ? kindVisitor.leave : kindVisitor.enter;
1260
+
1261
+ if (typeof kindSpecificVisitor === 'function') {
1262
+ // { Kind: { enter() {}, leave() {} } }
1263
+ return kindSpecificVisitor;
1264
+ }
1265
+ } else {
1266
+ var specificVisitor = isLeaving ? visitor.leave : visitor.enter;
1267
+
1268
+ if (specificVisitor) {
1269
+ if (typeof specificVisitor === 'function') {
1270
+ // { enter() {}, leave() {} }
1271
+ return specificVisitor;
1272
+ }
1273
+
1274
+ var specificKindVisitor = specificVisitor[kind];
1275
+
1276
+ if (typeof specificKindVisitor === 'function') {
1277
+ // { enter: { Kind() {} }, leave: { Kind() {} } }
1278
+ return specificKindVisitor;
1279
+ }
1280
+ }
1281
+ }
1282
+ }
1283
+ });
1284
+
1285
+ var blockString = stencilHooks_module.createCommonjsModule(function (module, exports) {
1286
+
1287
+ Object.defineProperty(exports, "__esModule", {
1288
+ value: true
1289
+ });
1290
+ exports.dedentBlockStringValue = dedentBlockStringValue;
1291
+ exports.getBlockStringIndentation = getBlockStringIndentation;
1292
+ exports.printBlockString = printBlockString;
1293
+
1294
+ /**
1295
+ * Produces the value of a block string from its parsed raw value, similar to
1296
+ * CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc.
1297
+ *
1298
+ * This implements the GraphQL spec's BlockStringValue() static algorithm.
1299
+ *
1300
+ * @internal
1301
+ */
1302
+ function dedentBlockStringValue(rawString) {
1303
+ // Expand a block string's raw value into independent lines.
1304
+ var lines = rawString.split(/\r\n|[\n\r]/g); // Remove common indentation from all lines but first.
1305
+
1306
+ var commonIndent = getBlockStringIndentation(rawString);
1307
+
1308
+ if (commonIndent !== 0) {
1309
+ for (var i = 1; i < lines.length; i++) {
1310
+ lines[i] = lines[i].slice(commonIndent);
1311
+ }
1312
+ } // Remove leading and trailing blank lines.
1313
+
1314
+
1315
+ var startLine = 0;
1316
+
1317
+ while (startLine < lines.length && isBlank(lines[startLine])) {
1318
+ ++startLine;
1319
+ }
1320
+
1321
+ var endLine = lines.length;
1322
+
1323
+ while (endLine > startLine && isBlank(lines[endLine - 1])) {
1324
+ --endLine;
1325
+ } // Return a string of the lines joined with U+000A.
1326
+
1327
+
1328
+ return lines.slice(startLine, endLine).join('\n');
1329
+ }
1330
+
1331
+ function isBlank(str) {
1332
+ for (var i = 0; i < str.length; ++i) {
1333
+ if (str[i] !== ' ' && str[i] !== '\t') {
1334
+ return false;
1335
+ }
1336
+ }
1337
+
1338
+ return true;
1339
+ }
1340
+ /**
1341
+ * @internal
1342
+ */
1343
+
1344
+
1345
+ function getBlockStringIndentation(value) {
1346
+ var _commonIndent;
1347
+
1348
+ var isFirstLine = true;
1349
+ var isEmptyLine = true;
1350
+ var indent = 0;
1351
+ var commonIndent = null;
1352
+
1353
+ for (var i = 0; i < value.length; ++i) {
1354
+ switch (value.charCodeAt(i)) {
1355
+ case 13:
1356
+ // \r
1357
+ if (value.charCodeAt(i + 1) === 10) {
1358
+ ++i; // skip \r\n as one symbol
1359
+ }
1360
+
1361
+ // falls through
1362
+
1363
+ case 10:
1364
+ // \n
1365
+ isFirstLine = false;
1366
+ isEmptyLine = true;
1367
+ indent = 0;
1368
+ break;
1369
+
1370
+ case 9: // \t
1371
+
1372
+ case 32:
1373
+ // <space>
1374
+ ++indent;
1375
+ break;
1376
+
1377
+ default:
1378
+ if (isEmptyLine && !isFirstLine && (commonIndent === null || indent < commonIndent)) {
1379
+ commonIndent = indent;
1380
+ }
1381
+
1382
+ isEmptyLine = false;
1383
+ }
1384
+ }
1385
+
1386
+ return (_commonIndent = commonIndent) !== null && _commonIndent !== void 0 ? _commonIndent : 0;
1387
+ }
1388
+ /**
1389
+ * Print a block string in the indented block form by adding a leading and
1390
+ * trailing blank line. However, if a block string starts with whitespace and is
1391
+ * a single-line, adding a leading blank line would strip that whitespace.
1392
+ *
1393
+ * @internal
1394
+ */
1395
+
1396
+
1397
+ function printBlockString(value) {
1398
+ var indentation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
1399
+ var preferMultipleLines = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
1400
+ var isSingleLine = value.indexOf('\n') === -1;
1401
+ var hasLeadingSpace = value[0] === ' ' || value[0] === '\t';
1402
+ var hasTrailingQuote = value[value.length - 1] === '"';
1403
+ var hasTrailingSlash = value[value.length - 1] === '\\';
1404
+ var printAsMultipleLines = !isSingleLine || hasTrailingQuote || hasTrailingSlash || preferMultipleLines;
1405
+ var result = ''; // Format a multi-line block quote to account for leading space.
1406
+
1407
+ if (printAsMultipleLines && !(isSingleLine && hasLeadingSpace)) {
1408
+ result += '\n' + indentation;
1409
+ }
1410
+
1411
+ result += indentation ? value.replace(/\n/g, '\n' + indentation) : value;
1412
+
1413
+ if (printAsMultipleLines) {
1414
+ result += '\n';
1415
+ }
1416
+
1417
+ return '"""' + result.replace(/"""/g, '\\"""') + '"""';
1418
+ }
1419
+ });
1420
+
1421
+ var printer = stencilHooks_module.createCommonjsModule(function (module, exports) {
1422
+
1423
+ Object.defineProperty(exports, "__esModule", {
1424
+ value: true
1425
+ });
1426
+ exports.print = print;
1427
+
1428
+
1429
+
1430
+
1431
+
1432
+ /**
1433
+ * Converts an AST into a string, using one set of reasonable
1434
+ * formatting rules.
1435
+ */
1436
+ function print(ast) {
1437
+ return (0, visitor.visit)(ast, {
1438
+ leave: printDocASTReducer
1439
+ });
1440
+ }
1441
+
1442
+ var MAX_LINE_LENGTH = 80; // TODO: provide better type coverage in future
1443
+
1444
+ var printDocASTReducer = {
1445
+ Name: function Name(node) {
1446
+ return node.value;
1447
+ },
1448
+ Variable: function Variable(node) {
1449
+ return '$' + node.name;
1450
+ },
1451
+ // Document
1452
+ Document: function Document(node) {
1453
+ return join(node.definitions, '\n\n') + '\n';
1454
+ },
1455
+ OperationDefinition: function OperationDefinition(node) {
1456
+ var op = node.operation;
1457
+ var name = node.name;
1458
+ var varDefs = wrap('(', join(node.variableDefinitions, ', '), ')');
1459
+ var directives = join(node.directives, ' ');
1460
+ var selectionSet = node.selectionSet; // Anonymous queries with no directives or variable definitions can use
1461
+ // the query short form.
1462
+
1463
+ return !name && !directives && !varDefs && op === 'query' ? selectionSet : join([op, join([name, varDefs]), directives, selectionSet], ' ');
1464
+ },
1465
+ VariableDefinition: function VariableDefinition(_ref) {
1466
+ var variable = _ref.variable,
1467
+ type = _ref.type,
1468
+ defaultValue = _ref.defaultValue,
1469
+ directives = _ref.directives;
1470
+ return variable + ': ' + type + wrap(' = ', defaultValue) + wrap(' ', join(directives, ' '));
1471
+ },
1472
+ SelectionSet: function SelectionSet(_ref2) {
1473
+ var selections = _ref2.selections;
1474
+ return block(selections);
1475
+ },
1476
+ Field: function Field(_ref3) {
1477
+ var alias = _ref3.alias,
1478
+ name = _ref3.name,
1479
+ args = _ref3.arguments,
1480
+ directives = _ref3.directives,
1481
+ selectionSet = _ref3.selectionSet;
1482
+ var prefix = wrap('', alias, ': ') + name;
1483
+ var argsLine = prefix + wrap('(', join(args, ', '), ')');
1484
+
1485
+ if (argsLine.length > MAX_LINE_LENGTH) {
1486
+ argsLine = prefix + wrap('(\n', indent(join(args, '\n')), '\n)');
1487
+ }
1488
+
1489
+ return join([argsLine, join(directives, ' '), selectionSet], ' ');
1490
+ },
1491
+ Argument: function Argument(_ref4) {
1492
+ var name = _ref4.name,
1493
+ value = _ref4.value;
1494
+ return name + ': ' + value;
1495
+ },
1496
+ // Fragments
1497
+ FragmentSpread: function FragmentSpread(_ref5) {
1498
+ var name = _ref5.name,
1499
+ directives = _ref5.directives;
1500
+ return '...' + name + wrap(' ', join(directives, ' '));
1501
+ },
1502
+ InlineFragment: function InlineFragment(_ref6) {
1503
+ var typeCondition = _ref6.typeCondition,
1504
+ directives = _ref6.directives,
1505
+ selectionSet = _ref6.selectionSet;
1506
+ return join(['...', wrap('on ', typeCondition), join(directives, ' '), selectionSet], ' ');
1507
+ },
1508
+ FragmentDefinition: function FragmentDefinition(_ref7) {
1509
+ var name = _ref7.name,
1510
+ typeCondition = _ref7.typeCondition,
1511
+ variableDefinitions = _ref7.variableDefinitions,
1512
+ directives = _ref7.directives,
1513
+ selectionSet = _ref7.selectionSet;
1514
+ return (// Note: fragment variable definitions are experimental and may be changed
1515
+ // or removed in the future.
1516
+ "fragment ".concat(name).concat(wrap('(', join(variableDefinitions, ', '), ')'), " ") + "on ".concat(typeCondition, " ").concat(wrap('', join(directives, ' '), ' ')) + selectionSet
1517
+ );
1518
+ },
1519
+ // Value
1520
+ IntValue: function IntValue(_ref8) {
1521
+ var value = _ref8.value;
1522
+ return value;
1523
+ },
1524
+ FloatValue: function FloatValue(_ref9) {
1525
+ var value = _ref9.value;
1526
+ return value;
1527
+ },
1528
+ StringValue: function StringValue(_ref10, key) {
1529
+ var value = _ref10.value,
1530
+ isBlockString = _ref10.block;
1531
+ return isBlockString ? (0, blockString.printBlockString)(value, key === 'description' ? '' : ' ') : JSON.stringify(value);
1532
+ },
1533
+ BooleanValue: function BooleanValue(_ref11) {
1534
+ var value = _ref11.value;
1535
+ return value ? 'true' : 'false';
1536
+ },
1537
+ NullValue: function NullValue() {
1538
+ return 'null';
1539
+ },
1540
+ EnumValue: function EnumValue(_ref12) {
1541
+ var value = _ref12.value;
1542
+ return value;
1543
+ },
1544
+ ListValue: function ListValue(_ref13) {
1545
+ var values = _ref13.values;
1546
+ return '[' + join(values, ', ') + ']';
1547
+ },
1548
+ ObjectValue: function ObjectValue(_ref14) {
1549
+ var fields = _ref14.fields;
1550
+ return '{' + join(fields, ', ') + '}';
1551
+ },
1552
+ ObjectField: function ObjectField(_ref15) {
1553
+ var name = _ref15.name,
1554
+ value = _ref15.value;
1555
+ return name + ': ' + value;
1556
+ },
1557
+ // Directive
1558
+ Directive: function Directive(_ref16) {
1559
+ var name = _ref16.name,
1560
+ args = _ref16.arguments;
1561
+ return '@' + name + wrap('(', join(args, ', '), ')');
1562
+ },
1563
+ // Type
1564
+ NamedType: function NamedType(_ref17) {
1565
+ var name = _ref17.name;
1566
+ return name;
1567
+ },
1568
+ ListType: function ListType(_ref18) {
1569
+ var type = _ref18.type;
1570
+ return '[' + type + ']';
1571
+ },
1572
+ NonNullType: function NonNullType(_ref19) {
1573
+ var type = _ref19.type;
1574
+ return type + '!';
1575
+ },
1576
+ // Type System Definitions
1577
+ SchemaDefinition: addDescription(function (_ref20) {
1578
+ var directives = _ref20.directives,
1579
+ operationTypes = _ref20.operationTypes;
1580
+ return join(['schema', join(directives, ' '), block(operationTypes)], ' ');
1581
+ }),
1582
+ OperationTypeDefinition: function OperationTypeDefinition(_ref21) {
1583
+ var operation = _ref21.operation,
1584
+ type = _ref21.type;
1585
+ return operation + ': ' + type;
1586
+ },
1587
+ ScalarTypeDefinition: addDescription(function (_ref22) {
1588
+ var name = _ref22.name,
1589
+ directives = _ref22.directives;
1590
+ return join(['scalar', name, join(directives, ' ')], ' ');
1591
+ }),
1592
+ ObjectTypeDefinition: addDescription(function (_ref23) {
1593
+ var name = _ref23.name,
1594
+ interfaces = _ref23.interfaces,
1595
+ directives = _ref23.directives,
1596
+ fields = _ref23.fields;
1597
+ return join(['type', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');
1598
+ }),
1599
+ FieldDefinition: addDescription(function (_ref24) {
1600
+ var name = _ref24.name,
1601
+ args = _ref24.arguments,
1602
+ type = _ref24.type,
1603
+ directives = _ref24.directives;
1604
+ return name + (hasMultilineItems(args) ? wrap('(\n', indent(join(args, '\n')), '\n)') : wrap('(', join(args, ', '), ')')) + ': ' + type + wrap(' ', join(directives, ' '));
1605
+ }),
1606
+ InputValueDefinition: addDescription(function (_ref25) {
1607
+ var name = _ref25.name,
1608
+ type = _ref25.type,
1609
+ defaultValue = _ref25.defaultValue,
1610
+ directives = _ref25.directives;
1611
+ return join([name + ': ' + type, wrap('= ', defaultValue), join(directives, ' ')], ' ');
1612
+ }),
1613
+ InterfaceTypeDefinition: addDescription(function (_ref26) {
1614
+ var name = _ref26.name,
1615
+ interfaces = _ref26.interfaces,
1616
+ directives = _ref26.directives,
1617
+ fields = _ref26.fields;
1618
+ return join(['interface', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');
1619
+ }),
1620
+ UnionTypeDefinition: addDescription(function (_ref27) {
1621
+ var name = _ref27.name,
1622
+ directives = _ref27.directives,
1623
+ types = _ref27.types;
1624
+ return join(['union', name, join(directives, ' '), types && types.length !== 0 ? '= ' + join(types, ' | ') : ''], ' ');
1625
+ }),
1626
+ EnumTypeDefinition: addDescription(function (_ref28) {
1627
+ var name = _ref28.name,
1628
+ directives = _ref28.directives,
1629
+ values = _ref28.values;
1630
+ return join(['enum', name, join(directives, ' '), block(values)], ' ');
1631
+ }),
1632
+ EnumValueDefinition: addDescription(function (_ref29) {
1633
+ var name = _ref29.name,
1634
+ directives = _ref29.directives;
1635
+ return join([name, join(directives, ' ')], ' ');
1636
+ }),
1637
+ InputObjectTypeDefinition: addDescription(function (_ref30) {
1638
+ var name = _ref30.name,
1639
+ directives = _ref30.directives,
1640
+ fields = _ref30.fields;
1641
+ return join(['input', name, join(directives, ' '), block(fields)], ' ');
1642
+ }),
1643
+ DirectiveDefinition: addDescription(function (_ref31) {
1644
+ var name = _ref31.name,
1645
+ args = _ref31.arguments,
1646
+ repeatable = _ref31.repeatable,
1647
+ locations = _ref31.locations;
1648
+ return 'directive @' + name + (hasMultilineItems(args) ? wrap('(\n', indent(join(args, '\n')), '\n)') : wrap('(', join(args, ', '), ')')) + (repeatable ? ' repeatable' : '') + ' on ' + join(locations, ' | ');
1649
+ }),
1650
+ SchemaExtension: function SchemaExtension(_ref32) {
1651
+ var directives = _ref32.directives,
1652
+ operationTypes = _ref32.operationTypes;
1653
+ return join(['extend schema', join(directives, ' '), block(operationTypes)], ' ');
1654
+ },
1655
+ ScalarTypeExtension: function ScalarTypeExtension(_ref33) {
1656
+ var name = _ref33.name,
1657
+ directives = _ref33.directives;
1658
+ return join(['extend scalar', name, join(directives, ' ')], ' ');
1659
+ },
1660
+ ObjectTypeExtension: function ObjectTypeExtension(_ref34) {
1661
+ var name = _ref34.name,
1662
+ interfaces = _ref34.interfaces,
1663
+ directives = _ref34.directives,
1664
+ fields = _ref34.fields;
1665
+ return join(['extend type', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');
1666
+ },
1667
+ InterfaceTypeExtension: function InterfaceTypeExtension(_ref35) {
1668
+ var name = _ref35.name,
1669
+ interfaces = _ref35.interfaces,
1670
+ directives = _ref35.directives,
1671
+ fields = _ref35.fields;
1672
+ return join(['extend interface', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');
1673
+ },
1674
+ UnionTypeExtension: function UnionTypeExtension(_ref36) {
1675
+ var name = _ref36.name,
1676
+ directives = _ref36.directives,
1677
+ types = _ref36.types;
1678
+ return join(['extend union', name, join(directives, ' '), types && types.length !== 0 ? '= ' + join(types, ' | ') : ''], ' ');
1679
+ },
1680
+ EnumTypeExtension: function EnumTypeExtension(_ref37) {
1681
+ var name = _ref37.name,
1682
+ directives = _ref37.directives,
1683
+ values = _ref37.values;
1684
+ return join(['extend enum', name, join(directives, ' '), block(values)], ' ');
1685
+ },
1686
+ InputObjectTypeExtension: function InputObjectTypeExtension(_ref38) {
1687
+ var name = _ref38.name,
1688
+ directives = _ref38.directives,
1689
+ fields = _ref38.fields;
1690
+ return join(['extend input', name, join(directives, ' '), block(fields)], ' ');
1691
+ }
1692
+ };
1693
+
1694
+ function addDescription(cb) {
1695
+ return function (node) {
1696
+ return join([node.description, cb(node)], '\n');
1697
+ };
1698
+ }
1699
+ /**
1700
+ * Given maybeArray, print an empty string if it is null or empty, otherwise
1701
+ * print all items together separated by separator if provided
1702
+ */
1703
+
1704
+
1705
+ function join(maybeArray) {
1706
+ var _maybeArray$filter$jo;
1707
+
1708
+ var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
1709
+ return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter(function (x) {
1710
+ return x;
1711
+ }).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : '';
1712
+ }
1713
+ /**
1714
+ * Given array, print each item on its own line, wrapped in an
1715
+ * indented "{ }" block.
1716
+ */
1717
+
1718
+
1719
+ function block(array) {
1720
+ return wrap('{\n', indent(join(array, '\n')), '\n}');
1721
+ }
1722
+ /**
1723
+ * If maybeString is not null or empty, then wrap with start and end, otherwise print an empty string.
1724
+ */
1725
+
1726
+
1727
+ function wrap(start, maybeString) {
1728
+ var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
1729
+ return maybeString != null && maybeString !== '' ? start + maybeString + end : '';
1730
+ }
1731
+
1732
+ function indent(str) {
1733
+ return wrap(' ', str.replace(/\n/g, '\n '));
1734
+ }
1735
+
1736
+ function isMultiline(str) {
1737
+ return str.indexOf('\n') !== -1;
1738
+ }
1739
+
1740
+ function hasMultilineItems(maybeArray) {
1741
+ return maybeArray != null && maybeArray.some(isMultiline);
1742
+ }
1743
+ });
1744
+
1745
+ var ReactNativeFile = function ReactNativeFile(_ref) {
1746
+ var uri = _ref.uri,
1747
+ name = _ref.name,
1748
+ type = _ref.type;
1749
+ this.uri = uri;
1750
+ this.name = name;
1751
+ this.type = type;
1752
+ };
1753
+
1754
+ var isExtractableFile = function isExtractableFile(value) {
1755
+ return (
1756
+ (typeof File !== 'undefined' && value instanceof File) ||
1757
+ (typeof Blob !== 'undefined' && value instanceof Blob) ||
1758
+ value instanceof ReactNativeFile
1759
+ );
1760
+ };
1761
+
1762
+ var extractFiles = function extractFiles(value, path, isExtractableFile$1) {
1763
+ if (path === void 0) {
1764
+ path = '';
1765
+ }
1766
+
1767
+ if (isExtractableFile$1 === void 0) {
1768
+ isExtractableFile$1 = isExtractableFile;
1769
+ }
1770
+
1771
+ var clone;
1772
+ var files = new Map();
1773
+
1774
+ function addFile(paths, file) {
1775
+ var storedPaths = files.get(file);
1776
+ if (storedPaths) storedPaths.push.apply(storedPaths, paths);
1777
+ else files.set(file, paths);
1778
+ }
1779
+
1780
+ if (isExtractableFile$1(value)) {
1781
+ clone = null;
1782
+ addFile([path], value);
1783
+ } else {
1784
+ var prefix = path ? path + '.' : '';
1785
+ if (typeof FileList !== 'undefined' && value instanceof FileList)
1786
+ clone = Array.prototype.map.call(value, function (file, i) {
1787
+ addFile(['' + prefix + i], file);
1788
+ return null;
1789
+ });
1790
+ else if (Array.isArray(value))
1791
+ clone = value.map(function (child, i) {
1792
+ var result = extractFiles(child, '' + prefix + i, isExtractableFile$1);
1793
+ result.files.forEach(addFile);
1794
+ return result.clone;
1795
+ });
1796
+ else if (value && value.constructor === Object) {
1797
+ clone = {};
1798
+
1799
+ for (var i in value) {
1800
+ var result = extractFiles(value[i], '' + prefix + i, isExtractableFile$1);
1801
+ result.files.forEach(addFile);
1802
+ clone[i] = result.clone;
1803
+ }
1804
+ } else clone = value;
1805
+ }
1806
+
1807
+ return {
1808
+ clone: clone,
1809
+ files: files,
1810
+ };
1811
+ };
1812
+
1813
+ var ReactNativeFile$1 = ReactNativeFile;
1814
+ var extractFiles$1 = extractFiles;
1815
+ var isExtractableFile$1 = isExtractableFile;
1816
+
1817
+ var _public = {
1818
+ ReactNativeFile: ReactNativeFile$1,
1819
+ extractFiles: extractFiles$1,
1820
+ isExtractableFile: isExtractableFile$1
1821
+ };
1822
+
1823
+ /* eslint-env browser */
1824
+ var browser = typeof self == 'object' ? self.FormData : window.FormData;
1825
+
1826
+ var createRequestBody_1 = stencilHooks_module.createCommonjsModule(function (module, exports) {
1827
+ var __importDefault = (stencilHooks_module.commonjsGlobal && stencilHooks_module.commonjsGlobal.__importDefault) || function (mod) {
1828
+ return (mod && mod.__esModule) ? mod : { "default": mod };
1829
+ };
1830
+ Object.defineProperty(exports, "__esModule", { value: true });
1831
+
1832
+ var form_data_1 = __importDefault(browser);
1833
+ /**
1834
+ * Duck type if NodeJS stream
1835
+ * https://github.com/sindresorhus/is-stream/blob/3750505b0727f6df54324784fe369365ef78841e/index.js#L3
1836
+ */
1837
+ var isExtractableFileEnhanced = function (value) {
1838
+ return _public.isExtractableFile(value) ||
1839
+ (value !== null && typeof value === 'object' && typeof value.pipe === 'function');
1840
+ };
1841
+ /**
1842
+ * Returns Multipart Form if body contains files
1843
+ * (https://github.com/jaydenseric/graphql-multipart-request-spec)
1844
+ * Otherwise returns JSON
1845
+ */
1846
+ function createRequestBody(query, variables) {
1847
+ var _a = _public.extractFiles({ query: query, variables: variables }, '', isExtractableFileEnhanced), clone = _a.clone, files = _a.files;
1848
+ if (files.size === 0) {
1849
+ return JSON.stringify(clone);
1850
+ }
1851
+ var Form = typeof FormData === 'undefined' ? form_data_1.default : FormData;
1852
+ var form = new Form();
1853
+ form.append('operations', JSON.stringify(clone));
1854
+ var map = {};
1855
+ var i = 0;
1856
+ files.forEach(function (paths) {
1857
+ map[++i] = paths;
1858
+ });
1859
+ form.append('map', JSON.stringify(map));
1860
+ i = 0;
1861
+ files.forEach(function (paths, file) {
1862
+ form.append("" + ++i, file);
1863
+ });
1864
+ return form;
1865
+ }
1866
+ exports.default = createRequestBody;
1867
+
1868
+ });
1869
+
1870
+ var types = stencilHooks_module.createCommonjsModule(function (module, exports) {
1871
+ var __extends = (stencilHooks_module.commonjsGlobal && stencilHooks_module.commonjsGlobal.__extends) || (function () {
1872
+ var extendStatics = function (d, b) {
1873
+ extendStatics = Object.setPrototypeOf ||
1874
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1875
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
1876
+ return extendStatics(d, b);
1877
+ };
1878
+ return function (d, b) {
1879
+ extendStatics(d, b);
1880
+ function __() { this.constructor = d; }
1881
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1882
+ };
1883
+ })();
1884
+ Object.defineProperty(exports, "__esModule", { value: true });
1885
+ exports.ClientError = void 0;
1886
+ var ClientError = /** @class */ (function (_super) {
1887
+ __extends(ClientError, _super);
1888
+ function ClientError(response, request) {
1889
+ var _this = this;
1890
+ var message = ClientError.extractMessage(response) + ": " + JSON.stringify({
1891
+ response: response,
1892
+ request: request,
1893
+ });
1894
+ _this = _super.call(this, message) || this;
1895
+ Object.setPrototypeOf(_this, ClientError.prototype);
1896
+ _this.response = response;
1897
+ _this.request = request;
1898
+ // this is needed as Safari doesn't support .captureStackTrace
1899
+ if (typeof Error.captureStackTrace === 'function') {
1900
+ Error.captureStackTrace(_this, ClientError);
1901
+ }
1902
+ return _this;
1903
+ }
1904
+ ClientError.extractMessage = function (response) {
1905
+ try {
1906
+ return response.errors[0].message;
1907
+ }
1908
+ catch (e) {
1909
+ return "GraphQL Error (Code: " + response.status + ")";
1910
+ }
1911
+ };
1912
+ return ClientError;
1913
+ }(Error));
1914
+ exports.ClientError = ClientError;
1915
+
1916
+ });
1917
+
1918
+ var dist = stencilHooks_module.createCommonjsModule(function (module, exports) {
1919
+ var __assign = (stencilHooks_module.commonjsGlobal && stencilHooks_module.commonjsGlobal.__assign) || function () {
1920
+ __assign = Object.assign || function(t) {
1921
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
1922
+ s = arguments[i];
1923
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1924
+ t[p] = s[p];
1925
+ }
1926
+ return t;
1927
+ };
1928
+ return __assign.apply(this, arguments);
1929
+ };
1930
+ var __createBinding = (stencilHooks_module.commonjsGlobal && stencilHooks_module.commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1931
+ if (k2 === undefined) k2 = k;
1932
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
1933
+ }) : (function(o, m, k, k2) {
1934
+ if (k2 === undefined) k2 = k;
1935
+ o[k2] = m[k];
1936
+ }));
1937
+ var __setModuleDefault = (stencilHooks_module.commonjsGlobal && stencilHooks_module.commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
1938
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
1939
+ }) : function(o, v) {
1940
+ o["default"] = v;
1941
+ });
1942
+ var __importStar = (stencilHooks_module.commonjsGlobal && stencilHooks_module.commonjsGlobal.__importStar) || function (mod) {
1943
+ if (mod && mod.__esModule) return mod;
1944
+ var result = {};
1945
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1946
+ __setModuleDefault(result, mod);
1947
+ return result;
1948
+ };
1949
+ var __awaiter = (stencilHooks_module.commonjsGlobal && stencilHooks_module.commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
1950
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1951
+ return new (P || (P = Promise))(function (resolve, reject) {
1952
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1953
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1954
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1955
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
1956
+ });
1957
+ };
1958
+ var __generator = (stencilHooks_module.commonjsGlobal && stencilHooks_module.commonjsGlobal.__generator) || function (thisArg, body) {
1959
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
1960
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
1961
+ function verb(n) { return function (v) { return step([n, v]); }; }
1962
+ function step(op) {
1963
+ if (f) throw new TypeError("Generator is already executing.");
1964
+ while (_) try {
1965
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
1966
+ if (y = 0, t) op = [op[0] & 2, t.value];
1967
+ switch (op[0]) {
1968
+ case 0: case 1: t = op; break;
1969
+ case 4: _.label++; return { value: op[1], done: false };
1970
+ case 5: _.label++; y = op[1]; op = [0]; continue;
1971
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
1972
+ default:
1973
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
1974
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
1975
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
1976
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
1977
+ if (t[2]) _.ops.pop();
1978
+ _.trys.pop(); continue;
1979
+ }
1980
+ op = body.call(thisArg, _);
1981
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
1982
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
1983
+ }
1984
+ };
1985
+ var __rest = (stencilHooks_module.commonjsGlobal && stencilHooks_module.commonjsGlobal.__rest) || function (s, e) {
1986
+ var t = {};
1987
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1988
+ t[p] = s[p];
1989
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
1990
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1991
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1992
+ t[p[i]] = s[p[i]];
1993
+ }
1994
+ return t;
1995
+ };
1996
+ var __importDefault = (stencilHooks_module.commonjsGlobal && stencilHooks_module.commonjsGlobal.__importDefault) || function (mod) {
1997
+ return (mod && mod.__esModule) ? mod : { "default": mod };
1998
+ };
1999
+ Object.defineProperty(exports, "__esModule", { value: true });
2000
+ exports.gql = exports.request = exports.rawRequest = exports.GraphQLClient = exports.ClientError = void 0;
2001
+ var cross_fetch_1 = __importStar(browserPonyfill), CrossFetch = cross_fetch_1;
2002
+
2003
+ var createRequestBody_1$1 = __importDefault(createRequestBody_1);
2004
+
2005
+ var types_2 = types;
2006
+ Object.defineProperty(exports, "ClientError", { enumerable: true, get: function () { return types_2.ClientError; } });
2007
+ /**
2008
+ * Convert the given headers configuration into a plain object.
2009
+ */
2010
+ var resolveHeaders = function (headers) {
2011
+ var oHeaders = {};
2012
+ if (headers) {
2013
+ if ((typeof Headers !== 'undefined' && headers instanceof Headers) ||
2014
+ headers instanceof CrossFetch.Headers) {
2015
+ oHeaders = HeadersInstanceToPlainObject(headers);
2016
+ }
2017
+ else if (Array.isArray(headers)) {
2018
+ headers.forEach(function (_a) {
2019
+ var name = _a[0], value = _a[1];
2020
+ oHeaders[name] = value;
2021
+ });
2022
+ }
2023
+ else {
2024
+ oHeaders = headers;
2025
+ }
2026
+ }
2027
+ return oHeaders;
2028
+ };
2029
+ /**
2030
+ * todo
2031
+ */
2032
+ var GraphQLClient = /** @class */ (function () {
2033
+ function GraphQLClient(url, options) {
2034
+ this.url = url;
2035
+ this.options = options || {};
2036
+ }
2037
+ GraphQLClient.prototype.rawRequest = function (query, variables, requestHeaders) {
2038
+ return __awaiter(this, void 0, void 0, function () {
2039
+ var _a, headers, _b, localFetch, others, body, response, result, headers_1, status_1, errorResult;
2040
+ return __generator(this, function (_c) {
2041
+ switch (_c.label) {
2042
+ case 0:
2043
+ _a = this.options, headers = _a.headers, _b = _a.fetch, localFetch = _b === void 0 ? cross_fetch_1.default : _b, others = __rest(_a, ["headers", "fetch"]);
2044
+ body = createRequestBody_1$1.default(query, variables);
2045
+ return [4 /*yield*/, localFetch(this.url, __assign({ method: 'POST', headers: __assign(__assign(__assign({}, (typeof body === 'string' ? { 'Content-Type': 'application/json' } : {})), resolveHeaders(headers)), resolveHeaders(requestHeaders)), body: body }, others))];
2046
+ case 1:
2047
+ response = _c.sent();
2048
+ return [4 /*yield*/, getResult(response)];
2049
+ case 2:
2050
+ result = _c.sent();
2051
+ if (response.ok && !result.errors && result.data) {
2052
+ headers_1 = response.headers, status_1 = response.status;
2053
+ return [2 /*return*/, __assign(__assign({}, result), { headers: headers_1, status: status_1 })];
2054
+ }
2055
+ else {
2056
+ errorResult = typeof result === 'string' ? { error: result } : result;
2057
+ throw new types.ClientError(__assign(__assign({}, errorResult), { status: response.status, headers: response.headers }), { query: query, variables: variables });
2058
+ }
2059
+ }
2060
+ });
2061
+ });
2062
+ };
2063
+ /**
2064
+ * Send a GraphQL document to the server.
2065
+ */
2066
+ GraphQLClient.prototype.request = function (document, variables, requestHeaders) {
2067
+ return __awaiter(this, void 0, void 0, function () {
2068
+ var _a, headers, _b, localFetch, others, resolvedDoc, body, response, result, errorResult;
2069
+ return __generator(this, function (_c) {
2070
+ switch (_c.label) {
2071
+ case 0:
2072
+ _a = this.options, headers = _a.headers, _b = _a.fetch, localFetch = _b === void 0 ? cross_fetch_1.default : _b, others = __rest(_a, ["headers", "fetch"]);
2073
+ resolvedDoc = resolveRequestDocument(document);
2074
+ body = createRequestBody_1$1.default(resolvedDoc, variables);
2075
+ return [4 /*yield*/, localFetch(this.url, __assign({ method: 'POST', headers: __assign(__assign(__assign({}, (typeof body === 'string' ? { 'Content-Type': 'application/json' } : {})), resolveHeaders(headers)), resolveHeaders(requestHeaders)), body: body }, others))];
2076
+ case 1:
2077
+ response = _c.sent();
2078
+ return [4 /*yield*/, getResult(response)];
2079
+ case 2:
2080
+ result = _c.sent();
2081
+ if (response.ok && !result.errors && result.data) {
2082
+ return [2 /*return*/, result.data];
2083
+ }
2084
+ else {
2085
+ errorResult = typeof result === 'string' ? { error: result } : result;
2086
+ throw new types.ClientError(__assign(__assign({}, errorResult), { status: response.status }), { query: resolvedDoc, variables: variables });
2087
+ }
2088
+ }
2089
+ });
2090
+ });
2091
+ };
2092
+ GraphQLClient.prototype.setHeaders = function (headers) {
2093
+ this.options.headers = headers;
2094
+ return this;
2095
+ };
2096
+ /**
2097
+ * Attach a header to the client. All subsequent requests will have this header.
2098
+ */
2099
+ GraphQLClient.prototype.setHeader = function (key, value) {
2100
+ var _a;
2101
+ var headers = this.options.headers;
2102
+ if (headers) {
2103
+ // todo what if headers is in nested array form... ?
2104
+ //@ts-ignore
2105
+ headers[key] = value;
2106
+ }
2107
+ else {
2108
+ this.options.headers = (_a = {}, _a[key] = value, _a);
2109
+ }
2110
+ return this;
2111
+ };
2112
+ return GraphQLClient;
2113
+ }());
2114
+ exports.GraphQLClient = GraphQLClient;
2115
+ /**
2116
+ * todo
2117
+ */
2118
+ function rawRequest(url, query, variables) {
2119
+ return __awaiter(this, void 0, void 0, function () {
2120
+ var client;
2121
+ return __generator(this, function (_a) {
2122
+ client = new GraphQLClient(url);
2123
+ return [2 /*return*/, client.rawRequest(query, variables)];
2124
+ });
2125
+ });
2126
+ }
2127
+ exports.rawRequest = rawRequest;
2128
+ /**
2129
+ * Send a GraphQL Document to the GraphQL server for exectuion.
2130
+ *
2131
+ * @example
2132
+ *
2133
+ * ```ts
2134
+ * // You can pass a raw string
2135
+ *
2136
+ * await request('https://foo.bar/graphql', `
2137
+ * {
2138
+ * query {
2139
+ * users
2140
+ * }
2141
+ * }
2142
+ * `)
2143
+ *
2144
+ * // You can also pass a GraphQL DocumentNode. Convenient if you
2145
+ * // are using graphql-tag package.
2146
+ *
2147
+ * import gql from 'graphql-tag'
2148
+ *
2149
+ * await request('https://foo.bar/graphql', gql`...`)
2150
+ *
2151
+ * // If you don't actually care about using DocumentNode but just
2152
+ * // want the tooling support for gql template tag like IDE syntax
2153
+ * // coloring and prettier autoformat then note you can use the
2154
+ * // passthrough gql tag shipped with graphql-request to save a bit
2155
+ * // of performance and not have to install another dep into your project.
2156
+ *
2157
+ * import { gql } from 'graphql-request'
2158
+ *
2159
+ * await request('https://foo.bar/graphql', gql`...`)
2160
+ * ```
2161
+ */
2162
+ function request(url, document, variables) {
2163
+ return __awaiter(this, void 0, void 0, function () {
2164
+ var client;
2165
+ return __generator(this, function (_a) {
2166
+ client = new GraphQLClient(url);
2167
+ return [2 /*return*/, client.request(document, variables)];
2168
+ });
2169
+ });
2170
+ }
2171
+ exports.request = request;
2172
+ exports.default = request;
2173
+ /**
2174
+ * todo
2175
+ */
2176
+ function getResult(response) {
2177
+ var contentType = response.headers.get('Content-Type');
2178
+ if (contentType && contentType.startsWith('application/json')) {
2179
+ return response.json();
2180
+ }
2181
+ else {
2182
+ return response.text();
2183
+ }
2184
+ }
2185
+ /**
2186
+ * helpers
2187
+ */
2188
+ function resolveRequestDocument(document) {
2189
+ if (typeof document === 'string')
2190
+ return document;
2191
+ return printer.print(document);
2192
+ }
2193
+ /**
2194
+ * Convenience passthrough template tag to get the benefits of tooling for the gql template tag. This does not actually parse the input into a GraphQL DocumentNode like graphql-tag package does. It just returns the string with any variables given interpolated. Can save you a bit of performance and having to install another package.
2195
+ *
2196
+ * @example
2197
+ *
2198
+ * import { gql } from 'graphql-request'
2199
+ *
2200
+ * await request('https://foo.bar/graphql', gql`...`)
2201
+ *
2202
+ * @remarks
2203
+ *
2204
+ * Several tools in the Node GraphQL ecosystem are hardcoded to specially treat any template tag named "gql". For example see this prettier issue: https://github.com/prettier/prettier/issues/4360. Using this template tag has no runtime effect beyond variable interpolation.
2205
+ */
2206
+ function gql(chunks) {
2207
+ var variables = [];
2208
+ for (var _i = 1; _i < arguments.length; _i++) {
2209
+ variables[_i - 1] = arguments[_i];
2210
+ }
2211
+ return chunks.reduce(function (accumulator, chunk, index) { return "" + accumulator + chunk + (index in variables ? variables[index] : ''); }, '');
2212
+ }
2213
+ exports.gql = gql;
2214
+ /**
2215
+ * Convert Headers instance into regular object
2216
+ */
2217
+ function HeadersInstanceToPlainObject(headers) {
2218
+ var o = {};
2219
+ headers.forEach(function (v, k) {
2220
+ o[k] = v;
2221
+ });
2222
+ return o;
2223
+ }
2224
+
2225
+ });
2226
+
2227
+ exports.dist = dist;