@saasquatch/mint-components 1.11.0-3 → 1.11.0-6

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 (317) hide show
  1. package/dist/cjs/{ShadowViewAddon-21aa34f8.js → ShadowViewAddon-ba87315e.js} +48 -47
  2. package/dist/cjs/{global-4a59a374.js → global-0e1b8019.js} +162 -11
  3. package/dist/cjs/index-56d1fa5b.js +2227 -0
  4. package/dist/cjs/{index.module-df530553.js → index.module-2d82a984.js} +1444 -244
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/{luxon-05098e19.js → luxon-20eafbd9.js} +1 -1
  7. package/dist/cjs/mint-components.cjs.js +3 -3
  8. package/dist/cjs/{mockRewardData-4258e067.js → mockRewardData-3c470512.js} +1 -1
  9. package/dist/cjs/{re-render-1976e05e.js → re-render-7744b75a.js} +5 -5
  10. package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
  11. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +457 -456
  12. package/dist/cjs/sqm-big-stat_38.cjs.entry.js +120 -113
  13. package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
  14. package/dist/cjs/sqm-context-router.cjs.entry.js +4 -4
  15. package/dist/cjs/sqm-empty_4.cjs.entry.js +6 -6
  16. package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -7
  18. package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
  19. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
  20. package/dist/cjs/{sqm-invoice-table-view-7739a5b4.js → sqm-invoice-table-view-e75291d8.js} +1 -1
  21. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +12 -11
  22. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +10 -9
  23. package/dist/cjs/{sqm-navigation-sidebar-item-view-a125ec5f.js → sqm-navigation-sidebar-item-view-34d8941e.js} +2 -2
  24. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
  25. package/dist/cjs/{sqm-navigation-sidebar-view-c7fb69d4.js → sqm-navigation-sidebar-view-921704fb.js} +0 -6
  26. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +6 -6
  27. package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
  28. package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
  29. package/dist/cjs/{sqm-portal-email-verification-view-07161940.js → sqm-portal-email-verification-view-a056e53e.js} +1 -1
  30. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +10 -10
  31. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +7 -7
  32. package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
  33. package/dist/cjs/{sqm-portal-profile-view-07b99f80.js → sqm-portal-profile-view-c1753d1a.js} +1 -1
  34. package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -14
  35. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
  36. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +12 -11
  37. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +9 -9
  38. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +8 -8
  39. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +17 -16
  40. package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
  41. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
  42. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
  43. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +67 -66
  44. package/dist/cjs/sqm-stencilbook.cjs.entry.js +51 -50
  45. package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
  46. package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
  47. package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
  48. package/dist/cjs/{stencil-hooks.module-72742a0b.js → stencil-hooks.module-a5a04d8a.js} +1 -4
  49. package/dist/cjs/{useChildElements-e0d44916.js → useChildElements-079a23aa.js} +3 -3
  50. package/dist/cjs/{useInstantAccessRegistration-bbe746d1.js → useInstantAccessRegistration-615a4dec.js} +4 -4
  51. package/dist/cjs/{useReferralTable-a76adb0d.js → useReferralTable-034e8eb1.js} +20 -19
  52. package/dist/cjs/{useRegistrationFormState-876ed65d.js → useRegistrationFormState-cabaa291.js} +3 -3
  53. package/dist/cjs/{utilities-cec9dd36.js → utilities-a4072d5b.js} +2 -2
  54. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +6 -0
  55. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +0 -6
  56. package/dist/esm/{ShadowViewAddon-90897c22.js → ShadowViewAddon-cebdd86a.js} +22 -21
  57. package/dist/esm/{global-e7bb0343.js → global-ce667547.js} +162 -11
  58. package/dist/esm/index-0c7b14c5.js +2225 -0
  59. package/dist/esm/{index.module-def4aec5.js → index.module-cfe48b0e.js} +1426 -223
  60. package/dist/esm/loader.js +3 -3
  61. package/dist/esm/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
  62. package/dist/esm/mint-components.js +3 -3
  63. package/dist/esm/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
  64. package/dist/esm/{re-render-12fd274a.js → re-render-9f58806b.js} +5 -5
  65. package/dist/esm/sqm-asset-card.entry.js +2 -2
  66. package/dist/esm/sqm-banking-info-form_16.entry.js +65 -64
  67. package/dist/esm/sqm-big-stat_38.entry.js +69 -62
  68. package/dist/esm/sqm-close-button.entry.js +2 -2
  69. package/dist/esm/sqm-context-router.entry.js +3 -3
  70. package/dist/esm/sqm-empty_4.entry.js +3 -3
  71. package/dist/esm/sqm-form-message.entry.js +1 -1
  72. package/dist/esm/sqm-graphql-client-provider.entry.js +6 -6
  73. package/dist/esm/sqm-header-logo.entry.js +1 -1
  74. package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
  75. package/dist/esm/{sqm-invoice-table-view-fb2f95b9.js → sqm-invoice-table-view-bccf5bbc.js} +1 -1
  76. package/dist/esm/sqm-leaderboard-rank.entry.js +7 -6
  77. package/dist/esm/sqm-logout-current-user.entry.js +5 -4
  78. package/dist/esm/{sqm-navigation-sidebar-item-view-60ef06cc.js → sqm-navigation-sidebar-item-view-407d8d6a.js} +2 -2
  79. package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
  80. package/dist/esm/{sqm-navigation-sidebar-view-4e8a6a8c.js → sqm-navigation-sidebar-view-0312e073.js} +0 -6
  81. package/dist/esm/sqm-navigation-sidebar.entry.js +5 -5
  82. package/dist/esm/sqm-password-field.entry.js +3 -3
  83. package/dist/esm/sqm-popup-container.entry.js +5 -5
  84. package/dist/esm/{sqm-portal-email-verification-view-0b32261f.js → sqm-portal-email-verification-view-b8ba7573.js} +1 -1
  85. package/dist/esm/sqm-portal-email-verification.entry.js +9 -9
  86. package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
  87. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  88. package/dist/esm/{sqm-portal-profile-view-03026a5e.js → sqm-portal-profile-view-9cbfeaf9.js} +1 -1
  89. package/dist/esm/sqm-portal-profile.entry.js +9 -8
  90. package/dist/esm/sqm-portal-protected-route.entry.js +6 -6
  91. package/dist/esm/sqm-portal-registration-form.entry.js +10 -9
  92. package/dist/esm/sqm-portal-reset-password.entry.js +8 -8
  93. package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
  94. package/dist/esm/sqm-referral-table_11.entry.js +9 -8
  95. package/dist/esm/sqm-referred-registration.entry.js +5 -5
  96. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  97. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
  98. package/dist/esm/sqm-rewards-table_9.entry.js +14 -13
  99. package/dist/esm/sqm-stencilbook.entry.js +49 -48
  100. package/dist/esm/sqm-tab.entry.js +3 -3
  101. package/dist/esm/sqm-tabs.entry.js +5 -5
  102. package/dist/esm/sqm-text-span.entry.js +1 -1
  103. package/dist/esm/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
  104. package/dist/esm/{useChildElements-32e1bda1.js → useChildElements-55ba77b1.js} +3 -3
  105. package/dist/esm/{useInstantAccessRegistration-46b89952.js → useInstantAccessRegistration-c8486b92.js} +4 -4
  106. package/dist/esm/{useReferralTable-f4de0650.js → useReferralTable-1671695f.js} +11 -10
  107. package/dist/esm/{useRegistrationFormState-9fc1ac80.js → useRegistrationFormState-554eed2c.js} +3 -3
  108. package/dist/esm/{utilities-3f5bba22.js → utilities-aa00400c.js} +2 -2
  109. package/dist/esm-es5/ShadowViewAddon-cebdd86a.js +1 -0
  110. package/dist/esm-es5/global-ce667547.js +285 -0
  111. package/dist/esm-es5/index-0c7b14c5.js +1 -0
  112. package/dist/esm-es5/index.module-cfe48b0e.js +53 -0
  113. package/dist/esm-es5/loader.js +1 -1
  114. package/dist/esm-es5/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
  115. package/dist/esm-es5/mint-components.js +1 -1
  116. package/dist/esm-es5/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
  117. package/dist/esm-es5/{re-render-12fd274a.js → re-render-9f58806b.js} +1 -1
  118. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  119. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  120. package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
  121. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  122. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  123. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  124. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  125. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  126. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  127. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  128. package/dist/esm-es5/{sqm-invoice-table-view-fb2f95b9.js → sqm-invoice-table-view-bccf5bbc.js} +1 -1
  129. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  130. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  131. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-60ef06cc.js → sqm-navigation-sidebar-item-view-407d8d6a.js} +1 -1
  132. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  133. package/dist/esm-es5/sqm-navigation-sidebar-view-0312e073.js +1 -0
  134. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  135. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  136. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  137. package/dist/esm-es5/{sqm-portal-email-verification-view-0b32261f.js → sqm-portal-email-verification-view-b8ba7573.js} +1 -1
  138. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  139. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  140. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  141. package/dist/esm-es5/{sqm-portal-profile-view-03026a5e.js → sqm-portal-profile-view-9cbfeaf9.js} +1 -1
  142. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  143. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  144. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  145. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  146. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  147. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  148. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  149. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  150. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  151. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  152. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  153. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  154. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  155. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  156. package/dist/esm-es5/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
  157. package/dist/esm-es5/useChildElements-55ba77b1.js +1 -0
  158. package/dist/esm-es5/useInstantAccessRegistration-c8486b92.js +1 -0
  159. package/dist/esm-es5/useReferralTable-1671695f.js +1 -0
  160. package/dist/esm-es5/useRegistrationFormState-554eed2c.js +1 -0
  161. package/dist/esm-es5/{utilities-3f5bba22.js → utilities-aa00400c.js} +1 -1
  162. package/dist/mint-components/mint-components.esm.js +1 -1
  163. package/dist/mint-components/mint-components.js +1 -1
  164. package/dist/mint-components/{p-674a64fe.system.js → p-0034b33b.system.js} +1 -1
  165. package/dist/mint-components/{p-2a414b2e.system.js → p-0979f82e.system.js} +2 -2
  166. package/dist/mint-components/{p-d51eb656.entry.js → p-1128f16d.entry.js} +14 -14
  167. package/dist/mint-components/{p-88aac6a9.system.entry.js → p-14beec1b.system.entry.js} +1 -1
  168. package/dist/mint-components/{p-5956a47e.entry.js → p-155e5795.entry.js} +1 -1
  169. package/dist/mint-components/p-175cf117.system.entry.js +1 -0
  170. package/dist/mint-components/{p-fd2c5407.js → p-1b24bb52.js} +1 -1
  171. package/dist/mint-components/p-1bb39bf3.js +1 -0
  172. package/dist/mint-components/p-1c021084.system.js +1 -0
  173. package/dist/mint-components/p-1cb0c56c.js +1 -0
  174. package/dist/mint-components/p-22082cf5.entry.js +1 -0
  175. package/dist/mint-components/{p-4502ed11.system.entry.js → p-2669e88d.system.entry.js} +1 -1
  176. package/dist/mint-components/{p-0e556260.js → p-2a82e591.js} +1 -1
  177. package/dist/mint-components/p-2c1ec58d.system.entry.js +1 -0
  178. package/dist/mint-components/{p-573fab0f.system.js → p-2c8c2ae9.system.js} +22 -22
  179. package/dist/mint-components/p-2d713a4a.entry.js +1 -0
  180. package/dist/mint-components/{p-58ef25d3.system.entry.js → p-2f75d0c6.system.entry.js} +1 -1
  181. package/dist/mint-components/{p-5cac90e8.system.entry.js → p-349315e6.system.entry.js} +1 -1
  182. package/dist/mint-components/{p-64491c96.system.entry.js → p-37518555.system.entry.js} +1 -1
  183. package/dist/mint-components/{p-3223ba7b.entry.js → p-3912f9af.entry.js} +1 -1
  184. package/dist/mint-components/{p-f3053c61.js → p-48704504.js} +1 -1
  185. package/dist/mint-components/{p-ce5afa40.entry.js → p-4baf9ec9.entry.js} +1 -1
  186. package/dist/mint-components/p-4e5ff6d5.system.entry.js +1 -0
  187. package/dist/mint-components/p-4fd5cde2.entry.js +1 -0
  188. package/dist/mint-components/{p-e84a74fe.system.entry.js → p-5464dd3c.system.entry.js} +1 -1
  189. package/dist/mint-components/{p-dd7ee007.system.js → p-553a92e2.system.js} +1 -1
  190. package/dist/mint-components/p-55ba5de4.js +42 -0
  191. package/dist/mint-components/p-569acf5d.entry.js +1 -0
  192. package/dist/mint-components/p-58151230.system.entry.js +1 -0
  193. package/dist/mint-components/p-5a9e6c23.system.js +1 -0
  194. package/dist/mint-components/{p-dd0d79bf.entry.js → p-5c602e84.entry.js} +1 -1
  195. package/dist/mint-components/p-5e346208.system.entry.js +1 -0
  196. package/dist/mint-components/{p-a9050eb0.entry.js → p-5f4a0d5a.entry.js} +1 -1
  197. package/dist/mint-components/p-5f4cf5f4.system.js +53 -0
  198. package/dist/mint-components/p-6361cd09.system.entry.js +1 -0
  199. package/dist/mint-components/p-65976f70.system.entry.js +1 -0
  200. package/dist/mint-components/{p-3d4656bb.system.js → p-69ae3f41.system.js} +1 -1
  201. package/dist/mint-components/p-6fbfd683.js +1 -0
  202. package/dist/mint-components/{p-57e4ef5f.entry.js → p-709c0d6d.entry.js} +1 -1
  203. package/dist/mint-components/{p-86990110.entry.js → p-747e6ce6.entry.js} +1 -1
  204. package/dist/mint-components/{p-8fe21979.system.entry.js → p-74ba2bdd.system.entry.js} +1 -1
  205. package/dist/mint-components/p-77150ca3.entry.js +1 -0
  206. package/dist/mint-components/{p-fbdf0738.entry.js → p-79097c07.entry.js} +1 -1
  207. package/dist/mint-components/{p-ebcec043.entry.js → p-7a1e23b0.entry.js} +1 -1
  208. package/dist/mint-components/{p-f0806232.system.entry.js → p-7ab14d4b.system.entry.js} +1 -1
  209. package/dist/mint-components/p-81ef4d8d.system.entry.js +1 -0
  210. package/dist/mint-components/{p-41a11a7f.js → p-83a759a6.js} +1 -1
  211. package/dist/mint-components/p-84a5feb6.js +1 -0
  212. package/dist/mint-components/p-858a87ce.entry.js +1 -0
  213. package/dist/mint-components/p-89669879.system.js +1 -0
  214. package/dist/mint-components/p-8a82d287.entry.js +1 -0
  215. package/dist/mint-components/{p-7a572b34.entry.js → p-8b37f9fa.entry.js} +3 -3
  216. package/dist/mint-components/{p-d7df3dfd.system.js → p-8c616b35.system.js} +1 -1
  217. package/dist/mint-components/p-8d0312ad.entry.js +13 -0
  218. package/dist/mint-components/{p-66172a05.js → p-8d2d99b5.js} +1 -1
  219. package/dist/mint-components/{p-251e7567.js → p-9223640e.js} +1 -1
  220. package/dist/mint-components/{p-eaada4da.js → p-92990ceb.js} +1 -1
  221. package/dist/mint-components/{p-51721f6b.system.js → p-93c4b92a.system.js} +1 -1
  222. package/dist/mint-components/p-93feb565.system.entry.js +1 -0
  223. package/dist/mint-components/{p-0d8c53ac.system.js → p-94b397d0.system.js} +1 -1
  224. package/dist/mint-components/{p-6afb4f48.system.entry.js → p-95af445c.system.entry.js} +1 -1
  225. package/dist/mint-components/p-97f9ea19.system.js +1 -0
  226. package/dist/mint-components/{p-4edde470.entry.js → p-9a02b093.entry.js} +1 -1
  227. package/dist/mint-components/{p-007383e1.entry.js → p-9c1011db.entry.js} +2 -2
  228. package/dist/mint-components/{p-137ea86e.entry.js → p-a05a21b8.entry.js} +1 -1
  229. package/dist/mint-components/p-a1dddd9c.entry.js +1 -0
  230. package/dist/mint-components/{p-07f675ab.system.entry.js → p-a2189daf.system.entry.js} +1 -1
  231. package/dist/mint-components/p-a230e0f7.entry.js +1 -0
  232. package/dist/mint-components/{p-2ee2ebba.js → p-a2fc8ec6.js} +4 -4
  233. package/dist/mint-components/{p-5f1c4160.system.entry.js → p-a56fbe1f.system.entry.js} +1 -1
  234. package/dist/mint-components/p-a63607fe.js +1 -0
  235. package/dist/mint-components/{p-97198e2c.system.js → p-a6ad8082.system.js} +1 -1
  236. package/dist/mint-components/{p-9774fbc5.js → p-a7e84030.js} +153 -153
  237. package/dist/mint-components/{p-28b6106f.js → p-aa1750ad.js} +1 -1
  238. package/dist/mint-components/p-ac1bf045.js +1 -0
  239. package/dist/mint-components/{p-cf690d55.system.entry.js → p-ad218d0b.system.entry.js} +1 -1
  240. package/dist/mint-components/p-b9e629c4.entry.js +1 -0
  241. package/dist/mint-components/{p-cf158064.entry.js → p-ba9642a9.entry.js} +3 -3
  242. package/dist/mint-components/{p-4864ed8a.system.entry.js → p-bf161aff.system.entry.js} +1 -1
  243. package/dist/mint-components/p-cac64545.system.entry.js +1 -0
  244. package/dist/mint-components/{p-370a1a73.system.js → p-cb45d0a8.system.js} +1 -1
  245. package/dist/mint-components/{p-c7a3fd1b.system.js → p-cc24f7e0.system.js} +1 -1
  246. package/dist/mint-components/p-cc2a5934.entry.js +13 -0
  247. package/dist/mint-components/p-cca80c2e.system.entry.js +1 -0
  248. package/dist/mint-components/{p-178d2d2e.entry.js → p-cdd04337.entry.js} +1 -1
  249. package/dist/mint-components/{p-b12f7281.system.entry.js → p-ce23dbff.system.entry.js} +1 -1
  250. package/dist/mint-components/{p-fe5675b3.entry.js → p-cf8ccbf5.entry.js} +1 -1
  251. package/dist/mint-components/{p-fb20eb5e.system.entry.js → p-cfc4a126.system.entry.js} +1 -1
  252. package/dist/mint-components/{p-05948592.js → p-d491eac5.js} +24 -24
  253. package/dist/mint-components/{p-d1d16808.entry.js → p-d5e0b017.entry.js} +2 -2
  254. package/dist/mint-components/{p-6cef104b.entry.js → p-db7b9e12.entry.js} +1 -1
  255. package/dist/mint-components/p-dbb74fc2.system.entry.js +1 -0
  256. package/dist/mint-components/{p-8e907ac7.system.entry.js → p-de9b0bcf.system.entry.js} +1 -1
  257. package/dist/mint-components/p-e3ddb67b.system.entry.js +1 -0
  258. package/dist/mint-components/{p-ce9e7c98.system.js → p-e5299352.system.js} +1 -1
  259. package/dist/mint-components/p-e546347e.system.js +1 -0
  260. package/dist/mint-components/p-eb8cb617.system.js +1 -0
  261. package/dist/mint-components/{p-9dc3f592.entry.js → p-ec2390ee.entry.js} +10 -10
  262. package/dist/mint-components/p-ef4336c4.system.entry.js +1 -0
  263. package/dist/mint-components/{p-afd366ae.system.entry.js → p-f0553edd.system.entry.js} +1 -1
  264. package/dist/mint-components/{p-7731f793.system.entry.js → p-fd8496a0.system.entry.js} +1 -1
  265. package/dist/mint-components/p-fec47694.entry.js +1 -0
  266. package/dist/mint-components/p-ff87ca9c.system.entry.js +1 -0
  267. package/docs/docs.docx +0 -0
  268. package/docs/raisins.json +1 -1
  269. package/package.json +1 -1
  270. package/dist/esm-es5/ShadowViewAddon-90897c22.js +0 -1
  271. package/dist/esm-es5/global-e7bb0343.js +0 -285
  272. package/dist/esm-es5/index.module-def4aec5.js +0 -1
  273. package/dist/esm-es5/sqm-navigation-sidebar-view-4e8a6a8c.js +0 -1
  274. package/dist/esm-es5/useChildElements-32e1bda1.js +0 -1
  275. package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +0 -1
  276. package/dist/esm-es5/useReferralTable-f4de0650.js +0 -1
  277. package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +0 -1
  278. package/dist/mint-components/p-02424350.system.js +0 -1
  279. package/dist/mint-components/p-0b9fa97f.js +0 -1
  280. package/dist/mint-components/p-10e89d0a.entry.js +0 -1
  281. package/dist/mint-components/p-1b485560.system.entry.js +0 -1
  282. package/dist/mint-components/p-1f344065.entry.js +0 -1
  283. package/dist/mint-components/p-2dd67762.entry.js +0 -1
  284. package/dist/mint-components/p-445ffcfd.system.entry.js +0 -1
  285. package/dist/mint-components/p-51f517a2.js +0 -1
  286. package/dist/mint-components/p-55a782cf.system.entry.js +0 -1
  287. package/dist/mint-components/p-5be235f9.entry.js +0 -1
  288. package/dist/mint-components/p-5d485450.entry.js +0 -1
  289. package/dist/mint-components/p-61eab172.js +0 -1
  290. package/dist/mint-components/p-733825fa.system.entry.js +0 -1
  291. package/dist/mint-components/p-770368bc.system.js +0 -1
  292. package/dist/mint-components/p-79191f88.entry.js +0 -1
  293. package/dist/mint-components/p-8b5b78ca.entry.js +0 -1
  294. package/dist/mint-components/p-91669312.entry.js +0 -1
  295. package/dist/mint-components/p-956ed10a.entry.js +0 -13
  296. package/dist/mint-components/p-973f6501.system.entry.js +0 -1
  297. package/dist/mint-components/p-9873d3c6.js +0 -1
  298. package/dist/mint-components/p-9c310991.system.entry.js +0 -1
  299. package/dist/mint-components/p-a61e6394.system.entry.js +0 -1
  300. package/dist/mint-components/p-a6a7dcaa.js +0 -1
  301. package/dist/mint-components/p-a8f7cb95.js +0 -1
  302. package/dist/mint-components/p-aad11a68.entry.js +0 -1
  303. package/dist/mint-components/p-af062c8f.system.entry.js +0 -1
  304. package/dist/mint-components/p-b370fca8.system.js +0 -1
  305. package/dist/mint-components/p-b3b5b4b7.system.entry.js +0 -1
  306. package/dist/mint-components/p-b5861974.system.entry.js +0 -1
  307. package/dist/mint-components/p-b8dbb809.system.entry.js +0 -1
  308. package/dist/mint-components/p-bcccc284.system.js +0 -1
  309. package/dist/mint-components/p-be38de26.system.js +0 -1
  310. package/dist/mint-components/p-c0de49e7.system.entry.js +0 -1
  311. package/dist/mint-components/p-c84659a3.system.js +0 -1
  312. package/dist/mint-components/p-c8878e79.entry.js +0 -1
  313. package/dist/mint-components/p-dab544d9.entry.js +0 -1
  314. package/dist/mint-components/p-e044bbf1.system.entry.js +0 -1
  315. package/dist/mint-components/p-e5a0c50e.entry.js +0 -13
  316. package/dist/mint-components/p-eba44835.system.entry.js +0 -1
  317. package/dist/mint-components/p-f8f6c99d.system.entry.js +0 -1
