@saasquatch/mint-components 1.5.0-71 → 1.5.0-75
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.
- package/dist/cjs/{ShadowViewAddon-fbbacd12.js → ShadowViewAddon-c4425ca8.js} +19 -20
- package/dist/cjs/{global-58d95b21.js → global-633d1fb7.js} +46 -3
- package/dist/cjs/{index.module-54724339.js → index.module-f972f103.js} +6189 -6189
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/mint-components.cjs.js +3 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
- package/dist/cjs/sqm-big-stat.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-brand_28.cjs.entry.js → sqm-brand_29.cjs.entry.js} +113 -73
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-image_4.cjs.entry.js +12 -12
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -6
- package/dist/cjs/sqm-name-fields.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-navigation-sidebar-item-view-da648fbc.js → sqm-navigation-sidebar-item-view-2ac54715.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-f42557ca.js → sqm-portal-email-verification-view-c32a55d6.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +6 -7
- package/dist/cjs/{sqm-portal-footer-view-5e6903c9.js → sqm-portal-footer-view-cac67bc9.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -4
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-637d2fe7.js → sqm-portal-profile-view-dea275e0.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +7 -8
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -6
- package/dist/cjs/sqm-refresh-button.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +21 -15
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +266 -93
- package/dist/cjs/sqm-tab-group.cjs.entry.js +20 -0
- package/dist/cjs/sqm-tab-panel.cjs.entry.js +20 -0
- package/dist/cjs/sqm-tab.cjs.entry.js +20 -0
- package/dist/cjs/{useChildElements-4bc9b219.js → useChildElements-36bc6f2a.js} +2 -2
- package/dist/cjs/{useDemoBigStat-426e3319.js → useDemoBigStat-99093687.js} +4 -4
- package/dist/cjs/{useReferralTable-e473585e.js → useReferralTable-873ca73d.js} +6 -6
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/sqm-hero-image/HeroImage.stories.js +1 -1
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +1 -0
- package/dist/collection/components/sqm-image/Image.stories.js +3 -0
- package/dist/collection/components/sqm-image/sqm-image-view.js +2 -2
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +38 -21
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -0
- package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +87 -3
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +25 -13
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +4 -4
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -1
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +3 -0
- package/dist/collection/components/sqm-scroll/Scroll.stories.js +59 -0
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +113 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/collection/components/sqm-tab/sqm-tab.js +19 -0
- package/dist/collection/components/sqm-tab-group/sqm-tab-group.js +19 -0
- package/dist/collection/components/sqm-tab-panel/sqm-tab-panel.js +19 -0
- package/dist/collection/components/sqm-task-card/SVGs.js +3 -3
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +4 -6
- package/dist/collection/components/sqm-text/sqm-text.js +12 -11
- package/dist/esm/{ShadowViewAddon-98630948.js → ShadowViewAddon-37fc80aa.js} +19 -20
- package/dist/esm/{global-58010a55.js → global-d45758a7.js} +45 -2
- package/dist/esm/{index.module-ec3dcc82.js → index.module-8e23a02c.js} +6172 -6172
- package/dist/esm/loader.js +3 -4
- package/dist/esm/mint-components.js +3 -4
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-big-stat.entry.js +3 -3
- package/dist/esm/{sqm-brand_28.entry.js → sqm-brand_29.entry.js} +113 -74
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-image_4.entry.js +13 -13
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -6
- package/dist/esm/sqm-name-fields.entry.js +2 -2
- package/dist/esm/{sqm-navigation-sidebar-item-view-a6f7f96c.js → sqm-navigation-sidebar-item-view-7ed452df.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-email-verification-view-2c8bfca8.js → sqm-portal-email-verification-view-08c7e4d9.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +6 -7
- package/dist/esm/{sqm-portal-footer-view-a6c21fb9.js → sqm-portal-footer-view-fe94be2b.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +4 -4
- package/dist/esm/{sqm-portal-profile-view-6a4ab589.js → sqm-portal-profile-view-a549a7c0.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +7 -8
- package/dist/esm/sqm-portal-protected-route.entry.js +6 -6
- package/dist/esm/sqm-portal-reset-password.entry.js +6 -6
- package/dist/esm/sqm-portal-verify-email.entry.js +6 -6
- package/dist/esm/sqm-referral-table_11.entry.js +5 -6
- package/dist/esm/sqm-refresh-button.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +21 -15
- package/dist/esm/sqm-stencilbook.entry.js +266 -93
- package/dist/esm/sqm-tab-group.entry.js +16 -0
- package/dist/esm/sqm-tab-panel.entry.js +16 -0
- package/dist/esm/sqm-tab.entry.js +16 -0
- package/dist/esm/{useChildElements-c11d6189.js → useChildElements-47a37020.js} +2 -2
- package/dist/esm/{useDemoBigStat-022e116d.js → useDemoBigStat-e2bb9edb.js} +4 -4
- package/dist/esm/{useReferralTable-bccb9ac0.js → useReferralTable-a585a7f3.js} +6 -6
- package/dist/esm-es5/ShadowViewAddon-37fc80aa.js +1 -0
- package/dist/esm-es5/{global-58010a55.js → global-d45758a7.js} +2 -2
- package/dist/esm-es5/index.module-8e23a02c.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-brand_29.entry.js +1 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-image_4.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-a6f7f96c.js → sqm-navigation-sidebar-item-view-7ed452df.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-2c8bfca8.js → sqm-portal-email-verification-view-08c7e4d9.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-a6c21fb9.js → sqm-portal-footer-view-fe94be2b.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-6a4ab589.js → sqm-portal-profile-view-a549a7c0.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-refresh-button.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab-group.entry.js +1 -0
- package/dist/esm-es5/sqm-tab-panel.entry.js +1 -0
- package/dist/esm-es5/sqm-tab.entry.js +1 -0
- package/dist/esm-es5/{useChildElements-c11d6189.js → useChildElements-47a37020.js} +1 -1
- package/dist/esm-es5/useDemoBigStat-e2bb9edb.js +1 -0
- package/dist/esm-es5/useReferralTable-a585a7f3.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-051cd961.system.entry.js +1 -0
- package/dist/mint-components/p-0c67d3db.entry.js +1 -0
- package/dist/mint-components/{p-5a2bd8cc.js → p-0c774d6b.js} +153 -153
- package/dist/mint-components/{p-8a55dda8.system.js → p-0d59a2af.system.js} +1 -1
- package/dist/mint-components/{p-0aee946d.js → p-0ed31cac.js} +1 -1
- package/dist/mint-components/p-0ee39103.entry.js +1 -0
- package/dist/mint-components/{p-d312db42.entry.js → p-111e4604.entry.js} +1 -1
- package/dist/mint-components/{p-0d66fc45.js → p-11adc84b.js} +1 -1
- package/dist/mint-components/p-12c6ad5d.system.entry.js +1 -0
- package/dist/mint-components/{p-59454f33.system.js → p-17abcb17.system.js} +1 -1
- package/dist/mint-components/p-20f8caa1.system.entry.js +1 -0
- package/dist/mint-components/p-2213f0e9.js +30 -0
- package/dist/mint-components/p-2a68cee5.entry.js +1 -0
- package/dist/mint-components/p-2d7db47e.entry.js +1 -0
- package/dist/mint-components/{p-e1166d9b.system.entry.js → p-3250c3fb.system.entry.js} +1 -1
- package/dist/mint-components/p-3a8a0112.entry.js +1 -0
- package/dist/mint-components/{p-382a1bca.system.js → p-41659735.system.js} +1 -1
- package/dist/mint-components/p-48b6bc64.entry.js +1 -0
- package/dist/mint-components/p-4bb1034f.entry.js +1 -0
- package/dist/mint-components/p-5259ba01.entry.js +1 -0
- package/dist/mint-components/p-55b946ad.system.entry.js +1 -0
- package/dist/mint-components/p-55e0465a.system.entry.js +1 -0
- package/dist/mint-components/p-58e5967c.entry.js +13 -0
- package/dist/mint-components/{p-e7b20665.entry.js → p-609552b3.entry.js} +1 -1
- package/dist/mint-components/{p-0988f079.system.js → p-672a504b.system.js} +22 -22
- package/dist/mint-components/p-68c38020.entry.js +1 -0
- package/dist/mint-components/{p-197d1027.system.entry.js → p-68fd7c3d.system.entry.js} +1 -1
- package/dist/mint-components/{p-7a5c88bc.js → p-69f44e8b.js} +1 -1
- package/dist/mint-components/p-6b36aefc.js +1 -0
- package/dist/mint-components/p-7aea48a0.entry.js +1 -0
- package/dist/mint-components/{p-1288be55.entry.js → p-81ef8a71.entry.js} +1 -1
- package/dist/mint-components/p-88765e8f.system.entry.js +1 -0
- package/dist/mint-components/{p-76325d9c.system.entry.js → p-90c60371.system.entry.js} +1 -1
- package/dist/mint-components/{p-49c9ff69.entry.js → p-91ce29c3.entry.js} +1 -1
- package/dist/mint-components/p-95a1e28e.entry.js +1 -0
- package/dist/mint-components/{p-4dbf5bbf.system.js → p-96a155ce.system.js} +1 -1
- package/dist/mint-components/p-9724cf5a.entry.js +1 -0
- package/dist/mint-components/{p-9f65904f.entry.js → p-98e66502.entry.js} +1 -1
- package/dist/mint-components/p-9e557b3b.system.entry.js +1 -0
- package/dist/mint-components/p-aab3dc7b.system.entry.js +1 -0
- package/dist/mint-components/{p-ea197664.js → p-ac3742ab.js} +1 -1
- package/dist/mint-components/p-b343d948.system.entry.js +1 -0
- package/dist/mint-components/{p-01748c80.system.entry.js → p-bcd85b52.system.entry.js} +1 -1
- package/dist/mint-components/{p-7d74b018.system.entry.js → p-bfa918e7.system.entry.js} +1 -1
- package/dist/mint-components/{p-14655192.js → p-c094483d.js} +1 -1
- package/dist/mint-components/p-c33c381f.entry.js +1 -0
- package/dist/mint-components/{p-d6ef4765.system.entry.js → p-c4fcc31a.system.entry.js} +1 -1
- package/dist/mint-components/{p-4275c957.system.entry.js → p-c579ab6c.system.entry.js} +1 -1
- package/dist/mint-components/p-c5a062af.system.entry.js +1 -0
- package/dist/mint-components/{p-b18cc44f.js → p-c841ffb0.js} +1 -1
- package/dist/mint-components/p-cd08d6a8.entry.js +150 -0
- package/dist/mint-components/p-cdbbb5f4.system.js +1 -0
- package/dist/mint-components/{p-ac65007d.js → p-cf5d224f.js} +1 -1
- package/dist/mint-components/p-cf65447a.system.entry.js +1 -0
- package/dist/mint-components/p-cfdaecda.entry.js +1 -0
- package/dist/mint-components/{p-d8a45132.entry.js → p-d0857216.entry.js} +2 -2
- package/dist/mint-components/p-d165c3e3.system.js +1 -0
- package/dist/mint-components/{p-a674c833.system.entry.js → p-d1caa056.system.entry.js} +1 -1
- package/dist/mint-components/{p-18003e9c.system.js → p-d518d3a9.system.js} +1 -1
- package/dist/mint-components/p-d66eb6a1.system.entry.js +1 -0
- package/dist/mint-components/p-dde01793.system.js +1 -0
- package/dist/mint-components/{p-f5cba1f7.system.entry.js → p-e0d0db66.system.entry.js} +1 -1
- package/dist/mint-components/p-e443f189.system.js +1 -0
- package/dist/mint-components/p-ec98a39f.system.entry.js +1 -0
- package/dist/mint-components/{p-14bd5b1e.entry.js → p-eefd4638.entry.js} +5 -2
- package/dist/mint-components/{p-54986541.entry.js → p-ef7a6f26.entry.js} +1 -1
- package/dist/mint-components/p-f4b9696d.system.entry.js +1 -0
- package/dist/mint-components/{p-5ab40dfa.system.js → p-f8968fee.system.js} +1 -1
- package/dist/mint-components/{p-136e2028.system.entry.js → p-f9513a04.system.entry.js} +1 -1
- package/dist/mint-components/{p-f86a5253.entry.js → p-fe5467dd.entry.js} +2 -2
- package/dist/mint-components/p-fec7d941.system.entry.js +1 -0
- package/dist/types/components/sqm-image/Image.stories.d.ts +1 -0
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +1 -1
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/RewardsTable.stories.d.ts +3 -1
- package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +7 -3
- package/dist/types/components/sqm-scroll/Scroll.stories.d.ts +7 -0
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +11 -0
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +6 -0
- package/dist/types/components/sqm-tab-group/sqm-tab-group.d.ts +6 -0
- package/dist/types/components/sqm-tab-panel/sqm-tab-panel.d.ts +6 -0
- package/dist/types/components/sqm-task-card/SVGs.d.ts +3 -3
- package/dist/types/components.d.ts +64 -2
- package/dist/types/saasquatch.d.ts +3 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/insertcss-04580cfa.js +0 -47
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.css +0 -57
- package/dist/esm/insertcss-bcaf3818.js +0 -45
- package/dist/esm-es5/ShadowViewAddon-98630948.js +0 -1
- package/dist/esm-es5/index.module-ec3dcc82.js +0 -1
- package/dist/esm-es5/insertcss-bcaf3818.js +0 -1
- package/dist/esm-es5/sqm-brand_28.entry.js +0 -1
- package/dist/esm-es5/useDemoBigStat-022e116d.js +0 -1
- package/dist/esm-es5/useReferralTable-bccb9ac0.js +0 -1
- package/dist/mint-components/p-27849b7e.system.entry.js +0 -1
- package/dist/mint-components/p-27e04aaf.entry.js +0 -1
- package/dist/mint-components/p-3b184c32.js +0 -1
- package/dist/mint-components/p-408551bc.entry.js +0 -1
- package/dist/mint-components/p-4991f4c0.system.entry.js +0 -1
- package/dist/mint-components/p-5cfce001.system.entry.js +0 -1
- package/dist/mint-components/p-5e3f4daa.system.entry.js +0 -1
- package/dist/mint-components/p-61d68133.system.entry.js +0 -1
- package/dist/mint-components/p-61d769e2.system.js +0 -1
- package/dist/mint-components/p-63a6475a.system.entry.js +0 -1
- package/dist/mint-components/p-673407d4.entry.js +0 -150
- package/dist/mint-components/p-71a4e832.entry.js +0 -13
- package/dist/mint-components/p-72a978c8.entry.js +0 -1
- package/dist/mint-components/p-871536c7.entry.js +0 -1
- package/dist/mint-components/p-875f46d7.system.entry.js +0 -1
- package/dist/mint-components/p-8d74871c.system.js +0 -1
- package/dist/mint-components/p-95e36be8.entry.js +0 -1
- package/dist/mint-components/p-96c971fa.entry.js +0 -1
- package/dist/mint-components/p-97f843f9.system.entry.js +0 -1
- package/dist/mint-components/p-a2038ff2.entry.js +0 -1
- package/dist/mint-components/p-af7d926d.system.entry.js +0 -1
- package/dist/mint-components/p-b0c32d15.system.js +0 -1
- package/dist/mint-components/p-b0d6a380.system.js +0 -1
- package/dist/mint-components/p-b9974b87.entry.js +0 -1
- package/dist/mint-components/p-bb7cbb9d.system.entry.js +0 -1
- package/dist/mint-components/p-caad0168.entry.js +0 -1
- package/dist/mint-components/p-dcff1a85.entry.js +0 -1
- package/dist/mint-components/p-e7a29898.entry.js +0 -1
- package/dist/mint-components/p-f241ee8a.system.entry.js +0 -1
- package/dist/mint-components/p-f4c0cd0b.js +0 -1
- package/dist/mint-components/p-f80e4997.system.entry.js +0 -1
- package/dist/mint-components/p-fc3bbee6.js +0 -30
- package/dist/mint-components/p-fe4d9531.system.js +0 -1
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{r,h as a}from"./p-64c3217a.js";import{m as t}from"./p-b7da9a8a.js";import{i as o}from"./p-5a2bd8cc.js";import"./p-d1520098.js";import{d as e,M as s,n,b as i,k as l}from"./p-3b184c32.js";import"./p-81f34787.js";import"./p-f4c0cd0b.js";import{c as d}from"./p-c1086930.js";import{L as p}from"./p-b3af1c6f.js";const c=e.gql`
|
|
2
|
-
query ($type: String!, $filter: UserLeaderboardFilterInput) {
|
|
3
|
-
viewer {
|
|
4
|
-
... on User {
|
|
5
|
-
leaderboardRank(type: $type, filter: $filter) {
|
|
6
|
-
rowNumber
|
|
7
|
-
rank
|
|
8
|
-
denseRank
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
`,m=class{constructor(a){r(this,a),this.rankText="You are currently in {rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th} } place!",t(this)}disconnectedCallback(){}render(){const r=l()?function(r){const a=o.formatMessage({id:"rankText",defaultMessage:r.rankText},{rank:1})||"1st";return d({data:{rank:a}},r.demoData||{},{arrayMerge:(r,a)=>a})}(this):function(r){var a,t,e;const l=s(),d=n(),p={type:r.leaderboardType,filter:{programId_eq:l}};r.interval&&(p.filter.interval=r.interval);const{data:m}=i(c,p,!(null==d?void 0:d.jwt));return{data:{rank:(null===(a=null==m?void 0:m.viewer)||void 0===a?void 0:a.leaderboardRank)?o.formatMessage({id:"rankText",defaultMessage:r.rankText},{rank:null===(e=null===(t=null==m?void 0:m.viewer)||void 0===t?void 0:t.leaderboardRank)||void 0===e?void 0:e[r.rankType]}):r.unrankedText||"unranked"}}}(this);return a(p,Object.assign({},r))}};m.style="p,.P{font-size:var(--sl-font-size-small);color:var(--sl-color-gray-800);margin-top:0px}p.Subtitle,.P.Subtitle{color:var(--sl-color-gray-500);margin:0px}";export{m as sqm_leaderboard_rank}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s,c as t,r as a}from"./p-64c3217a.js";import{m as o}from"./p-b7da9a8a.js";import"./p-d1520098.js";import{x as c}from"./p-3b184c32.js";import"./p-81f34787.js";import{g as e}from"./p-4e05c65a.js";const r=a=>{const{states:o,callbacks:c}=a,{styles:e}=o;return s(t,{class:"squatch-container"},s("div",{style:{padding:a.states.styles.padding}},e.closeButton&&s("span",{class:"close squatch-header-close","data-close-panel":"#squatch-panel",onClick:()=>c.closePopup()},e.closeButtonText),s("slot",null),e.poweredBy?s("a",{class:"sqh-attribution",href:"https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget",target:"_blank"},"Powered By"):""))},n=class{constructor(s){a(this,s),o(this)}disconnectedCallback(){}render(){const t=e(this);return s(r,Object.assign({},function(s){const t=c(),a=s.popupPadding?"none"===s.popupPadding?"0":`var(--sl-spacing-${s.popupPadding})`:"var(--sl-spacing-medium)",o=s.embedPadding?"none"===s.embedPadding?"0":`var(--sl-spacing-${s.embedPadding})`:"0",e="POPUP"===c()?a:o;return{states:{showCloseButton:s.closeButton&&"POPUP"===t,styles:{...s,padding:e,closeButtonText:s.closeButtonText?s.closeButtonText:"X"}},data:{},callbacks:{closePopup:function(){var s;"POPUP"===c()&&(null===(s=window.frameElement.squatchJsApi)||void 0===s||s.close())}}}}(t)))}};n.style=".squatch-header-close{position:absolute;right:20px;top:10px;cursor:pointer}.squatch-container{background-color:var(--widget-background-color);display:block}";export{n as sqm_popup_container}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as t}from"./p-64c3217a.js";import{m as s}from"./p-b7da9a8a.js";import"./p-d1520098.js";import{h as r,k as o}from"./p-3b184c32.js";import"./p-81f34787.js";import{c as i}from"./p-c1086930.js";import"./p-26f627aa.js";import"./p-373fa002.js";import{g as e}from"./p-4e05c65a.js";import{N as p}from"./p-ea197664.js";const c=class{constructor(t){a(this,t),s(this)}disconnectedCallback(){}render(){const a=o()?function(a){return i({states:{active:!1},data:{label:a.label||"Dashboard",icon:a.icon||"house"}},a.demoData||{},{arrayMerge:(a,t)=>t})}(e(this)):function(a){return{states:{active:r().pathname===a.path},data:{label:a.label,icon:a.icon,path:a.path}}}(e(this));return t(p,Object.assign({},a))}};export{c as sqm_navigation_sidebar_item}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,r){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:r})}else{e.raw=r}return e};System.register(["./p-ff17b3a4.system.js","./p-9580888c.system.js","./p-0988f079.system.js","./p-e00e11b1.system.js","./p-b0d6a380.system.js","./p-1c17892a.system.js","./p-61d769e2.system.js","./p-4bd679a7.system.js","./p-bf055b6c.system.js"],(function(e){"use strict";var r,n,t,a,i,o,s,l,d,u,f;return{setters:[function(e){r=e.r;n=e.h},function(e){t=e.m},function(e){a=e.i},function(){},function(e){i=e.d;o=e.M;s=e.n;l=e.b;d=e.k},function(){},function(){},function(e){u=e.c},function(e){f=e.L}],execute:function(){var c=i.gql(__makeTemplateObject(["\n query ($type: String!, $filter: UserLeaderboardFilterInput) {\n viewer {\n ... on User {\n leaderboardRank(type: $type, filter: $filter) {\n rowNumber\n rank\n denseRank\n }\n }\n }\n }\n"],["\n query ($type: String!, $filter: UserLeaderboardFilterInput) {\n viewer {\n ... on User {\n leaderboardRank(type: $type, filter: $filter) {\n rowNumber\n rank\n denseRank\n }\n }\n }\n }\n"]));function p(e){var r,n,t;var i=o();var d=s();var u={type:e.leaderboardType,filter:{programId_eq:i}};if(e.interval){u.filter["interval"]=e.interval}var f=l(c,u,!(d===null||d===void 0?void 0:d.jwt)).data;var p=((r=f===null||f===void 0?void 0:f.viewer)===null||r===void 0?void 0:r.leaderboardRank)?a.formatMessage({id:"rankText",defaultMessage:e.rankText},{rank:(t=(n=f===null||f===void 0?void 0:f.viewer)===null||n===void 0?void 0:n.leaderboardRank)===null||t===void 0?void 0:t[e.rankType]}):e.unrankedText||"unranked";return{data:{rank:p}}}var v="p,.P{font-size:var(--sl-font-size-small);color:var(--sl-color-gray-800);margin-top:0px}p.Subtitle,.P.Subtitle{color:var(--sl-color-gray-500);margin:0px}";var y=e("sqm_leaderboard_rank",function(){function e(e){r(this,e);this.rankText="You are currently in {rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th} } place!";t(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=d()?k(this):p(this);return n(f,Object.assign({},e))};return e}());function k(e){var r=a.formatMessage({id:"rankText",defaultMessage:e.rankText},{rank:1})||"1st";return u({data:{rank:r}},e.demoData||{},{arrayMerge:function(e,r){return r}})}y.style=v}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-ff17b3a4.system.js","./p-9580888c.system.js","./p-0988f079.system.js","./p-e00e11b1.system.js","./p-b0d6a380.system.js","./p-1c17892a.system.js","./p-61d769e2.system.js"],(function(e,t){"use strict";var a,r,o;return{setters:[function(e){a=e.p;r=e.H;o=e.b},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var e=function(){{s(r.prototype)}var e=t.meta.url;var o={};if(e!==""){o.resourcesUrl=new URL(".",e).href}return a(o)};var s=function(e){var t=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return t.call(this,e)}var a=t.call(this,false);var r=this.childNodes;if(e){for(var o=0;o<r.length;o++){if(r[o].nodeType!==2){a.appendChild(r[o].cloneNode(true))}}}return a}};e().then((function(e){return o(JSON.parse('[["p-5cfce001.system",[[4,"sqm-stencilbook",{"ignored":[32]}]]],["p-e1166d9b.system",[[1,"sqm-portal-reset-password",{"nextPage":[1,"next-page"],"failedPage":[1,"failed-page"],"confirmPassword":[4,"confirm-password"],"resetPasswordHeader":[1,"reset-password-header"],"passwordResetHeader":[1,"password-reset-header"],"resetPasswordButtonText":[1,"reset-password-button-text"],"continueButtonText":[1,"continue-button-text"],"confirmPasswordFieldLabel":[1,"confirm-password-field-label"],"passwordFieldLabel":[1,"password-field-label"],"demoData":[16],"ignored":[32]}]]],["p-4991f4c0.system",[[1,"sqm-portal-email-verification",{"redirectPath":[1,"redirect-path"],"emailVerificationHeader":[1,"email-verification-header"],"resendEmailButtonText":[1,"resend-email-button-text"],"verifyMessage":[1,"verify-message"],"demoData":[16],"ignored":[32]}]]],["p-76325d9c.system",[[1,"sqm-portal-forgot-password",{"redirectPath":[1,"redirect-path"],"emailLabel":[1,"email-label"],"submitLabel":[1,"submit-label"],"loginPath":[1,"login-path"],"demoData":[16],"ignored":[32]}]]],["p-61d68133.system",[[1,"sqm-portal-profile",{"firstnametext":[1],"lastnametext":[1],"emailtext":[1],"countrytext":[1],"editProfileHeader":[1,"edit-profile-header"],"editProfileSubHeader":[1,"edit-profile-sub-header"],"submitChangeButtonText":[1,"submit-change-button-text"],"showCountry":[4,"show-country"],"demoData":[16],"ignored":[32]}]]],["p-d6ef4765.system",[[1,"sqm-portal-verify-email",{"nextPage":[1,"next-page"],"failedPage":[1,"failed-page"],"demoData":[16],"ignored":[32]}]]],["p-a674c833.system",[[1,"sqm-asset-card",{"titleText":[1,"title-text"],"imgUrl":[1,"img-url"],"demoData":[16],"ignored":[32]}]]],["p-7d74b018.system",[[1,"sqm-big-stat",{"statType":[1,"stat-type"],"flexReverse":[4,"flex-reverse"],"alignment":[1],"programId":[1,"program-id"],"demoData":[16],"ignored":[32]}]]],["p-136e2028.system",[[4,"sqm-graphql-client-provider",{"domain":[1],"ignored":[32]}]]],["p-81681ebd.system",[[1,"sqm-hero",{"columns":[2],"background":[1],"paddingSize":[1,"padding-size"],"secondaryBackground":[1,"secondary-background"],"wrapDirection":[1,"wrap-direction"]}]]],["p-875f46d7.system",[[1,"sqm-leaderboard-rank",{"rankType":[1,"rank-type"],"rankText":[1,"rank-text"],"leaderboardType":[1,"leaderboard-type"],"unrankedText":[1,"unranked-text"],"interval":[1],"demoData":[16]}]]],["p-f5cba1f7.system",[[0,"sqm-name-fields",{"firstNameLabel":[1,"first-name-label"],"lastNameLabel":[1,"last-name-label"],"demoData":[16],"ignored":[32]}]]],["p-348461ec.system",[[1,"sqm-navigation-sidebar",{"ignored":[32]}]]],["p-63a6475a.system",[[1,"sqm-navigation-sidebar-item",{"path":[1],"icon":[1],"label":[1],"demoData":[16]}]]],["p-197d1027.system",[[4,"sqm-popup-container",{"poweredBy":[4,"powered-by"],"closeButton":[4,"close-button"],"closeButtonText":[1,"close-button-text"],"embedPadding":[1,"embed-padding"],"popupPadding":[1,"popup-padding"]}]]],["p-af7d926d.system",[[1,"sqm-portal-footer",{"supportEmail":[1,"support-email"],"supportText":[1,"support-text"],"termsLink":[1,"terms-link"],"termsText":[1,"terms-text"],"faqLink":[1,"faq-link"],"faqText":[1,"faq-text"],"showPoweredBy":[4,"show-powered-by"],"poweredByLink":[1,"powered-by-link"],"paddingTop":[1,"padding-top"],"paddingRight":[1,"padding-right"],"paddingBottom":[1,"padding-bottom"],"paddingLeft":[1,"padding-left"],"ignored":[32]}]]],["p-97f843f9.system",[[1,"sqm-portal-logout",{"nextPage":[1,"next-page"],"ignored":[32]}]]],["p-f241ee8a.system",[[1,"sqm-portal-protected-route",{"redirectTo":[1,"redirect-to"],"requireEmailVerification":[4,"require-email-verification"],"redirectToUnverified":[1,"redirect-to-unverified"],"ignored":[32]}]]],["p-01748c80.system",[[1,"sqm-refresh-button",{"icon":[1]}]]],["p-c1a47137.system",[[1,"sqm-route",{"path":[1],"ignored":[32]}]]],["p-232db563.system",[[1,"sqm-stat-container",{"space":[1],"ignored":[32]}]]],["p-b0e8c584.system",[[0,"sqm-text-span",{"text":[1],"type":[1],"ignored":[32]}]]],["p-4275c957.system",[[0,"sqm-password-field",{"fieldLabel":[1,"field-label"],"enableValidation":[4,"enable-validation"],"demoData":[16],"ignored":[32]}]]],["p-2454f30a.system",[[1,"sqm-form-message",{"type":[1],"icon":[1],"ignored":[32]}]]],["p-27849b7e.system",[[1,"sqm-image",{"imageUrl":[1,"image-url"],"left":[1],"right":[1],"align":[1],"backgroundColor":[1,"background-color"],"minHeight":[1,"min-height"],"maxWidth":[1,"max-width"],"ignored":[32]}],[1,"sqm-portal-container",{"direction":[1],"padding":[1],"gap":[1],"minWidth":[1,"min-width"],"display":[1],"maxWidth":[1,"max-width"],"center":[4],"ignored":[32]}],[4,"sqm-text",{"ignored":[32]}],[1,"sqm-titled-section",{"label":[1],"textAlign":[1,"text-align"],"labelMargin":[1,"label-margin"],"padding":[1]}]]],["p-f80e4997.system",[[1,"sqm-leaderboard",{"usersheading":[1],"statsheading":[1],"rankheading":[1],"showRank":[4,"show-rank"],"showUser":[4,"show-user"],"rankType":[1,"rank-type"],"leaderboardType":[1,"leaderboard-type"],"anonymousUser":[1,"anonymous-user"],"interval":[1],"emptyStateImage":[1,"empty-state-image"],"emptyStateHeader":[1,"empty-state-header"],"emptyStateText":[1,"empty-state-text"],"demoData":[16],"ignored":[32]}],[1,"sqm-portal-change-password",{"modalChangePasswordHeader":[1,"modal-change-password-header"],"cancelText":[1,"cancel-text"],"changePasswordButtonText":[1,"change-password-button-text"],"passwordFieldLabel":[1,"password-field-label"],"confirmPasswordFieldLabel":[1,"confirm-password-field-label"],"successMessage":[1,"success-message"],"portalChangePasswordHeader":[1,"portal-change-password-header"],"portalChangePasswordButtonText":[1,"portal-change-password-button-text"],"demoData":[16],"ignored":[32]}],[1,"sqm-portal-register",{"nextPage":[1,"next-page"],"redirectPath":[1,"redirect-path"],"emailLabel":[1,"email-label"],"passwordLabel":[1,"password-label"],"submitLabel":[1,"submit-label"],"loginLabel":[1,"login-label"],"confirmPasswordLabel":[1,"confirm-password-label"],"confirmPassword":[4,"confirm-password"],"enablePasswordValidation":[4,"enable-password-validation"],"hideInputs":[4,"hide-inputs"],"pageLabel":[1,"page-label"],"loginPath":[1,"login-path"],"demoData":[16],"ignored":[32]}],[1,"sqm-edit-profile",{"editprofileheader":[1],"editprofiletext":[1],"canceltext":[1],"updatetext":[1],"firstnametext":[1],"lastnametext":[1],"currentregiontext":[1],"showregion":[4],"demoData":[16],"ignored":[32]}],[1,"sqm-portal-login",{"nextPage":[1,"next-page"],"emailLabel":[1,"email-label"],"passwordLabel":[1,"password-label"],"submitLabel":[1,"submit-label"],"forgotPasswordLabel":[1,"forgot-password-label"],"registerLabel":[1,"register-label"],"pageLabel":[1,"page-label"],"registerPath":[1,"register-path"],"forgotPasswordPath":[1,"forgot-password-path"],"demoData":[16],"ignored":[32]}],[1,"sqm-brand",{"brandColor":[1,"brand-color"],"brandFont":[1,"brand-font"],"background":[1]}],[1,"sqm-card-feed",{"width":[2],"gap":[2],"ignored":[32]}],[1,"sqm-divided-layout",{"direction":[1],"dividerStyle":[1,"divider-style"]}],[1,"sqm-hero-image",{"imageUrl":[1,"image-url"],"minHeight":[1,"min-height"],"maxHeight":[1,"max-height"],"maxWidth":[1,"max-width"],"overlayColor":[1,"overlay-color"],"overlayOpacity":[1,"overlay-opacity"],"textColor":[1,"text-color"],"backgroundColor":[1,"background-color"],"layout":[1],"imagePercentage":[2,"image-percentage"],"imagePos":[1,"image-pos"],"imageMobilePos":[1,"image-mobile-pos"],"header":[1],"description":[1],"buttonText":[1,"button-text"],"buttonLink":[1,"button-link"],"buttonNewTab":[4,"button-new-tab"],"paddingText":[1,"padding-text"],"paddingImage":[1,"padding-image"]}],[0,"sqm-hook-story-container",{"hookStory":[16],"ignored":[32]}],[1,"sqm-navigation-menu",{"includeDropdown":[4,"include-dropdown"],"menuLabel":[1,"menu-label"],"demoData":[16],"ignored":[32]}],[1,"sqm-portal-frame",{"demoData":[16],"ignored":[32]}],[1,"sqm-program-explainer",{"header":[1],"textColor":[1,"text-color"],"backgroundColor":[1,"background-color"],"ignored":[32]}],[1,"sqm-program-explainer-step",{"header":[1],"description":[1],"textColor":[1,"text-color"],"backgroundColor":[1,"background-color"],"imageUrl":[1,"image-url"],"icon":[1]}],[4,"sqm-program-menu",{"ignored":[32]}],[1,"sqm-referral-card",{"padding":[1],"verticalAlignment":[1,"vertical-alignment"],"ignored":[32]}],[0,"sqm-referral-iframe",{"iframeSrc":[1,"iframe-src"],"iframeHeight":[1,"iframe-height"],"iframeWidth":[1,"iframe-width"],"demoData":[16],"ignored":[32]}],[1,"sqm-reward-exchange-list",{"buttonText":[1,"button-text"],"notAvailableError":[1,"not-available-error"],"chooseRewardTitle":[1,"choose-reward-title"],"chooseAmountTitle":[1,"choose-amount-title"],"confirmationTitle":[1,"confirmation-title"],"rewardTitle":[1,"reward-title"],"cancelText":[1,"cancel-text"],"backText":[1,"back-text"],"continueText":[1,"continue-text"],"continueToConfirmationText":[1,"continue-to-confirmation-text"],"redeemText":[1,"redeem-text"],"redeemTitle":[1,"redeem-title"],"redemptionSuccessText":[1,"redemption-success-text"],"sourceAmountMessage":[1,"source-amount-message"],"tooltiptext":[1],"doneText":[1,"done-text"],"selectText":[1,"select-text"],"queryError":[1,"query-error"],"redemptionError":[1,"redemption-error"],"notEnoughError":[1,"not-enough-error"],"promoCode":[1,"promo-code"],"skeletonCardNum":[2,"skeleton-card-num"],"rewardNameTitle":[1,"reward-name-title"],"rewardAmountTitle":[1,"reward-amount-title"],"costTitle":[1,"cost-title"],"demoData":[16],"ignored":[32]}],[4,"sqm-router",{"ignored":[32]}],[1,"sqm-share-button",{"medium":[1],"programId":[1,"program-id"],"borderradius":[2],"backgroundcolor":[1],"textcolor":[1],"pill":[4],"disabled":[4],"type":[1],"size":[1],"iconslot":[1],"icon":[1],"hideicon":[4],"hidetext":[4],"sharetitle":[1],"sharetext":[1],"demoData":[16]}],[1,"sqm-share-code",{"programId":[1,"program-id"],"tooltiptext":[1,"tooltip-text"],"tooltiplifespan":[2,"tooltip-lifespan"],"demoData":[16]}],[1,"sqm-share-link",{"programId":[1,"program-id"],"tooltiptext":[1,"tooltip-text"],"tooltiplifespan":[2,"tooltip-lifespan"],"demoData":[16]}],[1,"sqm-task-card",{"rewardAmount":[1,"reward-amount"],"rewardUnit":[1,"reward-unit"],"cardTitle":[1,"card-title"],"description":[1],"repeatable":[4],"finite":[2],"showProgressBar":[4,"show-progress-bar"],"goal":[2],"steps":[4],"progressBarUnit":[1,"progress-bar-unit"],"expiryMessage":[1,"expiry-message"],"rewardDuration":[1,"reward-duration"],"startsOnMessage":[1,"starts-on-message"],"displayDuration":[1,"display-duration"],"endedMessage":[1,"ended-message"],"completedText":[1,"completed-text"],"buttonText":[1,"button-text"],"buttonLink":[1,"button-link"],"openNewTab":[4,"open-new-tab"],"statType":[1,"stat-type"],"eventKey":[1,"event-key"],"programId":[1,"program-id"],"demoData":[16],"ignored":[32]}],[1,"sqm-timeline",{"icon":[1],"ignored":[32]}],[1,"sqm-timeline-entry",{"reward":[1],"unit":[1],"desc":[1],"line":[4],"icon":[1],"ignored":[32]}],[1,"sqm-user-name",{"fallback":[1],"loadingText":[1,"loading-text"],"demoData":[16],"_ignored":[32]}],[1,"sqm-table-cell",{"colspan":[2],"padding":[1]}],[1,"sqm-table-row",{"border":[1]}]]],["p-bb7cbb9d.system",[[1,"sqm-rewards-table",{"programId":[1,"program-id"],"perPage":[2,"per-page"],"showLabels":[4,"show-labels"],"prevLabel":[1,"prev-label"],"moreLabel":[1,"more-label"],"hiddenColumns":[1,"hidden-columns"],"smBreakpoint":[2,"sm-breakpoint"],"mdBreakpoint":[2,"md-breakpoint"],"emptyStateImage":[1,"empty-state-image"],"emptyStateHeader":[1,"empty-state-header"],"emptyStateText":[1,"empty-state-text"],"demoData":[16]}],[1,"sqm-rewards-table-date-column",{"columnTitle":[1,"column-title"],"dateShown":[1,"date-shown"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-rewards-table-reward-column",{"columnTitle":[1,"column-title"],"redeemedText":[1,"redeemed-text"],"availableText":[1,"available-text"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-rewards-table-source-column",{"columnTitle":[1,"column-title"],"anonymousUser":[1,"anonymous-user"],"deletedUser":[1,"deleted-user"],"rewardExchangeText":[1,"reward-exchange-text"],"referralText":[1,"referral-text"],"rewardSourceText":[1,"reward-source-text"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-rewards-table-status-column",{"columnTitle":[1,"column-title"],"statusText":[1,"status-text"],"expiryText":[1,"expiry-text"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-rewards-table-date-cell",{"date":[2],"locale":[1],"ignored":[32]}],[1,"sqm-rewards-table-reward-cell",{"reward":[16],"redeemedText":[1,"redeemed-text"],"availableText":[1,"available-text"],"locale":[1]}],[1,"sqm-rewards-table-source-cell",{"reward":[16],"deletedUserText":[1,"deleted-user-text"],"anonymousUserText":[1,"anonymous-user-text"],"rewardExchangeText":[1,"reward-exchange-text"],"referralText":[1,"referral-text"],"rewardSourceText":[1,"reward-source-text"],"locale":[1]}],[1,"sqm-rewards-table-status-cell",{"statusText":[1,"status-text"],"reward":[16],"expiryText":[1,"expiry-text"],"locale":[1],"pendingUsTax":[1,"pending-us-tax"],"pendingScheduled":[1,"pending-scheduled"],"pendingUnhandled":[1,"pending-unhandled"]}]]],["p-5e3f4daa.system",[[1,"sqm-referral-table-column",{"columnTitle":[1,"column-title"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-referral-table",{"programId":[1,"program-id"],"perPage":[2,"per-page"],"showLabels":[4,"show-labels"],"prevLabel":[1,"prev-label"],"moreLabel":[1,"more-label"],"showReferrer":[4,"show-referrer"],"hiddenColumns":[1,"hidden-columns"],"smBreakpoint":[2,"sm-breakpoint"],"mdBreakpoint":[2,"md-breakpoint"],"emptyStateImage":[1,"empty-state-image"],"emptyStateHeader":[1,"empty-state-header"],"emptyStateText":[1,"empty-state-text"],"demoData":[16]}],[1,"sqm-referral-table-date-column",{"columnTitle":[1,"column-title"],"dateShown":[1,"date-shown"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-referral-table-rewards-column",{"columnTitle":[1,"column-title"],"statusText":[1,"status-text"],"statusLongText":[1,"status-long-text"],"fuelTankText":[1,"fuel-tank-text"],"rewardReceivedText":[1,"reward-received-text"],"expiringText":[1,"expiring-text"],"pendingForText":[1,"pending-for-text"],"hideDetails":[4,"hide-details"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-referral-table-status-column",{"columnTitle":[1,"column-title"],"convertedStatusText":[1,"converted-status-text"],"inProgressStatusText":[1,"in-progress-status-text"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-referral-table-user-column",{"columnTitle":[1,"column-title"],"anonymousUser":[1,"anonymous-user"],"deletedUser":[1,"deleted-user"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-referral-table-cell",{"innerTemplate":[1,"inner-template"],"ignored":[32]}],[1,"sqm-referral-table-date-cell",{"date":[2],"locale":[1],"ignored":[32]}],[1,"sqm-referral-table-rewards-cell",{"rewards":[16],"hideDetails":[4,"hide-details"],"statusText":[1,"status-text"],"statusLongText":[1,"status-long-text"],"fuelTankText":[1,"fuel-tank-text"],"rewardReceivedText":[1,"reward-received-text"],"expiringText":[1,"expiring-text"],"pendingForText":[1,"pending-for-text"],"locale":[1]}],[1,"sqm-referral-table-status-cell",{"statusText":[1,"status-text"],"converted":[4]}],[1,"sqm-referral-table-user-cell",{"name":[1]}]]]]'),e)}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as s,g as t,c as a}from"./p-64c3217a.js";import{m as r}from"./p-b7da9a8a.js";import{i as l}from"./p-5a2bd8cc.js";import"./p-d1520098.js";import{k as i}from"./p-3b184c32.js";import"./p-81f34787.js";import"./p-f4c0cd0b.js";import{c as n}from"./p-c1086930.js";import"./p-26f627aa.js";import{c as o}from"./p-373fa002.js";import{G as c}from"./p-3a374367.js";import{b as d}from"./p-ac65007d.js";import{u}from"./p-14655192.js";import{l as p}from"./p-591de129.js";import{l as h}from"./p-4e05c65a.js";import{T as m}from"./p-179988b5.js";const g=class{constructor(s){e(this,s),this.perPage=3,this.showLabels=!0,this.prevLabel="Prev",this.moreLabel="Next",this.showReferrer=!1,this.hiddenColumns="0",this.smBreakpoint=634,this.mdBreakpoint=899,this.emptyStateImage="https://res.cloudinary.com/saasquatch/image/upload/v1642618031/squatch-assets/image_3_1.png",this.emptyStateHeader="View your referral details",this.emptyStateText="Track the status of your referrals and rewards earned by referring friends",r(this)}disconnectedCallback(){}render(){const e=s(b,{emptyStateImage:this.emptyStateImage,emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText}),t=s(y,null),{states:a,data:r,callbacks:l,elements:o}=i()?n({states:{hasPrev:!1,hasNext:!1,loading:!1},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:(d=this).showLabels,prevLabel:d.prevLabel,moreLabel:d.moreLabel},referralData:[]},elements:{emptyElement:s(b,{emptyStateImage:"https://res.cloudinary.com/saasquatch/image/upload/v1642618031/squatch-assets/image_3_1.png",emptyStateHeader:"View your referral details",emptyStateText:"Track the status of your referrals and rewards earned by referring\r\n\t\tfriends"}),loadingElement:s(y,null),columns:[s("div",null,"User"),s("div",null,"Referral Status"),s("div",null,"Rewards")],rows:[]}},d.demoData||{},{arrayMerge:(e,s)=>s}):u(this,e,t);var d;return console.log("elemente",o),s(c,{states:a,data:r,callbacks:l,elements:o})}};function y(){return s("slot",{name:"loading"},s(f,null),s(f,null),s(f,null),s(f,null))}function f(){return s("sqm-table-row",null,s("sqm-table-cell",{colspan:5},s("sl-skeleton",null)))}function b({emptyStateImage:e,emptyStateHeader:t,emptyStateText:a}){return s("div",{slot:"empty",style:{display:"contents"}},s("sqm-table-row",null,s("sqm-table-cell",{colspan:5,style:{textAlign:"center"}},s("sqm-portal-container",{padding:"xxxx-large",gap:"medium"},s("sqm-image",{"image-url":e,"max-width":"100px"}),s("sqm-titled-section",{"label-margin":"xxx-small","text-align":"center"},s("sqm-text",{slot:"label"},s("h3",null,t)),s("sqm-text",{slot:"content"},a))))))}const v=class{constructor(s){e(this,s),this.ignored=!0,r(this)}disconnectedCallback(){}render(){return s("div",{innerHTML:this.innerTemplate})}},x=class{constructor(s){e(this,s),r(this)}disconnectedCallback(){}async renderCell(e){return s("sqm-referral-table-cell",{"inner-template":t(this).innerHTML})}async renderLabel(){return Promise.resolve(this.columnTitle)}render(){return d([this.columnTitle]),s(a,{style:{display:"none"}},s("slot",null))}},E=class{constructor(s){e(this,s),this.ignored=!0,this.locale="en",r(this)}disconnectedCallback(){}render(){var e;return this.date?null===(e=p.DateTime.fromMillis(this.date))||void 0===e?void 0:e.setLocale(h(this.locale)).toLocaleString(p.DateTime.DATE_MED):"-"}},_=class{constructor(s){e(this,s),this.columnTitle="Date converted",this.dateShown="dateConverted",r(this)}disconnectedCallback(){}async renderCell(e,t){return console.log("date column - referral",{locale:t}),s("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:t})}async renderLabel(){return this.columnTitle}render(){return d([this.dateShown,this.columnTitle]),s(a,{style:{display:"none"}})}},L=class{constructor(s){e(this,s),this.locale="en"}render(){l.locale=this.locale;const e=o({"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:this.hideDetails?"default":"pointer"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:this.hideDetails?"none":"flex"},"&::part(summary-icon[open])":{transform:"rotate(-90deg)",background:"red"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)"},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{background:"var(--sl-color-blue-600)"}}}),t=e.toString(),a=e=>p.DateTime.fromMillis(e).setLocale(h(this.locale)).toRelative().replace("in","").trim();return this.rewards.map((r=>{const i=1===(n=r.statuses).length?n[0]:["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE"].find((e=>n.includes(e)&&e));var n;const o=(e=>{switch(e){case"REDEEMED":return"primary";case"EXPIRED":case"CANCELLED":return"danger";case"PENDING":return"warning";case"AVAILABLE":return"success"}})(i),c=l.formatMessage({id:"statusShortMessage",defaultMessage:this.statusText},{status:i}),d=l.formatMessage({id:"statusLongMessage",defaultMessage:this.statusLongText},{status:i});return Math.random().toString(36).slice(2),s("sl-details",{class:e.classes.Details,disabled:this.hideDetails},s("style",{type:"text/css"},t),s("div",{slot:"summary",class:e.classes.DetailsContainer},s(m,{type:"p"},s("span",{class:e.classes.BoldText},r.prettyValue)),s("div",{class:e.classes.BadgeContainer},s("sl-badge",{class:"primary"===o?e.classes.RedeemBadge:e.classes.StatusBadge,type:o,pill:!0},"PENDING"===i&&r.dateScheduledFor?l.formatMessage({id:"pendingForText",defaultMessage:this.pendingForText},{status:c,date:a(r.dateScheduledFor)}):c),r.dateExpires&&"AVAILABLE"===i&&s("sl-badge",{class:"primary"===o?e.classes.RedeemBadge:e.classes.StatusBadge,type:"info",pill:!0},this.expiringText,` ${a(r.dateExpires)}`))),s("div",null,r.dateGiven&&s("div",null,s(m,{type:"p"},this.rewardReceivedText," ",s("span",{class:e.classes.BoldText},p.DateTime.fromMillis(r.dateGiven).setLocale(h(this.locale)).toLocaleString(p.DateTime.DATE_MED)))),"EXPIRED"===i&&r.dateExpires&&s("div",null,s(m,{type:"p"},d," ",s("span",{class:e.classes.BoldText},p.DateTime.fromMillis(r.dateExpires).setLocale(h(this.locale)).toLocaleString(p.DateTime.DATE_MED)))),"CANCELLED"===i&&r.dateCancelled&&s("div",null,s(m,{type:"p"},d," ",s("span",{class:e.classes.BoldText},p.DateTime.fromMillis(r.dateCancelled).setLocale(h(this.locale)).toLocaleString(p.DateTime.DATE_MED)))),"PENDING"===i&&r.dateScheduledFor&&s("div",null,s(m,{type:"p"},d," ",s("span",{class:e.classes.BoldText},p.DateTime.fromMillis(r.dateScheduledFor).setLocale(h(this.locale)).toLocaleString(p.DateTime.DATE_MED))))," ","AVAILABLE"===i&&r.dateExpires&&s("div",null,s(m,{type:"p"},d," ",s("span",{class:e.classes.BoldText},p.DateTime.fromMillis(r.dateExpires).setLocale(h(this.locale)).toLocaleString(p.DateTime.DATE_MED)))),r.fuelTankCode&&s("div",null,this.fuelTankText," ",s("span",{class:e.classes.BoldText},r.fuelTankCode))))}))}},w=class{constructor(s){e(this,s),this.columnTitle="Rewards",this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }",this.fuelTankText="Your code is",this.rewardReceivedText="Reward received on",this.expiringText="Expiring in",this.pendingForText="{status} for {date}",this.hideDetails=!1,r(this)}disconnectedCallback(){}async renderCell(e,t){return s("sqm-referral-table-rewards-cell",{rewards:e.rewards,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,locale:t})}async renderLabel(){return this.columnTitle}render(){return d([this.columnTitle]),s(a,{style:{display:"none"}})}},q=class{constructor(s){e(this,s)}render(){const e=o({Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px"}}}),t=e.toString();return s("div",null,s("style",{type:"text/css"},t),s("sl-badge",{pill:!0,type:this.converted?"success":"warning",class:e.classes.Badge},this.statusText))}},C=class{constructor(s){e(this,s),this.columnTitle="Status",this.convertedStatusText="Converted",this.inProgressStatusText="In Progress",r(this)}disconnectedCallback(){}async renderCell(e){return s("sqm-referral-table-status-cell",{"status-text":e.dateConverted?this.convertedStatusText:this.inProgressStatusText,converted:!!e.dateConverted})}async renderLabel(){return this.columnTitle}render(){return d([this.columnTitle]),s(a,{style:{display:"none"}})}},D=class{constructor(s){e(this,s)}render(){return this.name}},A=class{constructor(s){e(this,s),this.columnTitle="Customer",this.anonymousUser="Anonymous User",this.deletedUser="Deleted User",r(this)}disconnectedCallback(){}async renderCell(e){var t,a,r,l;let i;return i=(null==e?void 0:e.referredUser)?(null===(t=null==e?void 0:e.referredUser)||void 0===t?void 0:t.firstName)||(null===(a=null==e?void 0:e.referredUser)||void 0===a?void 0:a.lastName)?`${null===(r=null==e?void 0:e.referredUser)||void 0===r?void 0:r.firstName} ${null===(l=null==e?void 0:e.referredUser)||void 0===l?void 0:l.lastName}`:this.anonymousUser:this.deletedUser,s("sqm-referral-table-user-cell",{name:i})}async renderLabel(){return this.columnTitle}render(){return d([this.deletedUser,this.anonymousUser,this.columnTitle]),s(a,{style:{display:"none"}})}};export{g as sqm_referral_table,v as sqm_referral_table_cell,x as sqm_referral_table_column,E as sqm_referral_table_date_cell,_ as sqm_referral_table_date_column,L as sqm_referral_table_rewards_cell,w as sqm_referral_table_rewards_column,q as sqm_referral_table_status_cell,C as sqm_referral_table_status_column,D as sqm_referral_table_user_cell,A as sqm_referral_table_user_column}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-64c3217a.js";import{m as r}from"./p-b7da9a8a.js";import"./p-d1520098.js";import{k as a}from"./p-3b184c32.js";import"./p-81f34787.js";import{c as e}from"./p-c1086930.js";import"./p-373fa002.js";import{A as c}from"./p-5c75acad.js";const i=class{constructor(s){t(this,s),this.ignored=!0,r(this)}disconnectedCallback(){}render(){const t=a()?function(t){return e({text:{titleText:"Marketing Banner"},imgUrl:"../../assets/saasquatch-logo.png",callbacks:{}},t.demoData||{},{arrayMerge:(t,s)=>s})}(this):{text:{titleText:"Marketing Banner"},imgUrl:null,callbacks:{}};return s(c,Object.assign({},t))}static get assetsDirs(){return["../../assets"]}};export{i as sqm_asset_card}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-ff17b3a4.system.js","./p-9580888c.system.js","./p-e00e11b1.system.js","./p-b0d6a380.system.js","./p-1c17892a.system.js"],(function(t){"use strict";var n,e,s,i,o;return{setters:[function(t){n=t.r},function(t){e=t.m},function(){},function(t){s=t.Y;i=t.p;o=t.k},function(){}],execute:function(){function c(t){var n=t.nextPage;s(undefined);i.push({pathname:n,search:""})}var u=t("sqm_portal_logout",function(){function t(t){n(this,t);this.ignored=true;this.nextPage="/";e(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){o()?r():c(this)};return t}());function r(t){}}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as n}from"./p-64c3217a.js";import{m as s,b as o}from"./p-b7da9a8a.js";import"./p-81f34787.js";import{i as e}from"./p-f4c0cd0b.js";import{c as r}from"./p-373fa002.js";import{g as i}from"./p-4e05c65a.js";import{P as l}from"./p-975d4358.js";import{P as a}from"./p-e08f5f8e.js";function c(n){const s=r({Container:{display:"flex",width:"100%",justifyContent:n.align||"center",background:n.backgroundColor||""},Image:{maxWidth:n.maxWidth||"100%",maxHiehgt:n.maxHeight||"100%",objectFit:"cover",marginLeft:n.left||"0",marginRight:n.right||"0"}}),o=s.toString();return console.log(n),t("div",null,t("style",{type:"text/css"},o,"\n :host{\n display: block; \n }\n "),t("div",{class:s.classes.Container},t("img",{src:n.imageUrl,class:s.classes.Image})))}const m=class{constructor(t){n(this,t),this.align="center",this.ignored=!0,s(this)}disconnectedCallback(){}render(){return t(c,Object.assign({},i(this)))}},h=class{constructor(t){n(this,t),this.ignored=!0,this.direction="column",this.gap="xxx-large",this.display="grid",this.maxWidth="100%",s(this)}disconnectedCallback(){}render(){return t(l,Object.assign({},i(this)),t("slot",null))}},f=o("sq:global"),g=class{constructor(t){n(this,t),this.ignored=!0,s(this)}disconnectedCallback(){}componentWillLoad(){try{e("\n sqm-text {\n display: block;\n }\n\n sqm-text h1 {\n font-size: var(--sl-font-size-xxx-large);\n font-weight: var(--sl-font-weight-semibold);\n color: var(--sl-color-neutral-800);\n margin: 0;\n }\n\n sqm-text h2 {\n font-size: var(--sl-font-size-xx-large);\n font-weight: var(--sl-font-weight-semibold);\n color: var(--sl-color-neutral-800);\n margin: 0;\n }\n\n sqm-text h3 {\n font-size: var(--sl-font-size-x-large);\n font-weight: var(--sl-font-weight-semibold);\n color: var(--sl-color-neutral-800);\n margin: 0;\n }\n\n sqm-text h4 {\n font-size: var(--sl-font-size-large);\n font-weight: var(--sl-font-weight-semibold);\n color: var(--sl-color-neutral-800);\n margin: 0;\n }\n\n sqm-text p {\n font-size: var(--sl-font-size-medium);\n font-weight: var(--sl-font-weight-normal);\n color: var(--sl-color-neutral-800);\n margin: 0;\n }\n\n sqm-text p[light] {\n font-size: var(--sl-font-size-medium);\n font-weight: var(--sl-font-weight-normal);\n color: var(--sl-color-neutral-600);\n margin: 0;\n }\n")}catch(t){f(t)}}render(){return t("slot",null)}},d=class{constructor(t){n(this,t),this.textAlign="left",this.labelMargin="small",this.padding="none",s(this)}disconnectedCallback(){}render(){const n=t("slot",{name:"label"},this.label),s=t("slot",{name:"content"});return t(a,Object.assign({},{...i(this),label:n,content:s}))}};export{m as sqm_image,h as sqm_portal_container,g as sqm_text,d as sqm_titled_section}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-ff17b3a4.system.js","./p-9580888c.system.js","./p-0988f079.system.js","./p-e00e11b1.system.js","./p-b0d6a380.system.js","./p-1c17892a.system.js","./p-61d769e2.system.js","./p-3bbb90a9.system.js","./p-c3f300e8.system.js","./p-5ab40dfa.system.js"],(function(t){"use strict";var s,e,n,i,o;return{setters:[function(t){s=t.r;e=t.h},function(t){n=t.m},function(){},function(){},function(){},function(){},function(){},function(){},function(t){i=t.g},function(t){o=t.P}],execute:function(){var r=t("sqm_portal_footer",function(){function t(t){s(this,t);this.ignored=true;this.supportEmail="support@example.com";this.supportText="For program support, contact {email}";this.showPoweredBy=true;this.poweredByLink="https://saasquatch.com";this.paddingTop="large";this.paddingRight="large";this.paddingBottom="large";this.paddingLeft="large";n(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return e(o,Object.assign({},i(this)))};Object.defineProperty(t,"assetsDirs",{get:function(){return["../../assets"]},enumerable:false,configurable:true});return t}())}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(s){for(var t,a=1,n=arguments.length;a<n;a++){t=arguments[a];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))s[r]=t[r]}return s};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-b0d6a380.system.js","./p-126bcba1.system.js","./p-3bbb90a9.system.js"],(function(s){"use strict";var t,a,n,r;return{setters:[function(s){t=s.h},function(s){a=s.p},function(s){n=s.g},function(s){r=s.c}],execute:function(){s("N",e);function e(s){var e=s.states,o=s.data;var i={ItemContainer:__assign(__assign({display:"flex","background-color":""+(e.active?"var(--sl-color-gray-200)":"var(--sl-color-white)"),"border-radius":"8px",padding:"8px","text-decoration":"none",color:"#454444","align-items":"center"},n({direction:"row",size:"var(--sl-font-size-small)"})),{"&:hover":{cursor:"pointer",background:e.active?"var(--sl-color-gray-300)":"var(--sl-color-gray-50)"}}),Label:{margin:"0"},Icon:{"flex-shrink":"0"}};var c=r(i);var l=c.toString();return t("a",{href:o.path,onClick:function(s){s.preventDefault();a.push(o.path)},class:c.classes.ItemContainer},t("style",{type:"text/css"},l),t("sl-icon",{class:c.classes.Icon,name:o.icon}),t("p",{class:c.classes.Label},o.label))}}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};System.register(["./p-9580888c.system.js","./p-e00e11b1.system.js","./p-1c17892a.system.js"],(function(e){"use strict";var t,n,r,i,a,o,s,u,c,l,f,d;return{setters:[function(e){t=e.c;n=e.a;r=e.d;i=e.h;a=e.u;o=e.e;s=e.f;u=e.i;c=e.j;l=e.k},function(e){f=e.u},function(e){d=e._}],execute:function(){e({$:ei,A:Qn,D:Wr,H:oi,J:fi,K:mi,L:ci,M:zn,P:Jn,Q:di,R:nr,S:Gn,V:ri,Y:Er,a:Di,b:Fi,e:wr,f:Wn,h:Mi,j:Zn,k:Xn,n:_r,o:Ii,t:Ti,u:Ai,w:Vi,x:tr});function p(e){this.message=e}p.prototype=new Error,p.prototype.name="InvalidCharacterError";var h="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new p("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function v(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(h(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return h(t)}}function y(e){this.message=e}function m(e,t){if("string"!=typeof e)throw new y("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(v(e.split(".")[n]))}catch(e){throw new y("Invalid token specified: "+e.message)}}y.prototype=new Error,y.prototype.name="InvalidTokenError";var b=Object.prototype,g=b.toString,E=b.hasOwnProperty;var w=Function.prototype.toString;var _=new Map;function T(e,t){try{return S(e,t)}finally{_.clear()}}function S(e,t){if(e===t){return true}var n=g.call(e);var r=g.call(t);if(n!==r){return false}switch(n){case"[object Array]":if(e.length!==t.length)return false;case"[object Object]":{if(N(e,t))return true;var i=O(e);var a=O(t);var o=i.length;if(o!==a.length)return false;for(var s=0;s<o;++s){if(!E.call(t,i[s])){return false}}for(var s=0;s<o;++s){var u=i[s];if(!S(e[u],t[u])){return false}}return true}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return false;if(N(e,t))return true;var c=e.entries();var l=n==="[object Map]";while(true){var f=c.next();if(f.done)break;var d=f.value,p=d[0],h=d[1];if(!t.has(p)){return false}if(l&&!S(h,t.get(p))){return false}}return true}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var v=w.call(e);if(v!==w.call(t)){return false}return!A(v,x)}}return false}function O(e){return Object.keys(e).filter(I,e)}function I(e){return this[e]!==void 0}var x="{ [native code] }";function A(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function N(e,t){var n=_.get(e);if(n){if(n.has(t))return true}else{_.set(e,n=new Set)}n.add(t);return false}function D(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){D=function e(t){return typeof t}}else{D=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return D(e)}function C(e){return D(e)=="object"&&e!==null}var k=typeof Symbol==="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function F(e,t){var n=/\r\n|[\n\r]/g;var r=1;var i=t+1;var a;while((a=n.exec(e.body))&&a.index<t){r+=1;i=t+1-(a.index+a[0].length)}return{line:r,column:i}}function P(e){return j(e.source,F(e.source,e.start))}function j(e,t){var n=e.locationOffset.column-1;var r=M(n)+e.body;var i=t.line-1;var a=e.locationOffset.line-1;var o=t.line+a;var s=t.line===1?n:0;var u=t.column+s;var c="".concat(e.name,":").concat(o,":").concat(u,"\n");var l=r.split(/\r\n|[\n\r]/g);var f=l[i];if(f.length>120){var d=Math.floor(u/80);var p=u%80;var h=[];for(var v=0;v<f.length;v+=80){h.push(f.slice(v,v+80))}return c+R([["".concat(o),h[0]]].concat(h.slice(1,d+1).map((function(e){return["",e]})),[[" ",M(p-1)+"^"],["",h[d+1]]]))}return c+R([["".concat(o-1),l[i-1]],["".concat(o),f],["",M(u-1)+"^"],["".concat(o+1),l[i+1]]])}function R(e){var t=e.filter((function(e){var t=e[1];return t!==undefined}));var n=Math.max.apply(Math,t.map((function(e){var t=e[0];return t.length})));return t.map((function(e){var t=e[0],r=e[1];return L(n,t)+(r?" | "+r:" |")})).join("\n")}function M(e){return Array(e+1).join(" ")}function L(e,t){return M(e-t.length)+t}function V(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){V=function e(t){return typeof t}}else{V=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return V(e)}function B(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function q(e,t,n){if(t)U(e.prototype,t);if(n)U(e,n);return e}function $(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)W(e,t)}function K(e){var t=z();return function n(){var r=X(e),i;if(t){var a=X(this).constructor;i=Reflect.construct(r,arguments,a)}else{i=r.apply(this,arguments)}return H(this,i)}}function H(e,t){if(t&&(V(t)==="object"||typeof t==="function")){return t}return J(e)}function J(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function G(e){var t=typeof Map==="function"?new Map:undefined;G=function e(n){if(n===null||!Q(n))return n;if(typeof n!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof t!=="undefined"){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return Y(n,arguments,X(this).constructor)}r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}});return W(r,n)};return G(e)}function Y(e,t,n){if(z()){Y=Reflect.construct}else{Y=function e(t,n,r){var i=[null];i.push.apply(i,n);var a=Function.bind.apply(t,i);var o=new a;if(r)W(o,r.prototype);return o}}return Y.apply(null,arguments)}function z(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return true}catch(e){return false}}function Q(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function W(e,t){W=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return W(e,t)}function X(e){X=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return X(e)}var Z=function(e){$(n,e);var t=K(n);function n(e,r,i,a,o,s,u){var c,l,f,d;var p;B(this,n);p=t.call(this,e);var h=Array.isArray(r)?r.length!==0?r:undefined:r?[r]:undefined;var v=i;if(!v&&h){var y;v=(y=h[0].loc)===null||y===void 0?void 0:y.source}var m=a;if(!m&&h){m=h.reduce((function(e,t){if(t.loc){e.push(t.loc.start)}return e}),[])}if(m&&m.length===0){m=undefined}var b;if(a&&i){b=a.map((function(e){return F(i,e)}))}else if(h){b=h.reduce((function(e,t){if(t.loc){e.push(F(t.loc.source,t.loc.start))}return e}),[])}var g=u;if(g==null&&s!=null){var E=s.extensions;if(C(E)){g=E}}Object.defineProperties(J(p),{name:{value:"GraphQLError"},message:{value:e,enumerable:true,writable:true},locations:{value:(c=b)!==null&&c!==void 0?c:undefined,enumerable:b!=null},path:{value:o!==null&&o!==void 0?o:undefined,enumerable:o!=null},nodes:{value:h!==null&&h!==void 0?h:undefined},source:{value:(l=v)!==null&&l!==void 0?l:undefined},positions:{value:(f=m)!==null&&f!==void 0?f:undefined},originalError:{value:s},extensions:{value:(d=g)!==null&&d!==void 0?d:undefined,enumerable:g!=null}});if(s!==null&&s!==void 0&&s.stack){Object.defineProperty(J(p),"stack",{value:s.stack,writable:true,configurable:true});return H(p)}if(Error.captureStackTrace){Error.captureStackTrace(J(p),n)}else{Object.defineProperty(J(p),"stack",{value:Error().stack,writable:true,configurable:true})}return p}q(n,[{key:"toString",value:function e(){return ee(this)}},{key:k,get:function e(){return"Object"}}]);return n}(G(Error));function ee(e){var t=e.message;if(e.nodes){for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];if(i.loc){t+="\n\n"+P(i.loc)}}}else if(e.source&&e.locations){for(var a=0,o=e.locations;a<o.length;a++){var s=o[a];t+="\n\n"+j(e.source,s)}}return t}function te(e,t,n){return new Z("Syntax Error: ".concat(n),undefined,e,[t])}var ne=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function re(e,t){var n=Boolean(e);if(!n){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}var ie=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):undefined;function ae(e){var t=e.prototype.toJSON;typeof t==="function"||re(0);e.prototype.inspect=t;if(ie){e.prototype[ie]=t}}var oe=function(){function e(e,t,n){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=n}var t=e.prototype;t.toJSON=function e(){return{start:this.start,end:this.end}};return e}();ae(oe);var se=function(){function e(e,t,n,r,i,a,o){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=o;this.prev=a;this.next=null}var t=e.prototype;t.toJSON=function e(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};return e}();ae(se);function ue(e){return e!=null&&typeof e.kind==="string"}var ce=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function le(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){le=function e(t){return typeof t}}else{le=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return le(e)}var fe=10;var de=2;function pe(e){return he(e,[])}function he(e,t){switch(le(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":if(e===null){return"null"}return ve(e,t);default:return String(e)}}function ve(e,t){if(t.indexOf(e)!==-1){return"[Circular]"}var n=[].concat(t,[e]);var r=be(e);if(r!==undefined){var i=r.call(e);if(i!==e){return typeof i==="string"?i:he(i,n)}}else if(Array.isArray(e)){return me(e,n)}return ye(e,n)}function ye(e,t){var n=Object.keys(e);if(n.length===0){return"{}"}if(t.length>de){return"["+ge(e)+"]"}var r=n.map((function(n){var r=he(e[n],t);return n+": "+r}));return"{ "+r.join(", ")+" }"}function me(e,t){if(e.length===0){return"[]"}if(t.length>de){return"[Array]"}var n=Math.min(fe,e.length);var r=e.length-n;var i=[];for(var a=0;a<n;++a){i.push(he(e[a],t))}if(r===1){i.push("... 1 more item")}else if(r>1){i.push("... ".concat(r," more items"))}return"["+i.join(", ")+"]"}function be(e){var t=e[String(ie)];if(typeof t==="function"){return t}if(typeof e.inspect==="function"){return e.inspect}}function ge(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){var n=e.constructor.name;if(typeof n==="string"&&n!==""){return n}}return t}function Ee(e,t){var n=Boolean(e);if(!n){throw new Error(t)}}var we=function e(t,n){return t instanceof n};function _e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function Te(e,t,n){if(t)_e(e.prototype,t);if(n)_e(e,n);return e}var Se=function(){function e(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"GraphQL request";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{line:1,column:1};typeof e==="string"||Ee(0,"Body must be a string. Received: ".concat(pe(e),"."));this.body=e;this.name=t;this.locationOffset=n;this.locationOffset.line>0||Ee(0,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||Ee(0,"column in locationOffset is 1-indexed and must be positive.")}Te(e,[{key:k,get:function e(){return"Source"}}]);return e}();function Oe(e){return we(e,Se)}var Ie=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function xe(e){var t=e.split(/\r\n|[\n\r]/g);var n=Ne(e);if(n!==0){for(var r=1;r<t.length;r++){t[r]=t[r].slice(n)}}var i=0;while(i<t.length&&Ae(t[i])){++i}var a=t.length;while(a>i&&Ae(t[a-1])){--a}return t.slice(i,a).join("\n")}function Ae(e){for(var t=0;t<e.length;++t){if(e[t]!==" "&&e[t]!=="\t"){return false}}return true}function Ne(e){var t;var n=true;var r=true;var i=0;var a=null;for(var o=0;o<e.length;++o){switch(e.charCodeAt(o)){case 13:if(e.charCodeAt(o+1)===10){++o}case 10:n=false;r=true;i=0;break;case 9:case 32:++i;break;default:if(r&&!n&&(a===null||i<a)){a=i}r=false}}return(t=a)!==null&&t!==void 0?t:0}function De(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var r=e.indexOf("\n")===-1;var i=e[0]===" "||e[0]==="\t";var a=e[e.length-1]==='"';var o=e[e.length-1]==="\\";var s=!r||a||o||n;var u="";if(s&&!(r&&i)){u+="\n"+t}u+=t?e.replace(/\n/g,"\n"+t):e;if(s){u+="\n"}return'"""'+u.replace(/"""/g,'\\"""')+'"""'}var Ce=function(){function e(e){var t=new se(ce.SOF,0,0,0,0,null);this.source=e;this.lastToken=t;this.token=t;this.line=1;this.lineStart=0}var t=e.prototype;t.advance=function e(){this.lastToken=this.token;var t=this.token=this.lookahead();return t};t.lookahead=function e(){var t=this.token;if(t.kind!==ce.EOF){do{var n;t=(n=t.next)!==null&&n!==void 0?n:t.next=Pe(this,t)}while(t.kind===ce.COMMENT)}return t};return e}();function ke(e){return e===ce.BANG||e===ce.DOLLAR||e===ce.AMP||e===ce.PAREN_L||e===ce.PAREN_R||e===ce.SPREAD||e===ce.COLON||e===ce.EQUALS||e===ce.AT||e===ce.BRACKET_L||e===ce.BRACKET_R||e===ce.BRACE_L||e===ce.PIPE||e===ce.BRACE_R}function Fe(e){return isNaN(e)?ce.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Pe(e,t){var n=e.source;var r=n.body;var i=r.length;var a=t.end;while(a<i){var o=r.charCodeAt(a);var s=e.line;var u=1+a-e.lineStart;switch(o){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a;++e.line;e.lineStart=a;continue;case 13:if(r.charCodeAt(a+1)===10){a+=2}else{++a}++e.line;e.lineStart=a;continue;case 33:return new se(ce.BANG,a,a+1,s,u,t);case 35:return Re(n,a,s,u,t);case 36:return new se(ce.DOLLAR,a,a+1,s,u,t);case 38:return new se(ce.AMP,a,a+1,s,u,t);case 40:return new se(ce.PAREN_L,a,a+1,s,u,t);case 41:return new se(ce.PAREN_R,a,a+1,s,u,t);case 46:if(r.charCodeAt(a+1)===46&&r.charCodeAt(a+2)===46){return new se(ce.SPREAD,a,a+3,s,u,t)}break;case 58:return new se(ce.COLON,a,a+1,s,u,t);case 61:return new se(ce.EQUALS,a,a+1,s,u,t);case 64:return new se(ce.AT,a,a+1,s,u,t);case 91:return new se(ce.BRACKET_L,a,a+1,s,u,t);case 93:return new se(ce.BRACKET_R,a,a+1,s,u,t);case 123:return new se(ce.BRACE_L,a,a+1,s,u,t);case 124:return new se(ce.PIPE,a,a+1,s,u,t);case 125:return new se(ce.BRACE_R,a,a+1,s,u,t);case 34:if(r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34){return Be(n,a,s,u,t,e)}return Ve(n,a,s,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Me(n,a,o,s,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return $e(n,a,s,u,t)}throw te(n,a,je(o))}var c=e.line;var l=1+a-e.lineStart;return new se(ce.EOF,i,i,c,l,t)}function je(e){if(e<32&&e!==9&&e!==10&&e!==13){return"Cannot contain the invalid character ".concat(Fe(e),".")}if(e===39){return"Unexpected single quote character ('), did you mean to use a double quote (\")?"}return"Cannot parse the unexpected character ".concat(Fe(e),".")}function Re(e,t,n,r,i){var a=e.body;var o;var s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||o===9));return new se(ce.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function Me(e,t,n,r,i,a){var o=e.body;var s=n;var u=t;var c=false;if(s===45){s=o.charCodeAt(++u)}if(s===48){s=o.charCodeAt(++u);if(s>=48&&s<=57){throw te(e,u,"Invalid number, unexpected digit after 0: ".concat(Fe(s),"."))}}else{u=Le(e,u,s);s=o.charCodeAt(u)}if(s===46){c=true;s=o.charCodeAt(++u);u=Le(e,u,s);s=o.charCodeAt(u)}if(s===69||s===101){c=true;s=o.charCodeAt(++u);if(s===43||s===45){s=o.charCodeAt(++u)}u=Le(e,u,s);s=o.charCodeAt(u)}if(s===46||Ke(s)){throw te(e,u,"Invalid number, expected digit but got: ".concat(Fe(s),"."))}return new se(c?ce.FLOAT:ce.INT,t,u,r,i,a,o.slice(t,u))}function Le(e,t,n){var r=e.body;var i=t;var a=n;if(a>=48&&a<=57){do{a=r.charCodeAt(++i)}while(a>=48&&a<=57);return i}throw te(e,i,"Invalid number, expected digit but got: ".concat(Fe(a),"."))}function Ve(e,t,n,r,i){var a=e.body;var o=t+1;var s=o;var u=0;var c="";while(o<a.length&&!isNaN(u=a.charCodeAt(o))&&u!==10&&u!==13){if(u===34){c+=a.slice(s,o);return new se(ce.STRING,t,o+1,n,r,i,c)}if(u<32&&u!==9){throw te(e,o,"Invalid character within String: ".concat(Fe(u),"."))}++o;if(u===92){c+=a.slice(s,o-1);u=a.charCodeAt(o);switch(u){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:{var l=Ue(a.charCodeAt(o+1),a.charCodeAt(o+2),a.charCodeAt(o+3),a.charCodeAt(o+4));if(l<0){var f=a.slice(o+1,o+5);throw te(e,o,"Invalid character escape sequence: \\u".concat(f,"."))}c+=String.fromCharCode(l);o+=4;break}default:throw te(e,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}++o;s=o}}throw te(e,o,"Unterminated string.")}function Be(e,t,n,r,i,a){var o=e.body;var s=t+3;var u=s;var c=0;var l="";while(s<o.length&&!isNaN(c=o.charCodeAt(s))){if(c===34&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34){l+=o.slice(u,s);return new se(ce.BLOCK_STRING,t,s+3,n,r,i,xe(l))}if(c<32&&c!==9&&c!==10&&c!==13){throw te(e,s,"Invalid character within String: ".concat(Fe(c),"."))}if(c===10){++s;++a.line;a.lineStart=s}else if(c===13){if(o.charCodeAt(s+1)===10){s+=2}else{++s}++a.line;a.lineStart=s}else if(c===92&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34&&o.charCodeAt(s+3)===34){l+=o.slice(u,s)+'"""';s+=4;u=s}else{++s}}throw te(e,s,"Unterminated string.")}function Ue(e,t,n,r){return qe(e)<<12|qe(t)<<8|qe(n)<<4|qe(r)}function qe(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function $e(e,t,n,r,i){var a=e.body;var o=a.length;var s=t+1;var u=0;while(s!==o&&!isNaN(u=a.charCodeAt(s))&&(u===95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122)){++s}return new se(ce.NAME,t,s,n,r,i,a.slice(t,s))}function Ke(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}function He(e,t){var n=new Je(e,t);return n.parseDocument()}var Je=function(){function e(e,t){var n=Oe(e)?e:new Se(e);this._lexer=new Ce(n);this._options=t}var t=e.prototype;t.parseName=function e(){var t=this.expectToken(ce.NAME);return{kind:ne.NAME,value:t.value,loc:this.loc(t)}};t.parseDocument=function e(){var t=this._lexer.token;return{kind:ne.DOCUMENT,definitions:this.many(ce.SOF,this.parseDefinition,ce.EOF),loc:this.loc(t)}};t.parseDefinition=function e(){if(this.peek(ce.NAME)){switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}}else if(this.peek(ce.BRACE_L)){return this.parseOperationDefinition()}else if(this.peekDescription()){return this.parseTypeSystemDefinition()}throw this.unexpected()};t.parseOperationDefinition=function e(){var t=this._lexer.token;if(this.peek(ce.BRACE_L)){return{kind:ne.OPERATION_DEFINITION,operation:"query",name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)}}var n=this.parseOperationType();var r;if(this.peek(ce.NAME)){r=this.parseName()}return{kind:ne.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}};t.parseOperationType=function e(){var t=this.expectToken(ce.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(t)};t.parseVariableDefinitions=function e(){return this.optionalMany(ce.PAREN_L,this.parseVariableDefinition,ce.PAREN_R)};t.parseVariableDefinition=function e(){var t=this._lexer.token;return{kind:ne.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(ce.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ce.EQUALS)?this.parseValueLiteral(true):undefined,directives:this.parseDirectives(true),loc:this.loc(t)}};t.parseVariable=function e(){var t=this._lexer.token;this.expectToken(ce.DOLLAR);return{kind:ne.VARIABLE,name:this.parseName(),loc:this.loc(t)}};t.parseSelectionSet=function e(){var t=this._lexer.token;return{kind:ne.SELECTION_SET,selections:this.many(ce.BRACE_L,this.parseSelection,ce.BRACE_R),loc:this.loc(t)}};t.parseSelection=function e(){return this.peek(ce.SPREAD)?this.parseFragment():this.parseField()};t.parseField=function e(){var t=this._lexer.token;var n=this.parseName();var r;var i;if(this.expectOptionalToken(ce.COLON)){r=n;i=this.parseName()}else{i=n}return{kind:ne.FIELD,alias:r,name:i,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(ce.BRACE_L)?this.parseSelectionSet():undefined,loc:this.loc(t)}};t.parseArguments=function e(t){var n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(ce.PAREN_L,n,ce.PAREN_R)};t.parseArgument=function e(){var t=this._lexer.token;var n=this.parseName();this.expectToken(ce.COLON);return{kind:ne.ARGUMENT,name:n,value:this.parseValueLiteral(false),loc:this.loc(t)}};t.parseConstArgument=function e(){var t=this._lexer.token;return{kind:ne.ARGUMENT,name:this.parseName(),value:(this.expectToken(ce.COLON),this.parseValueLiteral(true)),loc:this.loc(t)}};t.parseFragment=function e(){var t=this._lexer.token;this.expectToken(ce.SPREAD);var n=this.expectOptionalKeyword("on");if(!n&&this.peek(ce.NAME)){return{kind:ne.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false),loc:this.loc(t)}}return{kind:ne.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}};t.parseFragmentDefinition=function e(){var t;var n=this._lexer.token;this.expectKeyword("fragment");if(((t=this._options)===null||t===void 0?void 0:t.experimentalFragmentVariables)===true){return{kind:ne.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}}return{kind:ne.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}};t.parseFragmentName=function e(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()};t.parseValueLiteral=function e(t){var n=this._lexer.token;switch(n.kind){case ce.BRACKET_L:return this.parseList(t);case ce.BRACE_L:return this.parseObject(t);case ce.INT:this._lexer.advance();return{kind:ne.INT,value:n.value,loc:this.loc(n)};case ce.FLOAT:this._lexer.advance();return{kind:ne.FLOAT,value:n.value,loc:this.loc(n)};case ce.STRING:case ce.BLOCK_STRING:return this.parseStringLiteral();case ce.NAME:this._lexer.advance();switch(n.value){case"true":return{kind:ne.BOOLEAN,value:true,loc:this.loc(n)};case"false":return{kind:ne.BOOLEAN,value:false,loc:this.loc(n)};case"null":return{kind:ne.NULL,loc:this.loc(n)};default:return{kind:ne.ENUM,value:n.value,loc:this.loc(n)}}case ce.DOLLAR:if(!t){return this.parseVariable()}break}throw this.unexpected()};t.parseStringLiteral=function e(){var t=this._lexer.token;this._lexer.advance();return{kind:ne.STRING,value:t.value,block:t.kind===ce.BLOCK_STRING,loc:this.loc(t)}};t.parseList=function e(t){var n=this;var r=this._lexer.token;var i=function e(){return n.parseValueLiteral(t)};return{kind:ne.LIST,values:this.any(ce.BRACKET_L,i,ce.BRACKET_R),loc:this.loc(r)}};t.parseObject=function e(t){var n=this;var r=this._lexer.token;var i=function e(){return n.parseObjectField(t)};return{kind:ne.OBJECT,fields:this.any(ce.BRACE_L,i,ce.BRACE_R),loc:this.loc(r)}};t.parseObjectField=function e(t){var n=this._lexer.token;var r=this.parseName();this.expectToken(ce.COLON);return{kind:ne.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t),loc:this.loc(n)}};t.parseDirectives=function e(t){var n=[];while(this.peek(ce.AT)){n.push(this.parseDirective(t))}return n};t.parseDirective=function e(t){var n=this._lexer.token;this.expectToken(ce.AT);return{kind:ne.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t),loc:this.loc(n)}};t.parseTypeReference=function e(){var t=this._lexer.token;var n;if(this.expectOptionalToken(ce.BRACKET_L)){n=this.parseTypeReference();this.expectToken(ce.BRACKET_R);n={kind:ne.LIST_TYPE,type:n,loc:this.loc(t)}}else{n=this.parseNamedType()}if(this.expectOptionalToken(ce.BANG)){return{kind:ne.NON_NULL_TYPE,type:n,loc:this.loc(t)}}return n};t.parseNamedType=function e(){var t=this._lexer.token;return{kind:ne.NAMED_TYPE,name:this.parseName(),loc:this.loc(t)}};t.parseTypeSystemDefinition=function e(){var t=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(t.kind===ce.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}}throw this.unexpected(t)};t.peekDescription=function e(){return this.peek(ce.STRING)||this.peek(ce.BLOCK_STRING)};t.parseDescription=function e(){if(this.peekDescription()){return this.parseStringLiteral()}};t.parseSchemaDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("schema");var r=this.parseDirectives(true);var i=this.many(ce.BRACE_L,this.parseOperationTypeDefinition,ce.BRACE_R);return{kind:ne.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i,loc:this.loc(t)}};t.parseOperationTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseOperationType();this.expectToken(ce.COLON);var r=this.parseNamedType();return{kind:ne.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:this.loc(t)}};t.parseScalarTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName();var i=this.parseDirectives(true);return{kind:ne.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i,loc:this.loc(t)}};t.parseObjectTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("type");var r=this.parseName();var i=this.parseImplementsInterfaces();var a=this.parseDirectives(true);var o=this.parseFieldsDefinition();return{kind:ne.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o,loc:this.loc(t)}};t.parseImplementsInterfaces=function e(){var t;if(!this.expectOptionalKeyword("implements")){return[]}if(((t=this._options)===null||t===void 0?void 0:t.allowLegacySDLImplementsInterfaces)===true){var n=[];this.expectOptionalToken(ce.AMP);do{n.push(this.parseNamedType())}while(this.expectOptionalToken(ce.AMP)||this.peek(ce.NAME));return n}return this.delimitedMany(ce.AMP,this.parseNamedType)};t.parseFieldsDefinition=function e(){var t;if(((t=this._options)===null||t===void 0?void 0:t.allowLegacySDLEmptyFields)===true&&this.peek(ce.BRACE_L)&&this._lexer.lookahead().kind===ce.BRACE_R){this._lexer.advance();this._lexer.advance();return[]}return this.optionalMany(ce.BRACE_L,this.parseFieldDefinition,ce.BRACE_R)};t.parseFieldDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();var r=this.parseName();var i=this.parseArgumentDefs();this.expectToken(ce.COLON);var a=this.parseTypeReference();var o=this.parseDirectives(true);return{kind:ne.FIELD_DEFINITION,description:n,name:r,arguments:i,type:a,directives:o,loc:this.loc(t)}};t.parseArgumentDefs=function e(){return this.optionalMany(ce.PAREN_L,this.parseInputValueDef,ce.PAREN_R)};t.parseInputValueDef=function e(){var t=this._lexer.token;var n=this.parseDescription();var r=this.parseName();this.expectToken(ce.COLON);var i=this.parseTypeReference();var a;if(this.expectOptionalToken(ce.EQUALS)){a=this.parseValueLiteral(true)}var o=this.parseDirectives(true);return{kind:ne.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:a,directives:o,loc:this.loc(t)}};t.parseInterfaceTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("interface");var r=this.parseName();var i=this.parseImplementsInterfaces();var a=this.parseDirectives(true);var o=this.parseFieldsDefinition();return{kind:ne.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o,loc:this.loc(t)}};t.parseUnionTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("union");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseUnionMemberTypes();return{kind:ne.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:a,loc:this.loc(t)}};t.parseUnionMemberTypes=function e(){return this.expectOptionalToken(ce.EQUALS)?this.delimitedMany(ce.PIPE,this.parseNamedType):[]};t.parseEnumTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("enum");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseEnumValuesDefinition();return{kind:ne.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:a,loc:this.loc(t)}};t.parseEnumValuesDefinition=function e(){return this.optionalMany(ce.BRACE_L,this.parseEnumValueDefinition,ce.BRACE_R)};t.parseEnumValueDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();var r=this.parseName();var i=this.parseDirectives(true);return{kind:ne.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i,loc:this.loc(t)}};t.parseInputObjectTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("input");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseInputFieldsDefinition();return{kind:ne.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:a,loc:this.loc(t)}};t.parseInputFieldsDefinition=function e(){return this.optionalMany(ce.BRACE_L,this.parseInputValueDef,ce.BRACE_R)};t.parseTypeSystemExtension=function e(){var t=this._lexer.lookahead();if(t.kind===ce.NAME){switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(t)};t.parseSchemaExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");var n=this.parseDirectives(true);var r=this.optionalMany(ce.BRACE_L,this.parseOperationTypeDefinition,ce.BRACE_R);if(n.length===0&&r.length===0){throw this.unexpected()}return{kind:ne.SCHEMA_EXTENSION,directives:n,operationTypes:r,loc:this.loc(t)}};t.parseScalarTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");var n=this.parseName();var r=this.parseDirectives(true);if(r.length===0){throw this.unexpected()}return{kind:ne.SCALAR_TYPE_EXTENSION,name:n,directives:r,loc:this.loc(t)}};t.parseObjectTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");var n=this.parseName();var r=this.parseImplementsInterfaces();var i=this.parseDirectives(true);var a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0){throw this.unexpected()}return{kind:ne.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a,loc:this.loc(t)}};t.parseInterfaceTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");var n=this.parseName();var r=this.parseImplementsInterfaces();var i=this.parseDirectives(true);var a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0){throw this.unexpected()}return{kind:ne.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a,loc:this.loc(t)}};t.parseUnionTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");var n=this.parseName();var r=this.parseDirectives(true);var i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0){throw this.unexpected()}return{kind:ne.UNION_TYPE_EXTENSION,name:n,directives:r,types:i,loc:this.loc(t)}};t.parseEnumTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");var n=this.parseName();var r=this.parseDirectives(true);var i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0){throw this.unexpected()}return{kind:ne.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i,loc:this.loc(t)}};t.parseInputObjectTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");var n=this.parseName();var r=this.parseDirectives(true);var i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0){throw this.unexpected()}return{kind:ne.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i,loc:this.loc(t)}};t.parseDirectiveDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("directive");this.expectToken(ce.AT);var r=this.parseName();var i=this.parseArgumentDefs();var a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:ne.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:a,locations:o,loc:this.loc(t)}};t.parseDirectiveLocations=function e(){return this.delimitedMany(ce.PIPE,this.parseDirectiveLocation)};t.parseDirectiveLocation=function e(){var t=this._lexer.token;var n=this.parseName();if(Ie[n.value]!==undefined){return n}throw this.unexpected(t)};t.loc=function e(t){var n;if(((n=this._options)===null||n===void 0?void 0:n.noLocation)!==true){return new oe(t,this._lexer.lastToken,this._lexer.source)}};t.peek=function e(t){return this._lexer.token.kind===t};t.expectToken=function e(t){var n=this._lexer.token;if(n.kind===t){this._lexer.advance();return n}throw te(this._lexer.source,n.start,"Expected ".concat(Ye(t),", found ").concat(Ge(n),"."))};t.expectOptionalToken=function e(t){var n=this._lexer.token;if(n.kind===t){this._lexer.advance();return n}return undefined};t.expectKeyword=function e(t){var n=this._lexer.token;if(n.kind===ce.NAME&&n.value===t){this._lexer.advance()}else{throw te(this._lexer.source,n.start,'Expected "'.concat(t,'", found ').concat(Ge(n),"."))}};t.expectOptionalKeyword=function e(t){var n=this._lexer.token;if(n.kind===ce.NAME&&n.value===t){this._lexer.advance();return true}return false};t.unexpected=function e(t){var n=t!==null&&t!==void 0?t:this._lexer.token;return te(this._lexer.source,n.start,"Unexpected ".concat(Ge(n),"."))};t.any=function e(t,n,r){this.expectToken(t);var i=[];while(!this.expectOptionalToken(r)){i.push(n.call(this))}return i};t.optionalMany=function e(t,n,r){if(this.expectOptionalToken(t)){var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i}return[]};t.many=function e(t,n,r){this.expectToken(t);var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i};t.delimitedMany=function e(t,n){this.expectOptionalToken(t);var r=[];do{r.push(n.call(this))}while(this.expectOptionalToken(t));return r};return e}();function Ge(e){var t=e.value;return Ye(e.kind)+(t!=null?' "'.concat(t,'"'):"")}function Ye(e){return ke(e)?'"'.concat(e,'"'):e}var ze={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};var Qe=Object.freeze({});function We(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:ze;var r=undefined;var i=Array.isArray(e);var a=[e];var o=-1;var s=[];var u=undefined;var c=undefined;var l=undefined;var f=[];var d=[];var p=e;do{o++;var h=o===a.length;var v=h&&s.length!==0;if(h){c=d.length===0?undefined:f[f.length-1];u=l;l=d.pop();if(v){if(i){u=u.slice()}else{var y={};for(var m=0,b=Object.keys(u);m<b.length;m++){var g=b[m];y[g]=u[g]}u=y}var E=0;for(var w=0;w<s.length;w++){var _=s[w][0];var T=s[w][1];if(i){_-=E}if(i&&T===null){u.splice(_,1);E++}else{u[_]=T}}}o=r.index;a=r.keys;s=r.edits;i=r.inArray;r=r.prev}else{c=l?i?o:a[o]:undefined;u=l?l[c]:p;if(u===null||u===undefined){continue}if(l){f.push(c)}}var S=void 0;if(!Array.isArray(u)){if(!ue(u)){throw new Error("Invalid AST Node: ".concat(pe(u),"."))}var O=Xe(t,u.kind,h);if(O){S=O.call(t,u,c,l,f,d);if(S===Qe){break}if(S===false){if(!h){f.pop();continue}}else if(S!==undefined){s.push([c,S]);if(!h){if(ue(S)){u=S}else{f.pop();continue}}}}}if(S===undefined&&v){s.push([c,u])}if(h){f.pop()}else{var I;r={inArray:i,index:o,keys:a,edits:s,prev:r};i=Array.isArray(u);a=i?u:(I=n[u.kind])!==null&&I!==void 0?I:[];o=-1;s=[];if(l){d.push(l)}l=u}}while(r!==undefined);if(s.length!==0){p=s[s.length-1][1]}return p}function Xe(e,t,n){var r=e[t];if(r){if(!n&&typeof r==="function"){return r}var i=n?r.leave:r.enter;if(typeof i==="function"){return i}}else{var a=n?e.leave:e.enter;if(a){if(typeof a==="function"){return a}var o=a[t];if(typeof o==="function"){return o}}}}function Ze(e){return We(e,{leave:tt})}var et=80;var tt={Name:function e(t){return t.value},Variable:function e(t){return"$"+t.name},Document:function e(t){return rt(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var n=t.operation;var r=t.name;var i=at("(",rt(t.variableDefinitions,", "),")");var a=rt(t.directives," ");var o=t.selectionSet;return!r&&!a&&!i&&n==="query"?o:rt([n,rt([r,i]),a,o]," ")},VariableDefinition:function e(t){var n=t.variable,r=t.type,i=t.defaultValue,a=t.directives;return n+": "+r+at(" = ",i)+at(" ",rt(a," "))},SelectionSet:function e(t){var n=t.selections;return it(n)},Field:function e(t){var n=t.alias,r=t.name,i=t.arguments,a=t.directives,o=t.selectionSet;var s=at("",n,": ")+r;var u=s+at("(",rt(i,", "),")");if(u.length>et){u=s+at("(\n",ot(rt(i,"\n")),"\n)")}return rt([u,rt(a," "),o]," ")},Argument:function e(t){var n=t.name,r=t.value;return n+": "+r},FragmentSpread:function e(t){var n=t.name,r=t.directives;return"..."+n+at(" ",rt(r," "))},InlineFragment:function e(t){var n=t.typeCondition,r=t.directives,i=t.selectionSet;return rt(["...",at("on ",n),rt(r," "),i]," ")},FragmentDefinition:function e(t){var n=t.name,r=t.typeCondition,i=t.variableDefinitions,a=t.directives,o=t.selectionSet;return"fragment ".concat(n).concat(at("(",rt(i,", "),")")," ")+"on ".concat(r," ").concat(at("",rt(a," ")," "))+o},IntValue:function e(t){var n=t.value;return n},FloatValue:function e(t){var n=t.value;return n},StringValue:function e(t,n){var r=t.value,i=t.block;return i?De(r,n==="description"?"":" "):JSON.stringify(r)},BooleanValue:function e(t){var n=t.value;return n?"true":"false"},NullValue:function e(){return"null"},EnumValue:function e(t){var n=t.value;return n},ListValue:function e(t){var n=t.values;return"["+rt(n,", ")+"]"},ObjectValue:function e(t){var n=t.fields;return"{"+rt(n,", ")+"}"},ObjectField:function e(t){var n=t.name,r=t.value;return n+": "+r},Directive:function e(t){var n=t.name,r=t.arguments;return"@"+n+at("(",rt(r,", "),")")},NamedType:function e(t){var n=t.name;return n},ListType:function e(t){var n=t.type;return"["+n+"]"},NonNullType:function e(t){var n=t.type;return n+"!"},SchemaDefinition:nt((function(e){var t=e.directives,n=e.operationTypes;return rt(["schema",rt(t," "),it(n)]," ")})),OperationTypeDefinition:function e(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:nt((function(e){var t=e.name,n=e.directives;return rt(["scalar",t,rt(n," ")]," ")})),ObjectTypeDefinition:nt((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return rt(["type",t,at("implements ",rt(n," & ")),rt(r," "),it(i)]," ")})),FieldDefinition:nt((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(ut(n)?at("(\n",ot(rt(n,"\n")),"\n)"):at("(",rt(n,", "),")"))+": "+r+at(" ",rt(i," "))})),InputValueDefinition:nt((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return rt([t+": "+n,at("= ",r),rt(i," ")]," ")})),InterfaceTypeDefinition:nt((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return rt(["interface",t,at("implements ",rt(n," & ")),rt(r," "),it(i)]," ")})),UnionTypeDefinition:nt((function(e){var t=e.name,n=e.directives,r=e.types;return rt(["union",t,rt(n," "),r&&r.length!==0?"= "+rt(r," | "):""]," ")})),EnumTypeDefinition:nt((function(e){var t=e.name,n=e.directives,r=e.values;return rt(["enum",t,rt(n," "),it(r)]," ")})),EnumValueDefinition:nt((function(e){var t=e.name,n=e.directives;return rt([t,rt(n," ")]," ")})),InputObjectTypeDefinition:nt((function(e){var t=e.name,n=e.directives,r=e.fields;return rt(["input",t,rt(n," "),it(r)]," ")})),DirectiveDefinition:nt((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(ut(n)?at("(\n",ot(rt(n,"\n")),"\n)"):at("(",rt(n,", "),")"))+(r?" repeatable":"")+" on "+rt(i," | ")})),SchemaExtension:function e(t){var n=t.directives,r=t.operationTypes;return rt(["extend schema",rt(n," "),it(r)]," ")},ScalarTypeExtension:function e(t){var n=t.name,r=t.directives;return rt(["extend scalar",n,rt(r," ")]," ")},ObjectTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return rt(["extend type",n,at("implements ",rt(r," & ")),rt(i," "),it(a)]," ")},InterfaceTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return rt(["extend interface",n,at("implements ",rt(r," & ")),rt(i," "),it(a)]," ")},UnionTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.types;return rt(["extend union",n,rt(r," "),i&&i.length!==0?"= "+rt(i," | "):""]," ")},EnumTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.values;return rt(["extend enum",n,rt(r," "),it(i)]," ")},InputObjectTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.fields;return rt(["extend input",n,rt(r," "),it(i)]," ")}};function nt(e){return function(t){return rt([t.description,e(t)],"\n")}}function rt(e){var t;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";return(t=e===null||e===void 0?void 0:e.filter((function(e){return e})).join(n))!==null&&t!==void 0?t:""}function it(e){return at("{\n",ot(rt(e,"\n")),"\n}")}function at(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";return t!=null&&t!==""?e+t+n:""}function ot(e){return at(" ",e.replace(/\n/g,"\n "))}function st(e){return e.indexOf("\n")!==-1}function ut(e){return e!=null&&e.some(st)}function ct(e,t){var n=t&&t.cache?t.cache:gt;var r=t&&t.serializer?t.serializer:mt;var i=t&&t.strategy?t.strategy:ht;return i(e,{cache:n,serializer:r})}function lt(e){return e==null||typeof e==="number"||typeof e==="boolean"}function ft(e,t,n,r){var i=lt(r)?r:n(r);var a=t.get(i);if(typeof a==="undefined"){a=e.call(this,r);t.set(i,a)}return a}function dt(e,t,n){var r=Array.prototype.slice.call(arguments,3);var i=n(r);var a=t.get(i);if(typeof a==="undefined"){a=e.apply(this,r);t.set(i,a)}return a}function pt(e,t,n,r,i){return n.bind(t,e,r,i)}function ht(e,t){var n=e.length===1?ft:dt;return pt(e,this,n,t.cache.create(),t.serializer)}function vt(e,t){var n=dt;return pt(e,this,n,t.cache.create(),t.serializer)}function yt(e,t){var n=ft;return pt(e,this,n,t.cache.create(),t.serializer)}function mt(){return JSON.stringify(arguments)}function bt(){this.cache=Object.create(null)}bt.prototype.has=function(e){return e in this.cache};bt.prototype.get=function(e){return this.cache[e]};bt.prototype.set=function(e,t){this.cache[e]=t};var gt={create:function e(){return new bt}};var Et=e("s",ct);var wt={variadic:vt,monadic:yt};Et.strategies=wt;var _t=Object.freeze(Object.assign(Object.create(null),Et,{default:Et,strategies:wt}));e("m",_t);function Tt(e){return typeof e==="function"}var St=false;var Ot={Promise:undefined,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else if(St){console.log("RxJS: Back to a better error behavior. Thank you. <3")}St=e},get useDeprecatedSynchronousErrorHandling(){return St}};function It(e){setTimeout((function(){throw e}),0)}var xt={closed:true,next:function(e){},error:function(e){if(Ot.useDeprecatedSynchronousErrorHandling){throw e}else{It(e)}},complete:function(){}};var At=function(){return Array.isArray||function(e){return e&&typeof e.length==="number"}}();function Nt(e){return e!==null&&typeof e==="object"}var Dt=function(){function e(e){Error.call(this);this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"";this.name="UnsubscriptionError";this.errors=e;return this}e.prototype=Object.create(Error.prototype);return e}();var Ct=Dt;var kt=function(){function e(e){this.closed=false;this._parentOrParents=null;this._subscriptions=null;if(e){this._ctorUnsubscribe=true;this._unsubscribe=e}}e.prototype.unsubscribe=function(){var t;if(this.closed){return}var n=this,r=n._parentOrParents,i=n._ctorUnsubscribe,a=n._unsubscribe,o=n._subscriptions;this.closed=true;this._parentOrParents=null;this._subscriptions=null;if(r instanceof e){r.remove(this)}else if(r!==null){for(var s=0;s<r.length;++s){var u=r[s];u.remove(this)}}if(Tt(a)){if(i){this._unsubscribe=undefined}try{a.call(this)}catch(e){t=e instanceof Ct?Ft(e.errors):[e]}}if(At(o)){var s=-1;var c=o.length;while(++s<c){var l=o[s];if(Nt(l)){try{l.unsubscribe()}catch(e){t=t||[];if(e instanceof Ct){t=t.concat(Ft(e.errors))}else{t.push(e)}}}}}if(t){throw new Ct(t)}};e.prototype.add=function(t){var n=t;if(!t){return e.EMPTY}switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||typeof n.unsubscribe!=="function"){return n}else if(this.closed){n.unsubscribe();return n}else if(!(n instanceof e)){var r=n;n=new e;n._subscriptions=[r]}break;default:{throw new Error("unrecognized teardown "+t+" added to Subscription.")}}var i=n._parentOrParents;if(i===null){n._parentOrParents=this}else if(i instanceof e){if(i===this){return n}n._parentOrParents=[i,this]}else if(i.indexOf(this)===-1){i.push(this)}else{return n}var a=this._subscriptions;if(a===null){this._subscriptions=[n]}else{a.push(n)}return n};e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);if(n!==-1){t.splice(n,1)}}};return e}();kt.EMPTY=function(e){e.closed=true;return e}(new kt);function Ft(e){return e.reduce((function(e,t){return e.concat(t instanceof Ct?t.errors:t)}),[])}var Pt=function(){return typeof Symbol==="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();var jt=function(e){__extends(t,e);function t(n,r,i){var a=e.call(this)||this;a.syncErrorValue=null;a.syncErrorThrown=false;a.syncErrorThrowable=false;a.isStopped=false;switch(arguments.length){case 0:a.destination=xt;break;case 1:if(!n){a.destination=xt;break}if(typeof n==="object"){if(n instanceof t){a.syncErrorThrowable=n.syncErrorThrowable;a.destination=n;n.add(a)}else{a.syncErrorThrowable=true;a.destination=new Rt(a,n)}break}default:a.syncErrorThrowable=true;a.destination=new Rt(a,n,r,i);break}return a}t.prototype[Pt]=function(){return this};t.create=function(e,n,r){var i=new t(e,n,r);i.syncErrorThrowable=false;return i};t.prototype.next=function(e){if(!this.isStopped){this._next(e)}};t.prototype.error=function(e){if(!this.isStopped){this.isStopped=true;this._error(e)}};t.prototype.complete=function(){if(!this.isStopped){this.isStopped=true;this._complete()}};t.prototype.unsubscribe=function(){if(this.closed){return}this.isStopped=true;e.prototype.unsubscribe.call(this)};t.prototype._next=function(e){this.destination.next(e)};t.prototype._error=function(e){this.destination.error(e);this.unsubscribe()};t.prototype._complete=function(){this.destination.complete();this.unsubscribe()};t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;this._parentOrParents=null;this.unsubscribe();this.closed=false;this.isStopped=false;this._parentOrParents=e;return this};return t}(kt);var Rt=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this)||this;a._parentSubscriber=t;var o;var s=a;if(Tt(n)){o=n}else if(n){o=n.next;r=n.error;i=n.complete;if(n!==xt){s=Object.create(n);if(Tt(s.unsubscribe)){a.add(s.unsubscribe.bind(s))}s.unsubscribe=a.unsubscribe.bind(a)}}a._context=s;a._next=o;a._error=r;a._complete=i;return a}t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;if(!Ot.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable){this.__tryOrUnsub(this._next,e)}else if(this.__tryOrSetError(t,this._next,e)){this.unsubscribe()}}};t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;var n=Ot.useDeprecatedSynchronousErrorHandling;if(this._error){if(!n||!t.syncErrorThrowable){this.__tryOrUnsub(this._error,e);this.unsubscribe()}else{this.__tryOrSetError(t,this._error,e);this.unsubscribe()}}else if(!t.syncErrorThrowable){this.unsubscribe();if(n){throw e}It(e)}else{if(n){t.syncErrorValue=e;t.syncErrorThrown=true}else{It(e)}this.unsubscribe()}}};t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};if(!Ot.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable){this.__tryOrUnsub(n);this.unsubscribe()}else{this.__tryOrSetError(t,n);this.unsubscribe()}}else{this.unsubscribe()}}};t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){this.unsubscribe();if(Ot.useDeprecatedSynchronousErrorHandling){throw e}else{It(e)}}};t.prototype.__tryOrSetError=function(e,t,n){if(!Ot.useDeprecatedSynchronousErrorHandling){throw new Error("bad call")}try{t.call(this._context,n)}catch(t){if(Ot.useDeprecatedSynchronousErrorHandling){e.syncErrorValue=t;e.syncErrorThrown=true;return true}else{It(t);return true}}return false};t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null;this._parentSubscriber=null;e.unsubscribe()};return t}(jt);function Mt(e){while(e){var t=e.closed,n=e.destination,r=e.isStopped;if(t||r){return false}else if(n&&n instanceof jt){e=n}else{e=null}}return true}function Lt(e,t,n){if(e){if(e instanceof jt){return e}if(e[Pt]){return e[Pt]()}}if(!e&&!t&&!n){return new jt(xt)}return new jt(e,t,n)}var Vt=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();function Bt(e){return e}function Ut(e){if(e.length===0){return Bt}if(e.length===1){return e[0]}return function t(n){return e.reduce((function(e,t){return t(e)}),n)}}var qt=function(){function e(e){this._isScalar=false;if(e){this._subscribe=e}}e.prototype.lift=function(t){var n=new e;n.source=this;n.operator=t;return n};e.prototype.subscribe=function(e,t,n){var r=this.operator;var i=Lt(e,t,n);if(r){i.add(r.call(i,this.source))}else{i.add(this.source||Ot.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i))}if(Ot.useDeprecatedSynchronousErrorHandling){if(i.syncErrorThrowable){i.syncErrorThrowable=false;if(i.syncErrorThrown){throw i.syncErrorValue}}}return i};e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){if(Ot.useDeprecatedSynchronousErrorHandling){e.syncErrorThrown=true;e.syncErrorValue=t}if(Mt(e)){e.error(t)}else{console.warn(t)}}};e.prototype.forEach=function(e,t){var n=this;t=$t(t);return new t((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(e){r(e);if(i){i.unsubscribe()}}}),r,t)}))};e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)};e.prototype[Vt]=function(){return this};e.prototype.pipe=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}if(e.length===0){return this}return Ut(e)(this)};e.prototype.toPromise=function(e){var t=this;e=$t(e);return new e((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))};return e}();qt.create=function(e){return new qt(e)};function $t(e){if(!e){e=Promise}if(!e){throw new Error("no Promise impl found")}return e}var Kt=function(){function e(){Error.call(this);this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}e.prototype=Object.create(Error.prototype);return e}();var Ht=Kt;var Jt=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.subject=t;r.subscriber=n;r.closed=false;return r}t.prototype.unsubscribe=function(){if(this.closed){return}this.closed=true;var e=this.subject;var t=e.observers;this.subject=null;if(!t||t.length===0||e.isStopped||e.closed){return}var n=t.indexOf(this.subscriber);if(n!==-1){t.splice(n,1)}};return t}(kt);var Gt=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.destination=t;return n}return t}(jt);var Yt=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.observers=[];t.closed=false;t.isStopped=false;t.hasError=false;t.thrownError=null;return t}t.prototype[Pt]=function(){return new Gt(this)};t.prototype.lift=function(e){var t=new zt(this,this);t.operator=e;return t};t.prototype.next=function(e){if(this.closed){throw new Ht}if(!this.isStopped){var t=this.observers;var n=t.length;var r=t.slice();for(var i=0;i<n;i++){r[i].next(e)}}};t.prototype.error=function(e){if(this.closed){throw new Ht}this.hasError=true;this.thrownError=e;this.isStopped=true;var t=this.observers;var n=t.length;var r=t.slice();for(var i=0;i<n;i++){r[i].error(e)}this.observers.length=0};t.prototype.complete=function(){if(this.closed){throw new Ht}this.isStopped=true;var e=this.observers;var t=e.length;var n=e.slice();for(var r=0;r<t;r++){n[r].complete()}this.observers.length=0};t.prototype.unsubscribe=function(){this.isStopped=true;this.closed=true;this.observers=null};t.prototype._trySubscribe=function(t){if(this.closed){throw new Ht}else{return e.prototype._trySubscribe.call(this,t)}};t.prototype._subscribe=function(e){if(this.closed){throw new Ht}else if(this.hasError){e.error(this.thrownError);return kt.EMPTY}else if(this.isStopped){e.complete();return kt.EMPTY}else{this.observers.push(e);return new Jt(this,e)}};t.prototype.asObservable=function(){var e=new qt;e.source=this;return e};return t}(qt);Yt.create=function(e,t){return new zt(e,t)};var zt=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.destination=t;r.source=n;return r}t.prototype.next=function(e){var t=this.destination;if(t&&t.next){t.next(e)}};t.prototype.error=function(e){var t=this.destination;if(t&&t.error){this.destination.error(e)}};t.prototype.complete=function(){var e=this.destination;if(e&&e.complete){this.destination.complete()}};t.prototype._subscribe=function(e){var t=this.source;if(t){return this.source.subscribe(e)}else{return kt.EMPTY}};return t}(Yt);var Qt=function(e){__extends(t,e);function t(t,n){return e.call(this)||this}t.prototype.schedule=function(e,t){if(t===void 0){t=0}return this};return t}(kt);var Wt=function(e){__extends(t,e);function t(t,n){var r=e.call(this,t,n)||this;r.scheduler=t;r.work=n;r.pending=false;return r}t.prototype.schedule=function(e,t){if(t===void 0){t=0}if(this.closed){return this}this.state=e;var n=this.id;var r=this.scheduler;if(n!=null){this.id=this.recycleAsyncId(r,n,t)}this.pending=true;this.delay=t;this.id=this.id||this.requestAsyncId(r,this.id,t);return this};t.prototype.requestAsyncId=function(e,t,n){if(n===void 0){n=0}return setInterval(e.flush.bind(e,this),n)};t.prototype.recycleAsyncId=function(e,t,n){if(n===void 0){n=0}if(n!==null&&this.delay===n&&this.pending===false){return t}clearInterval(t);return undefined};t.prototype.execute=function(e,t){if(this.closed){return new Error("executing a cancelled action")}this.pending=false;var n=this._execute(e,t);if(n){return n}else if(this.pending===false&&this.id!=null){this.id=this.recycleAsyncId(this.scheduler,this.id,null)}};t.prototype._execute=function(e,t){var n=false;var r=undefined;try{this.work(e)}catch(e){n=true;r=!!e&&e||new Error(e)}if(n){this.unsubscribe();return r}};t.prototype._unsubscribe=function(){var e=this.id;var t=this.scheduler;var n=t.actions;var r=n.indexOf(this);this.work=null;this.state=null;this.pending=false;this.scheduler=null;if(r!==-1){n.splice(r,1)}if(e!=null){this.id=this.recycleAsyncId(t,e,null)}this.delay=null};return t}(Qt);var Xt=function(){function e(t,n){if(n===void 0){n=e.now}this.SchedulerAction=t;this.now=n}e.prototype.schedule=function(e,t,n){if(t===void 0){t=0}return new this.SchedulerAction(this,e).schedule(n,t)};return e}();Xt.now=function(){return Date.now()};var Zt=function(e){__extends(t,e);function t(n,r){if(r===void 0){r=Xt.now}var i=e.call(this,n,(function(){if(t.delegate&&t.delegate!==i){return t.delegate.now()}else{return r()}}))||this;i.actions=[];i.active=false;i.scheduled=undefined;return i}t.prototype.schedule=function(n,r,i){if(r===void 0){r=0}if(t.delegate&&t.delegate!==this){return t.delegate.schedule(n,r,i)}else{return e.prototype.schedule.call(this,n,r,i)}};t.prototype.flush=function(e){var t=this.actions;if(this.active){t.push(e);return}var n;this.active=true;do{if(n=e.execute(e.state,e.delay)){break}}while(e=t.shift());this.active=false;if(n){while(e=t.shift()){e.unsubscribe()}throw n}};return t}(Xt);function en(e){return e&&typeof e.schedule==="function"}var tn=new Zt(Wt);var nn=tn;function rn(e){var t=arguments.length;var n=nn;if(en(arguments[arguments.length-1])){n=arguments[arguments.length-1];t--}var r=null;if(t>=2){r=arguments[1]}var i=Number.POSITIVE_INFINITY;if(t>=3){i=arguments[2]}return function t(a){return a.lift(new an(e,r,i,n))}}var an=function(){function e(e,t,n,r){this.bufferTimeSpan=e;this.bufferCreationInterval=t;this.maxBufferSize=n;this.scheduler=r}e.prototype.call=function(e,t){return t.subscribe(new sn(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))};return e}();var on=function(){function e(){this.buffer=[]}return e}();var sn=function(e){__extends(t,e);function t(t,n,r,i,a){var o=e.call(this,t)||this;o.bufferTimeSpan=n;o.bufferCreationInterval=r;o.maxBufferSize=i;o.scheduler=a;o.contexts=[];var s=o.openContext();o.timespanOnly=r==null||r<0;if(o.timespanOnly){var u={subscriber:o,context:s,bufferTimeSpan:n};o.add(s.closeAction=a.schedule(un,n,u))}else{var c={subscriber:o,context:s};var l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:o,scheduler:a};o.add(s.closeAction=a.schedule(ln,n,c));o.add(a.schedule(cn,r,l))}return o}t.prototype._next=function(e){var t=this.contexts;var n=t.length;var r;for(var i=0;i<n;i++){var a=t[i];var o=a.buffer;o.push(e);if(o.length==this.maxBufferSize){r=a}}if(r){this.onBufferFull(r)}};t.prototype._error=function(t){this.contexts.length=0;e.prototype._error.call(this,t)};t.prototype._complete=function(){var t=this,n=t.contexts,r=t.destination;while(n.length>0){var i=n.shift();r.next(i.buffer)}e.prototype._complete.call(this)};t.prototype._unsubscribe=function(){this.contexts=null};t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;t.unsubscribe();this.remove(t);if(!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan;var r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(un,n,r))}};t.prototype.openContext=function(){var e=new on;this.contexts.push(e);return e};t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;var n=t?t.indexOf(e):-1;if(n>=0){t.splice(t.indexOf(e),1)}};return t}(jt);function un(e){var t=e.subscriber;var n=e.context;if(n){t.closeContext(n)}if(!t.closed){e.context=t.openContext();e.context.closeAction=this.schedule(e,e.bufferTimeSpan)}}function cn(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler;var a=r.openContext();var o=this;if(!r.closed){r.add(a.closeAction=i.schedule(ln,n,{subscriber:r,context:a}));o.schedule(e,t)}}function ln(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var fn=function(e){if(e===void 0){e=21}var t="";var n=crypto.getRandomValues(new Uint8Array(e));while(e--){var r=n[e]&63;if(r<36){t+=r.toString(36)}else if(r<62){t+=(r-26).toString(36).toUpperCase()}else if(r<63){t+="_"}else{t+="-"}}return t};var dn=t((function(e,t){var r=n&&n.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:true});t.ClientError=void 0;var i=function(e){r(t,e);function t(n,r){var i=this;var a=t.extractMessage(n)+": "+JSON.stringify({response:n,request:r});i=e.call(this,a)||this;Object.setPrototypeOf(i,t.prototype);i.response=n;i.request=r;if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(i,t)}return i}t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}};return t}(Error);t.ClientError=i}));var pn=t((function(e,t){var r=typeof self!=="undefined"?self:n;var i=function(){function e(){this.fetch=false;this.DOMException=r.DOMException}e.prototype=r;return new e}();(function(e){var t=function(t){var n={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{new Blob;return true}catch(e){return false}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};function r(e){return e&&DataView.prototype.isPrototypeOf(e)}if(n.arrayBuffer){var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];var a=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1}}function o(e){if(typeof e!=="string"){e=String(e)}if(/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e)){throw new TypeError("Invalid character in header field name")}return e.toLowerCase()}function s(e){if(typeof e!=="string"){e=String(e)}return e}function u(e){var t={next:function(){var t=e.shift();return{done:t===undefined,value:t}}};if(n.iterable){t[Symbol.iterator]=function(){return t}}return t}function c(e){this.map={};if(e instanceof c){e.forEach((function(e,t){this.append(t,e)}),this)}else if(Array.isArray(e)){e.forEach((function(e){this.append(e[0],e[1])}),this)}else if(e){Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}}c.prototype.append=function(e,t){e=o(e);t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};c.prototype["delete"]=function(e){delete this.map[o(e)]};c.prototype.get=function(e){e=o(e);return this.has(e)?this.map[e]:null};c.prototype.has=function(e){return this.map.hasOwnProperty(o(e))};c.prototype.set=function(e,t){this.map[o(e)]=s(t)};c.prototype.forEach=function(e,t){for(var n in this.map){if(this.map.hasOwnProperty(n)){e.call(t,this.map[n],n,this)}}};c.prototype.keys=function(){var e=[];this.forEach((function(t,n){e.push(n)}));return u(e)};c.prototype.values=function(){var e=[];this.forEach((function(t){e.push(t)}));return u(e)};c.prototype.entries=function(){var e=[];this.forEach((function(t,n){e.push([n,t])}));return u(e)};if(n.iterable){c.prototype[Symbol.iterator]=c.prototype.entries}function l(e){if(e.bodyUsed){return Promise.reject(new TypeError("Already read"))}e.bodyUsed=true}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)};e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader;var n=f(t);t.readAsArrayBuffer(e);return n}function p(e){var t=new FileReader;var n=f(t);t.readAsText(e);return n}function h(e){var t=new Uint8Array(e);var n=new Array(t.length);for(var r=0;r<t.length;r++){n[r]=String.fromCharCode(t[r])}return n.join("")}function v(e){if(e.slice){return e.slice(0)}else{var t=new Uint8Array(e.byteLength);t.set(new Uint8Array(e));return t.buffer}}function y(){this.bodyUsed=false;this._initBody=function(e){this._bodyInit=e;if(!e){this._bodyText=""}else if(typeof e==="string"){this._bodyText=e}else if(n.blob&&Blob.prototype.isPrototypeOf(e)){this._bodyBlob=e}else if(n.formData&&FormData.prototype.isPrototypeOf(e)){this._bodyFormData=e}else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)){this._bodyText=e.toString()}else if(n.arrayBuffer&&n.blob&&r(e)){this._bodyArrayBuffer=v(e.buffer);this._bodyInit=new Blob([this._bodyArrayBuffer])}else if(n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))){this._bodyArrayBuffer=v(e)}else{this._bodyText=e=Object.prototype.toString.call(e)}if(!this.headers.get("content-type")){if(typeof e==="string"){this.headers.set("content-type","text/plain;charset=UTF-8")}else if(this._bodyBlob&&this._bodyBlob.type){this.headers.set("content-type",this._bodyBlob.type)}else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)){this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8")}}};if(n.blob){this.blob=function(){var e=l(this);if(e){return e}if(this._bodyBlob){return Promise.resolve(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(new Blob([this._bodyArrayBuffer]))}else if(this._bodyFormData){throw new Error("could not read FormData body as blob")}else{return Promise.resolve(new Blob([this._bodyText]))}};this.arrayBuffer=function(){if(this._bodyArrayBuffer){return l(this)||Promise.resolve(this._bodyArrayBuffer)}else{return this.blob().then(d)}}}this.text=function(){var e=l(this);if(e){return e}if(this._bodyBlob){return p(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(h(this._bodyArrayBuffer))}else if(this._bodyFormData){throw new Error("could not read FormData body as text")}else{return Promise.resolve(this._bodyText)}};if(n.formData){this.formData=function(){return this.text().then(E)}}this.json=function(){return this.text().then(JSON.parse)};return this}var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e){var t=e.toUpperCase();return m.indexOf(t)>-1?t:e}function g(e,t){t=t||{};var n=t.body;if(e instanceof g){if(e.bodyUsed){throw new TypeError("Already read")}this.url=e.url;this.credentials=e.credentials;if(!t.headers){this.headers=new c(e.headers)}this.method=e.method;this.mode=e.mode;this.signal=e.signal;if(!n&&e._bodyInit!=null){n=e._bodyInit;e.bodyUsed=true}}else{this.url=String(e)}this.credentials=t.credentials||this.credentials||"same-origin";if(t.headers||!this.headers){this.headers=new c(t.headers)}this.method=b(t.method||this.method||"GET");this.mode=t.mode||this.mode||null;this.signal=t.signal||this.signal;this.referrer=null;if((this.method==="GET"||this.method==="HEAD")&&n){throw new TypeError("Body not allowed for GET or HEAD requests")}this._initBody(n)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})};function E(e){var t=new FormData;e.trim().split("&").forEach((function(e){if(e){var n=e.split("=");var r=n.shift().replace(/\+/g," ");var i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}));return t}function w(e){var t=new c;var n=e.replace(/\r?\n[\t ]+/g," ");n.split(/\r?\n/).forEach((function(e){var n=e.split(":");var r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}));return t}y.call(g.prototype);function _(e,t){if(!t){t={}}this.type="default";this.status=t.status===undefined?200:t.status;this.ok=this.status>=200&&this.status<300;this.statusText="statusText"in t?t.statusText:"OK";this.headers=new c(t.headers);this.url=t.url||"";this._initBody(e)}y.call(_.prototype);_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})};_.error=function(){var e=new _(null,{status:0,statusText:""});e.type="error";return e};var T=[301,302,303,307,308];_.redirect=function(e,t){if(T.indexOf(t)===-1){throw new RangeError("Invalid status code")}return new _(null,{status:t,headers:{location:e}})};t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e;this.name=t;var n=Error(e);this.stack=n.stack};t.DOMException.prototype=Object.create(Error.prototype);t.DOMException.prototype.constructor=t.DOMException}function S(e,r){return new Promise((function(i,a){var o=new g(e,r);if(o.signal&&o.signal.aborted){return a(new t.DOMException("Aborted","AbortError"))}var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:w(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;i(new _(t,e))};s.onerror=function(){a(new TypeError("Network request failed"))};s.ontimeout=function(){a(new TypeError("Network request failed"))};s.onabort=function(){a(new t.DOMException("Aborted","AbortError"))};s.open(o.method,o.url,true);if(o.credentials==="include"){s.withCredentials=true}else if(o.credentials==="omit"){s.withCredentials=false}if("responseType"in s&&n.blob){s.responseType="blob"}o.headers.forEach((function(e,t){s.setRequestHeader(t,e)}));if(o.signal){o.signal.addEventListener("abort",u);s.onreadystatechange=function(){if(s.readyState===4){o.signal.removeEventListener("abort",u)}}}s.send(typeof o._bodyInit==="undefined"?null:o._bodyInit)}))}S.polyfill=true;if(!e.fetch){e.fetch=S;e.Headers=c;e.Request=g;e.Response=_}t.Headers=c;t.Request=g;t.Response=_;t.fetch=S;Object.defineProperty(t,"__esModule",{value:true});return t}({})})(i);i.fetch.ponyfill=true;delete i.fetch.polyfill;var a=i;t=a.fetch;t.default=a.fetch;t.fetch=a.fetch;t.Headers=a.Headers;t.Request=a.Request;t.Response=a.Response;e.exports=t}));var hn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):undefined;var r=n;t.default=r}));var vn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=s;var n=r(hn);function r(e){return e&&e.__esModule?e:{default:e}}function i(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){i=function e(t){return typeof t}}else{i=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return i(e)}var a=10;var o=2;function s(e){return u(e,[])}function u(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":if(e===null){return"null"}return c(e,t);default:return String(e)}}function c(e,t){if(t.indexOf(e)!==-1){return"[Circular]"}var n=[].concat(t,[e]);var r=d(e);if(r!==undefined){var i=r.call(e);if(i!==e){return typeof i==="string"?i:u(i,n)}}else if(Array.isArray(e)){return f(e,n)}return l(e,n)}function l(e,t){var n=Object.keys(e);if(n.length===0){return"{}"}if(t.length>o){return"["+p(e)+"]"}var r=n.map((function(n){var r=u(e[n],t);return n+": "+r}));return"{ "+r.join(", ")+" }"}function f(e,t){if(e.length===0){return"[]"}if(t.length>o){return"[Array]"}var n=Math.min(a,e.length);var r=e.length-n;var i=[];for(var s=0;s<n;++s){i.push(u(e[s],t))}if(r===1){i.push("... 1 more item")}else if(r>1){i.push("... ".concat(r," more items"))}return"["+i.join(", ")+"]"}function d(e){var t=e[String(n.default)];if(typeof t==="function"){return t}if(typeof e.inspect==="function"){return e.inspect}}function p(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){var n=e.constructor.name;if(typeof n==="string"&&n!==""){return n}}return t}}));var yn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=n;function n(e,t){var n=Boolean(e);if(!n){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}}));var mn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=a;var n=i(yn);var r=i(hn);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.prototype.toJSON;typeof t==="function"||(0,n.default)(0);e.prototype.inspect=t;if(r.default){e.prototype[r.default]=t}}}));var bn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.isNode=o;t.Token=t.Location=void 0;var n=r(mn);function r(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(e,t,n){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=n}var t=e.prototype;t.toJSON=function e(){return{start:this.start,end:this.end}};return e}();t.Location=i;(0,n.default)(i);var a=function(){function e(e,t,n,r,i,a,o){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=o;this.prev=a;this.next=null}var t=e.prototype;t.toJSON=function e(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};return e}();t.Token=a;(0,n.default)(a);function o(e){return e!=null&&typeof e.kind==="string"}}));var gn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.visit=o;t.visitInParallel=s;t.getVisitFn=u;t.BREAK=t.QueryDocumentKeys=void 0;var n=r(vn);function r(e){return e&&e.__esModule?e:{default:e}}var i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=i;var a=Object.freeze({});t.BREAK=a;function o(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:i;var o=undefined;var s=Array.isArray(e);var c=[e];var l=-1;var f=[];var d=undefined;var p=undefined;var h=undefined;var v=[];var y=[];var m=e;do{l++;var b=l===c.length;var g=b&&f.length!==0;if(b){p=y.length===0?undefined:v[v.length-1];d=h;h=y.pop();if(g){if(s){d=d.slice()}else{var E={};for(var w=0,_=Object.keys(d);w<_.length;w++){var T=_[w];E[T]=d[T]}d=E}var S=0;for(var O=0;O<f.length;O++){var I=f[O][0];var x=f[O][1];if(s){I-=S}if(s&&x===null){d.splice(I,1);S++}else{d[I]=x}}}l=o.index;c=o.keys;f=o.edits;s=o.inArray;o=o.prev}else{p=h?s?l:c[l]:undefined;d=h?h[p]:m;if(d===null||d===undefined){continue}if(h){v.push(p)}}var A=void 0;if(!Array.isArray(d)){if(!(0,bn.isNode)(d)){throw new Error("Invalid AST Node: ".concat((0,n.default)(d),"."))}var N=u(t,d.kind,b);if(N){A=N.call(t,d,p,h,v,y);if(A===a){break}if(A===false){if(!b){v.pop();continue}}else if(A!==undefined){f.push([p,A]);if(!b){if((0,bn.isNode)(A)){d=A}else{v.pop();continue}}}}}if(A===undefined&&g){f.push([p,d])}if(b){v.pop()}else{var D;o={inArray:s,index:l,keys:c,edits:f,prev:o};s=Array.isArray(d);c=s?d:(D=r[d.kind])!==null&&D!==void 0?D:[];l=-1;f=[];if(h){y.push(h)}h=d}}while(o!==undefined);if(f.length!==0){m=f[f.length-1][1]}return m}function s(e){var t=new Array(e.length);return{enter:function n(r){for(var i=0;i<e.length;i++){if(t[i]==null){var o=u(e[i],r.kind,false);if(o){var s=o.apply(e[i],arguments);if(s===false){t[i]=r}else if(s===a){t[i]=a}else if(s!==undefined){return s}}}}},leave:function n(r){for(var i=0;i<e.length;i++){if(t[i]==null){var o=u(e[i],r.kind,true);if(o){var s=o.apply(e[i],arguments);if(s===a){t[i]=a}else if(s!==undefined&&s!==false){return s}}}else if(t[i]===r){t[i]=null}}}}}function u(e,t,n){var r=e[t];if(r){if(!n&&typeof r==="function"){return r}var i=n?r.leave:r.enter;if(typeof i==="function"){return i}}else{var a=n?e.leave:e.enter;if(a){if(typeof a==="function"){return a}var o=a[t];if(typeof o==="function"){return o}}}}}));var En=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringValue=n;t.getBlockStringIndentation=i;t.printBlockString=a;function n(e){var t=e.split(/\r\n|[\n\r]/g);var n=i(e);if(n!==0){for(var a=1;a<t.length;a++){t[a]=t[a].slice(n)}}var o=0;while(o<t.length&&r(t[o])){++o}var s=t.length;while(s>o&&r(t[s-1])){--s}return t.slice(o,s).join("\n")}function r(e){for(var t=0;t<e.length;++t){if(e[t]!==" "&&e[t]!=="\t"){return false}}return true}function i(e){var t;var n=true;var r=true;var i=0;var a=null;for(var o=0;o<e.length;++o){switch(e.charCodeAt(o)){case 13:if(e.charCodeAt(o+1)===10){++o}case 10:n=false;r=true;i=0;break;case 9:case 32:++i;break;default:if(r&&!n&&(a===null||i<a)){a=i}r=false}}return(t=a)!==null&&t!==void 0?t:0}function a(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var r=e.indexOf("\n")===-1;var i=e[0]===" "||e[0]==="\t";var a=e[e.length-1]==='"';var o=e[e.length-1]==="\\";var s=!r||a||o||n;var u="";if(s&&!(r&&i)){u+="\n"+t}u+=t?e.replace(/\n/g,"\n"+t):e;if(s){u+="\n"}return'"""'+u.replace(/"""/g,'\\"""')+'"""'}}));var wn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.print=n;function n(e){return(0,gn.visit)(e,{leave:i})}var r=80;var i={Name:function e(t){return t.value},Variable:function e(t){return"$"+t.name},Document:function e(t){return o(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var n=t.operation;var r=t.name;var i=u("(",o(t.variableDefinitions,", "),")");var a=o(t.directives," ");var s=t.selectionSet;return!r&&!a&&!i&&n==="query"?s:o([n,o([r,i]),a,s]," ")},VariableDefinition:function e(t){var n=t.variable,r=t.type,i=t.defaultValue,a=t.directives;return n+": "+r+u(" = ",i)+u(" ",o(a," "))},SelectionSet:function e(t){var n=t.selections;return s(n)},Field:function e(t){var n=t.alias,i=t.name,a=t.arguments,s=t.directives,l=t.selectionSet;var f=u("",n,": ")+i;var d=f+u("(",o(a,", "),")");if(d.length>r){d=f+u("(\n",c(o(a,"\n")),"\n)")}return o([d,o(s," "),l]," ")},Argument:function e(t){var n=t.name,r=t.value;return n+": "+r},FragmentSpread:function e(t){var n=t.name,r=t.directives;return"..."+n+u(" ",o(r," "))},InlineFragment:function e(t){var n=t.typeCondition,r=t.directives,i=t.selectionSet;return o(["...",u("on ",n),o(r," "),i]," ")},FragmentDefinition:function e(t){var n=t.name,r=t.typeCondition,i=t.variableDefinitions,a=t.directives,s=t.selectionSet;return"fragment ".concat(n).concat(u("(",o(i,", "),")")," ")+"on ".concat(r," ").concat(u("",o(a," ")," "))+s},IntValue:function e(t){var n=t.value;return n},FloatValue:function e(t){var n=t.value;return n},StringValue:function e(t,n){var r=t.value,i=t.block;return i?(0,En.printBlockString)(r,n==="description"?"":" "):JSON.stringify(r)},BooleanValue:function e(t){var n=t.value;return n?"true":"false"},NullValue:function e(){return"null"},EnumValue:function e(t){var n=t.value;return n},ListValue:function e(t){var n=t.values;return"["+o(n,", ")+"]"},ObjectValue:function e(t){var n=t.fields;return"{"+o(n,", ")+"}"},ObjectField:function e(t){var n=t.name,r=t.value;return n+": "+r},Directive:function e(t){var n=t.name,r=t.arguments;return"@"+n+u("(",o(r,", "),")")},NamedType:function e(t){var n=t.name;return n},ListType:function e(t){var n=t.type;return"["+n+"]"},NonNullType:function e(t){var n=t.type;return n+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return o(["schema",o(t," "),s(n)]," ")})),OperationTypeDefinition:function e(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:a((function(e){var t=e.name,n=e.directives;return o(["scalar",t,o(n," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["type",t,u("implements ",o(n," & ")),o(r," "),s(i)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?u("(\n",c(o(n,"\n")),"\n)"):u("(",o(n,", "),")"))+": "+r+u(" ",o(i," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return o([t+": "+n,u("= ",r),o(i," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["interface",t,u("implements ",o(n," & ")),o(r," "),s(i)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return o(["union",t,o(n," "),r&&r.length!==0?"= "+o(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return o(["enum",t,o(n," "),s(r)]," ")})),EnumValueDefinition:a((function(e){var t=e.name,n=e.directives;return o([t,o(n," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return o(["input",t,o(n," "),s(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?u("(\n",c(o(n,"\n")),"\n)"):u("(",o(n,", "),")"))+(r?" repeatable":"")+" on "+o(i," | ")})),SchemaExtension:function e(t){var n=t.directives,r=t.operationTypes;return o(["extend schema",o(n," "),s(r)]," ")},ScalarTypeExtension:function e(t){var n=t.name,r=t.directives;return o(["extend scalar",n,o(r," ")]," ")},ObjectTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return o(["extend type",n,u("implements ",o(r," & ")),o(i," "),s(a)]," ")},InterfaceTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return o(["extend interface",n,u("implements ",o(r," & ")),o(i," "),s(a)]," ")},UnionTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.types;return o(["extend union",n,o(r," "),i&&i.length!==0?"= "+o(i," | "):""]," ")},EnumTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.values;return o(["extend enum",n,o(r," "),s(i)]," ")},InputObjectTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.fields;return o(["extend input",n,o(r," "),s(i)]," ")}};function a(e){return function(t){return o([t.description,e(t)],"\n")}}function o(e){var t;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";return(t=e===null||e===void 0?void 0:e.filter((function(e){return e})).join(n))!==null&&t!==void 0?t:""}function s(e){return u("{\n",c(o(e,"\n")),"\n}")}function u(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";return t!=null&&t!==""?e+t+n:""}function c(e){return u(" ",e.replace(/\n/g,"\n "))}function l(e){return e.indexOf("\n")!==-1}function f(e){return e!=null&&e.some(l)}}));var _n=function e(t){var n=t.uri,r=t.name,i=t.type;this.uri=n;this.name=r;this.type=i};var Tn=function e(t){return typeof File!=="undefined"&&t instanceof File||typeof Blob!=="undefined"&&t instanceof Blob||t instanceof _n};var Sn=function e(t,n,r){if(n===void 0){n=""}if(r===void 0){r=Tn}var i;var a=new Map;function o(e,t){var n=a.get(t);if(n)n.push.apply(n,e);else a.set(t,e)}if(r(t)){i=null;o([n],t)}else{var s=n?n+".":"";if(typeof FileList!=="undefined"&&t instanceof FileList)i=Array.prototype.map.call(t,(function(e,t){o([""+s+t],e);return null}));else if(Array.isArray(t))i=t.map((function(t,n){var i=e(t,""+s+n,r);i.files.forEach(o);return i.clone}));else if(t&&t.constructor===Object){i={};for(var u in t){var c=e(t[u],""+s+u,r);c.files.forEach(o);i[u]=c.clone}}else i=t}return{clone:i,files:a}};var On=_n;var In=Sn;var xn=Tn;var An={ReactNativeFile:On,extractFiles:In,isExtractableFile:xn};var Nn=typeof self=="object"?self.FormData:window.FormData;var Dn=t((function(e,t){var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var i=r(Nn);var a=function(e){return An.isExtractableFile(e)||e!==null&&typeof e==="object"&&typeof e.pipe==="function"};function o(e,t){var n=An.extractFiles({query:e,variables:t},"",a),r=n.clone,o=n.files;if(o.size===0){return JSON.stringify(r)}var s=typeof FormData==="undefined"?i.default:FormData;var u=new s;u.append("operations",JSON.stringify(r));var c={};var l=0;o.forEach((function(e){c[++l]=e}));u.append("map",JSON.stringify(c));l=0;o.forEach((function(e,t){u.append(""+ ++l,t)}));return u}t.default=o}));var Cn=e("d",t((function(e,t){var r=n&&n.__assign||function(){r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return r.apply(this,arguments)};var i=n&&n.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var a=n&&n.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=n&&n.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);a(t,e);return t};var s=n&&n.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(o,s)}u((r=r.apply(e,t||[])).next())}))};var u=n&&n.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var c=n&&n.__rest||function(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)n[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++){if(t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i]))n[r[i]]=e[r[i]]}return n};var l=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.gql=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var f=o(pn),d=f;var p=l(Dn);var h=dn;Object.defineProperty(t,"ClientError",{enumerable:true,get:function(){return h.ClientError}});var v=function(e){var t={};if(e){if(typeof Headers!=="undefined"&&e instanceof Headers||e instanceof d.Headers){t=_(e)}else if(Array.isArray(e)){e.forEach((function(e){var n=e[0],r=e[1];t[n]=r}))}else{t=e}}return t};var y=function(){function e(e,t){this.url=e;this.options=t||{}}e.prototype.rawRequest=function(e,t,n){return s(this,void 0,void 0,(function(){var i,a,o,s,l,d,h,y,m,b,E;return u(this,(function(u){switch(u.label){case 0:i=this.options,a=i.headers,o=i.fetch,s=o===void 0?f.default:o,l=c(i,["headers","fetch"]);d=p.default(e,t);return[4,s(this.url,r({method:"POST",headers:r(r(r({},typeof d==="string"?{"Content-Type":"application/json"}:{}),v(a)),v(n)),body:d},l))];case 1:h=u.sent();return[4,g(h)];case 2:y=u.sent();if(h.ok&&!y.errors&&y.data){m=h.headers,b=h.status;return[2,r(r({},y),{headers:m,status:b})]}else{E=typeof y==="string"?{error:y}:y;throw new dn.ClientError(r(r({},E),{status:h.status,headers:h.headers}),{query:e,variables:t})}}}))}))};e.prototype.request=function(e,t,n){return s(this,void 0,void 0,(function(){var i,a,o,s,l,d,h,y,m,b;return u(this,(function(u){switch(u.label){case 0:i=this.options,a=i.headers,o=i.fetch,s=o===void 0?f.default:o,l=c(i,["headers","fetch"]);d=E(e);h=p.default(d,t);return[4,s(this.url,r({method:"POST",headers:r(r(r({},typeof h==="string"?{"Content-Type":"application/json"}:{}),v(a)),v(n)),body:h},l))];case 1:y=u.sent();return[4,g(y)];case 2:m=u.sent();if(y.ok&&!m.errors&&m.data){return[2,m.data]}else{b=typeof m==="string"?{error:m}:m;throw new dn.ClientError(r(r({},b),{status:y.status}),{query:d,variables:t})}}}))}))};e.prototype.setHeaders=function(e){this.options.headers=e;return this};e.prototype.setHeader=function(e,t){var n;var r=this.options.headers;if(r){r[e]=t}else{this.options.headers=(n={},n[e]=t,n)}return this};return e}();t.GraphQLClient=y;function m(e,t,n){return s(this,void 0,void 0,(function(){var r;return u(this,(function(i){r=new y(e);return[2,r.rawRequest(t,n)]}))}))}t.rawRequest=m;function b(e,t,n){return s(this,void 0,void 0,(function(){var r;return u(this,(function(i){r=new y(e);return[2,r.request(t,n)]}))}))}t.request=b;t.default=b;function g(e){var t=e.headers.get("Content-Type");if(t&&t.startsWith("application/json")){return e.json()}else{return e.text()}}function E(e){if(typeof e==="string")return e;return wn.print(e)}function w(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}return e.reduce((function(e,n,r){return""+e+n+(r in t?t[r]:"")}),"")}t.gql=w;function _(e){var t={};e.forEach((function(e,n){t[n]=e}));return t}})));var kn=t((function(e,t){var r=n&&n.__assign||function(){r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return r.apply(this,arguments)};var i=n&&n.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(t,"__esModule",{value:true});t.renameVariables=t.renameVariablesAndTopLevelFields=t.renameVariablesAndTopLevelFieldsOnOpDef=t.renameSelectionSetArguments=t.renameVariableDefinition=t.renameDirectiveArguments=t.renameArgument=t.renameValue=t.defaultRenameFn=void 0;t.defaultRenameFn=function(e,t){return e+"_"+t};function a(e,t){if(e.kind==="Variable"){return r(r({},e),{name:r(r({},e.name),{value:t(e.name.value)})})}else if(e.kind==="ObjectValue"){return r(r({},e),{fields:e.fields.map((function(e){return r(r({},e),{value:a(e.value,t)})}))})}else if(e.kind==="ListValue"){return r(r({},e),{values:e.values.map((function(e){return a(e,t)}))})}return e}t.renameValue=a;function o(e,t){return r(r({},e),{value:a(e.value,t)})}t.renameArgument=o;function s(e,t){var n;return r(r({},e),{arguments:(n=e.arguments)===null||n===void 0?void 0:n.map((function(e){return o(e,t)}))})}t.renameDirectiveArguments=s;function u(e,t){var n;return r(r({},e),{variable:r(r({},e.variable),{name:r(r({},e.variable.name),{value:t(e.variable.name.value)})}),directives:(n=e.directives)===null||n===void 0?void 0:n.map((function(e){return s(e,t)}))})}t.renameVariableDefinition=u;function c(e,t){return r(r({},e),{selections:e.selections.map((function(e){var n,i,a;switch(e.kind){case"Field":return r(r({},e),{arguments:(n=e.arguments)===null||n===void 0?void 0:n.map((function(e){return o(e,t)})),selectionSet:e.selectionSet?c(e.selectionSet,t):undefined});case"FragmentSpread":return r(r({},e),{directives:(i=e.directives)===null||i===void 0?void 0:i.map((function(e){return s(e,t)}))});case"InlineFragment":return r(r({},e),{directives:(a=e.directives)===null||a===void 0?void 0:a.map((function(e){return s(e,t)})),selectionSet:c(e.selectionSet,t)})}}))})}t.renameSelectionSetArguments=c;function l(e,t,n){var i,a;return r(r({},e),{variableDefinitions:(i=e.variableDefinitions)===null||i===void 0?void 0:i.map((function(e){return u(e,t)})),directives:(a=e.directives)===null||a===void 0?void 0:a.map((function(e){return s(e,t)})),selectionSet:c(r(r({},e.selectionSet),{selections:e.selectionSet.selections.map((function(e){var t,i;switch(e.kind){case"Field":return r(r({},e),{alias:r(r({},e.name),{value:n((i=(t=e.alias)===null||t===void 0?void 0:t.value)!==null&&i!==void 0?i:e.name.value)})});default:return e}}))}),t)})}t.renameVariablesAndTopLevelFieldsOnOpDef=l;function f(e,t,n){return r(r({},e),{definitions:i(e.definitions.filter((function(e){return e.kind!=="OperationDefinition"})),e.definitions.filter((function(e){return e.kind==="OperationDefinition"})).map((function(e){return l(e,t,n)})))})}t.renameVariablesAndTopLevelFields=f;function d(e,t){return Object.keys(e).reduce((function(n,i){var a;return r(r({},n),(a={},a[t(i)]=e[i],a))}),{})}t.renameVariables=d}));var Fn=t((function(e,t){var r=n&&n.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(t.hasOwnProperty(n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var i=n&&n.__assign||function(){i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return i.apply(this,arguments)};var a=n&&n.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(t,"__esModule",{value:true});var o={kind:"Document",definitions:[]};var s=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Error);var u=function(){function e(e,t,n){this.operationName=e;this.document=t;this.variables=n}e.prototype.add=function(t,n){var r=this;var o=this.document.definitions.concat(t.definitions).filter((function(e){return e.kind==="OperationDefinition"}));if(!o.length){throw new s("Expected at least one OperationDefinition, but found none.")}o.forEach((function(e){var t,n;var r=o.filter((function(t){return t!==e}));r.forEach((function(t){var n,r;if(t.operation!==e.operation){throw new s("expected all operations to be of the smae type, but "+((n=t.name)===null||n===void 0?void 0:n.value)+" is "+t.operation+" and "+((r=e.name)===null||r===void 0?void 0:r.value)+" is "+e.operation)}}));(t=e.selectionSet.selections)===null||t===void 0?void 0:t.filter((function(e){return e.kind==="Field"})).forEach((function(t){r.forEach((function(n){var r;return(r=n.selectionSet.selections)===null||r===void 0?void 0:r.filter((function(e){return e.kind==="Field"})).forEach((function(r){var i,a,o,u;if((((i=t.alias)===null||i===void 0?void 0:i.value)||t.name.value)===(((a=r.alias)===null||a===void 0?void 0:a.value)||r.name.value)){throw new s("duplicate field definition "+r.name.value+" for oprations "+((o=e.name)===null||o===void 0?void 0:o.value)+" and "+((u=n.name)===null||u===void 0?void 0:u.value))}}))}))}));(n=e.variableDefinitions)===null||n===void 0?void 0:n.forEach((function(t){r.forEach((function(n){var r;return(r=n.variableDefinitions)===null||r===void 0?void 0:r.forEach((function(r){var i,a;if(t.variable.name.value===r.variable.name.value){throw new s("duplicate variable definition "+r.variable.name.value+" for oprations "+((i=e.name)===null||i===void 0?void 0:i.value)+" and "+((a=n.name)===null||a===void 0?void 0:a.value))}}))}))}))}));var u=function(){if(r.variables&&n){return i(i({},r.variables),n)}return n||r.variables}();var c=[{kind:"OperationDefinition",directives:o.flatMap((function(e){return e.directives||[]})),name:{kind:"Name",value:this.operationName},operation:o[0].operation,selectionSet:{kind:"SelectionSet",selections:o.flatMap((function(e){return e.selectionSet.selections}))},variableDefinitions:o.flatMap((function(e){return e.variableDefinitions||[]}))}];var l=new Set;var f=this.document.definitions.concat(t.definitions);for(var d=0,p=f;d<p.length;d++){var h=p[d];if(h.kind==="OperationDefinition"){continue}if(h.kind==="FragmentDefinition"){if(l.has(h.name.value)){continue}l.add(h.name.value)}c=a([h],c)}var v={kind:"Document",definitions:c};return new e(this.operationName,v,u)};e.prototype.addN=function(e,t,n,r){if(n===void 0){n=kn.defaultRenameFn}if(r===void 0){r=kn.defaultRenameFn}if(!t.length){return this}return t.reduce((function(t,i,a){var o=kn.renameVariablesAndTopLevelFields(e,(function(e){return n(e,a)}),(function(e){return r(e,a)}));var s=kn.renameVariables(i,(function(e){return n(e,a)}));return t.add(o,s)}),this)};return e}();function c(e){return{operationName:e,add:function(e,t){return new u(this.operationName,e,t)},addN:function(e,t,n,r){return new u(this.operationName,o).addN(e,t,n,r)}}}t.default=c}));var Pn=r(Fn);var jn,Rn=jn||(jn={});Rn.Pop="POP";Rn.Push="PUSH";Rn.Replace="REPLACE";var Mn=function(e){return e};function Ln(e){e.preventDefault();e.returnValue=""}function Vn(){var e=[];return{get length(){return e.length},push:function(t){e.push(t);return function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function Bn(){return Math.random().toString(36).substr(2,8)}function Un(e){var t=e.pathname;t=void 0===t?"/":t;var n=e.search;n=void 0===n?"":n;e=e.hash;e=void 0===e?"":e;n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n);e&&"#"!==e&&(t+="#"===e.charAt(0)?e:"#"+e);return t}function qn(e){var t={};if(e){var n=e.indexOf("#");0<=n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?");0<=n&&(t.search=e.substr(n),e=e.substr(0,n));e&&(t.pathname=e)}return t}function $n(e){function t(){var e=u.location,t=c.state||{};return[t.idx,Mn({pathname:e.pathname,search:e.search,hash:e.hash,state:t.usr||null,key:t.key||"default"})]}function n(e){return"string"===typeof e?e:Un(e)}function r(e,t){void 0===t&&(t=null);return Mn(d({pathname:h.pathname,hash:"",search:""},"string"===typeof e?qn(e):e,{state:t,key:Bn()}))}function i(e){f=e;e=t();p=e[0];h=e[1];v.call({action:f,location:h})}function a(e,t){function o(){a(e,t)}var s=jn.Push,l=r(e,t);if(!y.length||(y.call({action:s,location:l,retry:o}),!1)){var f=[{usr:l.state,key:l.key,idx:p+1},n(l)];l=f[0];f=f[1];try{c.pushState(l,"",f)}catch(e){u.location.assign(f)}i(s)}}function o(e,t){function a(){o(e,t)}var s=jn.Replace,u=r(e,t);y.length&&(y.call({action:s,location:u,retry:a}),1)||(u=[{usr:u.state,key:u.key,idx:p},n(u)],c.replaceState(u[0],"",u[1]),i(s))}function s(e){c.go(e)}void 0===e&&(e={});e=e.window;var u=void 0===e?document.defaultView:e,c=u.history,l=null;u.addEventListener("popstate",(function(){if(l)y.call(l),l=null;else{var e=jn.Pop,n=t(),r=n[0];n=n[1];if(y.length)if(null!=r){var a=p-r;a&&(l={action:e,location:n,retry:function(){s(-1*a)}},s(a))}else;else i(e)}}));var f=jn.Pop;e=t();var p=e[0],h=e[1],v=Vn(),y=Vn();null==p&&(p=0,c.replaceState(d({},c.state,{idx:p}),""));return{get action(){return f},get location(){return h},createHref:n,push:a,replace:o,go:s,back:function(){s(-1)},forward:function(){s(1)},listen:function(e){return v.push(e)},block:function(e){var t=y.push(e);1===y.length&&u.addEventListener("beforeunload",Ln);return function(){t();y.length||u.removeEventListener("beforeunload",Ln)}}}}function Kn(e){function t(e,t){void 0===t&&(t=null);return Mn(d({pathname:f.pathname,search:"",hash:""},"string"===typeof e?qn(e):e,{state:t,key:Bn()}))}function n(e,t,n){return!h.length||(h.call({action:e,location:t,retry:n}),!1)}function r(e,t){l=e;f=t;p.call({action:l,location:f})}function i(e,a){var o=jn.Push,s=t(e,a);n(o,s,(function(){i(e,a)}))&&(c+=1,u.splice(c,u.length,s),r(o,s))}function a(e,i){var o=jn.Replace,s=t(e,i);n(o,s,(function(){a(e,i)}))&&(u[c]=s,r(o,s))}function o(e){var t=Math.min(Math.max(c+e,0),u.length-1),i=jn.Pop,a=u[t];n(i,a,(function(){o(e)}))&&(c=t,r(i,a))}void 0===e&&(e={});var s=e;e=s.initialEntries;s=s.initialIndex;var u=(void 0===e?["/"]:e).map((function(e){var t=Mn(d({pathname:"/",search:"",hash:"",state:null,key:Bn()},"string"===typeof e?qn(e):e));return t})),c=Math.min(Math.max(null==s?u.length-1:s,0),u.length-1),l=jn.Pop,f=u[c],p=Vn(),h=Vn();return{get index(){return c},get action(){return l},get location(){return f},createHref:function(e){return"string"===typeof e?e:Un(e)},push:i,replace:a,go:o,back:function(){o(-1)},forward:function(){o(1)},listen:function(e){return p.push(e)},block:function(e){return h.push(e)}}}var Hn={current:void 0};function Jn(){if(void 0===Hn.current)throw new Error("no implementation of useHost provided");return Hn.current()}function Gn(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");Hn.current=e}function Yn(){var e;window.squatchProgramId||(window.squatchProgramId=new c({element:document.documentElement,initialState:(null==(e=window.widgetIdent)?void 0:e.programId)||void 0,contextName:"sq:program-id"}).start())}function zn(){Yn();var e=Jn();return i(e,"sq:program-id")}function Qn(e){Yn(),window.squatchProgramId.context=e}function Wn(){var e,t;return window.SquatchAndroid?{type:"SquatchAndroid",android:window.SquatchAndroid,widgetIdent:window.widgetIdent}:window.SquatchPortal?{type:"SquatchPortal",env:window.SquatchPortal}:window.SquatchAdmin?{type:"SquatchAdmin",adminSDK:window.SquatchAdmin}:window.widgetIdent&&"demo"!==(null==(e=window.widgetIdent)?void 0:e.env)?{type:"SquatchJS2",api:null==(t=window.frameElement)?void 0:t.squatchJsApi,widgetIdent:window.widgetIdent}:{type:"None"}}function Xn(){var e=Wn();return"None"===e.type||"SquatchAdmin"===e.type}function Zn(){var e=Wn();switch(e.type){case"SquatchAndroid":case"SquatchJS2":return e.widgetIdent.tenantAlias;case"SquatchAdmin":case"None":return"demo";case"SquatchPortal":return e.env.tenantAlias}}function er(){var e,t=Wn();switch(t.type){case"SquatchAndroid":case"SquatchJS2":return t.widgetIdent.appDomain;case"SquatchPortal":return(null==(e=t.env)?void 0:e.appDomain)||"https://app.referralsaasquatch.com";case"SquatchAdmin":case"None":return"https://app.referralsaasquatch.com"}}function tr(){var e=Wn();switch(e.type){case"SquatchJS2":return e.widgetIdent.engagementMedium||"EMBED";case"SquatchAndroid":case"SquatchPortal":case"SquatchAdmin":case"None":return"EMBED"}}function nr(){return(t=null==(e=navigator.language)?void 0:e.split("-"))&&1!==t.length?t[0]+"_"+t[1].toUpperCase():e;var e,t}function rr(){return(rr=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)}function ir(e,t){return(ir=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ar(e,t){return t||(t=e.slice(0)),e.raw=t,e}function or(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sr(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return or(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?or(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);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(n=e[Symbol.iterator]()).next.bind(n)}var ur=1e3,cr=60*ur,lr=60*cr,fr=24*lr,dr=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*fr;case"hours":case"hour":case"hrs":case"hr":case"h":return n*lr;case"minutes":case"minute":case"mins":case"min":case"m":return n*cr;case"seconds":case"second":case"secs":case"sec":case"s":return n*ur;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>=fr?pr(e,t,fr,"day"):t>=lr?pr(e,t,lr,"hour"):t>=cr?pr(e,t,cr,"minute"):t>=ur?pr(e,t,ur,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=fr?Math.round(e/fr)+"d":t>=lr?Math.round(e/lr)+"h":t>=cr?Math.round(e/cr)+"m":t>=ur?Math.round(e/ur)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function pr(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}var hr,vr=(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;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var 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=function(){var e=!1;return function(){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||function(){},e.exports=function(e){function t(e){var r,i=null;function a(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}if(!a.enabled)return;var i=a,o=Number(new Date);i.diff=o-(r||o),i.prev=r,i.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");var s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return"%";s++;var a=t.formatters[r];return"function"==typeof a&&(n=a.call(i,e[s]),e.splice(s,1),s--),n})),t.formatArgs.call(i,e),(i.log||t.log).apply(i,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:function(){return null===i?t.enabled(e):i},set:function(e){i=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){var 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(){var e=__spreadArrays(t.names.map(r),t.skips.map(r).map((function(e){return"-"+e}))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;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;var 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=dr,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((function(n){t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){var n=0;for(var r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}(t);var n=e.exports.formatters;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(hr={exports:{}},hr.exports),hr.exports),yr=vr("sq:user-identity");function mr(){window.squatchUserIdentity||(window.squatchUserIdentity=new c({element:document.documentElement,initialState:gr(),contextName:"sq:user-identity"}).start())}function br(e){if(e)try{var t,n,r=m(e),i=r.exp;if(function(e){return e.sub&&/.*:.*@.*:users/.test(e.sub)}(r)){var a=r.sub.match(/(.*):(.*)@(.*):users/);n=atob(a[1]),t=atob(a[2])}else(function(e){return e.user&&e.user.id&&e.user.accountId})(r)&&(n=r.user.accountId,t=r.user.id);if(!t||!n)return;if(i&&Date.now()>=1e3*i)return;return{id:t,accountId:n,jwt:e}}catch(e){return}}function gr(){var e=Wn();switch(e.type){case"SquatchAndroid":case"SquatchJS2":return{id:e.widgetIdent.userId,accountId:e.widgetIdent.accountId,jwt:e.widgetIdent.token};case"SquatchPortal":var t=new URLSearchParams(document.location.search);if(t.has("jwt"))return br(t.get("jwt"));var n=localStorage.getItem("sq:user-identity");if(!n)return;try{var r=JSON.parse(n),i=br(r.jwt);return i?rr({},r,i):void 0}catch(e){return}case"SquatchAdmin":case"None":return}}function Er(e){mr();var t=window.squatchUserIdentity;T(t.context,e)||(t.context=e),e&&"SquatchPortal"===Wn().type?localStorage.setItem("sq:user-identity",JSON.stringify(e)):e||(yr("Deleting user from localStorage"),localStorage.removeItem("sq:user-identity"))}function wr(){var e;return null==(e=_r())?void 0:e.jwt}function _r(){mr();var e=Jn(),t=i(e,"sq:user-identity"),n=br(null==t?void 0:t.jwt);if(!t||n)return t;Er(void 0)}var Tr=function(){return(Tr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Sr=new Map,Or=new Map,Ir=!0,xr=!1;function Ar(e){return e.replace(/[\s,]+/g," ").trim()}function Nr(e){var t,n,r,i=Ar(e);if(!Sr.has(i)){var a=He(e,{experimentalFragmentVariables:xr});if(!a||"Document"!==a.kind)throw new Error("Not a valid GraphQL document.");Sr.set(i,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=a,n=new Set,r=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=Ar((o=e.loc).source.body.substring(o.start,o.end)),a=Or.get(t);a&&!a.has(i)?Ir&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||Or.set(t,a=new Set),a.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var o})),Tr(Tr({},t),{definitions:r}))))}return Sr.get(i)}function Dr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){r+=t&&"Document"===t.kind?t.loc.source.body:t,r+=e[n+1]})),Nr(r)}var Cr,kr=Dr;(Cr=Dr||(Dr={})).gql=kr,Cr.resetCaches=function(){Sr.clear(),Or.clear()},Cr.disableFragmentWarnings=function(){Ir=!1},Cr.enableExperimentalFragmentVariables=function(){xr=!0},Cr.disableExperimentalFragmentVariables=function(){xr=!1},Dr.default=Dr;var Fr=Dr;function Pr(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}var jr=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).subject=new Yt;var i=new Yt;return r.subject.pipe(rn(200,void 0,10)).subscribe((function(e){try{if(!e.length)return Promise.resolve();for(var t,n=Vr(e),a=n.mergedQuery,o=n.mergedVariables,s=n.mergedQueryAddedEvents,u=sr(n.unmergedQueryAddedEvents);!(t=u()).done;)i.next(t.value);return s.length?Promise.resolve(Pr((function(){return Promise.resolve(r.superRequest(a,o)).then((function(e){qr(e,s)}))}),(function(e){if(e instanceof dn.ClientError){var t=function(){var t=e.response,n=t.data,r=t.errors;if(!n)return{v:Kr(s,e)};for(var i,a=Object.keys(n),o=[].concat(s),u=function(){var t=i.value,n=void 0;t.path.find((function(r,i,s){if(a.includes(r)){var u=Lr(r),c=o.findIndex((function(e){return e.id===u}));if(-1===c)return!1;a.splice(i,1),n=o.splice(c,1)[0];var l=Br(e.response.data,n);s[i]=Mr(s[i],u);var f=n.query,d=n.variables,p=rr({},e.response,{errors:[t],data:l,path:s}),h=new dn.ClientError(p,{query:"string"!=typeof f?Ze(f):f,variables:d});return $r(n,h),!0}return!1}))},c=sr(r);!(i=c()).done;)u();qr(n,o)}();if("object"==typeof t)return t.v}else Kr(s,e)}))):Promise.resolve()}catch(e){return Promise.reject(e)}})),i.subscribe((function(e){try{var t=Pr((function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then((function(t){Ur(t,e)}))}),(function(t){$r(e,t)}));return Promise.resolve(t&&t.then?t.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,ir(t,n);var i=r.prototype;return i.superRequest=function(t,n){return e.prototype.request.call(this,t,n)},i.request=function(e,t){var n=this;return new Promise((function(r,i){var a={query:e,variables:t,id:Rr(),resolve:r,reject:i};n.subject.next(a)}))},r}(Cn.GraphQLClient),Rr=function(){return fn().replace(/[-_]/g,"")},Mr=function(e,t){return e.replace("_"+t,"")},Lr=function(e){var t=e.split("_");return t[t.length-1]},Vr=function(e){var t=[],n=[],r=e.reduce((function(e,r){var i=r.query,a=r.variables,o=r.id;try{var s="string"==typeof i?He(i):i,u=s.definitions.find((function(e){return"FragmentDefinition"===e.kind})),c="string"==typeof i?i:Ze(i),l=/@/.test(c);if(u||l)return n.push(r),e;var f=function(e){return function(e,t){return e+"_"+t}(e,o)};return e=e.addN(s,[a],f,f),t.push(r),e}catch(t){return n.push(r),e}}),Pn("BatchedQuery")),i=r.document,a=r.variables;return{mergedQuery:i&&Ze(i),mergedVariables:a,mergedQueryAddedEvents:t,unmergedQueryAddedEvents:n}},Br=function(e,t){if(!e)return e;var n=Object.keys(e),r=t.id;return n.reduce((function(t,n){var i;return n.endsWith(r)&&(t=rr({},t,((i={})[Mr(n,r)]=e[n],i))),t}),{})},Ur=function(e,t){(0,t.resolve)(e)},qr=function(e,t){for(var n,r=sr(t);!(n=r()).done;){var i=n.value,a=Br(e,i);i.resolve(a)}},$r=function(e,t){(0,e.reject)(t)},Kr=function(e,t){for(var n,r=sr(e);!(n=r()).done;)(0,n.value.reject)(t)},Hr=e("q","sq:graphql-client"),Jr=e("c",Et((function(e,t,n){return new jr(e+"/api/v1/"+t+"/graphql",{headers:{Authorization:"Bearer "+(n||"")}})})));function Gr(e,t){switch(t.type){case"loading":return{data:void 0,errors:void 0,loading:!0};case"data":return{data:t.payload,errors:void 0,loading:!1};case"errors":return{data:void 0,errors:t.payload,loading:!1}}}function Yr(e,t){var n,r,a,s,u,c,l=(n=wr(),r=er(),a=Zn(),s=Jr(r,a,n),u=Jn(),null!=(c=i(u,"sq:graphql-client",{attempts:0}))?c:s),d=o(Gr,t),p=d[1];return[d[0],f((function(t,n){void 0===n&&(n=!1);try{if(!l)return p({type:"errors",payload:new Error("No GraphQL client found")}),Promise.resolve();var r=function(r,i){try{var a=(n||p({type:"loading"}),Promise.resolve(l.request(e,t)).then((function(e){p({type:"data",payload:e})})))}catch(e){return i(e)}return a&&a.then?a.then(void 0,i):a}(0,(function(e){p({type:"errors",payload:e})}));return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(t){return Promise.reject(t)}}),[l,e,p])]}var zr,Qr={loading:!1,data:void 0,errors:void 0};function Wr(e){var t=Yr(e,Qr);return[t[1],t[0]]}var Xr,Zr=Fr(zr||(zr=ar(["\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 ei(){var e=Wr(Zr),t=e[0],n=e[1],r=n.loading,i=n.data,o=n.errors;return a((function(){if(null!=i&&i.authenticateManagedIdentityWithEmailAndPassword){var e=i.authenticateManagedIdentityWithEmailAndPassword,t=e.token,n=m(t).user;Er({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.email,emailVerified:e.emailVerified,sessionData:e.sessionData}})}}),[null==i?void 0:i.authenticateManagedIdentityWithEmailAndPassword]),[t,{loading:r,data:i,errors:o}]}var ti,ni=Fr(Xr||(Xr=ar(["\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 ri(){var e=Wr(ni),t=e[0],n=e[1],r=n.loading,i=n.data,o=n.errors;return a((function(){if(null!=i&&i.registerManagedIdentityWithEmailAndPassword){var e=i.registerManagedIdentityWithEmailAndPassword,t=e.token,n=m(t).user;Er({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.email,emailVerified:e.emailVerified,sessionData:e.sessionData}})}}),[null==i?void 0:i.registerManagedIdentityWithEmailAndPassword]),[t,{loading:r,data:i,errors:o}]}var ii,ai=Fr(ti||(ti=ar(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function oi(){var e=Wr(ai),t=e[1];return[e[0],{loading:t.loading,data:t.data,errors:t.errors}]}var si,ui=Fr(ii||(ii=ar(["\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 ci(){var e=Wr(ui),t=e[0],n=e[1],r=n.loading,i=n.data,o=n.errors;return a((function(){if(null!=i&&i.resetManagedIdentityPassword){var e=i.resetManagedIdentityPassword,t=e.token,n=m(t).user;Er({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.email,emailVerified:e.emailVerified,sessionData:e.sessionData}})}}),[null==i?void 0:i.resetManagedIdentityPassword]),[t,{loading:r,data:i,errors:o}]}var li=Fr(si||(si=ar(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function fi(){return Wr(li)}function di(){var e=Jn();return{refresh:f((function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}))}),[e])}}function pi(e){var t=e.skip,n=void 0!==t&&t,r=e.update,i=e.variables;a((function(){var e=function(e){!n&&r(i,!0)};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}}),function(e){var t=s(e),n=s(0);return T(e,t.current)||(t.current=e,n.current+=1),u((function(){return t.current}),[n.current])}([e.query,i,r,n]))}var hi,vi={loading:!1,data:void 0,errors:void 0},yi=Symbol();function mi(e){var t=Yr(e,vi),n=t[0],r=t[1],i=s(yi);return pi({skip:i.current===yi,update:r,variables:i.current,query:e}),[r,rr({},n,{refetch:function(e){i.current=e,r(e)}})]}var bi,gi=Fr(hi||(hi=ar(["\n query ManagedIdentity {\n managedIdentity {\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ei(){var e=_r(),t=mi(gi),n=t[0],r=t[1],i=r.loading,o=r.data,s=r.errors,u=r.refetch;return a((function(){null!=o&&o.managedIdentity&&Er(rr({},e,{managedIdentity:o.managedIdentity}))}),[null==o?void 0:o.managedIdentity]),[f((function(){return n({})}),[n]),{loading:i,data:o,errors:s,refetch:u}]}var wi,_i=Fr(bi||(bi=ar(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Ti(){var e,t=Ei()[0],n=Wr(_i),r=n[0],i=n[1],o=i.loading,s=i.data,u=i.errors;return a((function(){var e;null!=s&&null!=(e=s.verifyManagedIdentityEmail)&&e.success&&t()}),[null==s||null==(e=s.verifyManagedIdentityEmail)?void 0:e.success]),[r,{loading:o,data:s,errors:u}]}var Si,Oi=Fr(wi||(wi=ar(["\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 Ii(){return Wr(Oi)}var xi=Fr(Si||(Si=ar(["\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 Ai(){return Wr(xi)}function Ni(e,t){var n=s();return n.current&&T(t,n.current.key)||(n.current={key:t,value:e()}),n.current.value}function Di(){return o((function(e){return e+1}),0)}function Ci(e){for(var t,n=sr(Object.getOwnPropertyNames(e));!(t=n()).done;){var r=e[t.value];r&&"object"==typeof r&&Ci(r)}return Object.freeze(e)}var ki={loading:!0,data:void 0,errors:void 0};function Fi(e,t,n){var r=Yr(e,ki),i=r[0],a=r[1],o=Di(),s=o[1];return Ni((function(){!n&&a(t)}),[e,t,a,o[0],n]),pi({skip:n,update:a,variables:t,query:e}),Ci(rr({},i,{refetch:s}))}function Pi(){return window.squatchHistory=window.squatchHistory||function(){switch(Wn().type){case"SquatchPortal":return $n();default:return Kn()}}(),window.squatchHistory}var ji,Ri=e("p",{createHref:function(){var e;return(e=Pi()).createHref.apply(e,[].slice.call(arguments))},push:function(){var e;return(e=Pi()).push.apply(e,[].slice.call(arguments))},replace:function(){var e;return(e=Pi()).replace.apply(e,[].slice.call(arguments))},go:function(){var e;return(e=Pi()).go.apply(e,[].slice.call(arguments))},back:function(){return Pi().back()},forward:function(){var e;return(e=Pi()).forward.apply(e,[].slice.call(arguments))}});function Mi(){var e=Di()[1];return a((function(){return Pi().listen((function(){e()}))}),[]),Pi().location}function Li(e){var t=l({limit:e.limit,offset:e.offset}),n=t[0],r=t[1],i=n.offset,a=n.limit,o=function(e,t){return e*t},s=function(e,t){return Math.ceil(e/t)||0};return{limit:a,setLimit:function(e){var t=s(i,e),a=o(e,t);r(rr({},n,{limit:e,offset:a}))},offset:i,setCurrentPage:function(e){var t=o(e,a);r((function(e){return rr({},e,{offset:t})}))},calculatePagination:function(e,t){var n=s(i,a),r=function(e,t){return Math.ceil(e/t)||0}(t,a),o=0===e?"0":e>1?i+1+"-"+(i+e):""+(i+1);return{currentPage:n,pageCount:r,rangeOnPage:o,pageProgress:o+" of "+t}}}}function Vi(e,t,n,r,i){var a;void 0===r&&(r={}),void 0===i&&(i=!1);var o=Li(n),s=o.limit,u=o.setLimit,c=o.setCurrentPage,l=o.calculatePagination,f=Fi(e,rr({limit:s,offset:o.offset},r),i),d=f.loading,p=f.errors,h=f.refetch,v=t(f.data),y=l((null==v||null==(a=v.data)?void 0:a.length)||0,(null==v?void 0:v.totalCount)||0);return{envelope:v,states:{errors:p,loading:d,limit:s,currentPage:y.currentPage,pageCount:y.pageCount,pageProgress:y.pageProgress},callbacks:{refetch:h,setLimit:u,setCurrentPage:c}}}var Bi,Ui,qi,$i=Cn.gql(ji||(ji=ar(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Ki=vr("sq:useForm"),Hi=Cn.gql(Bi||(Bi=ar(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),Ji=Cn.gql(Ui||(Ui=ar(["\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"]))),Gi=Cn.gql(qi||(qi=ar(["\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"])))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t,c as a}from"./p-64c3217a.js";import{n as o,u as r,m as c}from"./p-b7da9a8a.js";import"./p-d1520098.js";import{e as n,j as i,c as p,q as e}from"./p-3b184c32.js";import"./p-81f34787.js";const m=class{constructor(t){s(this,t),this.ignored=!0,c(this)}disconnectedCallback(){}render(){return async function({domain:s}){const t=n(),a=s,c=i(),m=p(a,c,t),[,l]=o(e,m);r((()=>{l(m)}),[m])}(this),t(a,{style:{display:"contents"}},t("slot",null))}};export{m as sqm_graphql_client_provider}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,l){function s(e){try{o(n.next(e))}catch(e){l(e)}}function i(e){try{o(n["throw"](e))}catch(e){l(e)}}function o(e){e.done?r(e.value):a(e.value).then(s,i)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},n,a,l,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(e){return function(t){return o([e,t])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(l=s[0]&2?a["return"]:s[0]?a["throw"]||((l=a["return"])&&l.call(a),0):a.next)&&!(l=l.call(a,s[1])).done)return l;if(a=0,l)s=[s[0]&2,l.value];switch(s[0]){case 0:case 1:l=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(l=r.trys,l=l.length>0&&l[l.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!l||s[1]>l[0]&&s[1]<l[3])){r.label=s[1];break}if(s[0]===6&&r.label<l[1]){r.label=l[1];l=s;break}if(l&&r.label<l[2]){r.label=l[2];r.ops.push(s);break}if(l[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=l=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-9580888c.system.js","./p-0988f079.system.js","./p-e00e11b1.system.js","./p-b0d6a380.system.js","./p-1c17892a.system.js","./p-61d769e2.system.js","./p-4bd679a7.system.js","./p-126bcba1.system.js","./p-3bbb90a9.system.js","./p-d0acc0d5.system.js","./p-fe4d9531.system.js","./p-59454f33.system.js","./p-df466813.system.js","./p-c3f300e8.system.js","./p-8bcaafaf.system.js"],(function(e){"use strict";var t,r,n,a,l,s,i,o,d,u,c,p,m,f,v,h,y,g,w,b,_,x,T;return{setters:[function(e){t=e.h;r=e.r;n=e.c},function(e){a=e.e;l=e.u;s=e.m},function(e){i=e.i},function(){},function(e){o=e.d;d=e.n;u=e.M;c=e.R;p=e.w;m=e.k},function(){},function(){},function(e){f=e.c},function(){},function(e){v=e.c},function(e){h=e.G},function(e){y=e.u;g=e.a;w=e.b},function(e){b=e.g},function(e){_=e.l},function(e){x=e.l},function(e){T=e.T}],execute:function(){var E="sqm-rewards-table";var R=o.gql(__makeTemplateObject(["\n query getRewards(\n $limit: Int!\n $offset: Int!\n $rewardFilter: RewardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n id\n rewards(limit: $limit, offset: $offset, filter: $rewardFilter) {\n totalCount\n count\n data {\n id\n type\n value\n unit\n name\n dateGiven\n dateExpires\n dateCancelled\n dateRedeemed\n dateScheduledFor\n fuelTankCode\n fuelTankType\n currency\n prettyValue(locale: $locale)\n prettyValueNumber: prettyValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyAvailableNumber: prettyAvailableValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyRedeemedNumber: prettyRedeemedCredit(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n programId\n statuses\n pendingReasons\n globalRewardKey\n programRewardKey\n rewardSource\n prettyRedeemedCredit(locale: $locale)\n prettyAssignedCredit(locale: $locale)\n prettyAvailableValue(locale: $locale)\n exchangedRewardRedemptionTransaction {\n id\n creditRedeemed\n prettyRedeemedCredit(locale: $locale)\n unit\n dateRedeemed\n }\n referral {\n id\n referrerUser {\n id\n firstName\n lastName\n }\n referredUser {\n id\n firstName\n lastName\n }\n }\n rewardRedemptionTransactions {\n data {\n exchangedRewards {\n data {\n prettyValue(locale: $locale)\n type\n fuelTankCode\n globalRewardKey\n }\n }\n }\n }\n }\n }\n }\n }\n }\n"],["\n query getRewards(\n $limit: Int!\n $offset: Int!\n $rewardFilter: RewardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n id\n rewards(limit: $limit, offset: $offset, filter: $rewardFilter) {\n totalCount\n count\n data {\n id\n type\n value\n unit\n name\n dateGiven\n dateExpires\n dateCancelled\n dateRedeemed\n dateScheduledFor\n fuelTankCode\n fuelTankType\n currency\n prettyValue(locale: $locale)\n prettyValueNumber: prettyValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyAvailableNumber: prettyAvailableValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyRedeemedNumber: prettyRedeemedCredit(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n programId\n statuses\n pendingReasons\n globalRewardKey\n programRewardKey\n rewardSource\n prettyRedeemedCredit(locale: $locale)\n prettyAssignedCredit(locale: $locale)\n prettyAvailableValue(locale: $locale)\n exchangedRewardRedemptionTransaction {\n id\n creditRedeemed\n prettyRedeemedCredit(locale: $locale)\n unit\n dateRedeemed\n }\n referral {\n id\n referrerUser {\n id\n firstName\n lastName\n }\n referredUser {\n id\n firstName\n lastName\n }\n }\n rewardRedemptionTransactions {\n data {\n exchangedRewards {\n data {\n prettyValue(locale: $locale)\n type\n fuelTankCode\n globalRewardKey\n }\n }\n }\n }\n }\n }\n }\n }\n }\n"]));function S(e,t,r){var n,s;var i=d();var o=u();var m=c();var f=(n=e.programId)!==null&&n!==void 0?n:o;var v=__assign({userId_eq:i===null||i===void 0?void 0:i.id,accountId_eq:i===null||i===void 0?void 0:i.accountId},f?f==="classic"?{programId_exists:false}:{programId_eq:f}:{});var h=a((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),w=h[0],b=h[1];var _=p(R,(function(e){var t;return(t=e===null||e===void 0?void 0:e.viewer)===null||t===void 0?void 0:t.rewards}),{limit:e.perPage,offset:0},{rewardFilter:v,locale:m},!(i===null||i===void 0?void 0:i.jwt)),x=_.envelope,T=_.states,S=_.callbacks;var D=y();var A=g();var C=x===null||x===void 0?void 0:x.data;function L(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,a,l,s,i;var o=this;return __generator(this,(function(d){switch(d.label){case 0:t=e.filter((function(e){return e.slot!=="loading"&&e.slot!=="empty"}));r=t===null||t===void 0?void 0:t.map((function(e){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(t){return[2,N(e,(function(){return e.renderLabel()}))]}))}))}));n=C===null||C===void 0?void 0:C.map((function(e){return __awaiter(o,void 0,void 0,(function(){var r,n;var a=this;return __generator(this,(function(l){switch(l.label){case 0:r=t===null||t===void 0?void 0:t.map((function(t){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(r){return[2,N(t,(function(){return t.renderCell([e],m)}))]}))}))}));return[4,Promise.all(r)];case 1:n=l.sent();return[2,n]}}))}))}));l=n;if(!l)return[3,2];return[4,Promise.all(n)];case 1:l=d.sent().filter((function(e){return e}));d.label=2;case 2:a=l;b({rows:a});i=r;if(!i)return[3,4];return[4,Promise.all(r)];case 3:i=d.sent();d.label=4;case 4:s=i;b({columns:s,loading:false,page:T.currentPage});return[2]}}))}))}l((function(){b({loading:true});x&&L(A)}),[x,A,D]);var I=!((s=w===null||w===void 0?void 0:w.rows)===null||s===void 0?void 0:s.length)&&!(C===null||C===void 0?void 0:C.length);var P=T.loading||w.loading?"loading":I?"empty":"rows";return{states:{hasNext:T.currentPage<T.pageCount-1,hasPrev:T.currentPage>0,show:P,namespace:E},data:{textOverrides:{showLabels:e.showLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,smBreakpoint:e.smBreakpoint,mdBreakpoint:e.mdBreakpoint},elements:{columns:w.columns,rows:w.rows,emptyElement:t,loadingElement:r},callbacks:{nextPage:function(){S.setCurrentPage(T.currentPage+1)},prevPage:function(){S.setCurrentPage(T.currentPage-1)}}}}function N(e,r){return __awaiter(this,void 0,void 0,(function(){var n,a,l,s;return __generator(this,(function(i){switch(i.label){case 0:n=e.tagName.toLowerCase();return[4,customElements.whenDefined(n)];case 1:i.sent();try{a=r()}catch(e){console.error("label promise failed",e);return[2,t("span",null)]}i.label=2;case 2:i.trys.push([2,4,,5]);return[4,a];case 3:return[2,i.sent()];case 4:l=i.sent();console.error("Error rendering label",l);s=b(l);return[2,t("details",null,t("summary",null,"Error"),s)];case 5:return[2]}}))}))}var D=e("sqm_rewards_table",function(){function e(e){r(this,e);this.perPage=3;this.showLabels=true;this.prevLabel="Prev";this.moreLabel="Next";this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=899;this.emptyStateImage="https://res.cloudinary.com/saasquatch/image/upload/v1642618031/squatch-assets/image_4_1.png";this.emptyStateHeader="View your rewards";this.emptyStateText="See all the rewards you have earned from referring friends and completing tasks";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=t(I,{emptyStateImage:this.emptyStateImage,emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText});var r=t(A,null);var n=m()?L(this):S(this,e,r),a=n.states,l=n.data,s=n.callbacks,i=n.elements;return t(h,{states:a,data:l,callbacks:s,elements:i})};return e}());function A(){return t("slot",{name:"loading"},t(C,null),t(C,null),t(C,null),t(C,null))}function C(){return t("sqm-table-row",null,t("sqm-table-cell",{colspan:5},t("sl-skeleton",null)))}function L(e){return f({states:{hasPrev:false,hasNext:false,loading:false,namespace:E},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:e.showLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},referralData:[]},elements:{emptyElement:t(I,{emptyStateImage:"https://res.cloudinary.com/saasquatch/image/upload/v1642618031/squatch-assets/image_4_1.png",emptyStateHeader:"View your rewards",emptyStateText:"See all the rewards you have earned from referring friends and completing tasks"}),loadingElement:t(A,null),columns:["Reward","Source","Status","Date recieved"],rows:[]}},e.demoData||{},{arrayMerge:function(e,t){return t}})}function I(e){var r=e.emptyStateImage,n=e.emptyStateHeader,a=e.emptyStateText;return t("div",{slot:"empty",style:{display:"contents"}},t("sqm-table-row",null,t("sqm-table-cell",{colspan:5,style:{textAlign:"center"}},t("sqm-portal-container",{padding:"xxxx-large",gap:"medium"},t("sqm-image",{"image-url":r,"max-width":"100px"}),t("sqm-titled-section",{"label-margin":"xxx-small","text-align":"center"},t("sqm-text",{slot:"label"},t("h3",null,n)),t("sqm-text",{slot:"content"},a))))))}var P=e("sqm_rewards_table_date_cell",function(){function e(e){r(this,e);this.ignored=true;this.locale="en";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e,r;var n=!this.date?"-":(r=(e=_.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(x(this.locale)))===null||r===void 0?void 0:r.toLocaleString(_.DateTime.DATE_MED);return t(T,{type:"p"},n)};return e}());var U=e("sqm_rewards_table_date_column",function(){function e(e){r(this,e);this.columnTitle="Date received";this.dateShown="dateGiven";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,r){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(a){n=e===null||e===void 0?void 0:e[0];console.log("reward column - locale",{locale:r});return[2,t("sqm-rewards-table-date-cell",{date:n[this.dateShown],locale:r})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){w([this.dateShown,this.columnTitle]);return t(n,{style:{display:"none"}})};return e}());var k=e("sqm_rewards_table_reward_cell",function(){function e(e){r(this,e)}e.prototype.render=function(){var e=this;i.locale=this.locale;var r={DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","padding-right":"var(--sl-spacing-x-small)","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:"default"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:"flex"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)"}};var n=v(r);var a=n.toString();var l=function(r){var n=r.reward;var a;console.log(n);var l=n.unit==="CENTS"?n.prettyValue.replace(/USD/gi,"$"):(a=n.prettyValue)!==null&&a!==void 0?a:"-";var s=n.prettyValueNumber==="1"&&n.prettyRedeemedNumber==="1";if(n.type==="CREDIT"&&!s){var o=Math.round((parseFloat(n.prettyValueNumber)-parseFloat(n.prettyRedeemedNumber))/parseFloat(n.prettyValueNumber)*100);var d=n.statuses.includes("EXPIRED")||n.statuses.includes("CANCELLED")?t("div",null,i.formatMessage({id:"redeemedText",defaultMessage:e.redeemedText},{redeemedAmount:n.prettyRedeemedCredit})):t("div",null,i.formatMessage({id:"availableText",defaultMessage:e.availableText},{availableAmount:n.prettyAvailableValue}));var u={Progress:{height:"3px",width:"150px",margin:"var(--sl-spacing-xx-small) 0",background:"var(--sl-color-neutral-200)","&:after":{content:'""',display:"block",background:"var(--sl-color-primary-300)",borderRadius:"100px",width:o+"%",height:"100%"}},Container:{display:"inline-block",verticalAlign:"top",maxWidth:"100%",maxHeight:"60px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},Text:{fontSize:"var(--sl-font-size-medium)",color:"var(--sl-color-gray-800)"},Subtext:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}};var c=v(u);var p=c.toString();return t("div",null,t("style",{type:"text/css"},p),t("div",{class:c.classes.Container},t("span",null,l+" "),t("br",null)," ",t("div",{class:c.classes.Progress}),t("span",{class:c.classes.Subtext},d)))}return t("div",null,l)};return t("div",{style:{display:"contents"}},t("style",{type:"text/css"},a),t(l,{reward:this.reward}))};return e}());var M=e("sqm_rewards_table_reward_column",function(){function e(e){r(this,e);this.columnTitle="Reward";this.redeemedText="{redeemedAmount} redeemed";this.availableText="{availableAmount} remaining";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,t("sqm-rewards-table-reward-cell",{reward:e===null||e===void 0?void 0:e[0],redeemedText:this.redeemedText,availableText:this.availableText,locale:r})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){w([this.columnTitle]);return t(n,{style:{display:"none"}})};return e}());var q=e("sqm_rewards_table_source_cell",function(){function e(e){r(this,e);this.locale="en"}e.prototype.render=function(){var e=this;i.locale=this.locale;var r=function(r){var n=r.reward;return t("span",null,i.formatMessage({id:"rewardSourceText",defaultMessage:e.rewardSourceText},{rewardSource:n.rewardSource}))};var n=21;var a=function(r){var a=r.reward;var l;var s=t("div",null,t("span",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},e.rewardExchangeText),t("br",null),(l=a.exchangedRewardRedemptionTransaction)===null||l===void 0?void 0:l.prettyRedeemedCredit," → ",a.prettyValue);return a.exchangedRewardRedemptionTransaction.prettyRedeemedCredit.length+a.prettyValue.length<n?s:t("div",{style:{display:"inline-block",verticalAlign:"top"}},s)};var l=function(t){if(!t)return e.deletedUserText;if(!t.firstName&&!t.lastName)return e.anonymousUserText;if(!t.firstName)return""+t.lastName;if(!t.lastName)return""+t.firstName;return t.firstName+" "+t.lastName};var s=function(){return e.reward.rewardSource==="FRIEND_SIGNUP"||e.reward.rewardSource==="REFERRED"?t("div",null,t("div",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},i.formatMessage({id:"referralText",defaultMessage:e.referralText},{rewardSource:e.reward.rewardSource})),t("div",null,e.reward.rewardSource=="FRIEND_SIGNUP"?l(e.reward.referral.referredUser):l(e.reward.referral.referrerUser))):e.reward.exchangedRewardRedemptionTransaction?t(a,{reward:e.reward}):t(r,{reward:e.reward})};return t(s,null)};return e}());var $=e("sqm_rewards_table_source_column",function(){function e(e){r(this,e);this.columnTitle="Source";this.anonymousUser="Anonymous User";this.deletedUser="Deleted User";this.rewardExchangeText="Reward Exchange";this.referralText="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}";this.rewardSourceText="{rewardSource, select, MANUAL {Manual} AUTOMATED {Program} other {}}";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,t("sqm-rewards-table-source-cell",{reward:e===null||e===void 0?void 0:e[0],anonymousUserText:this.anonymousUser,deletedUserText:this.deletedUser,rewardExchangeText:this.rewardExchangeText,referralText:this.referralText,rewardSourceText:this.rewardSourceText,locale:r})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){w([this.deletedUser,this.anonymousUser,this.columnTitle]);return t(n,{style:{display:"none"}})};return e}());var V=e("sqm_rewards_table_status_cell",function(){function e(e){r(this,e);this.expiryText="Expires";this.locale="en";this.pendingUsTax="W-9 required";this.pendingScheduled="Until";this.pendingUnhandled="Fulfillment error"}e.prototype.rewardStatus=function(e){if(e.dateCancelled)return"CANCELLED";if(e.statuses&&e.statuses.includes("EXPIRED"))return"EXPIRED";if(e.statuses&&e.statuses.includes("PENDING"))return"PENDING";if(e.type==="CREDIT"){if(e.statuses.includes("REDEEMED"))return"REDEEMED";return"AVAILABLE"}if(e.type==="PCT_DISCOUNT"){if(e.statuses.includes("AVAILABLE"))return"AVAILABLE"}if(e.type==="INTEGRATION"||e.type==="FUELTANK"){if(e.statuses&&e.statuses.includes("PENDING"))return"PENDING";if(e.statuses&&e.statuses.includes("CANCELLED"))return"CANCELLED";if(e.statuses.includes("AVAILABLE"))return"AVAILABLE"}return""};e.prototype.render=function(){var e;i.locale=this.locale;var r={Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px"}},RedeemBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",background:"var(--sl-color-blue-600)"}},Date:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}};var n=v(r);var a=n.toString();var l=this.rewardStatus(this.reward);var s=i.formatMessage({id:"statusMessage",defaultMessage:this.statusText},{status:l});var o=l==="AVAILABLE"?"success":l==="REDEEMED"?"primary":l==="PENDING"?"warning":"danger";var d=this.reward.dateCancelled||this.reward.dateExpires||this.reward.dateRedeemed||"";var u=d&&""+(l==="AVAILABLE"&&this.reward.dateExpires?this.expiryText+" ":"")+((e=_.DateTime.fromMillis(d))===null||e===void 0?void 0:e.setLocale(x(x(this.locale))).toLocaleString(_.DateTime.DATE_MED));var c=l==="PENDING"?p(this):null;console.log(c);return t("div",{style:{display:"contents"}},t("style",{type:"text/css"},a),t("sl-badge",{type:o,pill:true,class:l==="REDEEMED"?n.classes.RedeemBadge:n.classes.Badge},s),t("p",{class:n.classes.Date},c||u));function p(e){var t;console.log(e.reward);var r={US_TAX:e.pendingUsTax,SCHEDULED:e.reward.dateScheduledFor&&e.pendingScheduled+" "+((t=_.DateTime.fromMillis(e.reward.dateScheduledFor))===null||t===void 0?void 0:t.setLocale(x(x(e.locale))).toLocaleString(_.DateTime.DATE_MED)),UNHANDLED_ERROR:e.pendingUnhandled};return e.reward.pendingReasons.map((function(e){var t;return(t=r[e])!==null&&t!==void 0?t:e})).join(", ")}};return e}());var B=e("sqm_rewards_table_status_column",function(){function e(e){r(this,e);this.columnTitle="Status";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.expiryText="Expires on ";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,r){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(a){n=e===null||e===void 0?void 0:e[0];return[2,t("sqm-rewards-table-status-cell",{statusText:this.statusText,reward:n,expiryText:this.expiryText,locale:r})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){w([this.columnTitle]);return t(n,{style:{display:"none"}})};return e}())}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-64c3217a.js";import{m as r}from"./p-b7da9a8a.js";import"./p-d1520098.js";import{k as o}from"./p-3b184c32.js";import"./p-81f34787.js";import"./p-c1086930.js";import"./p-373fa002.js";import{B as p}from"./p-73d5306f.js";import{u as a,a as i}from"./p-0d66fc45.js";const m=class{constructor(t){s(this,t),this.flexReverse=!1,this.ignored=!0,r(this)}disconnectedCallback(){}render(){const{props:s,label:r}=o()?a(this):i(this);return t(p,Object.assign({},s),t("slot",null,r))}};export{m as sqm_big_stat}
|