@@ -1,204 +1,207 @@
1
1
  'use strict';
2
2
 
3
- const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
3
+ const index = require('./index-b0129cd6.js');
4
+ const stencilHooks_module = require('./stencil-hooks.module-a5a04d8a.js');
4
5
 
5
6
  const useCallback = (fn, inputs) => stencilHooks_module.useMemo(() => fn, inputs);
6
7
 
7
8
  function e(e){this.message=e;}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e;}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[o]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";
8
9
 
9
- const { toString, hasOwnProperty } = Object.prototype;
10
- const fnToStr = Function.prototype.toString;
11
- const previousComparisons = new Map();
12
- /**
13
- * Performs a deep equality check on two JavaScript values, tolerating cycles.
14
- */
15
- function equal(a, b) {
16
- try {
17
- return check(a, b);
18
- }
19
- finally {
20
- previousComparisons.clear();
21
- }
22
- }
23
- function check(a, b) {
24
- // If the two values are strictly equal, our job is easy.
25
- if (a === b) {
26
- return true;
27
- }
28
- // Object.prototype.toString returns a representation of the runtime type of
29
- // the given value that is considerably more precise than typeof.
30
- const aTag = toString.call(a);
31
- const bTag = toString.call(b);
32
- // If the runtime types of a and b are different, they could maybe be equal
33
- // under some interpretation of equality, but for simplicity and performance
34
- // we just return false instead.
35
- if (aTag !== bTag) {
36
- return false;
37
- }
38
- switch (aTag) {
39
- case '[object Array]':
40
- // Arrays are a lot like other objects, but we can cheaply compare their
41
- // lengths as a short-cut before comparing their elements.
42
- if (a.length !== b.length)
43
- return false;
44
- // Fall through to object case...
45
- case '[object Object]': {
46
- if (previouslyCompared(a, b))
47
- return true;
48
- const aKeys = definedKeys(a);
49
- const bKeys = definedKeys(b);
50
- // If `a` and `b` have a different number of enumerable keys, they
51
- // must be different.
52
- const keyCount = aKeys.length;
53
- if (keyCount !== bKeys.length)
54
- return false;
55
- // Now make sure they have the same keys.
56
- for (let k = 0; k < keyCount; ++k) {
57
- if (!hasOwnProperty.call(b, aKeys[k])) {
58
- return false;
59
- }
60
- }
61
- // Finally, check deep equality of all child properties.
62
- for (let k = 0; k < keyCount; ++k) {
63
- const key = aKeys[k];
64
- if (!check(a[key], b[key])) {
65
- return false;
66
- }
67
- }
68
- return true;
69
- }
70
- case '[object Error]':
71
- return a.name === b.name && a.message === b.message;
72
- case '[object Number]':
73
- // Handle NaN, which is !== itself.
74
- if (a !== a)
75
- return b !== b;
76
- // Fall through to shared +a === +b case...
77
- case '[object Boolean]':
78
- case '[object Date]':
79
- return +a === +b;
80
- case '[object RegExp]':
81
- case '[object String]':
82
- return a == `${b}`;
83
- case '[object Map]':
84
- case '[object Set]': {
85
- if (a.size !== b.size)
86
- return false;
87
- if (previouslyCompared(a, b))
88
- return true;
89
- const aIterator = a.entries();
90
- const isMap = aTag === '[object Map]';
91
- while (true) {
92
- const info = aIterator.next();
93
- if (info.done)
94
- break;
95
- // If a instanceof Set, aValue === aKey.
96
- const [aKey, aValue] = info.value;
97
- // So this works the same way for both Set and Map.
98
- if (!b.has(aKey)) {
99
- return false;
100
- }
101
- // However, we care about deep equality of values only when dealing
102
- // with Map structures.
103
- if (isMap && !check(aValue, b.get(aKey))) {
104
- return false;
105
- }
106
- }
107
- return true;
108
- }
109
- case '[object Uint16Array]':
110
- case '[object Uint8Array]': // Buffer, in Node.js.
111
- case '[object Uint32Array]':
112
- case '[object Int32Array]':
113
- case '[object Int8Array]':
114
- case '[object Int16Array]':
115
- case '[object ArrayBuffer]':
116
- // DataView doesn't need these conversions, but the equality check is
117
- // otherwise the same.
118
- a = new Uint8Array(a);
119
- b = new Uint8Array(b);
120
- // Fall through...
121
- case '[object DataView]': {
122
- let len = a.byteLength;
123
- if (len === b.byteLength) {
124
- while (len-- && a[len] === b[len]) {
125
- // Keep looping as long as the bytes are equal.
126
- }
127
- }
128
- return len === -1;
129
- }
130
- case '[object AsyncFunction]':
131
- case '[object GeneratorFunction]':
132
- case '[object AsyncGeneratorFunction]':
133
- case '[object Function]': {
134
- const aCode = fnToStr.call(a);
135
- if (aCode !== fnToStr.call(b)) {
136
- return false;
137
- }
138
- // We consider non-native functions equal if they have the same code
139
- // (native functions require === because their code is censored).
140
- // Note that this behavior is not entirely sound, since !== function
141
- // objects with the same code can behave differently depending on
142
- // their closure scope. However, any function can behave differently
143
- // depending on the values of its input arguments (including this)
144
- // and its calling context (including its closure scope), even
145
- // though the function object is === to itself; and it is entirely
146
- // possible for functions that are not === to behave exactly the
147
- // same under all conceivable circumstances. Because none of these
148
- // factors are statically decidable in JavaScript, JS function
149
- // equality is not well-defined. This ambiguity allows us to
150
- // consider the best possible heuristic among various imperfect
151
- // options, and equating non-native functions that have the same
152
- // code has enormous practical benefits, such as when comparing
153
- // functions that are repeatedly passed as fresh function
154
- // expressions within objects that are otherwise deeply equal. Since
155
- // any function created from the same syntactic expression (in the
156
- // same code location) will always stringify to the same code
157
- // according to fnToStr.call, we can reasonably expect these
158
- // repeatedly passed function expressions to have the same code, and
159
- // thus behave "the same" (with all the caveats mentioned above),
160
- // even though the runtime function objects are !== to one another.
161
- return !endsWith(aCode, nativeCodeSuffix);
162
- }
163
- }
164
- // Otherwise the values are not equal.
165
- return false;
166
- }
167
- function definedKeys(obj) {
168
- // Remember that the second argument to Array.prototype.filter will be
169
- // used as `this` within the callback function.
170
- return Object.keys(obj).filter(isDefinedKey, obj);
171
- }
172
- function isDefinedKey(key) {
173
- return this[key] !== void 0;
174
- }
175
- const nativeCodeSuffix = "{ [native code] }";
176
- function endsWith(full, suffix) {
177
- const fromIndex = full.length - suffix.length;
178
- return fromIndex >= 0 &&
179
- full.indexOf(suffix, fromIndex) === fromIndex;
180
- }
181
- function previouslyCompared(a, b) {
182
- // Though cyclic references can make an object graph appear infinite from the
183
- // perspective of a depth-first traversal, the graph still contains a finite
184
- // number of distinct object references. We use the previousComparisons cache
185
- // to avoid comparing the same pair of object references more than once, which
186
- // guarantees termination (even if we end up comparing every object in one
187
- // graph to every object in the other graph, which is extremely unlikely),
188
- // while still allowing weird isomorphic structures (like rings with different
189
- // lengths) a chance to pass the equality test.
190
- let bSet = previousComparisons.get(a);
191
- if (bSet) {
192
- // Return true here because we can be sure false will be returned somewhere
193
- // else if the objects are not equivalent.
194
- if (bSet.has(b))
195
- return true;
196
- }
197
- else {
198
- previousComparisons.set(a, bSet = new Set);
199
- }
200
- bSet.add(b);
201
- return false;
10
+ function t$1(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i);}}function n$1(n,e,i){return e&&t$1(n.prototype,e),i&&t$1(n,i),n}var s=function(){function t(t){var n=this,e=this;this._status="Initial",this.onChange=function(t,n){e.options.onChange&&e.options.onChange(t,n);},this.onConnect=function(t){try{return n.status="Connected",n.options.onChange&&n.options.onChange(t,t),Promise.resolve(new Promise(function(t){n.resolvePromise=t;}))}catch(t){return Promise.reject(t)}},this.onDisconnect=function(){e.status="Connecting",e.start();},this.options=t;}var e=t.prototype;return e.start=function(){var t=this,n=0;this.status="Connecting";var e=function(){return t.status},i=a(this.options.attempts)||10,o=function(){if("Connected"!==e()){var o=new CustomEvent(t.options.contextName,{bubbles:!0,cancelable:!0,composed:!0,detail:{onConnect:t.onConnect,onChange:t.onChange,onDisconnect:t.onDisconnect}});a(t.options.element).dispatchEvent(o),"Connected"!==e()?++n>=i&&(t._interval&&clearInterval(t._interval),t.status="Timeout"):"Connected"===e()&&t._interval&&clearInterval(t._interval);}};return (a(this.options.pollingMs)||100)>0&&i>1&&(this._interval=setInterval(o,a(this.options.pollingMs)||100)),o(),this},e.stop=function(){return this._interval&&clearInterval(this._interval),this.resolvePromise&&this.resolvePromise(),this.status="Initial",this},n$1(t,[{key:"status",set:function(t){this._status=t,this.options.onStatus&&this.options.onStatus(t);},get:function(){return this._status}}]),t}(),c=function(){function t(t){var n=this;this.__listeners=[],this.connectListener=function(t){try{t.stopPropagation(),n.__listeners=[].concat(n.__listeners,[t.detail]);var e=function(e,i){try{var o=Promise.resolve(t.detail.onConnect(n.__current)).then(function(){});}catch(t){return i(!0,t)}return o&&o.then?o.then(i.bind(null,!1),i.bind(null,!0)):i(!1,o)}(0,function(e,i){var o,r;if(n.__listeners=(r=(o=n.__listeners).indexOf(t.detail),o.slice(0,r).concat(o.slice(r+1,o.length))),e)throw i;return i});return Promise.resolve(e&&e.then?e.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},this.options=t,this.__current=a(t.initialState);}var e=t.prototype;return e.start=function(){return a(this.options.element).addEventListener(this.options.contextName,this.connectListener),this},e.stop=function(){return a(this.options.element).removeEventListener(this.options.contextName,this.connectListener),this.__listeners.map(function(t){t.onDisconnect();}),this.__listeners=[],this},n$1(t,[{key:"context",set:function(t){var n=this.__current;this.__current=t,this.__listeners.forEach(function(e){return e.onChange(t,n)});},get:function(){return a(this.__current)}},{key:"listeners",get:function(){return Object.freeze([].concat(this.__listeners))}}]),t}();function a(t){return "function"==typeof typeof t?t():t}
11
+
12
+ var _a = Object.prototype, toString = _a.toString, hasOwnProperty = _a.hasOwnProperty;
13
+ var fnToStr = Function.prototype.toString;
14
+ var previousComparisons = new Map();
15
+ /**
16
+ * Performs a deep equality check on two JavaScript values, tolerating cycles.
17
+ */
18
+ function equal(a, b) {
19
+ try {
20
+ return check(a, b);
21
+ }
22
+ finally {
23
+ previousComparisons.clear();
24
+ }
25
+ }
26
+ function check(a, b) {
27
+ // If the two values are strictly equal, our job is easy.
28
+ if (a === b) {
29
+ return true;
30
+ }
31
+ // Object.prototype.toString returns a representation of the runtime type of
32
+ // the given value that is considerably more precise than typeof.
33
+ var aTag = toString.call(a);
34
+ var bTag = toString.call(b);
35
+ // If the runtime types of a and b are different, they could maybe be equal
36
+ // under some interpretation of equality, but for simplicity and performance
37
+ // we just return false instead.
38
+ if (aTag !== bTag) {
39
+ return false;
40
+ }
41
+ switch (aTag) {
42
+ case '[object Array]':
43
+ // Arrays are a lot like other objects, but we can cheaply compare their
44
+ // lengths as a short-cut before comparing their elements.
45
+ if (a.length !== b.length)
46
+ return false;
47
+ // Fall through to object case...
48
+ case '[object Object]': {
49
+ if (previouslyCompared(a, b))
50
+ return true;
51
+ var aKeys = definedKeys(a);
52
+ var bKeys = definedKeys(b);
53
+ // If `a` and `b` have a different number of enumerable keys, they
54
+ // must be different.
55
+ var keyCount = aKeys.length;
56
+ if (keyCount !== bKeys.length)
57
+ return false;
58
+ // Now make sure they have the same keys.
59
+ for (var k = 0; k < keyCount; ++k) {
60
+ if (!hasOwnProperty.call(b, aKeys[k])) {
61
+ return false;
62
+ }
63
+ }
64
+ // Finally, check deep equality of all child properties.
65
+ for (var k = 0; k < keyCount; ++k) {
66
+ var key = aKeys[k];
67
+ if (!check(a[key], b[key])) {
68
+ return false;
69
+ }
70
+ }
71
+ return true;
72
+ }
73
+ case '[object Error]':
74
+ return a.name === b.name && a.message === b.message;
75
+ case '[object Number]':
76
+ // Handle NaN, which is !== itself.
77
+ if (a !== a)
78
+ return b !== b;
79
+ // Fall through to shared +a === +b case...
80
+ case '[object Boolean]':
81
+ case '[object Date]':
82
+ return +a === +b;
83
+ case '[object RegExp]':
84
+ case '[object String]':
85
+ return a == "" + b;
86
+ case '[object Map]':
87
+ case '[object Set]': {
88
+ if (a.size !== b.size)
89
+ return false;
90
+ if (previouslyCompared(a, b))
91
+ return true;
92
+ var aIterator = a.entries();
93
+ var isMap = aTag === '[object Map]';
94
+ while (true) {
95
+ var info = aIterator.next();
96
+ if (info.done)
97
+ break;
98
+ // If a instanceof Set, aValue === aKey.
99
+ var _a = info.value, aKey = _a[0], aValue = _a[1];
100
+ // So this works the same way for both Set and Map.
101
+ if (!b.has(aKey)) {
102
+ return false;
103
+ }
104
+ // However, we care about deep equality of values only when dealing
105
+ // with Map structures.
106
+ if (isMap && !check(aValue, b.get(aKey))) {
107
+ return false;
108
+ }
109
+ }
110
+ return true;
111
+ }
112
+ case '[object Uint16Array]':
113
+ case '[object Uint8Array]': // Buffer, in Node.js.
114
+ case '[object Uint32Array]':
115
+ case '[object Int32Array]':
116
+ case '[object Int8Array]':
117
+ case '[object Int16Array]':
118
+ case '[object ArrayBuffer]':
119
+ // DataView doesn't need these conversions, but the equality check is
120
+ // otherwise the same.
121
+ a = new Uint8Array(a);
122
+ b = new Uint8Array(b);
123
+ // Fall through...
124
+ case '[object DataView]': {
125
+ var len = a.byteLength;
126
+ if (len === b.byteLength) {
127
+ while (len-- && a[len] === b[len]) {
128
+ // Keep looping as long as the bytes are equal.
129
+ }
130
+ }
131
+ return len === -1;
132
+ }
133
+ case '[object AsyncFunction]':
134
+ case '[object GeneratorFunction]':
135
+ case '[object AsyncGeneratorFunction]':
136
+ case '[object Function]': {
137
+ var aCode = fnToStr.call(a);
138
+ if (aCode !== fnToStr.call(b)) {
139
+ return false;
140
+ }
141
+ // We consider non-native functions equal if they have the same code
142
+ // (native functions require === because their code is censored).
143
+ // Note that this behavior is not entirely sound, since !== function
144
+ // objects with the same code can behave differently depending on
145
+ // their closure scope. However, any function can behave differently
146
+ // depending on the values of its input arguments (including this)
147
+ // and its calling context (including its closure scope), even
148
+ // though the function object is === to itself; and it is entirely
149
+ // possible for functions that are not === to behave exactly the
150
+ // same under all conceivable circumstances. Because none of these
151
+ // factors are statically decidable in JavaScript, JS function
152
+ // equality is not well-defined. This ambiguity allows us to
153
+ // consider the best possible heuristic among various imperfect
154
+ // options, and equating non-native functions that have the same
155
+ // code has enormous practical benefits, such as when comparing
156
+ // functions that are repeatedly passed as fresh function
157
+ // expressions within objects that are otherwise deeply equal. Since
158
+ // any function created from the same syntactic expression (in the
159
+ // same code location) will always stringify to the same code
160
+ // according to fnToStr.call, we can reasonably expect these
161
+ // repeatedly passed function expressions to have the same code, and
162
+ // thus behave "the same" (with all the caveats mentioned above),
163
+ // even though the runtime function objects are !== to one another.
164
+ return !endsWith(aCode, nativeCodeSuffix);
165
+ }
166
+ }
167
+ // Otherwise the values are not equal.
168
+ return false;
169
+ }
170
+ function definedKeys(obj) {
171
+ // Remember that the second argument to Array.prototype.filter will be
172
+ // used as `this` within the callback function.
173
+ return Object.keys(obj).filter(isDefinedKey, obj);
174
+ }
175
+ function isDefinedKey(key) {
176
+ return this[key] !== void 0;
177
+ }
178
+ var nativeCodeSuffix = "{ [native code] }";
179
+ function endsWith(full, suffix) {
180
+ var fromIndex = full.length - suffix.length;
181
+ return fromIndex >= 0 &&
182
+ full.indexOf(suffix, fromIndex) === fromIndex;
183
+ }
184
+ function previouslyCompared(a, b) {
185
+ // Though cyclic references can make an object graph appear infinite from the
186
+ // perspective of a depth-first traversal, the graph still contains a finite
187
+ // number of distinct object references. We use the previousComparisons cache
188
+ // to avoid comparing the same pair of object references more than once, which
189
+ // guarantees termination (even if we end up comparing every object in one
190
+ // graph to every object in the other graph, which is extremely unlikely),
191
+ // while still allowing weird isomorphic structures (like rings with different
192
+ // lengths) a chance to pass the equality test.
193
+ var bSet = previousComparisons.get(a);
194
+ if (bSet) {
195
+ // Return true here because we can be sure false will be returned somewhere
196
+ // else if the objects are not equivalent.
197
+ if (bSet.has(b))
198
+ return true;
199
+ }
200
+ else {
201
+ previousComparisons.set(a, bSet = new Set);
202
+ }
203
+ bSet.add(b);
204
+ return false;
202
205
  }
203
206
 
204
207
  var __defProp = Object.defineProperty;
@@ -225,6 +228,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
225
228
  var USER_CONTEXT_NAME = "sq:user-identity";
226
229
  var LOCALE_CONTEXT_NAME = "sq:locale";
227
230
  var PROGRAM_CONTEXT_NAME = "sq:program-id";
231
+ var VERIFICATION_CONTEXT_NAME = "sq:verification";
228
232
  var DEFAULT_MEDIUM = "EMBED";
229
233
 
230
234
  // src/environment.ts
@@ -518,7 +522,7 @@ function lazilyStartLocaleContext() {
518
522
  debug3("Creating locale context provider");
519
523
  const locale = ((_a = window.widgetIdent) == null ? void 0 : _a.locale) ?? validateLocale(navigator.language.replaceAll("-", "_"));
520
524
  debug3("initializing with locale:", locale);
521
- globalProvider = new stencilHooks_module.c({
525
+ globalProvider = new c({
522
526
  element: document.documentElement,
523
527
  initialState: locale,
524
528
  contextName: LOCALE_CONTEXT_NAME
@@ -579,7 +583,7 @@ var userContextListenerDiv = (() => {
579
583
  }
580
584
  return div;
581
585
  })();
582
- var userContextListenerForLocale = new stencilHooks_module.s({
586
+ var userContextListenerForLocale = new s({
583
587
  contextName: USER_CONTEXT_NAME,
584
588
  element: userContextListenerDiv,
585
589
  onChange: async (next) => {
@@ -610,7 +614,7 @@ function lazilyStartUserContext() {
610
614
  let globalProvider = window.squatchUserIdentity;
611
615
  if (!globalProvider) {
612
616
  debug6("Creating user context provider");
613
- globalProvider = new stencilHooks_module.c({
617
+ globalProvider = new c({
614
618
  element: document.documentElement,
615
619
  initialState: _getInitialValue(),
616
620
  contextName: USER_CONTEXT_NAME
@@ -723,7 +727,7 @@ function lazilyStartProgramContext() {
723
727
  let globalProvider = window.squatchProgramId;
724
728
  if (!globalProvider) {
725
729
  debug7("Creating program context provider");
726
- globalProvider = new stencilHooks_module.c({
730
+ globalProvider = new c({
727
731
  element: document.documentElement,
728
732
  initialState: ((_a = window.widgetIdent) == null ? void 0 : _a.programId) || void 0,
729
733
  contextName: PROGRAM_CONTEXT_NAME
@@ -739,6 +743,45 @@ function setProgramId(programId) {
739
743
  globalProvider.context = programId;
740
744
  }
741
745
  }
746
+ var debug8 = (...args) => debug(VERIFICATION_CONTEXT_NAME, ...args);
747
+ function lazilyStartVerificationContext() {
748
+ let globalProvider = window.squatchVerification;
749
+ if (!globalProvider) {
750
+ globalProvider = new c({
751
+ element: document.documentElement,
752
+ initialState: void 0,
753
+ contextName: VERIFICATION_CONTEXT_NAME
754
+ }).start();
755
+ window.squatchVerification = globalProvider;
756
+ }
757
+ return globalProvider;
758
+ }
759
+ function checkVerificationToken(token) {
760
+ console.log({ token });
761
+ if (!token)
762
+ return false;
763
+ const decoded = o(token);
764
+ const isSquatchJWT = decoded.user && decoded.user.id && decoded.user.accountId;
765
+ console.log({ decoded, isSquatchJWT });
766
+ if (!isSquatchJWT)
767
+ return false;
768
+ const currentUser = getUserIdentity();
769
+ console.log({ currentUser });
770
+ if (decoded.user.id !== (currentUser == null ? void 0 : currentUser.id) || decoded.user.accountId !== (currentUser == null ? void 0 : currentUser.accountId))
771
+ return false;
772
+ return true;
773
+ }
774
+ function setVerificationContext(context) {
775
+ const globalProvider = lazilyStartVerificationContext();
776
+ if (!equal(globalProvider.context, context)) {
777
+ debug8(`Setting verification context to [${JSON.stringify(context)}]`);
778
+ globalProvider.context = context;
779
+ }
780
+ }
781
+
782
+ function t$2(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i);}}function n$2(n,e,i){return e&&t$2(n.prototype,e),i&&t$2(n,i),n}var s$1=function(){function t(t){var n=this,e=this;this._status="Initial",this.onChange=function(t,n){e.options.onChange&&e.options.onChange(t,n);},this.onConnect=function(t){try{return n.status="Connected",n.options.onChange&&n.options.onChange(t,t),Promise.resolve(new Promise(function(t){n.resolvePromise=t;}))}catch(t){return Promise.reject(t)}},this.onDisconnect=function(){e.status="Connecting",e.start();},this.options=t;}var e=t.prototype;return e.start=function(){var t=this,n=0;this.status="Connecting";var e=function(){return t.status},i=a$1(this.options.attempts)||10,o=function(){if("Connected"!==e()){var o=new CustomEvent(t.options.contextName,{bubbles:!0,cancelable:!0,composed:!0,detail:{onConnect:t.onConnect,onChange:t.onChange,onDisconnect:t.onDisconnect}});a$1(t.options.element).dispatchEvent(o),"Connected"!==e()?++n>=i&&(t._interval&&clearInterval(t._interval),t.status="Timeout"):"Connected"===e()&&t._interval&&clearInterval(t._interval);}};return (a$1(this.options.pollingMs)||100)>0&&i>1&&(this._interval=setInterval(o,a$1(this.options.pollingMs)||100)),o(),this},e.stop=function(){return this._interval&&clearInterval(this._interval),this.resolvePromise&&this.resolvePromise(),this.status="Initial",this},n$2(t,[{key:"status",set:function(t){this._status=t,this.options.onStatus&&this.options.onStatus(t);},get:function(){return this._status}}]),t}(),c$1=function(){function t(t){var n=this;this.__listeners=[],this.connectListener=function(t){try{t.stopPropagation(),n.__listeners=[].concat(n.__listeners,[t.detail]);var e=function(e,i){try{var o=Promise.resolve(t.detail.onConnect(n.__current)).then(function(){});}catch(t){return i(!0,t)}return o&&o.then?o.then(i.bind(null,!1),i.bind(null,!0)):i(!1,o)}(0,function(e,i){var o,r;if(n.__listeners=(r=(o=n.__listeners).indexOf(t.detail),o.slice(0,r).concat(o.slice(r+1,o.length))),e)throw i;return i});return Promise.resolve(e&&e.then?e.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},this.options=t,this.__current=a$1(t.initialState);}var e=t.prototype;return e.start=function(){return a$1(this.options.element).addEventListener(this.options.contextName,this.connectListener),this},e.stop=function(){return a$1(this.options.element).removeEventListener(this.options.contextName,this.connectListener),this.__listeners.map(function(t){t.onDisconnect();}),this.__listeners=[],this},n$2(t,[{key:"context",set:function(t){var n=this.__current;this.__current=t,this.__listeners.forEach(function(e){return e.onChange(t,n)});},get:function(){return a$1(this.__current)}},{key:"listeners",get:function(){return Object.freeze([].concat(this.__listeners))}}]),t}();function a$1(t){return "function"==typeof typeof t?t():t}
783
+
784
+ function c$2(){return (c$2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var u=1e3,C=60*u,l=60*C,d=24*l,f=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*C;case"seconds":case"second":case"secs":case"sec":case"s":return n*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=d?g(e,t,d,"day"):t>=l?g(e,t,l,"hour"):t>=C?g(e,t,C,"minute"):t>=u?g(e,t,u,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=d?Math.round(e/d)+"d":t>=l?Math.round(e/l)+"h":t>=C?Math.round(e/C)+"m":t>=u?Math.round(e/u)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function g(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}var p,m=(function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r));}),t.splice(o,0,n);},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug");}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=function(e){function t(e){let r,o=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date);n.diff=o-(r||o),n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,o)=>{if("%%"===r)return "%";a++;const s=t.formatters[o];return "function"==typeof s&&(r=s.call(n,e[a]),e.splice(a,1),a--),r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e);}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?t.enabled(e):o,set:e=>{o=e;}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));},t.enabled=function(e){if("*"===e[e.length-1])return !0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return !1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return !0;return !1},t.humanize=f,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(n=>{t[n]=e[n];}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(p={exports:{}},p.exports),p.exports)("useDomContext");function h(e,n,i){void 0===i&&(i={});var u=stencilHooks_module.useRef(void 0),C=stencilHooks_module.useState(void 0),l=C[0],d=C[1],f=stencilHooks_module.useMemo(function(){var r;try{(r=new s$1(c$2({contextName:n,element:e,onChange:function(e){u&&(u.current=e),d(e);}},i))).start();}catch(e){m("Listener failed to start",e);}return m("Listener initialized",r),{listener:r}},[n,u]).listener;return stencilHooks_module.useEffect(function(){return m("Listener starting (or restarting)",f),f.start(),function(){m("Listener stopping (or restopping)",f),f.stop();}},[f,e.isConnected]),l||(null==u?void 0:u.current)}function y(e,t,r){var o=stencilHooks_module.useMemo(function(){var o=new c$1({contextName:t,element:e,initialState:r});return o.start(),m("Provider initialized",o),o},[t,e]);stencilHooks_module.useEffect(function(){return m("Provider starting (or restarting)",o),o.start(),function(){m("Provider stopping (or re-stopping)",o),o.stop();}},[o,e.isConnected]);var c=stencilHooks_module.useReducer(function(e,t){var n;return m("New context value",t),n="function"==typeof t?t(o.context):t,o.context=n,o.context},o.context);return [c[0],c[1],o]}
742
785
 
743
786
  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); }
744
787
 
@@ -1492,7 +1535,6 @@ function devAssert(condition, message) {
1492
1535
  * A replacement for instanceof which includes an error warning when multi-realm
1493
1536
  * constructors are detected.
1494
1537
  */
1495
-
1496
1538
  // See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
1497
1539
  // See: https://webpack.js.org/guides/production/
1498
1540
  const instanceOf = // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
@@ -4521,6 +4563,8 @@ function hasMultilineItems(maybeArray) {
4521
4563
  return maybeArray != null && maybeArray.some(isMultiline);
4522
4564
  }
4523
4565
 
4566
+ function e$1(e){this.message=e;}e$1.prototype=new Error,e$1.prototype.name="InvalidCharacterError";var r$1="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e$1("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t$3(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r$1(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r$1(t)}}function n$3(e){this.message=e;}function o$1(e,r){if("string"!=typeof e)throw new n$3("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t$3(e.split(".")[o]))}catch(e){throw new n$3("Invalid token specified: "+e.message)}}n$3.prototype=new Error,n$3.prototype.name="InvalidTokenError";
4567
+
4524
4568
  //
4525
4569
  // Main
4526
4570
  //
@@ -4667,11 +4711,6 @@ var strategies = {
4667
4711
  };
4668
4712
  src.strategies = strategies;
4669
4713
 
4670
- const memoize$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), src, {
4671
- 'default': src,
4672
- strategies: strategies
4673
- }));
4674
-
4675
4714
  var utils = stencilHooks_module.createCommonjsModule(function (module, exports) {
4676
4715
  var __assign = (stencilHooks_module.commonjsGlobal && stencilHooks_module.commonjsGlobal.__assign) || function () {
4677
4716
  __assign = Object.assign || function(t) {
@@ -4918,18 +4957,17 @@ exports.default = combinedQuery;
4918
4957
 
4919
4958
  });
4920
4959
 
4921
- const M = /*@__PURE__*/stencilHooks_module.getDefaultExportFromCjs(dist);
4960
+ const k = /*@__PURE__*/stencilHooks_module.getDefaultExportFromCjs(dist);
4922
4961
 
4923
4962
  var browserPonyfill = stencilHooks_module.createCommonjsModule(function (module, exports) {
4924
- var global = typeof self !== 'undefined' ? self : stencilHooks_module.commonjsGlobal;
4925
- var __self__ = (function () {
4963
+ var __self__ = (function (root) {
4926
4964
  function F() {
4927
4965
  this.fetch = false;
4928
- this.DOMException = global.DOMException;
4966
+ this.DOMException = root.DOMException;
4929
4967
  }
4930
- F.prototype = global;
4968
+ F.prototype = root;
4931
4969
  return new F();
4932
- })();
4970
+ })(typeof self !== 'undefined' ? self : stencilHooks_module.commonjsGlobal);
4933
4971
  (function(self) {
4934
4972
 
4935
4973
  var irrelevant = (function (exports) {
@@ -5456,24 +5494,17 @@ var irrelevant = (function (exports) {
5456
5494
  exports.Response = Response;
5457
5495
  exports.fetch = fetch;
5458
5496
 
5459
- Object.defineProperty(exports, '__esModule', { value: true });
5460
-
5461
5497
  return exports;
5462
5498
 
5463
- })({});
5499
+ }({}));
5464
5500
  })(__self__);
5465
- __self__.fetch.ponyfill = true;
5466
- // Remove "polyfill" property added by whatwg-fetch
5467
5501
  delete __self__.fetch.polyfill;
5468
- // Choose between native implementation (global) or custom implementation (__self__)
5469
- // var ctx = global.fetch ? global : __self__;
5470
- var ctx = __self__; // this line disable service worker support temporarily
5471
- exports = ctx.fetch; // To enable: import fetch from 'cross-fetch'
5472
- exports.default = ctx.fetch; // For TypeScript consumers without esModuleInterop.
5473
- exports.fetch = ctx.fetch; // To enable: import {fetch} from 'cross-fetch'
5474
- exports.Headers = ctx.Headers;
5475
- exports.Request = ctx.Request;
5476
- exports.Response = ctx.Response;
5502
+ exports = __self__.fetch; // To enable: import fetch from 'cross-fetch'
5503
+ exports.default = __self__.fetch; // For TypeScript consumers without esModuleInterop.
5504
+ exports.fetch = __self__.fetch; // To enable: import {fetch} from 'cross-fetch'
5505
+ exports.Headers = __self__.Headers;
5506
+ exports.Request = __self__.Request;
5507
+ exports.Response = __self__.Response;
5477
5508
  module.exports = exports;
5478
5509
  });
5479
5510
 
@@ -8200,6 +8231,1178 @@ function dispatchBufferClose(arg) {
8200
8231
  subscriber.closeContext(context);
8201
8232
  }
8202
8233
 
8234
+ var _a$1 = Object.prototype, toString$1 = _a$1.toString, hasOwnProperty$1 = _a$1.hasOwnProperty;
8235
+ var fnToStr$1 = Function.prototype.toString;
8236
+ var previousComparisons$1 = new Map();
8237
+ /**
8238
+ * Performs a deep equality check on two JavaScript values, tolerating cycles.
8239
+ */
8240
+ function equal$1(a, b) {
8241
+ try {
8242
+ return check$1(a, b);
8243
+ }
8244
+ finally {
8245
+ previousComparisons$1.clear();
8246
+ }
8247
+ }
8248
+ function check$1(a, b) {
8249
+ // If the two values are strictly equal, our job is easy.
8250
+ if (a === b) {
8251
+ return true;
8252
+ }
8253
+ // Object.prototype.toString returns a representation of the runtime type of
8254
+ // the given value that is considerably more precise than typeof.
8255
+ var aTag = toString$1.call(a);
8256
+ var bTag = toString$1.call(b);
8257
+ // If the runtime types of a and b are different, they could maybe be equal
8258
+ // under some interpretation of equality, but for simplicity and performance
8259
+ // we just return false instead.
8260
+ if (aTag !== bTag) {
8261
+ return false;
8262
+ }
8263
+ switch (aTag) {
8264
+ case '[object Array]':
8265
+ // Arrays are a lot like other objects, but we can cheaply compare their
8266
+ // lengths as a short-cut before comparing their elements.
8267
+ if (a.length !== b.length)
8268
+ return false;
8269
+ // Fall through to object case...
8270
+ case '[object Object]': {
8271
+ if (previouslyCompared$1(a, b))
8272
+ return true;
8273
+ var aKeys = definedKeys$1(a);
8274
+ var bKeys = definedKeys$1(b);
8275
+ // If `a` and `b` have a different number of enumerable keys, they
8276
+ // must be different.
8277
+ var keyCount = aKeys.length;
8278
+ if (keyCount !== bKeys.length)
8279
+ return false;
8280
+ // Now make sure they have the same keys.
8281
+ for (var k = 0; k < keyCount; ++k) {
8282
+ if (!hasOwnProperty$1.call(b, aKeys[k])) {
8283
+ return false;
8284
+ }
8285
+ }
8286
+ // Finally, check deep equality of all child properties.
8287
+ for (var k = 0; k < keyCount; ++k) {
8288
+ var key = aKeys[k];
8289
+ if (!check$1(a[key], b[key])) {
8290
+ return false;
8291
+ }
8292
+ }
8293
+ return true;
8294
+ }
8295
+ case '[object Error]':
8296
+ return a.name === b.name && a.message === b.message;
8297
+ case '[object Number]':
8298
+ // Handle NaN, which is !== itself.
8299
+ if (a !== a)
8300
+ return b !== b;
8301
+ // Fall through to shared +a === +b case...
8302
+ case '[object Boolean]':
8303
+ case '[object Date]':
8304
+ return +a === +b;
8305
+ case '[object RegExp]':
8306
+ case '[object String]':
8307
+ return a == "" + b;
8308
+ case '[object Map]':
8309
+ case '[object Set]': {
8310
+ if (a.size !== b.size)
8311
+ return false;
8312
+ if (previouslyCompared$1(a, b))
8313
+ return true;
8314
+ var aIterator = a.entries();
8315
+ var isMap = aTag === '[object Map]';
8316
+ while (true) {
8317
+ var info = aIterator.next();
8318
+ if (info.done)
8319
+ break;
8320
+ // If a instanceof Set, aValue === aKey.
8321
+ var _a = info.value, aKey = _a[0], aValue = _a[1];
8322
+ // So this works the same way for both Set and Map.
8323
+ if (!b.has(aKey)) {
8324
+ return false;
8325
+ }
8326
+ // However, we care about deep equality of values only when dealing
8327
+ // with Map structures.
8328
+ if (isMap && !check$1(aValue, b.get(aKey))) {
8329
+ return false;
8330
+ }
8331
+ }
8332
+ return true;
8333
+ }
8334
+ case '[object Uint16Array]':
8335
+ case '[object Uint8Array]': // Buffer, in Node.js.
8336
+ case '[object Uint32Array]':
8337
+ case '[object Int32Array]':
8338
+ case '[object Int8Array]':
8339
+ case '[object Int16Array]':
8340
+ case '[object ArrayBuffer]':
8341
+ // DataView doesn't need these conversions, but the equality check is
8342
+ // otherwise the same.
8343
+ a = new Uint8Array(a);
8344
+ b = new Uint8Array(b);
8345
+ // Fall through...
8346
+ case '[object DataView]': {
8347
+ var len = a.byteLength;
8348
+ if (len === b.byteLength) {
8349
+ while (len-- && a[len] === b[len]) {
8350
+ // Keep looping as long as the bytes are equal.
8351
+ }
8352
+ }
8353
+ return len === -1;
8354
+ }
8355
+ case '[object AsyncFunction]':
8356
+ case '[object GeneratorFunction]':
8357
+ case '[object AsyncGeneratorFunction]':
8358
+ case '[object Function]': {
8359
+ var aCode = fnToStr$1.call(a);
8360
+ if (aCode !== fnToStr$1.call(b)) {
8361
+ return false;
8362
+ }
8363
+ // We consider non-native functions equal if they have the same code
8364
+ // (native functions require === because their code is censored).
8365
+ // Note that this behavior is not entirely sound, since !== function
8366
+ // objects with the same code can behave differently depending on
8367
+ // their closure scope. However, any function can behave differently
8368
+ // depending on the values of its input arguments (including this)
8369
+ // and its calling context (including its closure scope), even
8370
+ // though the function object is === to itself; and it is entirely
8371
+ // possible for functions that are not === to behave exactly the
8372
+ // same under all conceivable circumstances. Because none of these
8373
+ // factors are statically decidable in JavaScript, JS function
8374
+ // equality is not well-defined. This ambiguity allows us to
8375
+ // consider the best possible heuristic among various imperfect
8376
+ // options, and equating non-native functions that have the same
8377
+ // code has enormous practical benefits, such as when comparing
8378
+ // functions that are repeatedly passed as fresh function
8379
+ // expressions within objects that are otherwise deeply equal. Since
8380
+ // any function created from the same syntactic expression (in the
8381
+ // same code location) will always stringify to the same code
8382
+ // according to fnToStr.call, we can reasonably expect these
8383
+ // repeatedly passed function expressions to have the same code, and
8384
+ // thus behave "the same" (with all the caveats mentioned above),
8385
+ // even though the runtime function objects are !== to one another.
8386
+ return !endsWith$1(aCode, nativeCodeSuffix$1);
8387
+ }
8388
+ }
8389
+ // Otherwise the values are not equal.
8390
+ return false;
8391
+ }
8392
+ function definedKeys$1(obj) {
8393
+ // Remember that the second argument to Array.prototype.filter will be
8394
+ // used as `this` within the callback function.
8395
+ return Object.keys(obj).filter(isDefinedKey$1, obj);
8396
+ }
8397
+ function isDefinedKey$1(key) {
8398
+ return this[key] !== void 0;
8399
+ }
8400
+ var nativeCodeSuffix$1 = "{ [native code] }";
8401
+ function endsWith$1(full, suffix) {
8402
+ var fromIndex = full.length - suffix.length;
8403
+ return fromIndex >= 0 &&
8404
+ full.indexOf(suffix, fromIndex) === fromIndex;
8405
+ }
8406
+ function previouslyCompared$1(a, b) {
8407
+ // Though cyclic references can make an object graph appear infinite from the
8408
+ // perspective of a depth-first traversal, the graph still contains a finite
8409
+ // number of distinct object references. We use the previousComparisons cache
8410
+ // to avoid comparing the same pair of object references more than once, which
8411
+ // guarantees termination (even if we end up comparing every object in one
8412
+ // graph to every object in the other graph, which is extremely unlikely),
8413
+ // while still allowing weird isomorphic structures (like rings with different
8414
+ // lengths) a chance to pass the equality test.
8415
+ var bSet = previousComparisons$1.get(a);
8416
+ if (bSet) {
8417
+ // Return true here because we can be sure false will be returned somewhere
8418
+ // else if the objects are not equivalent.
8419
+ if (bSet.has(b))
8420
+ return true;
8421
+ }
8422
+ else {
8423
+ previousComparisons$1.set(a, bSet = new Set);
8424
+ }
8425
+ bSet.add(b);
8426
+ return false;
8427
+ }
8428
+
8429
+ /**
8430
+ * @license
8431
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8432
+ * This code may only be used under the BSD style license found at
8433
+ * http://polymer.github.io/LICENSE.txt
8434
+ * The complete set of authors may be found at
8435
+ * http://polymer.github.io/AUTHORS.txt
8436
+ * The complete set of contributors may be found at
8437
+ * http://polymer.github.io/CONTRIBUTORS.txt
8438
+ * Code distributed by Google as part of the polymer project is also
8439
+ * subject to an additional IP rights grant found at
8440
+ * http://polymer.github.io/PATENTS.txt
8441
+ */
8442
+ /**
8443
+ * An expression marker with embedded unique key to avoid collision with
8444
+ * possible text in templates.
8445
+ */
8446
+ const marker = `{{lit-${String(Math.random()).slice(2)}}}`;
8447
+
8448
+ /**
8449
+ * @license
8450
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8451
+ * This code may only be used under the BSD style license found at
8452
+ * http://polymer.github.io/LICENSE.txt
8453
+ * The complete set of authors may be found at
8454
+ * http://polymer.github.io/AUTHORS.txt
8455
+ * The complete set of contributors may be found at
8456
+ * http://polymer.github.io/CONTRIBUTORS.txt
8457
+ * Code distributed by Google as part of the polymer project is also
8458
+ * subject to an additional IP rights grant found at
8459
+ * http://polymer.github.io/PATENTS.txt
8460
+ */
8461
+ /**
8462
+ * Our TrustedTypePolicy for HTML which is declared using the html template
8463
+ * tag function.
8464
+ *
8465
+ * That HTML is a developer-authored constant, and is parsed with innerHTML
8466
+ * before any untrusted expressions have been mixed in. Therefor it is
8467
+ * considered safe by construction.
8468
+ */
8469
+ const policy = window.trustedTypes &&
8470
+ trustedTypes.createPolicy('lit-html', { createHTML: (s) => s });
8471
+
8472
+ /**
8473
+ * @license
8474
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8475
+ * This code may only be used under the BSD style license found at
8476
+ * http://polymer.github.io/LICENSE.txt
8477
+ * The complete set of authors may be found at
8478
+ * http://polymer.github.io/AUTHORS.txt
8479
+ * The complete set of contributors may be found at
8480
+ * http://polymer.github.io/CONTRIBUTORS.txt
8481
+ * Code distributed by Google as part of the polymer project is also
8482
+ * subject to an additional IP rights grant found at
8483
+ * http://polymer.github.io/PATENTS.txt
8484
+ */
8485
+ // Wrap into an IIFE because MS Edge <= v41 does not support having try/catch
8486
+ // blocks right into the body of a module
8487
+ (() => {
8488
+ try {
8489
+ const options = {
8490
+ get capture() {
8491
+ return false;
8492
+ }
8493
+ };
8494
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
8495
+ window.addEventListener('test', options, options);
8496
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
8497
+ window.removeEventListener('test', options, options);
8498
+ }
8499
+ catch (_e) {
8500
+ // event options not supported
8501
+ }
8502
+ })();
8503
+
8504
+ /**
8505
+ * @license
8506
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8507
+ * This code may only be used under the BSD style license found at
8508
+ * http://polymer.github.io/LICENSE.txt
8509
+ * The complete set of authors may be found at
8510
+ * http://polymer.github.io/AUTHORS.txt
8511
+ * The complete set of contributors may be found at
8512
+ * http://polymer.github.io/CONTRIBUTORS.txt
8513
+ * Code distributed by Google as part of the polymer project is also
8514
+ * subject to an additional IP rights grant found at
8515
+ * http://polymer.github.io/PATENTS.txt
8516
+ */
8517
+ // IMPORTANT: do not change the property name or the assignment expression.
8518
+ // This line will be used in regexes to search for lit-html usage.
8519
+ // TODO(justinfagnani): inject version number at build time
8520
+ if (typeof window !== 'undefined') {
8521
+ (window['litHtmlVersions'] || (window['litHtmlVersions'] = [])).push('1.4.1');
8522
+ }
8523
+
8524
+ let current;
8525
+ let currentId = 0;
8526
+ function notify() {
8527
+ return currentId++;
8528
+ }
8529
+
8530
+ const hookSymbol = Symbol('haunted.hook');
8531
+ const effectsSymbol = Symbol('haunted.effects');
8532
+ const layoutEffectsSymbol = Symbol('haunted.layoutEffects');
8533
+ const contextEvent = 'haunted.context';
8534
+
8535
+ const defer = Promise.resolve().then.bind(Promise.resolve());
8536
+
8537
+ class Hook {
8538
+ constructor(id, state) {
8539
+ this.id = id;
8540
+ this.state = state;
8541
+ }
8542
+ }
8543
+ function use(Hook, ...args) {
8544
+ let id = notify();
8545
+ let hooks = current[hookSymbol];
8546
+ let hook = hooks.get(id);
8547
+ if (!hook) {
8548
+ hook = new Hook(id, current, ...args);
8549
+ hooks.set(id, hook);
8550
+ }
8551
+ return hook.update(...args);
8552
+ }
8553
+ function hook(Hook) {
8554
+ return use.bind(null, Hook);
8555
+ }
8556
+
8557
+ function createEffect(setEffects) {
8558
+ return hook(class extends Hook {
8559
+ constructor(id, state, ignored1, ignored2) {
8560
+ super(id, state);
8561
+ setEffects(state, this);
8562
+ }
8563
+ update(callback, values) {
8564
+ this.callback = callback;
8565
+ this.values = values;
8566
+ }
8567
+ call() {
8568
+ if (!this.values || this.hasChanged()) {
8569
+ this.run();
8570
+ }
8571
+ this.lastValues = this.values;
8572
+ }
8573
+ run() {
8574
+ this.teardown();
8575
+ this._teardown = this.callback.call(this.state);
8576
+ }
8577
+ teardown() {
8578
+ if (typeof this._teardown === 'function') {
8579
+ this._teardown();
8580
+ }
8581
+ }
8582
+ hasChanged() {
8583
+ return !this.lastValues || this.values.some((value, i) => this.lastValues[i] !== value);
8584
+ }
8585
+ });
8586
+ }
8587
+
8588
+ function setEffects(state, cb) {
8589
+ state[effectsSymbol].push(cb);
8590
+ }
8591
+ const useEffect = createEffect(setEffects);
8592
+
8593
+ const useContext = hook(class extends Hook {
8594
+ constructor(id, state, _) {
8595
+ super(id, state);
8596
+ this._updater = this._updater.bind(this);
8597
+ this._ranEffect = false;
8598
+ this._unsubscribe = null;
8599
+ setEffects(state, this);
8600
+ }
8601
+ update(Context) {
8602
+ if (this.state.virtual) {
8603
+ throw new Error('can\'t be used with virtual components');
8604
+ }
8605
+ if (this.Context !== Context) {
8606
+ this._subscribe(Context);
8607
+ this.Context = Context;
8608
+ }
8609
+ return this.value;
8610
+ }
8611
+ call() {
8612
+ if (!this._ranEffect) {
8613
+ this._ranEffect = true;
8614
+ if (this._unsubscribe)
8615
+ this._unsubscribe();
8616
+ this._subscribe(this.Context);
8617
+ this.state.update();
8618
+ }
8619
+ }
8620
+ _updater(value) {
8621
+ this.value = value;
8622
+ this.state.update();
8623
+ }
8624
+ _subscribe(Context) {
8625
+ const detail = { Context, callback: this._updater };
8626
+ this.state.host.dispatchEvent(new CustomEvent(contextEvent, {
8627
+ detail,
8628
+ bubbles: true,
8629
+ cancelable: true,
8630
+ composed: true,
8631
+ }));
8632
+ const { unsubscribe = null, value } = detail;
8633
+ this.value = unsubscribe ? value : Context.defaultValue;
8634
+ this._unsubscribe = unsubscribe;
8635
+ }
8636
+ teardown() {
8637
+ if (this._unsubscribe) {
8638
+ this._unsubscribe();
8639
+ }
8640
+ }
8641
+ });
8642
+
8643
+ const useMemo = hook(class extends Hook {
8644
+ constructor(id, state, fn, values) {
8645
+ super(id, state);
8646
+ this.value = fn();
8647
+ this.values = values;
8648
+ }
8649
+ update(fn, values) {
8650
+ if (this.hasChanged(values)) {
8651
+ this.values = values;
8652
+ this.value = fn();
8653
+ }
8654
+ return this.value;
8655
+ }
8656
+ hasChanged(values = []) {
8657
+ return values.some((value, i) => this.values[i] !== value);
8658
+ }
8659
+ });
8660
+
8661
+ function setLayoutEffects(state, cb) {
8662
+ state[layoutEffectsSymbol].push(cb);
8663
+ }
8664
+ const useLayoutEffect = createEffect(setLayoutEffects);
8665
+
8666
+ const useState = hook(class extends Hook {
8667
+ constructor(id, state, initialValue) {
8668
+ super(id, state);
8669
+ this.updater = this.updater.bind(this);
8670
+ if (typeof initialValue === 'function') {
8671
+ initialValue = initialValue();
8672
+ }
8673
+ this.makeArgs(initialValue);
8674
+ }
8675
+ update() {
8676
+ return this.args;
8677
+ }
8678
+ updater(value) {
8679
+ if (typeof value === 'function') {
8680
+ const updaterFn = value;
8681
+ const [previousValue] = this.args;
8682
+ value = updaterFn(previousValue);
8683
+ }
8684
+ this.makeArgs(value);
8685
+ this.state.update();
8686
+ }
8687
+ makeArgs(value) {
8688
+ this.args = Object.freeze([value, this.updater]);
8689
+ }
8690
+ });
8691
+
8692
+ const useReducer = hook(class extends Hook {
8693
+ constructor(id, state, _, initialState, init) {
8694
+ super(id, state);
8695
+ this.dispatch = this.dispatch.bind(this);
8696
+ this.currentState = init !== undefined ? init(initialState) : initialState;
8697
+ }
8698
+ update(reducer) {
8699
+ this.reducer = reducer;
8700
+ return [this.currentState, this.dispatch];
8701
+ }
8702
+ dispatch(action) {
8703
+ this.currentState = this.reducer(this.currentState, action);
8704
+ this.state.update();
8705
+ }
8706
+ });
8707
+
8708
+ /**
8709
+ * Helpers.
8710
+ */
8711
+
8712
+ var s$2 = 1000;
8713
+ var m$1 = s$2 * 60;
8714
+ var h$1 = m$1 * 60;
8715
+ var d$1 = h$1 * 24;
8716
+ var w = d$1 * 7;
8717
+ var y$1 = d$1 * 365.25;
8718
+
8719
+ /**
8720
+ * Parse or format the given `val`.
8721
+ *
8722
+ * Options:
8723
+ *
8724
+ * - `long` verbose formatting [false]
8725
+ *
8726
+ * @param {String|Number} val
8727
+ * @param {Object} [options]
8728
+ * @throws {Error} throw an error if val is not a non-empty string or a number
8729
+ * @return {String|Number}
8730
+ * @api public
8731
+ */
8732
+
8733
+ var ms = function(val, options) {
8734
+ options = options || {};
8735
+ var type = typeof val;
8736
+ if (type === 'string' && val.length > 0) {
8737
+ return parse$1(val);
8738
+ } else if (type === 'number' && isFinite(val)) {
8739
+ return options.long ? fmtLong(val) : fmtShort(val);
8740
+ }
8741
+ throw new Error(
8742
+ 'val is not a non-empty string or a valid number. val=' +
8743
+ JSON.stringify(val)
8744
+ );
8745
+ };
8746
+
8747
+ /**
8748
+ * Parse the given `str` and return milliseconds.
8749
+ *
8750
+ * @param {String} str
8751
+ * @return {Number}
8752
+ * @api private
8753
+ */
8754
+
8755
+ function parse$1(str) {
8756
+ str = String(str);
8757
+ if (str.length > 100) {
8758
+ return;
8759
+ }
8760
+ var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
8761
+ str
8762
+ );
8763
+ if (!match) {
8764
+ return;
8765
+ }
8766
+ var n = parseFloat(match[1]);
8767
+ var type = (match[2] || 'ms').toLowerCase();
8768
+ switch (type) {
8769
+ case 'years':
8770
+ case 'year':
8771
+ case 'yrs':
8772
+ case 'yr':
8773
+ case 'y':
8774
+ return n * y$1;
8775
+ case 'weeks':
8776
+ case 'week':
8777
+ case 'w':
8778
+ return n * w;
8779
+ case 'days':
8780
+ case 'day':
8781
+ case 'd':
8782
+ return n * d$1;
8783
+ case 'hours':
8784
+ case 'hour':
8785
+ case 'hrs':
8786
+ case 'hr':
8787
+ case 'h':
8788
+ return n * h$1;
8789
+ case 'minutes':
8790
+ case 'minute':
8791
+ case 'mins':
8792
+ case 'min':
8793
+ case 'm':
8794
+ return n * m$1;
8795
+ case 'seconds':
8796
+ case 'second':
8797
+ case 'secs':
8798
+ case 'sec':
8799
+ case 's':
8800
+ return n * s$2;
8801
+ case 'milliseconds':
8802
+ case 'millisecond':
8803
+ case 'msecs':
8804
+ case 'msec':
8805
+ case 'ms':
8806
+ return n;
8807
+ default:
8808
+ return undefined;
8809
+ }
8810
+ }
8811
+
8812
+ /**
8813
+ * Short format for `ms`.
8814
+ *
8815
+ * @param {Number} ms
8816
+ * @return {String}
8817
+ * @api private
8818
+ */
8819
+
8820
+ function fmtShort(ms) {
8821
+ var msAbs = Math.abs(ms);
8822
+ if (msAbs >= d$1) {
8823
+ return Math.round(ms / d$1) + 'd';
8824
+ }
8825
+ if (msAbs >= h$1) {
8826
+ return Math.round(ms / h$1) + 'h';
8827
+ }
8828
+ if (msAbs >= m$1) {
8829
+ return Math.round(ms / m$1) + 'm';
8830
+ }
8831
+ if (msAbs >= s$2) {
8832
+ return Math.round(ms / s$2) + 's';
8833
+ }
8834
+ return ms + 'ms';
8835
+ }
8836
+
8837
+ /**
8838
+ * Long format for `ms`.
8839
+ *
8840
+ * @param {Number} ms
8841
+ * @return {String}
8842
+ * @api private
8843
+ */
8844
+
8845
+ function fmtLong(ms) {
8846
+ var msAbs = Math.abs(ms);
8847
+ if (msAbs >= d$1) {
8848
+ return plural(ms, msAbs, d$1, 'day');
8849
+ }
8850
+ if (msAbs >= h$1) {
8851
+ return plural(ms, msAbs, h$1, 'hour');
8852
+ }
8853
+ if (msAbs >= m$1) {
8854
+ return plural(ms, msAbs, m$1, 'minute');
8855
+ }
8856
+ if (msAbs >= s$2) {
8857
+ return plural(ms, msAbs, s$2, 'second');
8858
+ }
8859
+ return ms + ' ms';
8860
+ }
8861
+
8862
+ /**
8863
+ * Pluralization helper.
8864
+ */
8865
+
8866
+ function plural(ms, msAbs, n, name) {
8867
+ var isPlural = msAbs >= n * 1.5;
8868
+ return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
8869
+ }
8870
+
8871
+ /**
8872
+ * This is the common logic for both the Node.js and web browser
8873
+ * implementations of `debug()`.
8874
+ */
8875
+
8876
+ function setup(env) {
8877
+ createDebug.debug = createDebug;
8878
+ createDebug.default = createDebug;
8879
+ createDebug.coerce = coerce;
8880
+ createDebug.disable = disable;
8881
+ createDebug.enable = enable;
8882
+ createDebug.enabled = enabled;
8883
+ createDebug.humanize = ms;
8884
+ createDebug.destroy = destroy;
8885
+
8886
+ Object.keys(env).forEach(key => {
8887
+ createDebug[key] = env[key];
8888
+ });
8889
+
8890
+ /**
8891
+ * The currently active debug mode names, and names to skip.
8892
+ */
8893
+
8894
+ createDebug.names = [];
8895
+ createDebug.skips = [];
8896
+
8897
+ /**
8898
+ * Map of special "%n" handling functions, for the debug "format" argument.
8899
+ *
8900
+ * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
8901
+ */
8902
+ createDebug.formatters = {};
8903
+
8904
+ /**
8905
+ * Selects a color for a debug namespace
8906
+ * @param {String} namespace The namespace string for the for the debug instance to be colored
8907
+ * @return {Number|String} An ANSI color code for the given namespace
8908
+ * @api private
8909
+ */
8910
+ function selectColor(namespace) {
8911
+ let hash = 0;
8912
+
8913
+ for (let i = 0; i < namespace.length; i++) {
8914
+ hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
8915
+ hash |= 0; // Convert to 32bit integer
8916
+ }
8917
+
8918
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
8919
+ }
8920
+ createDebug.selectColor = selectColor;
8921
+
8922
+ /**
8923
+ * Create a debugger with the given `namespace`.
8924
+ *
8925
+ * @param {String} namespace
8926
+ * @return {Function}
8927
+ * @api public
8928
+ */
8929
+ function createDebug(namespace) {
8930
+ let prevTime;
8931
+ let enableOverride = null;
8932
+
8933
+ function debug(...args) {
8934
+ // Disabled?
8935
+ if (!debug.enabled) {
8936
+ return;
8937
+ }
8938
+
8939
+ const self = debug;
8940
+
8941
+ // Set `diff` timestamp
8942
+ const curr = Number(new Date());
8943
+ const ms = curr - (prevTime || curr);
8944
+ self.diff = ms;
8945
+ self.prev = prevTime;
8946
+ self.curr = curr;
8947
+ prevTime = curr;
8948
+
8949
+ args[0] = createDebug.coerce(args[0]);
8950
+
8951
+ if (typeof args[0] !== 'string') {
8952
+ // Anything else let's inspect with %O
8953
+ args.unshift('%O');
8954
+ }
8955
+
8956
+ // Apply any `formatters` transformations
8957
+ let index = 0;
8958
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
8959
+ // If we encounter an escaped % then don't increase the array index
8960
+ if (match === '%%') {
8961
+ return '%';
8962
+ }
8963
+ index++;
8964
+ const formatter = createDebug.formatters[format];
8965
+ if (typeof formatter === 'function') {
8966
+ const val = args[index];
8967
+ match = formatter.call(self, val);
8968
+
8969
+ // Now we need to remove `args[index]` since it's inlined in the `format`
8970
+ args.splice(index, 1);
8971
+ index--;
8972
+ }
8973
+ return match;
8974
+ });
8975
+
8976
+ // Apply env-specific formatting (colors, etc.)
8977
+ createDebug.formatArgs.call(self, args);
8978
+
8979
+ const logFn = self.log || createDebug.log;
8980
+ logFn.apply(self, args);
8981
+ }
8982
+
8983
+ debug.namespace = namespace;
8984
+ debug.useColors = createDebug.useColors();
8985
+ debug.color = createDebug.selectColor(namespace);
8986
+ debug.extend = extend;
8987
+ debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
8988
+
8989
+ Object.defineProperty(debug, 'enabled', {
8990
+ enumerable: true,
8991
+ configurable: false,
8992
+ get: () => enableOverride === null ? createDebug.enabled(namespace) : enableOverride,
8993
+ set: v => {
8994
+ enableOverride = v;
8995
+ }
8996
+ });
8997
+
8998
+ // Env-specific initialization logic for debug instances
8999
+ if (typeof createDebug.init === 'function') {
9000
+ createDebug.init(debug);
9001
+ }
9002
+
9003
+ return debug;
9004
+ }
9005
+
9006
+ function extend(namespace, delimiter) {
9007
+ const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
9008
+ newDebug.log = this.log;
9009
+ return newDebug;
9010
+ }
9011
+
9012
+ /**
9013
+ * Enables a debug mode by namespaces. This can include modes
9014
+ * separated by a colon and wildcards.
9015
+ *
9016
+ * @param {String} namespaces
9017
+ * @api public
9018
+ */
9019
+ function enable(namespaces) {
9020
+ createDebug.save(namespaces);
9021
+
9022
+ createDebug.names = [];
9023
+ createDebug.skips = [];
9024
+
9025
+ let i;
9026
+ const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
9027
+ const len = split.length;
9028
+
9029
+ for (i = 0; i < len; i++) {
9030
+ if (!split[i]) {
9031
+ // ignore empty strings
9032
+ continue;
9033
+ }
9034
+
9035
+ namespaces = split[i].replace(/\*/g, '.*?');
9036
+
9037
+ if (namespaces[0] === '-') {
9038
+ createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
9039
+ } else {
9040
+ createDebug.names.push(new RegExp('^' + namespaces + '$'));
9041
+ }
9042
+ }
9043
+ }
9044
+
9045
+ /**
9046
+ * Disable debug output.
9047
+ *
9048
+ * @return {String} namespaces
9049
+ * @api public
9050
+ */
9051
+ function disable() {
9052
+ const namespaces = [
9053
+ ...createDebug.names.map(toNamespace),
9054
+ ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)
9055
+ ].join(',');
9056
+ createDebug.enable('');
9057
+ return namespaces;
9058
+ }
9059
+
9060
+ /**
9061
+ * Returns true if the given mode name is enabled, false otherwise.
9062
+ *
9063
+ * @param {String} name
9064
+ * @return {Boolean}
9065
+ * @api public
9066
+ */
9067
+ function enabled(name) {
9068
+ if (name[name.length - 1] === '*') {
9069
+ return true;
9070
+ }
9071
+
9072
+ let i;
9073
+ let len;
9074
+
9075
+ for (i = 0, len = createDebug.skips.length; i < len; i++) {
9076
+ if (createDebug.skips[i].test(name)) {
9077
+ return false;
9078
+ }
9079
+ }
9080
+
9081
+ for (i = 0, len = createDebug.names.length; i < len; i++) {
9082
+ if (createDebug.names[i].test(name)) {
9083
+ return true;
9084
+ }
9085
+ }
9086
+
9087
+ return false;
9088
+ }
9089
+
9090
+ /**
9091
+ * Convert regexp to namespace
9092
+ *
9093
+ * @param {RegExp} regxep
9094
+ * @return {String} namespace
9095
+ * @api private
9096
+ */
9097
+ function toNamespace(regexp) {
9098
+ return regexp.toString()
9099
+ .substring(2, regexp.toString().length - 2)
9100
+ .replace(/\.\*\?$/, '*');
9101
+ }
9102
+
9103
+ /**
9104
+ * Coerce `val`.
9105
+ *
9106
+ * @param {Mixed} val
9107
+ * @return {Mixed}
9108
+ * @api private
9109
+ */
9110
+ function coerce(val) {
9111
+ if (val instanceof Error) {
9112
+ return val.stack || val.message;
9113
+ }
9114
+ return val;
9115
+ }
9116
+
9117
+ /**
9118
+ * XXX DO NOT USE. This is a temporary stub function.
9119
+ * XXX It WILL be removed in the next major release.
9120
+ */
9121
+ function destroy() {
9122
+ console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
9123
+ }
9124
+
9125
+ createDebug.enable(createDebug.load());
9126
+
9127
+ return createDebug;
9128
+ }
9129
+
9130
+ var common = setup;
9131
+
9132
+ var browser$1 = stencilHooks_module.createCommonjsModule(function (module, exports) {
9133
+ /* eslint-env browser */
9134
+
9135
+ /**
9136
+ * This is the web browser implementation of `debug()`.
9137
+ */
9138
+
9139
+ exports.formatArgs = formatArgs;
9140
+ exports.save = save;
9141
+ exports.load = load;
9142
+ exports.useColors = useColors;
9143
+ exports.storage = localstorage();
9144
+ exports.destroy = (() => {
9145
+ let warned = false;
9146
+
9147
+ return () => {
9148
+ if (!warned) {
9149
+ warned = true;
9150
+ console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
9151
+ }
9152
+ };
9153
+ })();
9154
+
9155
+ /**
9156
+ * Colors.
9157
+ */
9158
+
9159
+ exports.colors = [
9160
+ '#0000CC',
9161
+ '#0000FF',
9162
+ '#0033CC',
9163
+ '#0033FF',
9164
+ '#0066CC',
9165
+ '#0066FF',
9166
+ '#0099CC',
9167
+ '#0099FF',
9168
+ '#00CC00',
9169
+ '#00CC33',
9170
+ '#00CC66',
9171
+ '#00CC99',
9172
+ '#00CCCC',
9173
+ '#00CCFF',
9174
+ '#3300CC',
9175
+ '#3300FF',
9176
+ '#3333CC',
9177
+ '#3333FF',
9178
+ '#3366CC',
9179
+ '#3366FF',
9180
+ '#3399CC',
9181
+ '#3399FF',
9182
+ '#33CC00',
9183
+ '#33CC33',
9184
+ '#33CC66',
9185
+ '#33CC99',
9186
+ '#33CCCC',
9187
+ '#33CCFF',
9188
+ '#6600CC',
9189
+ '#6600FF',
9190
+ '#6633CC',
9191
+ '#6633FF',
9192
+ '#66CC00',
9193
+ '#66CC33',
9194
+ '#9900CC',
9195
+ '#9900FF',
9196
+ '#9933CC',
9197
+ '#9933FF',
9198
+ '#99CC00',
9199
+ '#99CC33',
9200
+ '#CC0000',
9201
+ '#CC0033',
9202
+ '#CC0066',
9203
+ '#CC0099',
9204
+ '#CC00CC',
9205
+ '#CC00FF',
9206
+ '#CC3300',
9207
+ '#CC3333',
9208
+ '#CC3366',
9209
+ '#CC3399',
9210
+ '#CC33CC',
9211
+ '#CC33FF',
9212
+ '#CC6600',
9213
+ '#CC6633',
9214
+ '#CC9900',
9215
+ '#CC9933',
9216
+ '#CCCC00',
9217
+ '#CCCC33',
9218
+ '#FF0000',
9219
+ '#FF0033',
9220
+ '#FF0066',
9221
+ '#FF0099',
9222
+ '#FF00CC',
9223
+ '#FF00FF',
9224
+ '#FF3300',
9225
+ '#FF3333',
9226
+ '#FF3366',
9227
+ '#FF3399',
9228
+ '#FF33CC',
9229
+ '#FF33FF',
9230
+ '#FF6600',
9231
+ '#FF6633',
9232
+ '#FF9900',
9233
+ '#FF9933',
9234
+ '#FFCC00',
9235
+ '#FFCC33'
9236
+ ];
9237
+
9238
+ /**
9239
+ * Currently only WebKit-based Web Inspectors, Firefox >= v31,
9240
+ * and the Firebug extension (any Firefox version) are known
9241
+ * to support "%c" CSS customizations.
9242
+ *
9243
+ * TODO: add a `localStorage` variable to explicitly enable/disable colors
9244
+ */
9245
+
9246
+ // eslint-disable-next-line complexity
9247
+ function useColors() {
9248
+ // NB: In an Electron preload script, document will be defined but not fully
9249
+ // initialized. Since we know we're in Chrome, we'll just detect this case
9250
+ // explicitly
9251
+ if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
9252
+ return true;
9253
+ }
9254
+
9255
+ // Internet Explorer and Edge do not support colors.
9256
+ if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
9257
+ return false;
9258
+ }
9259
+
9260
+ // Is webkit? http://stackoverflow.com/a/16459606/376773
9261
+ // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
9262
+ return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
9263
+ // Is firebug? http://stackoverflow.com/a/398120/376773
9264
+ (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
9265
+ // Is firefox >= v31?
9266
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
9267
+ (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
9268
+ // Double check webkit in userAgent just in case we are in a worker
9269
+ (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
9270
+ }
9271
+
9272
+ /**
9273
+ * Colorize log arguments if enabled.
9274
+ *
9275
+ * @api public
9276
+ */
9277
+
9278
+ function formatArgs(args) {
9279
+ args[0] = (this.useColors ? '%c' : '') +
9280
+ this.namespace +
9281
+ (this.useColors ? ' %c' : ' ') +
9282
+ args[0] +
9283
+ (this.useColors ? '%c ' : ' ') +
9284
+ '+' + module.exports.humanize(this.diff);
9285
+
9286
+ if (!this.useColors) {
9287
+ return;
9288
+ }
9289
+
9290
+ const c = 'color: ' + this.color;
9291
+ args.splice(1, 0, c, 'color: inherit');
9292
+
9293
+ // The final "%c" is somewhat tricky, because there could be other
9294
+ // arguments passed either before or after the %c, so we need to
9295
+ // figure out the correct index to insert the CSS into
9296
+ let index = 0;
9297
+ let lastC = 0;
9298
+ args[0].replace(/%[a-zA-Z%]/g, match => {
9299
+ if (match === '%%') {
9300
+ return;
9301
+ }
9302
+ index++;
9303
+ if (match === '%c') {
9304
+ // We only are interested in the *last* %c
9305
+ // (the user may have provided their own)
9306
+ lastC = index;
9307
+ }
9308
+ });
9309
+
9310
+ args.splice(lastC, 0, c);
9311
+ }
9312
+
9313
+ /**
9314
+ * Invokes `console.debug()` when available.
9315
+ * No-op when `console.debug` is not a "function".
9316
+ * If `console.debug` is not available, falls back
9317
+ * to `console.log`.
9318
+ *
9319
+ * @api public
9320
+ */
9321
+ exports.log = console.debug || console.log || (() => {});
9322
+
9323
+ /**
9324
+ * Save `namespaces`.
9325
+ *
9326
+ * @param {String} namespaces
9327
+ * @api private
9328
+ */
9329
+ function save(namespaces) {
9330
+ try {
9331
+ if (namespaces) {
9332
+ exports.storage.setItem('debug', namespaces);
9333
+ } else {
9334
+ exports.storage.removeItem('debug');
9335
+ }
9336
+ } catch (error) {
9337
+ // Swallow
9338
+ // XXX (@Qix-) should we be logging these?
9339
+ }
9340
+ }
9341
+
9342
+ /**
9343
+ * Load `namespaces`.
9344
+ *
9345
+ * @return {String} returns the previously persisted debug modes
9346
+ * @api private
9347
+ */
9348
+ function load() {
9349
+ let r;
9350
+ try {
9351
+ r = exports.storage.getItem('debug');
9352
+ } catch (error) {
9353
+ // Swallow
9354
+ // XXX (@Qix-) should we be logging these?
9355
+ }
9356
+
9357
+ // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
9358
+ if (!r && typeof process !== 'undefined' && 'env' in process) {
9359
+ r = process.env.DEBUG;
9360
+ }
9361
+
9362
+ return r;
9363
+ }
9364
+
9365
+ /**
9366
+ * Localstorage attempts to return the localstorage.
9367
+ *
9368
+ * This is necessary because safari throws
9369
+ * when a user disables cookies/localstorage
9370
+ * and you attempt to access it.
9371
+ *
9372
+ * @return {LocalStorage}
9373
+ * @api private
9374
+ */
9375
+
9376
+ function localstorage() {
9377
+ try {
9378
+ // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
9379
+ // The Browser also has localStorage in the global context.
9380
+ return localStorage;
9381
+ } catch (error) {
9382
+ // Swallow
9383
+ // XXX (@Qix-) should we be logging these?
9384
+ }
9385
+ }
9386
+
9387
+ module.exports = common(exports);
9388
+
9389
+ const {formatters} = module.exports;
9390
+
9391
+ /**
9392
+ * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
9393
+ */
9394
+
9395
+ formatters.j = function (v) {
9396
+ try {
9397
+ return JSON.stringify(v);
9398
+ } catch (error) {
9399
+ return '[UnexpectedJSONParseError]: ' + error.message;
9400
+ }
9401
+ };
9402
+ });
9403
+
9404
+ function s$3(){return index.getRenderingRef()}function l$1(){var e=s$3();return index.getElement(e)}function d$2(e,t){void 0===t&&(t={});var n=l$1();return h(n,e,t)}var p$1=browser$1("stencil-hook");
9405
+
8203
9406
  var umd = stencilHooks_module.createCommonjsModule(function (module, exports) {
8204
9407
  (function (global, factory) {
8205
9408
  factory(exports) ;
@@ -8759,49 +9962,46 @@ var umd = stencilHooks_module.createCommonjsModule(function (module, exports) {
8759
9962
 
8760
9963
  });
8761
9964
 
8762
- var N={current:void 0};function _(){if(void 0===N.current)throw new Error("no implementation of useHost provided");return N.current()}function U(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");N.current=e;}function L(){lazilyStartLocaleContext();var t=_();return stencilHooks_module.h(t,LOCALE_CONTEXT_NAME)}function H(){lazilyStartProgramContext();var e=_();return stencilHooks_module.h(e,PROGRAM_CONTEXT_NAME)}function J(){var e;return null==(e=Q())?void 0:e.jwt}function Q(){lazilyStartUserContext();var e=_(),n=stencilHooks_module.h(e,USER_CONTEXT_NAME),t=userIdentityFromJwt(null==n?void 0:n.jwt);if(isDemo()||!n||t)return n;setUserIdentity(void 0);}var z=getTenantAlias,G=getAppDomain,B=getEngagementMedium;function K(){return (K=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}return e}).apply(this,arguments)}function Z(e,n){return (Z=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function X(e,n){return n||(n=e.slice(0)),e.raw=n,e}function Y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ee(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return Y(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Y(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return (t=e[Symbol.iterator]()).next.bind(t)}var ne=function(){return (ne=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},te=new Map,re=new Map,ae=!0,oe=!1;function ie(e){return e.replace(/[\s,]+/g," ").trim()}function se(e){var n,t,r,a=ie(e);if(!te.has(a)){var o=parse(e,{experimentalFragmentVariables:oe});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");te.set(a,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&n.add(r);});});var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}((n=o,t=new Set,r=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,a=ie((i=e.loc).source.body.substring(i.start,i.end)),o=re.get(n);o&&!o.has(a)?ae&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||re.set(n,o=new Set),o.add(a),t.has(a)||(t.add(a),r.push(e));}else r.push(e);var i;}),ne(ne({},n),{definitions:r}))));}return te.get(a)}function ue(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach(function(n,t){r+=n&&"Document"===n.kind?n.loc.source.body:n,r+=e[t+1];}),se(r)}var ce,de=ue;(ce=ue||(ue={})).gql=de,ce.resetCaches=function(){te.clear(),re.clear();},ce.disableFragmentWarnings=function(){ae=!1;},ce.enableExperimentalFragmentVariables=function(){oe=!0;},ce.disableExperimentalFragmentVariables=function(){oe=!1;},ue.default=ue;var le=ue;function fe(e,n){try{var t=e();}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var me=function(e){var n,t;function r(n,t){var r;(r=e.call(this,n,t)||this).subject=new Subject;var a=new Subject;return r.subject.pipe(bufferTime(200,void 0,10)).subscribe(function(e){try{if(!e.length)return Promise.resolve();for(var n,t=he(e),o=t.mergedQuery,i=t.mergedVariables,s=t.mergedQueryAddedEvents,u=ee(t.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(fe(function(){return Promise.resolve(r.superRequest(o,i)).then(function(e){be(e,s);})},function(e){if(e instanceof types.ClientError){var n=function(){var n=e.response,t=n.data,r=n.errors;if(!t)return {v:Ie(s,e)};for(var a,o=Object.keys(t),i=[].concat(s),u=function(){var n=a.value,t=void 0;n.path.find(function(r,a,s){if(o.includes(r)){var u=pe(r),c=i.findIndex(function(e){return e.id===u});if(-1===c)return !1;o.splice(a,1),t=i.splice(c,1)[0];var d=ye(e.response.data,t);s[a]=ge(s[a],u);var l=t.query,f=t.variables,m=K({},e.response,{errors:[n],data:d,path:s}),v=new types.ClientError(m,{query:"string"!=typeof l?print(l):l,variables:f});return we(t,v),!0}return !1});},c=ee(r);!(a=c()).done;)u();be(t,i);}();if("object"==typeof n)return n.v}else Ie(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=fe(function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then(function(n){Ce(n,e);})},function(n){we(e,n);});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),r}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,Z(n,t);var a=r.prototype;return a.superRequest=function(n,t){return e.prototype.request.call(this,n,t)},a.request=function(e,n,t){var r=this;return new Promise(function(a,o){var i={query:e,variables:n,id:ve(),options:t,resolve:a,reject:o};r.subject.next(i);})},r}(dist$1.GraphQLClient),ve=function(){return nanoid().replace(/[-_]/g,"")},ge=function(e,n){return e.replace("_"+n,"")},pe=function(e){var n=e.split("_");return n[n.length-1]},he=function(e){var n=[],t=[],r=e.reduce(function(e,r){var a=r.query,o=r.variables,i=r.id,s=r.options;if(null==s||!s.batch)return t.push(r),e;try{var u="string"==typeof a?parse(a):a,c=u.definitions.find(function(e){return "FragmentDefinition"===e.kind}),d="string"==typeof a?a:print(a),l=/@/.test(d);if(c||l)return t.push(r),e;var f=function(e){return function(e,n){return e+"_"+n}(e,i)};return e=e.addN(u,[o],f,f),n.push(r),e}catch(n){return t.push(r),e}},M("BatchedQuery")),a=r.document,o=r.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:t}},ye=function(e,n){if(!e)return e;var t=Object.keys(e),r=n.id;return t.reduce(function(n,t){var a;return t.endsWith(r)&&(n=K({},n,((a={})[ge(t,r)]=e[t],a))),n},{})},Ce=function(e,n){(0, n.resolve)(e);},be=function(e,n){for(var t,r=ee(n);!(t=r()).done;){var a=t.value,o=ye(e,a);a.resolve(o);}},we=function(e,n){(0, e.reject)(n);},Ie=function(e,n){for(var t,r=ee(e);!(t=r()).done;)(0, t.value.reject)(n);},Pe="sq:graphql-client",Ee=src(function(e,n,t){return new me(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(t||"")}})});function Fe(e,n){switch(n.type){case"loading":return {data:void 0,errors:void 0,loading:!0};case"data":return {data:n.payload,errors:void 0,loading:!1};case"errors":return {data:void 0,errors:n.payload,loading:!1}}}function Me(e,n,t){void 0===t&&(t={batch:!0});var r,a,o,i,s,u,c=(r=J(),a=G(),o=z(),i=Ee(a,o,r),s=_(),null!=(u=stencilHooks_module.h(s,"sq:graphql-client",{attempts:0}))?u:i),d=stencilHooks_module.useReducer(Fe,n),l=d[1];return [d[0],useCallback(function(n,r){void 0===r&&(r=!1);try{if(!c){var a=new Error("No GraphQL client found");return l({type:"errors",payload:a}),Promise.resolve(a)}return Promise.resolve(function(a,o){try{var i=(r||l({type:"loading"}),Promise.resolve(c.request(e,n,t)).then(function(e){return l({type:"data",payload:e}),e}));}catch(e){return o(e)}return i&&i.then?i.then(void 0,o):i}(0,function(e){return l({type:"errors",payload:e}),e}))}catch(e){return Promise.reject(e)}},[c,e,l])]}var Se,De={loading:!1,data:void 0,errors:void 0};function $e(e){var n=Me(e,De);return [n[1],n[0]]}var Ae,ke=le(Se||(Se=X(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function qe(){var e=$e(ke),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithEmailAndPassword){var n=e.authenticateManagedIdentityWithEmailAndPassword.token,t=o(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:e.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.authenticateManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var je,Re=le(Ae||(Ae=X(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n $redirectPath: String\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n redirectPath: $redirectPath\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function xe(){var e=$e(Re),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.registerManagedIdentityWithEmailAndPassword){var n=e.registerManagedIdentityWithEmailAndPassword.token,t=o(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.registerManagedIdentityWithEmailAndPassword.email,emailVerified:e.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.registerManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Ve,Oe=le(je||(je=X(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function We(){var e=$e(Oe),n=e[0],t=e[1],r=t.loading,a=t.data,o$1=t.errors,i=stencilHooks_module.useState(null),s=i[1];return [function(e){try{return s(null),Promise.resolve(n(e)).then(function(e){var n,t,r,a;if(e instanceof Error)return e;var o$1=null==(n=e.submitForm)||null==(t=n.results)?void 0:t.find(function(e){var n;return "identity"===(null==e||null==(n=e.formHandler)?void 0:n.namespace)});if(o$1&&null!=(r=o$1.result)&&null!=(a=r.results)&&a.length){var i=o$1.result.results[0];if(i.success){var c=i.data.token,d=o(c).user;setUserIdentity({jwt:c,id:d.id,accountId:d.accountId,managedIdentity:{email:i.data.email,emailVerified:i.data.emailVerified,sessionData:i.data.sessionData}});}else s(i.message);}return e})}catch(e){return Promise.reject(e)}},{loading:r,data:a,errors:o$1,formError:i[0]}]}var Ne,_e=le(Ve||(Ve=X(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function Ue(){var e=$e(_e),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var Le,He=le(Ne||(Ne=X(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Te(){var e=$e(He),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.resetManagedIdentityPassword){var n=e.resetManagedIdentityPassword.token,t=o(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.resetManagedIdentityPassword.email,emailVerified:e.resetManagedIdentityPassword.emailVerified,sessionData:e.resetManagedIdentityPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Je=le(Le||(Le=X(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Qe(){return $e(Je)}function ze(){var e=_();return {refresh:useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function Ge(e){var n=e.skip,t=void 0!==n&&n,r=e.update,a=e.variables;stencilHooks_module.useEffect(function(){var e=function(e){!t&&r(a,!0);};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}},function(e){var n=stencilHooks_module.useRef(e),t=stencilHooks_module.useRef(0);return equal(e,n.current)||(n.current=e,t.current+=1),stencilHooks_module.useMemo(function(){return n.current},[t.current])}([a,r,t]));}var Be,Ke={loading:!1,data:void 0,errors:void 0},Ze=Symbol();function Xe(e){var n=Me(e,Ke),t=n[0],r=n[1],a=stencilHooks_module.useRef(Ze);Ge({skip:a.current===Ze,update:r,variables:a.current});var o=useCallback(function(e){return a.current=e,r(e)},[r]);return [r,K({},t,{refetch:o})]}var Ye,en=le(Be||(Be=X(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function nn(){var e=Q(),n=Xe(en),t=n[0],r=n[1],a=r.refetch,o=function(n){n instanceof Error||!n.managedIdentitySession||setUserIdentity(K({},e,{managedIdentity:n.managedIdentitySession}));};return [function(){try{return Promise.resolve(t({})).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(a()).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}}}]}var tn,rn=le(Ye||(Ye=X(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function an(){var e=nn()[0],n=$e(rn),t=n[0],r=n[1];return [function(n){try{return Promise.resolve(t(n)).then(function(n){var t=function(){if(!(n instanceof Error)&&n.verifyManagedIdentityEmail.success)return Promise.resolve(e()).then(function(){})}();return t&&t.then?t.then(function(){return n}):n})}catch(n){return Promise.reject(n)}},{loading:r.loading,data:r.data,errors:r.errors}]}var on,sn=le(tn||(tn=X(["\n mutation RequestPasswordResetEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function un(){return $e(sn)}var cn,dn=le(on||(on=X(["\n mutation RequestVerificationEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function ln(){return $e(dn)}var fn=le(cn||(cn=X(["\n mutation authenticateManagedIdentityWithInstantAccess(\n $email: String!\n $firstName: String\n $lastName: String\n $locale: RSLocale\n $countryCode: RSCountryCode\n $cookies: String\n ) {\n authenticateManagedIdentityWithInstantAccess(\n authenticateManagedIdentityWithInstantAccessInput: {\n email: $email\n firstName: $firstName\n lastName: $lastName\n locale: $locale\n countryCode: $countryCode\n cookies: $cookies\n }\n ) {\n email\n emailVerified\n sessionData\n token\n }\n }\n"])));function mn(){var e=H(),n=getEnvironment(),t=$e(fn),r=t[0],a=t[1];return [function(t){try{return Promise.resolve(r(t)).then(function(t){var r=function(){if(!(t instanceof Error)&&t.authenticateManagedIdentityWithInstantAccess)return Promise.resolve(function(e,n){try{return Promise.resolve(function(t,r){try{var a=Promise.resolve(fetch(getAppDomain()+"/api/v1/"+getTenantAlias()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+n},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:e}})})).then(function(e){if(!e.ok)throw new Error("Failed to fetch locale");return Promise.resolve(e.json()).then(function(e){var n;if(e.errors)throw new Error(JSON.stringify(e.errors,null,2));var t=(null==(n=e.data.viewer.instantAccessRewards)?void 0:n.data)||[];return t.some(function(e){return "SUSPECTED_FRAUD"===e.cancelledReason})?"DENIED":t.some(function(e){var n;return null==(n=e.pendingReasons)?void 0:n.includes("SUSPECTED_FRAUD")})?"PENDING_REVIEW":"APPROVED"})});}catch(e){return r(e)}return a&&a.then?a.then(void 0,r):a}(0,function(e){console.error(e);}))}catch(e){return Promise.reject(e)}}(e,t.authenticateManagedIdentityWithInstantAccess.token)).then(function(e){if("APPROVED"!==e)throw {name:"fraud_error",message:"Referral flagged as fraud."};var r=t.authenticateManagedIdentityWithInstantAccess.email;if(setUserIdentity({jwt:t.authenticateManagedIdentityWithInstantAccess.token,id:r,accountId:r}),"SquatchJS2"===n){var a=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:r,accountId:r}});document.dispatchEvent(a);}})}();return r&&r.then?r.then(function(e){return t}):t})}catch(e){return Promise.reject(e)}},{loading:a.loading,data:a.data,errors:a.errors}]}function vn(e,n){var t=stencilHooks_module.useRef();return t.current&&equal(n,t.current.key)||(t.current={key:n,value:e()}),t.current.value}function gn(){return stencilHooks_module.useReducer(function(e){return e+1},0)}function pn(e){for(var n,t=ee(Object.getOwnPropertyNames(e));!(n=t()).done;){var r=e[n.value];r&&"object"==typeof r&&pn(r);}return Object.freeze(e)}var hn={loading:!0,data:void 0,errors:void 0};function yn(e,n,t,r){var a=Me(e,hn,K({batch:!0},r||{})),o=a[0],i=a[1],s=gn(),u=s[1];return vn(function(){!t&&i(n);},[e,n,i,s[0],t]),Ge({skip:t,update:i,variables:n}),pn(K({},o,{refetch:u}))}function Cn(e){var n=_(),t=stencilHooks_module.y(n,Pn(e.namespace),e.initialValue),r=t[0],a=t[1];return stencilHooks_module.y(n,En(e.namespace),[r,a]),[r,a]}function bn(e){var n=stencilHooks_module.d(En(e)),t=stencilHooks_module.d(Pn(e));return n?[t,n[1]]:[void 0,void 0]}function wn(e){var n=stencilHooks_module.d(En(e));if(n)return n[1]}function In(e){return stencilHooks_module.d(Pn(e))}function Pn(e){return e+"-value"}function En(e){return e+"-state"}function Fn(e){var n=_(),t=yn(e.query,e.variables||{},e.skip,K({batch:!0},e.options||{})),r=stencilHooks_module.y(n,Pn(e.namespace),t),a=r[0],o=r[1];return stencilHooks_module.useEffect(function(){umd.deepEqual(t,a)||o(t);},[t,a]),t}function Mn(e){return stencilHooks_module.d(Pn(e))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function Sn(){var e=gn()[1];return stencilHooks_module.useEffect(function(){return history_default.listen(function(){e();})},[]),history_default.location}var Dn,$n=history_default;function An(e){var n=stencilHooks_module.useState({limit:e.limit,offset:e.offset}),t=n[0],r=n[1],a=t.offset,o=t.limit,i=function(e,n){return e*n},s=function(e,n){return Math.ceil(e/n)||0};return {limit:o,setLimit:function(e){var n=s(a,e),o=i(e,n);r(K({},t,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);r(function(e){return K({},e,{offset:n})});},calculatePagination:function(e,n){var t=s(a,o),r=function(e,n){return Math.ceil(e/n)||0}(n,o),i=0===e?"0":e>1?a+1+"-"+(a+e):""+(a+1);return {currentPage:t,pageCount:r,rangeOnPage:i,pageProgress:i+" of "+n}}}}function kn(e,n,t,r,a){var o;void 0===r&&(r={}),void 0===a&&(a=!1);var i=An(t),s=i.limit,u=i.setLimit,c=i.setCurrentPage,d=i.calculatePagination,l=yn(e,K({limit:s,offset:i.offset},r),a),f=l.loading,m=l.errors,v=l.refetch,g=n(l.data),p=d((null==g||null==(o=g.data)?void 0:o.length)||0,(null==g?void 0:g.totalCount)||0);return {envelope:g,states:{errors:m,loading:f,limit:s,currentPage:p.currentPage,pageCount:p.pageCount,pageProgress:p.pageProgress},callbacks:{refetch:v,setLimit:u,setCurrentPage:c}}}var xn=dist$1.gql(Dn||(Dn=X(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var On=1e3,Wn=60*On,Nn=60*Wn,_n=24*Nn,Un=function(e,n){n=n||{};var t=typeof e;if("string"===t&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(n){var t=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*_n;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Nn;case"minutes":case"minute":case"mins":case"min":case"m":return t*Wn;case"seconds":case"second":case"secs":case"sec":case"s":return t*On;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}(e);if("number"===t&&isFinite(e))return n.long?function(e){var n=Math.abs(e);return n>=_n?Ln(e,n,_n,"day"):n>=Nn?Ln(e,n,Nn,"hour"):n>=Wn?Ln(e,n,Wn,"minute"):n>=On?Ln(e,n,On,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=_n?Math.round(e/_n)+"d":n>=Nn?Math.round(e/Nn)+"h":n>=Wn?Math.round(e/Wn)+"m":n>=On?Math.round(e/On)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ln(e,n,t,r){var a=n>=1.5*t;return Math.round(e/t)+" "+r+(a?"s":"")}var Hn,Tn,Jn,Qn,zn,Gn=(function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let r=0,a=0;n[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r));}),n.splice(a,0,t);},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug");}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=function(e){function n(e){let r,a=null;function o(...e){if(!o.enabled)return;const t=o,a=Number(new Date);t.diff=a-(r||a),t.prev=r,t.curr=a,r=a,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,a)=>{if("%%"===r)return "%";i++;const o=n.formatters[a];return "function"==typeof o&&(r=o.call(t,e[i]),e.splice(i,1),i--),r}),n.formatArgs.call(t,e),(t.log||n.log).apply(t,e);}return o.namespace=e,o.useColors=n.useColors(),o.color=n.selectColor(e),o.extend=t,o.destroy=n.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?n.enabled(e):a,set:e=>{a=e;}}),"function"==typeof n.init&&n.init(o),o}function t(e,t){const r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names.map(r),...n.skips.map(r).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.names=[],n.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(t=0;t<a;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")));},n.enabled=function(e){if("*"===e[e.length-1])return !0;let t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return !1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return !0;return !1},n.humanize=Un,n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(t=>{n[t]=e[t];}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(Hn={exports:{}},Hn.exports),Hn.exports),Bn=Gn("sq:load-event"),Kn=dist$1.gql(Tn||(Tn=X(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Xn=Gn("sq:useForm"),Yn=dist$1.gql(Jn||(Jn=X(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),et=dist$1.gql(Qn||(Qn=X(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),nt=dist$1.gql(zn||(zn=X(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));
9965
+ var H={current:void 0};function T(){if(void 0===H.current)throw new Error("no implementation of useHost provided");return H.current()}function J(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");H.current=e;}function Q(){lazilyStartLocaleContext();var t=T();return h(t,LOCALE_CONTEXT_NAME)}function z(){lazilyStartProgramContext();var e=T();return h(e,PROGRAM_CONTEXT_NAME)}function B(){var e;return null==(e=K())?void 0:e.jwt}function K(){lazilyStartUserContext();var e=T(),n=h(e,USER_CONTEXT_NAME),t=userIdentityFromJwt(null==n?void 0:n.jwt);if(isDemo()||!n||t)return n;setUserIdentity(void 0);}function Z(){lazilyStartVerificationContext();var e=T(),n=h(e,VERIFICATION_CONTEXT_NAME),t=checkVerificationToken(null==n?void 0:n.token);if(isDemo()||!n||t)return n;setVerificationContext(void 0);}var Y=getTenantAlias,ee=getAppDomain,ne=getEngagementMedium;function te(){return (te=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}return e}).apply(this,arguments)}function re(e,n){return (re=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ae(e,n){return n||(n=e.slice(0)),e.raw=n,e}function oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ie(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return oe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oe(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return (t=e[Symbol.iterator]()).next.bind(t)}var se=function(){return (se=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},ue=new Map,ce=new Map,de=!0,le=!1;function fe(e){return e.replace(/[\s,]+/g," ").trim()}function me(e){var n,t,r,a=fe(e);if(!ue.has(a)){var o=parse(e,{experimentalFragmentVariables:le});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");ue.set(a,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&n.add(r);});});var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}((n=o,t=new Set,r=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,a=fe((i=e.loc).source.body.substring(i.start,i.end)),o=ce.get(n);o&&!o.has(a)?de&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||ce.set(n,o=new Set),o.add(a),t.has(a)||(t.add(a),r.push(e));}else r.push(e);var i;}),se(se({},n),{definitions:r}))));}return ue.get(a)}function ve(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach(function(n,t){r+=n&&"Document"===n.kind?n.loc.source.body:n,r+=e[t+1];}),me(r)}var ge,pe=ve;(ge=ve||(ve={})).gql=pe,ge.resetCaches=function(){ue.clear(),ce.clear();},ge.disableFragmentWarnings=function(){de=!1;},ge.enableExperimentalFragmentVariables=function(){le=!0;},ge.disableExperimentalFragmentVariables=function(){le=!1;},ve.default=ve;var he=ve;function ye(e,n){try{var t=e();}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var Ce=function(e){var n,t;function r(n,t){var r;(r=e.call(this,n,t)||this).subject=new Subject;var a=new Subject;return r.subject.pipe(bufferTime(200,void 0,10)).subscribe(function(e){try{if(!e.length)return Promise.resolve();for(var n,t=Pe(e),o=t.mergedQuery,i=t.mergedVariables,s=t.mergedQueryAddedEvents,u=ie(t.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(ye(function(){return Promise.resolve(r.superRequest(o,i)).then(function(e){Me(e,s);})},function(e){if(e instanceof types.ClientError){var n=function(){var n=e.response,t=n.data,r=n.errors;if(!t)return {v:De(s,e)};for(var a,o=Object.keys(t),i=[].concat(s),u=function(){var n=a.value,t=void 0;n.path.find(function(r,a,s){if(o.includes(r)){var u=Ie(r),c=i.findIndex(function(e){return e.id===u});if(-1===c)return !1;o.splice(a,1),t=i.splice(c,1)[0];var d=Ee(e.response.data,t);s[a]=we(s[a],u);var l=t.query,f=t.variables,m=te({},e.response,{errors:[n],data:d,path:s}),v=new types.ClientError(m,{query:"string"!=typeof l?print(l):l,variables:f});return Se(t,v),!0}return !1});},c=ie(r);!(a=c()).done;)u();Me(t,i);}();if("object"==typeof n)return n.v}else De(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=ye(function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then(function(n){Fe(n,e);})},function(n){Se(e,n);});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),r}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,re(n,t);var a=r.prototype;return a.superRequest=function(n,t){return e.prototype.request.call(this,n,t)},a.request=function(e,n,t){var r=this;return new Promise(function(a,o){var i={query:e,variables:n,id:be(),options:t,resolve:a,reject:o};r.subject.next(i);})},r}(dist$1.GraphQLClient),be=function(){return nanoid().replace(/[-_]/g,"")},we=function(e,n){return e.replace("_"+n,"")},Ie=function(e){var n=e.split("_");return n[n.length-1]},Pe=function(e){var n=[],t=[],r=e.reduce(function(e,r){var a=r.query,o=r.variables,i=r.id,s=r.options;if(null==s||!s.batch)return t.push(r),e;try{var u="string"==typeof a?parse(a):a,c=u.definitions.find(function(e){return "FragmentDefinition"===e.kind}),d="string"==typeof a?a:print(a),l=/@/.test(d);if(c||l)return t.push(r),e;var f=function(e){return function(e,n){return e+"_"+n}(e,i)};return e=e.addN(u,[o],f,f),n.push(r),e}catch(n){return t.push(r),e}},k("BatchedQuery")),a=r.document,o=r.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:t}},Ee=function(e,n){if(!e)return e;var t=Object.keys(e),r=n.id;return t.reduce(function(n,t){var a;return t.endsWith(r)&&(n=te({},n,((a={})[we(t,r)]=e[t],a))),n},{})},Fe=function(e,n){(0, n.resolve)(e);},Me=function(e,n){for(var t,r=ie(n);!(t=r()).done;){var a=t.value,o=Ee(e,a);a.resolve(o);}},Se=function(e,n){(0, e.reject)(n);},De=function(e,n){for(var t,r=ie(e);!(t=r()).done;)(0, t.value.reject)(n);},$e="sq:graphql-client",ke=src(function(e,n,t){return new Ce(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(t||"")}})});function Ae(e,n){switch(n.type){case"loading":return {data:void 0,errors:void 0,loading:!0};case"data":return {data:n.payload,errors:void 0,loading:!1};case"errors":return {data:void 0,errors:n.payload,loading:!1}}}function qe(e,n,t){void 0===t&&(t={batch:!0,protected:!1});var r=function(e){var n,t=B(),r=null==(n=Z())?void 0:n.token,a=ee(),o=Y(),i=ke(a,o,null!=e&&e.protected?r:t),s=T(),u=h(s,"sq:graphql-client",{attempts:0});return null!=u?u:i}({protected:t.protected}),a=stencilHooks_module.useReducer(Ae,n),o=a[1];return [a[0],useCallback(function(n,a){void 0===a&&(a=!1);try{if(!r){var i=new Error("No GraphQL client found");return o({type:"errors",payload:i}),Promise.resolve(i)}return Promise.resolve(function(i,s){try{var u=(a||o({type:"loading"}),Promise.resolve(r.request(e,n,t)).then(function(e){return o({type:"data",payload:e}),e}));}catch(e){return s(e)}return u&&u.then?u.then(void 0,s):u}(0,function(e){return o({type:"errors",payload:e}),e}))}catch(e){return Promise.reject(e)}},[r,e,o])]}var je,Re={loading:!1,data:void 0,errors:void 0};function xe(e){var n=qe(e,Re);return [n[1],n[0]]}var Ve,Oe=he(je||(je=ae(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function We(){var e=xe(Oe),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithEmailAndPassword){var n=e.authenticateManagedIdentityWithEmailAndPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:e.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.authenticateManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Ne,_e=he(Ve||(Ve=ae(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n $redirectPath: String\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n redirectPath: $redirectPath\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ue(){var e=xe(_e),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.registerManagedIdentityWithEmailAndPassword){var n=e.registerManagedIdentityWithEmailAndPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.registerManagedIdentityWithEmailAndPassword.email,emailVerified:e.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.registerManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Le,He=he(Ne||(Ne=ae(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function Te(){var e=xe(He),n=e[0],t=e[1],r=t.loading,a=t.data,o=t.errors,i=stencilHooks_module.useState(null),s=i[1];return [function(e){try{return s(null),Promise.resolve(n(e)).then(function(e){var n,t,r,a;if(e instanceof Error)return e;var o=null==(n=e.submitForm)||null==(t=n.results)?void 0:t.find(function(e){var n;return "identity"===(null==e||null==(n=e.formHandler)?void 0:n.namespace)});if(o&&null!=(r=o.result)&&null!=(a=r.results)&&a.length){var i=o.result.results[0];if(i.success){var c=i.data.token,d=o$1(c).user;setUserIdentity({jwt:c,id:d.id,accountId:d.accountId,managedIdentity:{email:i.data.email,emailVerified:i.data.emailVerified,sessionData:i.data.sessionData}});}else s(i.message);}return e})}catch(e){return Promise.reject(e)}},{loading:r,data:a,errors:o,formError:i[0]}]}var Je,Qe=he(Le||(Le=ae(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function ze(){var e=xe(Qe),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var Ge,Be=he(Je||(Je=ae(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ke(){var e=xe(Be),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.resetManagedIdentityPassword){var n=e.resetManagedIdentityPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.resetManagedIdentityPassword.email,emailVerified:e.resetManagedIdentityPassword.emailVerified,sessionData:e.resetManagedIdentityPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Ze=he(Ge||(Ge=ae(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Xe(){return xe(Ze)}function Ye(){var e=T();return {refresh:useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function en(e){var n=e.skip,t=void 0!==n&&n,r=e.update,a=e.variables;stencilHooks_module.useEffect(function(){var e=function(e){!t&&r(a,!0);};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}},function(e){var n=stencilHooks_module.useRef(e),t=stencilHooks_module.useRef(0);return equal$1(e,n.current)||(n.current=e,t.current+=1),stencilHooks_module.useMemo(function(){return n.current},[t.current])}([a,r,t]));}var nn,tn={loading:!1,data:void 0,errors:void 0},rn=Symbol();function an(e){var n=qe(e,tn),t=n[0],r=n[1],a=stencilHooks_module.useRef(rn);en({skip:a.current===rn,update:r,variables:a.current});var o=useCallback(function(e){return a.current=e,r(e)},[r]);return [r,te({},t,{refetch:o})]}var on,sn=he(nn||(nn=ae(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function un(){var e=K(),n=an(sn),t=n[0],r=n[1],a=r.refetch,o=function(n){n instanceof Error||!n.managedIdentitySession||setUserIdentity(te({},e,{managedIdentity:n.managedIdentitySession}));};return [function(){try{return Promise.resolve(t({})).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(a()).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}}}]}var cn,dn=he(on||(on=ae(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function ln(){var e=un()[0],n=xe(dn),t=n[0],r=n[1];return [function(n){try{return Promise.resolve(t(n)).then(function(n){var t=function(){if(!(n instanceof Error)&&n.verifyManagedIdentityEmail.success)return Promise.resolve(e()).then(function(){})}();return t&&t.then?t.then(function(){return n}):n})}catch(n){return Promise.reject(n)}},{loading:r.loading,data:r.data,errors:r.errors}]}var fn,mn=he(cn||(cn=ae(["\n mutation RequestPasswordResetEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function vn(){return xe(mn)}var gn,pn=he(fn||(fn=ae(["\n mutation RequestVerificationEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function hn(){return xe(pn)}var yn=he(gn||(gn=ae(["\n mutation authenticateManagedIdentityWithInstantAccess(\n $email: String!\n $firstName: String\n $lastName: String\n $locale: RSLocale\n $countryCode: RSCountryCode\n $cookies: String\n ) {\n authenticateManagedIdentityWithInstantAccess(\n authenticateManagedIdentityWithInstantAccessInput: {\n email: $email\n firstName: $firstName\n lastName: $lastName\n locale: $locale\n countryCode: $countryCode\n cookies: $cookies\n }\n ) {\n email\n emailVerified\n sessionData\n token\n }\n }\n"])));function Cn(){var e=z(),n=getEnvironment(),t=xe(yn),r=t[0],a=t[1];return [function(t){try{return Promise.resolve(r(t)).then(function(t){var r=function(){if(!(t instanceof Error)&&t.authenticateManagedIdentityWithInstantAccess)return Promise.resolve(function(e,n){try{return Promise.resolve(function(t,r){try{var a=Promise.resolve(fetch(getAppDomain()+"/api/v1/"+getTenantAlias()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+n},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:e}})})).then(function(e){if(!e.ok)throw new Error("Failed to fetch locale");return Promise.resolve(e.json()).then(function(e){var n;if(e.errors)throw new Error(JSON.stringify(e.errors,null,2));var t=(null==(n=e.data.viewer.instantAccessRewards)?void 0:n.data)||[];return t.some(function(e){return "SUSPECTED_FRAUD"===e.cancelledReason})?"DENIED":t.some(function(e){var n;return null==(n=e.pendingReasons)?void 0:n.includes("SUSPECTED_FRAUD")})?"PENDING_REVIEW":"APPROVED"})});}catch(e){return r(e)}return a&&a.then?a.then(void 0,r):a}(0,function(e){console.error(e);}))}catch(e){return Promise.reject(e)}}(e,t.authenticateManagedIdentityWithInstantAccess.token)).then(function(e){if("APPROVED"!==e)throw {name:"fraud_error",message:"Referral flagged as fraud."};var r=t.authenticateManagedIdentityWithInstantAccess.email;if(setUserIdentity({jwt:t.authenticateManagedIdentityWithInstantAccess.token,id:r,accountId:r}),"SquatchJS2"===n){var a=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:r,accountId:r}});document.dispatchEvent(a);}})}();return r&&r.then?r.then(function(e){return t}):t})}catch(e){return Promise.reject(e)}},{loading:a.loading,data:a.data,errors:a.errors}]}function bn(e,n){var t=stencilHooks_module.useRef();return t.current&&equal$1(n,t.current.key)||(t.current={key:n,value:e()}),t.current.value}function wn(){return stencilHooks_module.useReducer(function(e){return e+1},0)}function In(e){for(var n,t=ie(Object.getOwnPropertyNames(e));!(n=t()).done;){var r=e[n.value];r&&"object"==typeof r&&In(r);}return Object.freeze(e)}var Pn={loading:!0,data:void 0,errors:void 0};function En(e,n,t,r){var a=qe(e,Pn,te({batch:!0,protected:!1},r||{})),o=a[0],i=a[1],s=wn(),u=s[1];return bn(function(){!t&&i(n);},[e,n,i,s[0],t]),en({skip:t,update:i,variables:n}),In(te({},o,{refetch:u}))}function Fn(e){var n=T(),t=y(n,$n(e.namespace),e.initialValue),r=t[0],a=t[1];return y(n,kn(e.namespace),[r,a]),[r,a]}function Mn(e){var n=d$2(kn(e)),t=d$2($n(e));return n?[t,n[1]]:[void 0,void 0]}function Sn(e){var n=d$2(kn(e));if(n)return n[1]}function Dn(e){return d$2($n(e))}function $n(e){return e+"-value"}function kn(e){return e+"-state"}function An(e){var n=T(),t=En(e.query,e.variables||{},e.skip,te({batch:!0},e.options||{})),r=y(n,$n(e.namespace),t),a=r[0],o=r[1];return stencilHooks_module.useEffect(function(){umd.deepEqual(t,a)||o(t);},[t,a]),t}function qn(e){return d$2($n(e))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function jn(){var e=wn()[1];return stencilHooks_module.useEffect(function(){return history_default.listen(function(){e();})},[]),history_default.location}var Rn,xn=history_default;function Vn(e){var n=stencilHooks_module.useState({limit:e.limit,offset:e.offset}),t=n[0],r=n[1],a=t.offset,o=t.limit,i=function(e,n){return e*n},s=function(e,n){return Math.ceil(e/n)||0};return {limit:o,setLimit:function(e){var n=s(a,e),o=i(e,n);r(te({},t,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);r(function(e){return te({},e,{offset:n})});},calculatePagination:function(e,n){var t=s(a,o),r=function(e,n){return Math.ceil(e/n)||0}(n,o),i=0===e?"0":e>1?a+1+"-"+(a+e):""+(a+1);return {currentPage:t,pageCount:r,rangeOnPage:i,pageProgress:i+" of "+n}}}}function On(e,n,t,r,a){var o;void 0===r&&(r={}),void 0===a&&(a=!1);var i=Vn(t),s=i.limit,u=i.setLimit,c=i.setCurrentPage,d=i.calculatePagination,l=En(e,te({limit:s,offset:i.offset},r),a),f=l.loading,m=l.errors,v=l.refetch,g=n(l.data),p=d((null==g||null==(o=g.data)?void 0:o.length)||0,(null==g?void 0:g.totalCount)||0);return {envelope:g,states:{errors:m,loading:f,limit:s,currentPage:p.currentPage,pageCount:p.pageCount,pageProgress:p.pageProgress},callbacks:{refetch:v,setLimit:u,setCurrentPage:c}}}var Un=dist$1.gql(Rn||(Rn=ae(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Hn=1e3,Tn=60*Hn,Jn=60*Tn,Qn=24*Jn,zn=function(e,n){n=n||{};var t=typeof e;if("string"===t&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(n){var t=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*Qn;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Jn;case"minutes":case"minute":case"mins":case"min":case"m":return t*Tn;case"seconds":case"second":case"secs":case"sec":case"s":return t*Hn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}(e);if("number"===t&&isFinite(e))return n.long?function(e){var n=Math.abs(e);return n>=Qn?Gn(e,n,Qn,"day"):n>=Jn?Gn(e,n,Jn,"hour"):n>=Tn?Gn(e,n,Tn,"minute"):n>=Hn?Gn(e,n,Hn,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=Qn?Math.round(e/Qn)+"d":n>=Jn?Math.round(e/Jn)+"h":n>=Tn?Math.round(e/Tn)+"m":n>=Hn?Math.round(e/Hn)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Gn(e,n,t,r){var a=n>=1.5*t;return Math.round(e/t)+" "+r+(a?"s":"")}var Bn,Kn,Zn,Xn,Yn,et=(function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let r=0,a=0;n[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r));}),n.splice(a,0,t);},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug");}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=function(e){function n(e){let r,a=null;function o(...e){if(!o.enabled)return;const t=o,a=Number(new Date);t.diff=a-(r||a),t.prev=r,t.curr=a,r=a,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,a)=>{if("%%"===r)return "%";i++;const o=n.formatters[a];return "function"==typeof o&&(r=o.call(t,e[i]),e.splice(i,1),i--),r}),n.formatArgs.call(t,e),(t.log||n.log).apply(t,e);}return o.namespace=e,o.useColors=n.useColors(),o.color=n.selectColor(e),o.extend=t,o.destroy=n.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?n.enabled(e):a,set:e=>{a=e;}}),"function"==typeof n.init&&n.init(o),o}function t(e,t){const r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names.map(r),...n.skips.map(r).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.names=[],n.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(t=0;t<a;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")));},n.enabled=function(e){if("*"===e[e.length-1])return !0;let t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return !1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return !0;return !1},n.humanize=zn,n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(t=>{n[t]=e[t];}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(Bn={exports:{}},Bn.exports),Bn.exports),nt=et("sq:load-event"),tt=dist$1.gql(Kn||(Kn=ae(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var at=et("sq:useForm"),ot=dist$1.gql(Zn||(Zn=ae(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),it=dist$1.gql(Xn||(Xn=ae(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),st=dist$1.gql(Yn||(Yn=ae(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));
8763
9966
 
8764
9967
  exports.$e = $e;
8765
9968
  exports.$n = $n;
9969
+ exports.An = An;
8766
9970
  exports.B = B;
8767
9971
  exports.Cn = Cn;
8768
- exports.Ee = Ee;
9972
+ exports.Dn = Dn;
9973
+ exports.En = En;
8769
9974
  exports.Fn = Fn;
8770
- exports.H = H;
8771
- exports.In = In;
8772
9975
  exports.J = J;
8773
- exports.L = L;
9976
+ exports.K = K;
9977
+ exports.Ke = Ke;
8774
9978
  exports.Mn = Mn;
8775
- exports.Pe = Pe;
8776
- exports.Pn = Pn;
9979
+ exports.On = On;
8777
9980
  exports.Q = Q;
8778
- exports.Qe = Qe;
8779
9981
  exports.Sn = Sn;
9982
+ exports.T = T;
8780
9983
  exports.Te = Te;
8781
- exports.U = U;
8782
9984
  exports.Ue = Ue;
8783
9985
  exports.We = We;
8784
9986
  exports.Xe = Xe;
8785
- exports._ = _;
9987
+ exports.Y = Y;
9988
+ exports.Ye = Ye;
8786
9989
  exports.an = an;
8787
- exports.bn = bn;
8788
- exports.dist = dist$1;
8789
9990
  exports.getEnvironmentSDK = getEnvironmentSDK;
8790
- exports.gn = gn;
9991
+ exports.hn = hn;
8791
9992
  exports.isDemo = isDemo;
8792
- exports.kn = kn;
9993
+ exports.jn = jn;
9994
+ exports.ke = ke;
8793
9995
  exports.ln = ln;
8794
- exports.memoize = memoize$1;
8795
- exports.mn = mn;
8796
- exports.nn = nn;
8797
- exports.qe = qe;
9996
+ exports.ne = ne;
9997
+ exports.qn = qn;
8798
9998
  exports.setProgramId = setProgramId;
8799
9999
  exports.setUserIdentity = setUserIdentity;
8800
- exports.src = src;
8801
10000
  exports.un = un;
8802
10001
  exports.useCallback = useCallback;
10002
+ exports.vn = vn;
8803
10003
  exports.wn = wn;
8804
10004
  exports.xe = xe;
8805
- exports.yn = yn;
10005
+ exports.xn = xn;
8806
10006
  exports.z = z;
8807
10007
  exports.ze = ze;