genesys-cloud-client-auth 1.0.0-develop.7 → 1.0.0-release.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (461) hide show
  1. package/README.md +10 -459
  2. package/dist/assets/_commonjsHelpers-c9e3b764-Cg_zQLRJ.js +1 -0
  3. package/dist/assets/after-next-render-07a41f53-C_KTwidI.js +1 -0
  4. package/dist/assets/browser-ponyfill-ClIr8e_L.js +2 -0
  5. package/dist/assets/capitalize-first-letter-404638dd-DDlMtXXu.js +1 -0
  6. package/dist/assets/clamp-1fc36648-DnrAwabn.js +1 -0
  7. package/dist/assets/en-1f9d79e6-D5hlE5o5.js +1 -0
  8. package/dist/assets/en-25a315a0-C7J6_avI.js +1 -0
  9. package/dist/assets/en-abdadc27-BNKVS-iZ.js +1 -0
  10. package/dist/assets/en-bf740e9b-BzgaeZ-2.js +1 -0
  11. package/dist/assets/event-is-from-60a4bc72-BUOfvQpd.js +1 -0
  12. package/dist/assets/find-element-by-id-d0ce6208-DntMpzyb.js +1 -0
  13. package/dist/assets/floating-ui.dom.esm-17bec7ce-CxvcWuX2.js +1 -0
  14. package/dist/assets/focus-input-element-8a137b12-hXwZ4F3C.js +1 -0
  15. package/dist/assets/get-closest-element-728b9f18-C_5KDHD-.js +1 -0
  16. package/dist/assets/get-closest-element-7b2f7d5b-kuMVup89.js +1 -0
  17. package/dist/assets/get-slot-41f866aa-DJNt4BpD.js +1 -0
  18. package/dist/assets/get-slot-text-content-95a85429-DTSoMW52.js +1 -0
  19. package/dist/assets/get-valid-timezone-3bde2dae-BTz0r2Zt.js +1 -0
  20. package/dist/assets/gux-accordion-section.entry-CujKcCg9.js +1 -0
  21. package/dist/assets/gux-accordion.entry-DZmjIc-9.js +1 -0
  22. package/dist/assets/gux-action-button.entry-NaNJu48L.js +1 -0
  23. package/dist/assets/gux-action-toast-legacy.entry-5Bnf-XGv.js +1 -0
  24. package/dist/assets/gux-advanced-dropdown-legacy.entry-BALVFsjq.js +1 -0
  25. package/dist/assets/gux-all-row-select.entry-e4deNPsH.js +1 -0
  26. package/dist/assets/gux-announce-beta.entry-CpIkYGZZ.js +1 -0
  27. package/dist/assets/gux-avatar-beta.entry-TbXG5fPC.js +1 -0
  28. package/dist/assets/gux-avatar-change-photo-beta.entry-DkW9hvQM.js +1 -0
  29. package/dist/assets/gux-avatar-focusable-beta.entry-BJ_sRUMO.js +1 -0
  30. package/dist/assets/gux-avatar-group-add-item-beta_3.entry-Bh-3trT0.js +1 -0
  31. package/dist/assets/gux-avatar-group-beta.entry-C1w4dL4A.js +1 -0
  32. package/dist/assets/gux-avatar-group-item-beta.entry-Cb329VO1.js +1 -0
  33. package/dist/assets/gux-avatar-group.service-0e62fde4-Bkuc2736.js +1 -0
  34. package/dist/assets/gux-avatar.service-43c1b4e1-EzKA_VVN.js +1 -0
  35. package/dist/assets/gux-badge.entry-DvN3nRLX.js +1 -0
  36. package/dist/assets/gux-blank-state.entry-DSao7ktr.js +65 -0
  37. package/dist/assets/gux-breadcrumb-item.entry-CWO7gU6O.js +1 -0
  38. package/dist/assets/gux-breadcrumbs.entry-DdCXFTFa.js +1 -0
  39. package/dist/assets/gux-button-multi.entry-DMOjPZbU.js +1 -0
  40. package/dist/assets/gux-button-slot.entry-D4HNdu8f.js +1 -0
  41. package/dist/assets/gux-button_2.entry-DVzg_HQ0.js +1 -0
  42. package/dist/assets/gux-calendar-beta.entry-BOSOQ7YY.js +4 -0
  43. package/dist/assets/gux-calendar.entry-Ogc_3tGC.js +1 -0
  44. package/dist/assets/gux-card.entry-D5kEK46O.js +1 -0
  45. package/dist/assets/gux-column-manager-item.entry-DVQmJy9K.js +1 -0
  46. package/dist/assets/gux-column-manager.entry-D5bpMxdz.js +1 -0
  47. package/dist/assets/gux-column-manager.service-90a02975-GGjVHfbH.js +1 -0
  48. package/dist/assets/gux-content-search.entry-BJJnDEdw.js +1 -0
  49. package/dist/assets/gux-context-menu.entry-DEXYZgPb.js +1 -0
  50. package/dist/assets/gux-copy-to-clipboard.entry-C53OmAOX.js +1 -0
  51. package/dist/assets/gux-create-option.entry-BjF-h1nP.js +1 -0
  52. package/dist/assets/gux-cta-group.entry-D5mMoPf5.js +1 -0
  53. package/dist/assets/gux-date-beta.entry-BCzZ566b.js +1 -0
  54. package/dist/assets/gux-date-time-beta.entry-w0nCTkm_.js +1 -0
  55. package/dist/assets/gux-datepicker.entry-B5L1Dxql.js +1 -0
  56. package/dist/assets/gux-day-beta.entry-BQrPu1aV.js +1 -0
  57. package/dist/assets/gux-disclosure-button-legacy.entry-Bivzz3Cb.js +1 -0
  58. package/dist/assets/gux-dismiss-button.entry-CFv9WjbF.js +1 -0
  59. package/dist/assets/gux-dropdown-multi-tag.entry-w-Pn3a2J.js +1 -0
  60. package/dist/assets/gux-dropdown-multi.entry-jqQXgZYF.js +1 -0
  61. package/dist/assets/gux-dropdown-option.entry-BazGMnE7.js +1 -0
  62. package/dist/assets/gux-dropdown_3.entry-CMfAf7VK.js +1 -0
  63. package/dist/assets/gux-file-list-item.entry-rnKXgjyK.js +5 -0
  64. package/dist/assets/gux-flag-icon-beta.entry-UNEnhOSd.js +1 -0
  65. package/dist/assets/gux-flyout-menu.entry-BERySE-P.js +1 -0
  66. package/dist/assets/gux-form-beta.entry-2MxPlcmT.js +1 -0
  67. package/dist/assets/gux-form-description.entry-2hW0hHZu.js +1 -0
  68. package/dist/assets/gux-form-field-checkbox-group-beta.entry-CKqayh1H.js +1 -0
  69. package/dist/assets/gux-form-field-checkbox.entry-DXfPyKuv.js +1 -0
  70. package/dist/assets/gux-form-field-color.entry-BN26wkk8.js +1 -0
  71. package/dist/assets/gux-form-field-container-3dd7c6ff-BO4NBxm6.js +1 -0
  72. package/dist/assets/gux-form-field-dropdown.entry-DUYckNVv.js +1 -0
  73. package/dist/assets/gux-form-field-error-acb40a19-CHMA1_Nq.js +1 -0
  74. package/dist/assets/gux-form-field-fieldset-container-6cb3610f-DQ6-2XRL.js +1 -0
  75. package/dist/assets/gux-form-field-file-beta.entry-B1OTTsur.js +1 -0
  76. package/dist/assets/gux-form-field-file.entry-jUCgIJcf.js +1 -0
  77. package/dist/assets/gux-form-field-input-clear-button.entry-aoSmjV5a.js +1 -0
  78. package/dist/assets/gux-form-field-label-indicator.entry-Dx4x3dkU.js +1 -0
  79. package/dist/assets/gux-form-field-number_2.entry-fNToJt4I.js +1 -0
  80. package/dist/assets/gux-form-field-phone.entry-ChmMJvT9.js +1 -0
  81. package/dist/assets/gux-form-field-radio-group-beta.entry-C46gk24W.js +1 -0
  82. package/dist/assets/gux-form-field-radio.entry-_ubq07TB.js +1 -0
  83. package/dist/assets/gux-form-field-range.entry-BFH295OR.js +1 -0
  84. package/dist/assets/gux-form-field-search.entry-nT_Drlgf.js +1 -0
  85. package/dist/assets/gux-form-field-select.entry-DnBd_eAO.js +1 -0
  86. package/dist/assets/gux-form-field-text-like.entry-CaI0Z1Y6.js +1 -0
  87. package/dist/assets/gux-form-field-textarea.entry-SU40qFXi.js +1 -0
  88. package/dist/assets/gux-form-field-time-picker.entry-CTLcAsUs.js +1 -0
  89. package/dist/assets/gux-form-field-time-zone-picker.entry-tUgOi_Ei.js +1 -0
  90. package/dist/assets/gux-form-field.service-173b5dfc-D3T_t5F5.js +1 -0
  91. package/dist/assets/gux-form-fieldset-heading.entry-DHlW9e-I.js +1 -0
  92. package/dist/assets/gux-form-footer.entry-CRogcqyr.js +1 -0
  93. package/dist/assets/gux-form-heading.entry-ub_85Z-V.js +1 -0
  94. package/dist/assets/gux-icon-tooltip-beta.entry-o4RPYZDs.js +1 -0
  95. package/dist/assets/gux-icon.entry-n3pWVYbp.js +1 -0
  96. package/dist/assets/gux-inline-alert.entry-CweHLYFF.js +1 -0
  97. package/dist/assets/gux-label-info-beta.entry-DbIf1YIe.js +1 -0
  98. package/dist/assets/gux-link-beta.entry-kIXBkWK9.js +1 -0
  99. package/dist/assets/gux-list-divider.entry-6u2HJN7e.js +1 -0
  100. package/dist/assets/gux-list-item.entry-D5aL-4sF.js +1 -0
  101. package/dist/assets/gux-list.entry-D8r2B-ZP.js +1 -0
  102. package/dist/assets/gux-list.service-5da368db-BTJJSzQi.js +1 -0
  103. package/dist/assets/gux-listbox-multi.entry-BtHnysab.js +1 -0
  104. package/dist/assets/gux-listbox.service-1b2f1a6e-CG-s36UI.js +1 -0
  105. package/dist/assets/gux-loading-message.entry-CvSHqvVZ.js +66 -0
  106. package/dist/assets/gux-menu-option.entry-BAGZt2AS.js +1 -0
  107. package/dist/assets/gux-menu.common-b2a4d472-CSLYc6Td.js +1 -0
  108. package/dist/assets/gux-menu.entry-DwehSnzW.js +1 -0
  109. package/dist/assets/gux-modal-legacy.entry-Cp4Aiphm.js +1 -0
  110. package/dist/assets/gux-modal-side-panel-beta.entry-DCvTQlX9.js +1 -0
  111. package/dist/assets/gux-modal.entry-22VCaz5A.js +1 -0
  112. package/dist/assets/gux-month-calendar.entry-D_EcdMc_.js +1 -0
  113. package/dist/assets/gux-month-list_2.entry-uPhFJHwn.js +1 -0
  114. package/dist/assets/gux-month-picker-beta.entry-VcNlYwmc.js +1 -0
  115. package/dist/assets/gux-notification-toast-legacy.entry-ChU_-47j.js +1 -0
  116. package/dist/assets/gux-option-group-beta.entry-FRRaJLwS.js +1 -0
  117. package/dist/assets/gux-option-icon.entry-KMgTc1vu.js +1 -0
  118. package/dist/assets/gux-option-multi.entry-CGdD9hMn.js +1 -0
  119. package/dist/assets/gux-page-loading-spinner.entry-5PmWDlZg.js +1 -0
  120. package/dist/assets/gux-pagination-buttons-legacy_3.entry-BtvgrJMY.js +1 -0
  121. package/dist/assets/gux-pagination-buttons_2.entry-DV3ecNGj.js +1 -0
  122. package/dist/assets/gux-pagination-cursor.entry-Ww9AsRNQ.js +1 -0
  123. package/dist/assets/gux-pagination-items-per-page.entry-CVi3sRvu.js +1 -0
  124. package/dist/assets/gux-pagination-legacy.entry-DdVA8azk.js +1 -0
  125. package/dist/assets/gux-pagination.entry-1ud8_S9m.js +1 -0
  126. package/dist/assets/gux-phone-input-beta.entry-DzMFUOHx.js +7 -0
  127. package/dist/assets/gux-popover-beta.entry-B_Rzrsrl.js +1 -0
  128. package/dist/assets/gux-popover-list-beta.entry-C7BS70xU.js +1 -0
  129. package/dist/assets/gux-popover-list.entry-DXFJ5Ulu.js +1 -0
  130. package/dist/assets/gux-popup.entry-CaMGjJOv.js +1 -0
  131. package/dist/assets/gux-radial-loading.entry-CIOzqI-P.js +1 -0
  132. package/dist/assets/gux-radial-progress.entry-Bu43Xqjp.js +1 -0
  133. package/dist/assets/gux-rating.entry-CnVRE-uh.js +1 -0
  134. package/dist/assets/gux-rich-highlight-list-item.entry-kkwS1qA5.js +1 -0
  135. package/dist/assets/gux-rich-style-list-item_3.entry-BmlmhWgD.js +1 -0
  136. package/dist/assets/gux-rich-text-editor-action-group.entry-3eFBzXKl.js +1 -0
  137. package/dist/assets/gux-rich-text-editor-action-link.entry-eN5VwMWg.js +1 -0
  138. package/dist/assets/gux-rich-text-editor-action-rich-style.entry-D-l-atJL.js +1 -0
  139. package/dist/assets/gux-rich-text-editor-action-text-highlight.entry-BPEq6CnY.js +1 -0
  140. package/dist/assets/gux-rich-text-editor-action.entry-CsWpsyMj.js +1 -0
  141. package/dist/assets/gux-rich-text-editor-beta.entry-C0dCAvGp.js +1 -0
  142. package/dist/assets/gux-rich-text-editor-list.entry-C0l66P-R.js +1 -0
  143. package/dist/assets/gux-rich-text-editor.service-dcce5e51-BQ3X9qeR.js +1 -0
  144. package/dist/assets/gux-row-select.entry-DgUEWifj.js +1 -0
  145. package/dist/assets/gux-screen-reader-beta.entry-_F4BWhAL.js +1 -0
  146. package/dist/assets/gux-segmented-control-beta.entry-BYc9IyVs.js +1 -0
  147. package/dist/assets/gux-segmented-control-item.entry-B3n-o_0J.js +1 -0
  148. package/dist/assets/gux-selector-card-beta.entry-CZ_KhnMW.js +1 -0
  149. package/dist/assets/gux-selector-cards-beta.entry-DSmvU77v.js +1 -0
  150. package/dist/assets/gux-side-panel-beta.entry-CjBCzQxR.js +1 -0
  151. package/dist/assets/gux-side-panel-heading.entry-D6Va8fio.js +1 -0
  152. package/dist/assets/gux-simple-toast-legacy.entry-CgG0pEiF.js +1 -0
  153. package/dist/assets/gux-skip-navigation-item.entry-D3FTJsk7.js +1 -0
  154. package/dist/assets/gux-skip-navigation-list.entry-DnlKpRzO.js +1 -0
  155. package/dist/assets/gux-sort-control.entry-MR9GppiW.js +1 -0
  156. package/dist/assets/gux-submenu.entry-yuQhJhYJ.js +1 -0
  157. package/dist/assets/gux-switch-item.entry-DCal6u4b.js +1 -0
  158. package/dist/assets/gux-switch-legacy.entry-DRJ6ERCC.js +1 -0
  159. package/dist/assets/gux-tab-advanced-list.entry-BN9Y-n35.js +6 -0
  160. package/dist/assets/gux-tab-advanced-panel.entry-D6qrOxFC.js +1 -0
  161. package/dist/assets/gux-tab-advanced.entry-CJpSAFGF.js +1 -0
  162. package/dist/assets/gux-tab-list.entry-CQhckOwW.js +1 -0
  163. package/dist/assets/gux-tab-panel.entry-odbNoEiY.js +1 -0
  164. package/dist/assets/gux-tab.entry-DrrIYPFo.js +1 -0
  165. package/dist/assets/gux-table-select-menu.entry-DKxPBBXD.js +1 -0
  166. package/dist/assets/gux-table-toolbar-action.entry-C1YCiaaS.js +1 -0
  167. package/dist/assets/gux-table-toolbar-custom-action.entry-DALDxcAQ.js +1 -0
  168. package/dist/assets/gux-table-toolbar-menu-button.entry-DyDFkpyI.js +1 -0
  169. package/dist/assets/gux-table-toolbar.entry-SaVJNWUO.js +1 -0
  170. package/dist/assets/gux-table.entry-DFdyFte5.js +4 -0
  171. package/dist/assets/gux-tabs-advanced.entry-B27L6L9m.js +1 -0
  172. package/dist/assets/gux-tabs.entry-0Ej1nHBV.js +1 -0
  173. package/dist/assets/gux-tag.entry-DrqMTz8A.js +1 -0
  174. package/dist/assets/gux-text-highlight.entry-DNUMmQHn.js +1 -0
  175. package/dist/assets/gux-time-beta.entry-dNtqqDqZ.js +1 -0
  176. package/dist/assets/gux-time-picker.entry-CGHVJ-hV.js +1 -0
  177. package/dist/assets/gux-time-zone-beta.entry-ldWMIao-.js +1 -0
  178. package/dist/assets/gux-time-zone-picker-beta.entry-6etcN2qE.js +1 -0
  179. package/dist/assets/gux-toast.entry-Cq4VhlFL.js +1 -0
  180. package/dist/assets/gux-toggle-slider.entry-Dj4R_vqB.js +1 -0
  181. package/dist/assets/gux-toggle.entry-8BcDCRE8.js +1 -0
  182. package/dist/assets/gux-tooltip-base-beta_2.entry-BkQ0AWOb.js +1 -0
  183. package/dist/assets/gux-tooltip-pointer-beta.entry-dFwvYr4I.js +1 -0
  184. package/dist/assets/gux-tooltip-title.entry-BYB-EI24.js +1 -0
  185. package/dist/assets/gux-tooltip_2.entry-Bkw1a_Up.js +1 -0
  186. package/dist/assets/has-slot-f24a46a6-D7GdaS0G.js +1 -0
  187. package/dist/assets/index-4f1356d9-D95neeh-.js +3 -0
  188. package/dist/assets/index-CGOI1bSc.css +1 -0
  189. package/dist/assets/index-DnQlhAI3.js +53 -0
  190. package/dist/assets/index.umd-c0335c3a-dA6NRMYB.js +7 -0
  191. package/dist/assets/intl-93dbfa3b-BWr_j3mE.js +1 -0
  192. package/dist/assets/iso-dates-c6c7180d-MS_uLuKn.js +1 -0
  193. package/dist/assets/log-error-274efeb7-BpRSdGLj.js +1 -0
  194. package/dist/assets/on-attribute-change-33919964-C8j0fVsi.js +1 -0
  195. package/dist/assets/on-click-outside-6c2e399b-16SRQpNH.js +1 -0
  196. package/dist/assets/on-input-disabled-state-change-27395154-_B452ZSd.js +1 -0
  197. package/dist/assets/on-mutation-751e68e4-Dt8NpKTF.js +1 -0
  198. package/dist/assets/on-mutation-a222fe93-BUuUxYmY.js +1 -0
  199. package/dist/assets/on-resize-c9d0d33c-COxDFtcb.js +1 -0
  200. package/dist/assets/overflow-detection-7e4fbf13-BN_H74hs.js +1 -0
  201. package/dist/assets/prevent-browser-validation-styling-3983eb0a-8P9I4Sy5.js +1 -0
  202. package/dist/assets/random-html-id-81ac821b-D30kRngR.js +1 -0
  203. package/dist/assets/simulate-native-event-e0631897-BcLDngo1.js +1 -0
  204. package/dist/assets/time-zone-b2752992-DBIrkcHc.js +1 -0
  205. package/dist/assets/usage-36c49ec0-Dlq6IjQJ.js +1 -0
  206. package/dist/assets/use-regional-dates-20f9c0e5-C5bTvd2o.js +1 -0
  207. package/dist/assets/when-event-is-from-2aac15f0-B4cyA2sH.js +1 -0
  208. package/dist/assets/year-month-values-7461d213-BGOpTfvI.js +1 -0
  209. package/dist/deploy-info.json +5 -9
  210. package/dist/genesys-cloud-client-auth.browser.min.js +1 -1
  211. package/dist/genesys-cloud-client-auth.browser.min.js.map +1 -1
  212. package/dist/i18n/ar.json +8 -8
  213. package/dist/i18n/cs.json +8 -8
  214. package/dist/i18n/da.json +10 -0
  215. package/dist/i18n/de.json +8 -8
  216. package/dist/i18n/en-us.json +8 -8
  217. package/dist/i18n/es.json +8 -8
  218. package/dist/i18n/fi.json +10 -0
  219. package/dist/i18n/fr.json +8 -8
  220. package/dist/i18n/he.json +8 -8
  221. package/dist/i18n/hi.json +2 -0
  222. package/dist/i18n/it.json +8 -8
  223. package/dist/i18n/ja.json +8 -8
  224. package/dist/i18n/ko.json +8 -8
  225. package/dist/i18n/nl.json +8 -8
  226. package/dist/i18n/no.json +8 -8
  227. package/dist/i18n/pl.json +8 -8
  228. package/dist/i18n/pt-br.json +8 -8
  229. package/dist/i18n/pt-pt.json +8 -8
  230. package/dist/i18n/ru.json +8 -8
  231. package/dist/i18n/sv.json +8 -8
  232. package/dist/i18n/th.json +8 -8
  233. package/dist/i18n/tr.json +8 -8
  234. package/dist/i18n/uk.json +10 -0
  235. package/dist/i18n/zh-cn.json +8 -8
  236. package/dist/i18n/zh-tw.json +8 -8
  237. package/dist/index.html +14 -1
  238. package/dist/lib/cjs/authenticator.d.ts +7 -5
  239. package/dist/lib/cjs/authenticator.js +22 -9
  240. package/dist/lib/cjs/authenticator.js.map +1 -1
  241. package/dist/lib/cjs/index.js.map +1 -1
  242. package/dist/lib/cjs/parse-redirect.js +5 -5
  243. package/dist/lib/cjs/parse-redirect.js.map +1 -1
  244. package/dist/lib/cjs/types.d.ts +5 -1
  245. package/dist/lib/cjs/utils.d.ts +1 -1
  246. package/dist/lib/cjs/utils.js +2 -2
  247. package/dist/lib/cjs/utils.js.map +1 -1
  248. package/dist/lib/cjs/version.js +0 -1
  249. package/dist/lib/cjs/version.js.map +1 -1
  250. package/dist/lib/es/authenticator.d.ts +7 -5
  251. package/dist/lib/es/authenticator.js +19 -6
  252. package/dist/lib/es/authenticator.js.map +1 -1
  253. package/dist/lib/es/index.js.map +1 -1
  254. package/dist/lib/es/parse-redirect.js.map +1 -1
  255. package/dist/lib/es/types.d.ts +5 -1
  256. package/dist/lib/es/utils.d.ts +1 -1
  257. package/dist/lib/es/utils.js.map +1 -1
  258. package/dist/lib/es/version.js +0 -1
  259. package/dist/lib/es/version.js.map +1 -1
  260. package/dist/manifest.json +3 -7
  261. package/dist/v1/genesys-cloud-client-auth.browser.min.js +1 -1
  262. package/dist/v1.0.0/genesys-cloud-client-auth.browser.min.js +1 -1
  263. package/dist/vite.svg +1 -0
  264. package/package.json +72 -73
  265. package/CHANGELOG.md +0 -16
  266. package/LICENSE +0 -21
  267. package/dist/asset-manifest.json +0 -198
  268. package/dist/favicon.ico +0 -0
  269. package/dist/robots.txt +0 -3
  270. package/dist/static/css/main.045d96b0.css +0 -2
  271. package/dist/static/css/main.045d96b0.css.map +0 -1
  272. package/dist/static/js/1089.fb722233.chunk.js +0 -2
  273. package/dist/static/js/1089.fb722233.chunk.js.map +0 -1
  274. package/dist/static/js/1158.76a41325.chunk.js +0 -2
  275. package/dist/static/js/1158.76a41325.chunk.js.map +0 -1
  276. package/dist/static/js/1166.1486fbcd.chunk.js +0 -2
  277. package/dist/static/js/1166.1486fbcd.chunk.js.map +0 -1
  278. package/dist/static/js/131.3f61f67c.chunk.js +0 -2
  279. package/dist/static/js/131.3f61f67c.chunk.js.map +0 -1
  280. package/dist/static/js/1344.19a70535.chunk.js +0 -2
  281. package/dist/static/js/1344.19a70535.chunk.js.map +0 -1
  282. package/dist/static/js/1433.d57f6003.chunk.js +0 -2
  283. package/dist/static/js/1433.d57f6003.chunk.js.map +0 -1
  284. package/dist/static/js/1498.98292821.chunk.js +0 -2
  285. package/dist/static/js/1498.98292821.chunk.js.map +0 -1
  286. package/dist/static/js/1507.84125ab7.chunk.js +0 -2
  287. package/dist/static/js/1507.84125ab7.chunk.js.map +0 -1
  288. package/dist/static/js/1544.fcbc0609.chunk.js +0 -2
  289. package/dist/static/js/1544.fcbc0609.chunk.js.map +0 -1
  290. package/dist/static/js/1642.13e001a0.chunk.js +0 -2
  291. package/dist/static/js/1642.13e001a0.chunk.js.map +0 -1
  292. package/dist/static/js/1697.c1eba654.chunk.js +0 -2
  293. package/dist/static/js/1697.c1eba654.chunk.js.map +0 -1
  294. package/dist/static/js/1718.d222d0d2.chunk.js +0 -2
  295. package/dist/static/js/1718.d222d0d2.chunk.js.map +0 -1
  296. package/dist/static/js/1978.b9b0b630.chunk.js +0 -2
  297. package/dist/static/js/1978.b9b0b630.chunk.js.map +0 -1
  298. package/dist/static/js/2131.e90e6224.chunk.js +0 -2
  299. package/dist/static/js/2131.e90e6224.chunk.js.map +0 -1
  300. package/dist/static/js/2291.98b84fa5.chunk.js +0 -2
  301. package/dist/static/js/2291.98b84fa5.chunk.js.map +0 -1
  302. package/dist/static/js/2361.28c72454.chunk.js +0 -2
  303. package/dist/static/js/2361.28c72454.chunk.js.map +0 -1
  304. package/dist/static/js/2609.69b7ee3f.chunk.js +0 -2
  305. package/dist/static/js/2609.69b7ee3f.chunk.js.map +0 -1
  306. package/dist/static/js/2618.08776cf8.chunk.js +0 -2
  307. package/dist/static/js/2618.08776cf8.chunk.js.map +0 -1
  308. package/dist/static/js/2657.08f5fe94.chunk.js +0 -2
  309. package/dist/static/js/2657.08f5fe94.chunk.js.map +0 -1
  310. package/dist/static/js/2939.a53af515.chunk.js +0 -2
  311. package/dist/static/js/2939.a53af515.chunk.js.map +0 -1
  312. package/dist/static/js/2959.b68475ee.chunk.js +0 -2
  313. package/dist/static/js/2959.b68475ee.chunk.js.map +0 -1
  314. package/dist/static/js/3183.0483907e.chunk.js +0 -2
  315. package/dist/static/js/3183.0483907e.chunk.js.map +0 -1
  316. package/dist/static/js/3184.b5c03e4a.chunk.js +0 -2
  317. package/dist/static/js/3184.b5c03e4a.chunk.js.map +0 -1
  318. package/dist/static/js/3326.58fe8ed8.chunk.js +0 -2
  319. package/dist/static/js/3326.58fe8ed8.chunk.js.map +0 -1
  320. package/dist/static/js/3431.330e6907.chunk.js +0 -2
  321. package/dist/static/js/3431.330e6907.chunk.js.map +0 -1
  322. package/dist/static/js/3466.d53f9938.chunk.js +0 -2
  323. package/dist/static/js/3466.d53f9938.chunk.js.map +0 -1
  324. package/dist/static/js/3534.ee2022f0.chunk.js +0 -2
  325. package/dist/static/js/3534.ee2022f0.chunk.js.map +0 -1
  326. package/dist/static/js/3649.47036a0d.chunk.js +0 -2
  327. package/dist/static/js/3649.47036a0d.chunk.js.map +0 -1
  328. package/dist/static/js/3821.dbe9ef88.chunk.js +0 -2
  329. package/dist/static/js/3821.dbe9ef88.chunk.js.map +0 -1
  330. package/dist/static/js/3982.1668cd90.chunk.js +0 -2
  331. package/dist/static/js/3982.1668cd90.chunk.js.map +0 -1
  332. package/dist/static/js/4173.64f75901.chunk.js +0 -2
  333. package/dist/static/js/4173.64f75901.chunk.js.map +0 -1
  334. package/dist/static/js/4192.35098ff0.chunk.js +0 -2
  335. package/dist/static/js/4192.35098ff0.chunk.js.map +0 -1
  336. package/dist/static/js/4202.6a101f57.chunk.js +0 -2
  337. package/dist/static/js/4202.6a101f57.chunk.js.map +0 -1
  338. package/dist/static/js/4242.625e5aa9.chunk.js +0 -2
  339. package/dist/static/js/4242.625e5aa9.chunk.js.map +0 -1
  340. package/dist/static/js/4248.d69f59fd.chunk.js +0 -2
  341. package/dist/static/js/4248.d69f59fd.chunk.js.map +0 -1
  342. package/dist/static/js/4618.2b652181.chunk.js +0 -2
  343. package/dist/static/js/4618.2b652181.chunk.js.map +0 -1
  344. package/dist/static/js/4774.03877b96.chunk.js +0 -2
  345. package/dist/static/js/4774.03877b96.chunk.js.map +0 -1
  346. package/dist/static/js/4777.07210d5d.chunk.js +0 -2
  347. package/dist/static/js/4777.07210d5d.chunk.js.map +0 -1
  348. package/dist/static/js/4826.f3719274.chunk.js +0 -2
  349. package/dist/static/js/4826.f3719274.chunk.js.map +0 -1
  350. package/dist/static/js/501.3f46836b.chunk.js +0 -2
  351. package/dist/static/js/501.3f46836b.chunk.js.map +0 -1
  352. package/dist/static/js/5122.046ab4b7.chunk.js +0 -2
  353. package/dist/static/js/5122.046ab4b7.chunk.js.map +0 -1
  354. package/dist/static/js/5160.465b3a5d.chunk.js +0 -2
  355. package/dist/static/js/5160.465b3a5d.chunk.js.map +0 -1
  356. package/dist/static/js/546.40835589.chunk.js +0 -2
  357. package/dist/static/js/546.40835589.chunk.js.map +0 -1
  358. package/dist/static/js/5503.cc3b1fda.chunk.js +0 -2
  359. package/dist/static/js/5503.cc3b1fda.chunk.js.map +0 -1
  360. package/dist/static/js/5572.565c5d80.chunk.js +0 -2
  361. package/dist/static/js/5572.565c5d80.chunk.js.map +0 -1
  362. package/dist/static/js/599.a5cb72b5.chunk.js +0 -2
  363. package/dist/static/js/599.a5cb72b5.chunk.js.map +0 -1
  364. package/dist/static/js/6033.174d7635.chunk.js +0 -2
  365. package/dist/static/js/6033.174d7635.chunk.js.map +0 -1
  366. package/dist/static/js/6069.5c81dae7.chunk.js +0 -2
  367. package/dist/static/js/6069.5c81dae7.chunk.js.map +0 -1
  368. package/dist/static/js/6151.c5cf5a85.chunk.js +0 -2
  369. package/dist/static/js/6151.c5cf5a85.chunk.js.map +0 -1
  370. package/dist/static/js/6237.a9b576a4.chunk.js +0 -2
  371. package/dist/static/js/6237.a9b576a4.chunk.js.map +0 -1
  372. package/dist/static/js/6326.156b4248.chunk.js +0 -2
  373. package/dist/static/js/6326.156b4248.chunk.js.map +0 -1
  374. package/dist/static/js/6474.03947fd7.chunk.js +0 -2
  375. package/dist/static/js/6474.03947fd7.chunk.js.map +0 -1
  376. package/dist/static/js/6571.301eecac.chunk.js +0 -2
  377. package/dist/static/js/6571.301eecac.chunk.js.map +0 -1
  378. package/dist/static/js/6632.0676b230.chunk.js +0 -2
  379. package/dist/static/js/6632.0676b230.chunk.js.map +0 -1
  380. package/dist/static/js/6769.fcdb896c.chunk.js +0 -2
  381. package/dist/static/js/6769.fcdb896c.chunk.js.map +0 -1
  382. package/dist/static/js/6982.60585ab3.chunk.js +0 -2
  383. package/dist/static/js/6982.60585ab3.chunk.js.map +0 -1
  384. package/dist/static/js/7076.37939eb2.chunk.js +0 -2
  385. package/dist/static/js/7076.37939eb2.chunk.js.map +0 -1
  386. package/dist/static/js/7120.0b0ef311.chunk.js +0 -3
  387. package/dist/static/js/7120.0b0ef311.chunk.js.LICENSE.txt +0 -6
  388. package/dist/static/js/7120.0b0ef311.chunk.js.map +0 -1
  389. package/dist/static/js/7150.840301cb.chunk.js +0 -2
  390. package/dist/static/js/7150.840301cb.chunk.js.map +0 -1
  391. package/dist/static/js/7153.250bf93b.chunk.js +0 -2
  392. package/dist/static/js/7153.250bf93b.chunk.js.map +0 -1
  393. package/dist/static/js/7307.8656856b.chunk.js +0 -2
  394. package/dist/static/js/7307.8656856b.chunk.js.map +0 -1
  395. package/dist/static/js/742.64af67d8.chunk.js +0 -2
  396. package/dist/static/js/742.64af67d8.chunk.js.map +0 -1
  397. package/dist/static/js/754.b1c84197.chunk.js +0 -2
  398. package/dist/static/js/754.b1c84197.chunk.js.map +0 -1
  399. package/dist/static/js/7610.97a0a5b5.chunk.js +0 -2
  400. package/dist/static/js/7610.97a0a5b5.chunk.js.map +0 -1
  401. package/dist/static/js/765.2a78cffe.chunk.js +0 -2
  402. package/dist/static/js/765.2a78cffe.chunk.js.map +0 -1
  403. package/dist/static/js/7803.bfe8c40f.chunk.js +0 -2
  404. package/dist/static/js/7803.bfe8c40f.chunk.js.map +0 -1
  405. package/dist/static/js/7895.629e8650.chunk.js +0 -2
  406. package/dist/static/js/7895.629e8650.chunk.js.map +0 -1
  407. package/dist/static/js/8025.ecb1d6bc.chunk.js +0 -2
  408. package/dist/static/js/8025.ecb1d6bc.chunk.js.map +0 -1
  409. package/dist/static/js/8086.ef9f2d3b.chunk.js +0 -2
  410. package/dist/static/js/8086.ef9f2d3b.chunk.js.map +0 -1
  411. package/dist/static/js/8105.46b996bf.chunk.js +0 -2
  412. package/dist/static/js/8105.46b996bf.chunk.js.map +0 -1
  413. package/dist/static/js/819.a55f578b.chunk.js +0 -2
  414. package/dist/static/js/819.a55f578b.chunk.js.map +0 -1
  415. package/dist/static/js/8300.e15dbcd8.chunk.js +0 -2
  416. package/dist/static/js/8300.e15dbcd8.chunk.js.map +0 -1
  417. package/dist/static/js/8324.b769efff.chunk.js +0 -2
  418. package/dist/static/js/8324.b769efff.chunk.js.map +0 -1
  419. package/dist/static/js/8366.b2c2daee.chunk.js +0 -2
  420. package/dist/static/js/8366.b2c2daee.chunk.js.map +0 -1
  421. package/dist/static/js/8524.95396ee8.chunk.js +0 -2
  422. package/dist/static/js/8524.95396ee8.chunk.js.map +0 -1
  423. package/dist/static/js/8644.c87452a5.chunk.js +0 -2
  424. package/dist/static/js/8644.c87452a5.chunk.js.map +0 -1
  425. package/dist/static/js/8674.d4aa33fd.chunk.js +0 -2
  426. package/dist/static/js/8674.d4aa33fd.chunk.js.map +0 -1
  427. package/dist/static/js/8717.76b643a4.chunk.js +0 -2
  428. package/dist/static/js/8717.76b643a4.chunk.js.map +0 -1
  429. package/dist/static/js/872.5c96c93a.chunk.js +0 -2
  430. package/dist/static/js/872.5c96c93a.chunk.js.map +0 -1
  431. package/dist/static/js/8762.d3fad692.chunk.js +0 -2
  432. package/dist/static/js/8762.d3fad692.chunk.js.map +0 -1
  433. package/dist/static/js/8782.af6b6665.chunk.js +0 -3
  434. package/dist/static/js/8782.af6b6665.chunk.js.LICENSE.txt +0 -14
  435. package/dist/static/js/8782.af6b6665.chunk.js.map +0 -1
  436. package/dist/static/js/894.a8fe019e.chunk.js +0 -2
  437. package/dist/static/js/894.a8fe019e.chunk.js.map +0 -1
  438. package/dist/static/js/9057.702da8f9.chunk.js +0 -2
  439. package/dist/static/js/9057.702da8f9.chunk.js.map +0 -1
  440. package/dist/static/js/9090.60a5cb5b.chunk.js +0 -2
  441. package/dist/static/js/9090.60a5cb5b.chunk.js.map +0 -1
  442. package/dist/static/js/9117.200d2100.chunk.js +0 -2
  443. package/dist/static/js/9117.200d2100.chunk.js.map +0 -1
  444. package/dist/static/js/9131.d5d0ab82.chunk.js +0 -2
  445. package/dist/static/js/9131.d5d0ab82.chunk.js.map +0 -1
  446. package/dist/static/js/9296.e374c7dc.chunk.js +0 -2
  447. package/dist/static/js/9296.e374c7dc.chunk.js.map +0 -1
  448. package/dist/static/js/932.4f62c387.chunk.js +0 -2
  449. package/dist/static/js/932.4f62c387.chunk.js.map +0 -1
  450. package/dist/static/js/9584.967e5482.chunk.js +0 -2
  451. package/dist/static/js/9584.967e5482.chunk.js.map +0 -1
  452. package/dist/static/js/9679.87a204b1.chunk.js +0 -2
  453. package/dist/static/js/9679.87a204b1.chunk.js.map +0 -1
  454. package/dist/static/js/9745.63a6678a.chunk.js +0 -2
  455. package/dist/static/js/9745.63a6678a.chunk.js.map +0 -1
  456. package/dist/static/js/9750.1310ef55.chunk.js +0 -2
  457. package/dist/static/js/9750.1310ef55.chunk.js.map +0 -1
  458. package/dist/static/js/main.88b7f5a4.js +0 -3
  459. package/dist/static/js/main.88b7f5a4.js.LICENSE.txt +0 -43
  460. package/dist/static/js/main.88b7f5a4.js.map +0 -1
  461. package/dist/static/media/getFetch.c780682470504fffbd04.cjs +0 -1
@@ -1,2 +1,2 @@
1
- window.GenesysCloudClientAuth=function(t){var e={};function r(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(o,n,function(e){return t[e]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=24)}([function(t,e,r){"use strict";var o=SyntaxError,n=Function,i=TypeError,a=function(t){try{return n('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var u=function(){throw new i},c=s?function(){try{return u}catch(t){try{return s(arguments,"callee").get}catch(t){return u}}}():u,p=r(11)(),l=Object.getPrototypeOf||function(t){return t.__proto__},f={},y="undefined"==typeof Uint8Array?void 0:l(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":p?l([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?l(l([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?l((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?l((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?l(""[Symbol.iterator]()):void 0,"%Symbol%":p?Symbol:void 0,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":y,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},d={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=r(1),g=r(14),b=m.call(Function.call,Array.prototype.concat),v=m.call(Function.apply,Array.prototype.splice),w=m.call(Function.call,String.prototype.replace),S=m.call(Function.call,String.prototype.slice),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,j=function(t){var e=S(t,0,1),r=S(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return w(t,_,(function(t,e,r,o){n[n.length]=r?w(o,O,"$1"):e||t})),n},A=function(t,e){var r,n=t;if(g(d,n)&&(n="%"+(r=d[n])[0]+"%"),g(h,n)){var s=h[n];if(s===f&&(s=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&(r=l(n.prototype))}return h[e]=r,r}(n)),void 0===s&&!e)throw new i("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new i('"allowMissing" argument must be a boolean');var r=j(t),n=r.length>0?r[0]:"",a=A("%"+n+"%",e),u=a.name,c=a.value,p=!1,l=a.alias;l&&(n=l[0],v(r,b([0,1],l)));for(var f=1,y=!0;f<r.length;f+=1){var d=r[f],m=S(d,0,1),w=S(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===w||"'"===w||"`"===w)&&m!==w)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&y||(p=!0),g(h,u="%"+(n+="."+d)+"%"))c=h[u];else if(null!=c){if(!(d in c)){if(!e)throw new i("base intrinsic for "+t+" exists, but the property is not available.");return}if(s&&f+1>=r.length){var _=s(c,d);c=(y=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:c[d]}else y=g(c,d),c=c[d];y&&!p&&(h[u]=c)}}return c}},function(t,e,r){"use strict";var o=r(13);t.exports=Function.prototype.bind||o},function(t,e,r){"use strict";var o=String.prototype.replace,n=/%20/g,i="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(t){return o.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:i,RFC3986:a}},function(t,e,r){"use strict";var o=r(2),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],a=n.obj[n.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],p=a[c];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:a,prop:c}),r.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(t,e,r,n,i){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",c=0;c<s.length;++c){var p=s.charCodeAt(c);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===o.RFC1738&&(40===p||41===p)?u+=s.charAt(c):p<128?u+=a[p]:p<2048?u+=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?u+=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(c+=1,p=65536+((1023&p)<<10|1023&s.charCodeAt(c)),u+=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=s(e,o)),i(e)&&i(r)?(r.forEach((function(r,i){if(n.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,o):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),a)}}},function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!==t&&"object"===o(t)}},function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;"undefined"!=typeof window?n=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),n=void 0):n=self;var i=r(6),a=r(7),s=r(8),u=r(20),c=r(4),p=r(21),l=r(23);function f(){}t.exports=function(t,r){return"function"==typeof r?new e.Request("GET",t).end(r):1===arguments.length?new e.Request("GET",t):new e.Request(t,r)};var y=e=t.exports;e.Request=w,y.getXHR=function(){if(n.XMLHttpRequest&&(!n.location||"file:"!==n.location.protocol||!n.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var h="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function d(t){if(!c(t))return t;var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&m(e,r,t[r]);return e.join("&")}function m(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r))r.forEach((function(r){m(t,e,r)}));else if(c(r))for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&m(t,"".concat(e,"[").concat(o,"]"),r[o]);else t.push(encodeURI(e)+"="+encodeURIComponent(r));else t.push(encodeURI(e))}function g(t){for(var e,r,o={},n=t.split("&"),i=0,a=n.length;i<a;++i)-1===(r=(e=n[i]).indexOf("="))?o[decodeURIComponent(e)]="":o[decodeURIComponent(e.slice(0,r))]=decodeURIComponent(e.slice(r+1));return o}function b(t){return/[/+]json($|[^-\w])/i.test(t)}function v(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,r,o,n,i=t.split(/\r?\n/),a={},s=0,u=i.length;s<u;++s)-1!==(e=(r=i[s]).indexOf(":"))&&(o=r.slice(0,e).toLowerCase(),n=h(r.slice(e+1)),a[o]=n);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function w(t,e){var r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,o=null;try{o=new v(r)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",o);try{r._isResponseOK(o)||(t=new Error(o.statusText||o.text||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=o,t.status=o.status,r.callback(t,o)):r.callback(null,o)}))}function S(t,e,r){var o=y("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}y.serializeObject=d,y.parseString=g,y.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},y.serialize={"application/x-www-form-urlencoded":s.stringify,"application/json":a},y.parse={"application/x-www-form-urlencoded":g,"application/json":JSON.parse},p(v.prototype),v.prototype._parseBody=function(t){var e=y.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&b(this.type)&&(e=y.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},v.prototype.toError=function(){var t=this.req,e=t.method,r=t.url,o="cannot ".concat(e," ").concat(r," (").concat(this.status,")"),n=new Error(o);return n.status=this.status,n.method=e,n.url=r,n},y.Response=v,i(w.prototype),u(w.prototype),w.prototype.type=function(t){return this.set("Content-Type",y.types[t]||t),this},w.prototype.accept=function(t){return this.set("Accept",y.types[t]||t),this},w.prototype.auth=function(t,e,r){1===arguments.length&&(e=""),"object"===o(e)&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});var n=function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,r,n)},w.prototype.query=function(t){return"string"!=typeof t&&(t=d(t)),t&&this._query.push(t),this},w.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},w.prototype._getFormData=function(){return this._formData||(this._formData=new n.FormData),this._formData},w.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},w.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},w.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},w.prototype.ca=w.prototype.agent,w.prototype.buffer=w.prototype.ca,w.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},w.prototype.pipe=w.prototype.write,w.prototype._isHost=function(t){return t&&"object"===o(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},w.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||f,this._finalizeQueryString(),this._end()},w.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},w.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=y.getXHR();var e=this.xhr,r=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var r=e.readyState;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===r){var o;try{o=e.status}catch(t){o=0}if(!o){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var o=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",o.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",o.bind(null,"upload"))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){var n=this._header["content-type"],i=this._serializer||y.serialize[n?n.split(";")[0]:""];!i&&b(n)&&(i=y.serialize["application/json"]),i&&(r=i(r))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},y.agent=function(){return new l},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(t){l.prototype[t.toLowerCase()]=function(e,r){var o=new y.Request(t,e);return this._setDefaults(o),r&&o.end(r),o}})),l.prototype.del=l.prototype.delete,y.get=function(t,e,r){var o=y("GET",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},y.head=function(t,e,r){var o=y("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},y.options=function(t,e,r){var o=y("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},y.del=S,y.delete=S,y.patch=function(t,e,r){var o=y("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},y.post=function(t,e,r){var o=y("POST",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},y.put=function(t,e,r){var o=y("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}},function(t,e,r){function o(t){if(t)return function(t){for(var e in o.prototype)t[e]=o.prototype[e];return t}(t)}t.exports=o,o.prototype.on=o.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},o.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},o.prototype.off=o.prototype.removeListener=o.prototype.removeAllListeners=o.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,o=this._callbacks["$"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<o.length;n++)if((r=o[n])===e||r.fn===e){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+t],this},o.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(r){o=0;for(var n=(r=r.slice(0)).length;o<n;++o)r[o].apply(this,e)}return this},o.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},o.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e){t.exports=n,n.default=n,n.stable=a,n.stableStringify=a;var r=[],o=[];function n(t,e,n){var i;for(!function t(e,n,i,a){var s;if("object"==typeof e&&null!==e){for(s=0;s<i.length;s++)if(i[s]===e){var u=Object.getOwnPropertyDescriptor(a,n);return void(void 0!==u.get?u.configurable?(Object.defineProperty(a,n,{value:"[Circular]"}),r.push([a,n,e,u])):o.push([e,n]):(a[n]="[Circular]",r.push([a,n,e])))}if(i.push(e),Array.isArray(e))for(s=0;s<e.length;s++)t(e[s],s,i,e);else{var c=Object.keys(e);for(s=0;s<c.length;s++){var p=c[s];t(e[p],p,i,e)}}i.pop()}}(t,"",[],void 0),i=0===o.length?JSON.stringify(t,e,n):JSON.stringify(t,s(e),n);0!==r.length;){var a=r.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return i}function i(t,e){return t<e?-1:t>e?1:0}function a(t,e,n){var a,u=function t(e,n,a,s){var u;if("object"==typeof e&&null!==e){for(u=0;u<a.length;u++)if(a[u]===e){var c=Object.getOwnPropertyDescriptor(s,n);return void(void 0!==c.get?c.configurable?(Object.defineProperty(s,n,{value:"[Circular]"}),r.push([s,n,e,c])):o.push([e,n]):(s[n]="[Circular]",r.push([s,n,e])))}if("function"==typeof e.toJSON)return;if(a.push(e),Array.isArray(e))for(u=0;u<e.length;u++)t(e[u],u,a,e);else{var p={},l=Object.keys(e).sort(i);for(u=0;u<l.length;u++){var f=l[u];t(e[f],f,a,e),p[f]=e[f]}if(void 0===s)return p;r.push([s,n,e]),s[n]=p}a.pop()}}(t,"",[],void 0)||t;for(a=0===o.length?JSON.stringify(u,e,n):JSON.stringify(u,s(e),n);0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}return a}function s(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(o.length>0)for(var n=0;n<o.length;n++){var i=o[n];if(i[1]===e&&i[0]===r){r="[Circular]",o.splice(n,1);break}}return t.call(this,e,r)}}},function(t,e,r){"use strict";var o=r(9),n=r(19),i=r(2);t.exports={formats:i,parse:n,stringify:o}},function(t,e,r){"use strict";var o=r(10),n=r(3),i=r(2),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,p=function(t,e){c.apply(t,u(e)?e:[e])},l=Date.prototype.toISOString,f=i.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},h=function t(e,r,i,a,s,c,l,f,h,d,m,g,b,v,w){var S,_=e;if(w.has(e))throw new RangeError("Cyclic object value");if("function"==typeof l?_=l(r,_):_ instanceof Date?_=d(_):"comma"===i&&u(_)&&(_=n.maybeMap(_,(function(t){return t instanceof Date?d(t):t}))),null===_){if(a)return c&&!b?c(r,y.encoder,v,"key",m):r;_=""}if("string"==typeof(S=_)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||n.isBuffer(_))return c?[g(b?r:c(r,y.encoder,v,"key",m))+"="+g(c(_,y.encoder,v,"value",m))]:[g(r)+"="+g(String(_))];var O,j=[];if(void 0===_)return j;if("comma"===i&&u(_))O=[{value:_.length>0?_.join(",")||null:void 0}];else if(u(l))O=l;else{var A=Object.keys(_);O=f?A.sort(f):A}for(var E=0;E<O.length;++E){var T=O[E],x="object"==typeof T&&void 0!==T.value?T.value:_[T];if(!s||null!==x){var P=u(_)?"function"==typeof i?i(r,T):r:r+(h?"."+T:"["+T+"]");w.set(e,!0);var k=o();p(j,t(x,P,i,a,s,c,l,f,h,d,m,g,b,v,k))}}return j};t.exports=function(t,e){var r,n=t,c=function(t){if(!t)return y;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=i.formatters[r],n=y.filter;return("function"==typeof t.filter||u(t.filter))&&(n=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:y.addQueryPrefix,allowDots:void 0===t.allowDots?y.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:y.charsetSentinel,delimiter:void 0===t.delimiter?y.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:y.encode,encoder:"function"==typeof t.encoder?t.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:y.encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:y.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof c.filter?n=(0,c.filter)("",n):u(c.filter)&&(r=c.filter);var l,f=[];if("object"!=typeof n||null===n)return"";l=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=s[l];r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var m=o(),g=0;g<r.length;++g){var b=r[g];c.skipNulls&&null===n[b]||p(f,h(n[b],b,d,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,m))}var v=f.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),v.length>0?w+v:""}},function(t,e,r){"use strict";var o=r(0),n=r(15),i=r(17),a=o("%TypeError%"),s=o("%WeakMap%",!0),u=o("%Map%",!0),c=n("WeakMap.prototype.get",!0),p=n("WeakMap.prototype.set",!0),l=n("WeakMap.prototype.has",!0),f=n("Map.prototype.get",!0),y=n("Map.prototype.set",!0),h=n("Map.prototype.has",!0),d=function(t,e){for(var r,o=t;null!==(r=o.next);o=r)if(r.key===e)return o.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,o={assert:function(t){if(!o.has(t))throw new a("Side channel does not contain "+i(t))},get:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(t)return c(t,o)}else if(u){if(e)return f(e,o)}else if(r)return function(t,e){var r=d(t,e);return r&&r.value}(r,o)},has:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(t)return l(t,o)}else if(u){if(e)return h(e,o)}else if(r)return function(t,e){return!!d(t,e)}(r,o);return!1},set:function(o,n){s&&o&&("object"==typeof o||"function"==typeof o)?(t||(t=new s),p(t,o,n)):u?(e||(e=new u),y(e,o,n)):(r||(r={key:{},next:null}),function(t,e,r){var o=d(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(r,o,n))}};return o}},function(t,e,r){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(12);t.exports=function(){return"function"==typeof o&&("function"==typeof Symbol&&("symbol"==typeof o("foo")&&("symbol"==typeof Symbol("bar")&&n())))}},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},function(t,e,r){"use strict";var o="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,i=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==i.call(e))throw new TypeError(o+e);for(var r,a=n.call(arguments,1),s=function(){if(this instanceof r){var o=e.apply(this,a.concat(n.call(arguments)));return Object(o)===o?o:this}return e.apply(t,a.concat(n.call(arguments)))},u=Math.max(0,e.length-a.length),c=[],p=0;p<u;p++)c.push("$"+p);if(r=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var l=function(){};l.prototype=e.prototype,r.prototype=new l,l.prototype=null}return r}},function(t,e,r){"use strict";var o=r(1);t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,r){"use strict";var o=r(0),n=r(16),i=n(o("String.prototype.indexOf"));t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?n(r):r}},function(t,e,r){"use strict";var o=r(1),n=r(0),i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||o.call(a,i),u=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),p=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(o,a,arguments);if(u&&c){var r=u(e,"length");r.configurable&&c(e,"length",{value:1+p(0,t.length-(arguments.length-1))})}return e};var l=function(){return s(o,i,arguments)};c?c(t.exports,"apply",{value:l}):t.exports.apply=l},function(t,e,r){var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,p=s&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,d=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b="function"==typeof BigInt?BigInt.prototype.valueOf:null,v=Object.getOwnPropertySymbols,w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_=Object.prototype.propertyIsEnumerable,O=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),j=r(18).custom,A=j&&k(j)?j:null,E="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function T(t,e,r){var o="double"===(r.quoteStyle||e)?'"':"'";return o+t+o}function x(t){return String(t).replace(/"/g,"&quot;")}function P(t){return!("[object Array]"!==C(t)||E&&"object"==typeof t&&E in t)}function k(t){if(S)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!w)return!1;try{return w.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,o,n){var s=r||{};if(I(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(I(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!I(s,"customInspect")||s.customInspect;if("boolean"!=typeof u)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(I(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var o=e.length-r.maxStringLength,n="... "+o+" more character"+(o>1?"s":"");return t(e.slice(0,r.maxStringLength),r)+n}return T(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,N),"single",r)}(e,s);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var d=void 0===s.depth?5:s.depth;if(void 0===o&&(o=0),o>=d&&d>0&&"object"==typeof e)return P(e)?"[Array]":"[Object]";var v=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Array(t.indent+1).join(" ")}return{base:r,prev:Array(e+1).join(r)}}(s,o);if(void 0===n)n=[];else if(D(n,e)>=0)return"[Circular]";function _(e,r,i){if(r&&(n=n.slice()).push(r),i){var a={depth:s.depth};return I(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,o+1,n)}return t(e,s,o+1,n)}if("function"==typeof e){var j=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),R=q(e,_);return"[Function"+(j?": "+j:" (anonymous)")+"]"+(R.length>0?" { "+R.join(", ")+" }":"")}if(k(e)){var H=S?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):w.call(e);return"object"!=typeof e||S?H:U(H)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var W="<"+String(e.nodeName).toLowerCase(),$=e.attributes||[],B=0;B<$.length;B++)W+=" "+$[B].name+"="+T(x($[B].value),"double",s);return W+=">",e.childNodes&&e.childNodes.length&&(W+="..."),W+="</"+String(e.nodeName).toLowerCase()+">"}if(P(e)){if(0===e.length)return"[]";var z=q(e,_);return v&&!function(t){for(var e=0;e<t.length;e++)if(D(t[e],"\n")>=0)return!1;return!0}(z)?"["+L(z,v)+"]":"[ "+z.join(", ")+" ]"}if(function(t){return!("[object Error]"!==C(t)||E&&"object"==typeof t&&E in t)}(e)){var G=q(e,_);return 0===G.length?"["+String(e)+"]":"{ ["+String(e)+"] "+G.join(", ")+" }"}if("object"==typeof e&&u){if(A&&"function"==typeof e[A])return e[A]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var V=[];return a.call(e,(function(t,r){V.push(_(r,e,!0)+" => "+_(t,e))})),M("Map",i.call(e),V,v)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var J=[];return p.call(e,(function(t){J.push(_(t,e))})),M("Set",c.call(e),J,v)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return F("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return F("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return F("WeakRef");if(function(t){return!("[object Number]"!==C(t)||E&&"object"==typeof t&&E in t)}(e))return U(_(Number(e)));if(function(t){if(!t||"object"!=typeof t||!b)return!1;try{return b.call(t),!0}catch(t){}return!1}(e))return U(_(b.call(e)));if(function(t){return!("[object Boolean]"!==C(t)||E&&"object"==typeof t&&E in t)}(e))return U(h.call(e));if(function(t){return!("[object String]"!==C(t)||E&&"object"==typeof t&&E in t)}(e))return U(_(String(e)));if(!function(t){return!("[object Date]"!==C(t)||E&&"object"==typeof t&&E in t)}(e)&&!function(t){return!("[object RegExp]"!==C(t)||E&&"object"==typeof t&&E in t)}(e)){var Q=q(e,_),X=O?O(e)===Object.prototype:e instanceof Object||e.constructor===Object,K=e instanceof Object?"":"null prototype",Y=!X&&E&&Object(e)===e&&E in e?C(e).slice(8,-1):K?"Object":"",Z=(X||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(Y||K?"["+[].concat(Y||[],K||[]).join(": ")+"] ":"");return 0===Q.length?Z+"{}":v?Z+"{"+L(Q,v)+"}":Z+"{ "+Q.join(", ")+" }"}return String(e)};var R=Object.prototype.hasOwnProperty||function(t){return t in this};function I(t,e){return R.call(t,e)}function C(t){return d.call(t)}function D(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function N(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function U(t){return"Object("+t+")"}function F(t){return t+" { ? }"}function M(t,e,r,o){return t+" ("+e+") {"+(o?L(r,o):r.join(", "))+"}"}function L(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+t.join(","+r)+"\n"+e.prev}function q(t,e){var r=P(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=I(t,n)?e(t[n],t):""}var i,a="function"==typeof v?v(t):[];if(S){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)I(t,u)&&(r&&String(Number(u))===u&&u<t.length||S&&i["$"+u]instanceof Symbol||(/[^\w$]/.test(u)?o.push(e(u,t)+": "+e(t[u],t)):o.push(u+": "+e(t[u],t))));if("function"==typeof v)for(var c=0;c<a.length;c++)_.call(t,a[c])&&o.push("["+e(a[c])+"]: "+e(t[a[c]],t));return o}},function(t,e){},function(t,e,r){"use strict";var o=r(3),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,p=[];if(c){if(!r.plainObjects&&n.call(Object.prototype,c)&&!r.allowPrototypes)return;p.push(c)}for(var l=0;r.depth>0&&null!==(s=a.exec(i))&&l<r.depth;){if(l+=1,!r.plainObjects&&n.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(s[1])}return s&&p.push("["+i.slice(s.index)+"]"),function(t,e,r,o){for(var n=o?e:u(e,r),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,p=parseInt(c,10);r.parseArrays||""!==c?!isNaN(p)&&s!==c&&String(p)===c&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(a=[])[p]=n:a[c]=n:a={0:n}}n=a}return n}(p,e,r,o)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,e){var r,c={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,l=e.parameterLimit===1/0?void 0:e.parameterLimit,f=p.split(e.delimiter,l),y=-1,h=e.charset;if(e.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?h="utf-8":"utf8=%26%2310003%3B"===f[r]&&(h="iso-8859-1"),y=r,r=f.length);for(r=0;r<f.length;++r)if(r!==y){var d,m,g=f[r],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(d=e.decoder(g,a.decoder,h,"key"),m=e.strictNullHandling?null:""):(d=e.decoder(g.slice(0,v),a.decoder,h,"key"),m=o.maybeMap(u(g.slice(v+1),e),(function(t){return e.decoder(t,a.decoder,h,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===h&&(m=s(m)),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m),n.call(c,d)?c[d]=o.combine(c[d],m):c[d]=m}return c}(t,r):t,l=r.plainObjects?Object.create(null):{},f=Object.keys(p),y=0;y<f.length;++y){var h=f[y],d=c(h,p[h],r,"string"==typeof t);l=o.merge(l,d,r)}return!0===r.allowSparse?l:o.compact(l)}},function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=r(4);function i(t){if(t)return function(t){for(var e in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,e)&&(t[e]=i.prototype[e]);return t}(t)}t.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(t){return this._parser=t,this},i.prototype.responseType=function(t){return this._responseType=t,this},i.prototype.serialize=function(t){return this._serializer=t,this},i.prototype.timeout=function(t){if(!t||"object"!==o(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},i.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var a=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),s=new Set([408,413,429,500,502,503,504,521,522,524]);i.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(t){console.error(t)}if(e&&e.status&&s.has(e.status))return!0;if(t){if(t.code&&a.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(t,e){var r=this;if(!this._fullfilledPromise){var o=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){o.on("abort",(function(){if(!(r._maxRetries&&r._maxRetries>r._retries))if(r.timedout&&r.timedoutError)e(r.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=r.status,t.method=r.method,t.url=r.url,e(t)}})),o.end((function(r,o){r?e(r):t(o)}))}))}return this._fullfilledPromise.then(t,e)},i.prototype.catch=function(t){return this.then(void 0,t)},i.prototype.use=function(t){return t(this),this},i.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},i.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},i.prototype.get=function(t){return this._header[t.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(t,e){if(n(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},i.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},i.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(n(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(r,t[r]);return this}if(Array.isArray(e)){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&this.field(t,e[o]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(t,e,r,o){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(o("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},i.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},i.prototype.redirects=function(t){return this._maxRedirects=t,this},i.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(t){var e=n(t),r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&n(this._data))for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this._data[o]=t[o]);else"string"==typeof t?(r||this.type("form"),(r=this._header["content-type"])&&(r=r.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===r?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||r||this.type("json"),this},i.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},i.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.slice(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,e)+"?"+r.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(t,e,r){if(!this._aborted){var o=new Error("".concat(t+e,"ms exceeded"));o.timeout=e,o.code="ECONNABORTED",o.errno=r,this.timedout=!0,this.timedoutError=o,this.abort(),this.callback(o)}},i.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},function(t,e,r){"use strict";var o=r(22);function n(t){if(t)return function(t){for(var e in n.prototype)Object.prototype.hasOwnProperty.call(n.prototype,e)&&(t[e]=n.prototype[e]);return t}(t)}t.exports=n,n.prototype.get=function(t){return this.header[t.toLowerCase()]},n.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=o.type(e);var r=o.params(e);for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(this[n]=r[n]);this.links={};try{t.link&&(this.links=o.parseLinks(t.link))}catch(t){}},n.prototype._setStatusProperties=function(t){var e=t/100|0;this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t}},function(t,e,r){"use strict";function o(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){var e,r={},n=o(t.split(/ *; */));try{for(n.s();!(e=n.n()).done;){var i=e.value.split(/ *= */),a=i.shift(),s=i.shift();a&&s&&(r[a]=s)}}catch(t){n.e(t)}finally{n.f()}return r},e.parseLinks=function(t){var e,r={},n=o(t.split(/ *, */));try{for(n.s();!(e=n.n()).done;){var i=e.value.split(/ *; */),a=i[0].slice(1,-1);r[i[1].split(/ *= */)[1].slice(1,-1)]=a}}catch(t){n.e(t)}finally{n.f()}return r},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},function(t,e,r){"use strict";function o(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function i(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(t){i.prototype[t]=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return this._defaults.push({fn:t,args:r}),this}})),i.prototype._setDefaults=function(t){this._defaults.forEach((function(e){t[e.fn].apply(t,o(e.args))}))},t.exports=i},function(t,e,r){"use strict";r.r(e),r.d(e,"GenesysCloudClientAuthenticator",(function(){return O})),r.d(e,"authenticatorFactory",(function(){return E})),r.d(e,"handleRedirectFromLogin",(function(){return j})),r.d(e,"isIssuedTimeWithinTimeframe",(function(){return w})),r.d(e,"isIssuedTimeWithinWindow",(function(){return S})),r.d(e,"tokenWasIssuedAt",(function(){return _})),r.d(e,"parseOauthParams",(function(){return b})),r.d(e,"TimeoutError",(function(){return m})),r.d(e,"VERSION",(function(){return d}));function o(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function s(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((o=o.apply(t,e||[])).next())}))}Object.create;Object.create;var n,i=r(5),a=r.n(i),s=new Uint8Array(16);function u(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(s)}var c=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var p=function(t){return"string"==typeof t&&c.test(t)},l=[],f=0;f<256;++f)l.push((f+256).toString(16).substr(1));var y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]).toLowerCase();if(!p(r))throw TypeError("Stringified UUID is invalid");return r};var h=function(t,e,r){var o=(t=t||{}).random||(t.rng||u)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){r=r||0;for(var n=0;n<16;++n)e[r+n]=o[n];return e}return y(o)};var d="1.0.0";class m extends Error{constructor(){super(...arguments),this.name="TIMEOUT_ERROR"}}class g extends Error{constructor(t,e){const r=e&&e instanceof Error;super(r?e.message:e),r&&(this.name=e.name),this.translationKey=t}}const b=(t=window.location.hash)=>{const e={},r={},o=new RegExp("^#*(.+?)=(.+?)$","i");if(t.split("&").forEach(t=>{const r=o.exec(t);r&&(e[r[1]]=decodeURIComponent(decodeURIComponent(r[2].replace(/\+/g,"%20"))))}),e.error)return e;if(e.access_token){if(e.state&&(r.state=e.state),e.expires_in){const t=1e3*parseInt(e.expires_in.replace(/\+/g,"%20"));r.tokenExpiryTime=Date.now()+t,r.tokenExpiryTimeString=new Date(r.tokenExpiryTime).toISOString()}r.accessToken=e.access_token.replace(/\+/g,"%20")}return r},v=(t,e)=>{e?(console.log(`%c [DEBUG:gc-client-auth:${d}] ${t}`,"color: #f29f2c",e),"object"==typeof e&&console.log(`%c [DEBUG:gc-client-auth:${d}] ^ stringified: ${JSON.stringify(e)}`,"color: #f29f2c")):console.log(`%c [DEBUG:gc-client-auth:${d}] ${t}`,"color: #f29f2c")},w=(t,e=691199e3,r=168e4,o=Date.now())=>o-_(t,e)<r,S=(t,e,r)=>w(t,e,r),_=(t,e)=>t-e;class O{constructor(t,e={}){this.VERSION=d,this.clientId=t,e.storageKey||(e.storageKey="gc_client_auth_data"),"boolean"!=typeof e.persist&&(e.persist=!1),this.config=Object.assign({},e),this.setEnvironment(e.environment),this.timeout=16e3,this.authData={},this.authentications={"PureCloud OAuth":{type:"oauth2"}};try{localStorage.setItem("genesys_cloud_local_storage_test","genesys_cloud_local_storage_test"),localStorage.removeItem("genesys_cloud_local_storage_test"),this.hasLocalStorage=!0}catch(t){this.hasLocalStorage=!1}this._loadSettings()}loginImplicitGrant(t={},e){const r=e||b();return new Promise((e,o)=>{t.org&&!t.provider?o(new Error("opts.provider must be set if opts.org is set")):t.provider&&!t.org?o(new Error("opts.org must be set if opts.provider is set")):t.redirectUri||t.usePopupAuth||o(new Error("redirectUri must be provided for implicit grant and not utilizing client-auth app for popup auth")),r&&r.error&&(r.accessToken=void 0,this._saveSettings(r),o(new Error(`[${r.error}] ${r.error_description}`))),r.accessToken&&this._saveSettings(r),this._testTokenAccess().then(()=>(!this.authData.state&&t.state&&(this.authData.state=t.state),e(this.authData))).catch(r=>{this._debug("Error encountered during login. This is normal if the application has not yet been authorized.",r);const n={client_id:encodeURIComponent(this.clientId),response_type:"token"};if(t.redirectUri&&(n.redirect_uri=encodeURIComponent(t.redirectUri)),t.state&&(n.state=encodeURIComponent(t.state)),t.org&&(n.org=encodeURIComponent(t.org)),t.provider&&(n.provider=encodeURIComponent(t.provider)),t.usePopupAuth){if(!this.hasLocalStorage)return o(new Error("localStorage is unavailable. Cannot authenticate via popup window."));this._debug("using popup auth – adding listener"),this._authenticateViaPopup(n,t.popupTimeout||15e3).then(t=>{this._saveSettings(t),e(t)}).catch(o)}else{const t=this._buildAuthUrl("oauth/authorize",n);this._debug("Implicit grant: redirecting to: "+t),window.location.replace(t),o(new Error(`Routing to login: "${t}"`))}})})}setEnvironment(t){t||(t="mypurecloud.com"),(t=t.replace(/\/+$/,"")).startsWith("https://")&&(t=t.substring(8)),t.startsWith("http://")&&(t=t.substring(7)),t.startsWith("api.")&&(t=t.substring(4)),this.environment=t,this.basePath="https://api."+t,this.authUrl="https://login."+t}clearAuthData(){this._saveSettings({accessToken:void 0,state:void 0,tokenExpiryTime:void 0,tokenExpiryTimeString:void 0})}logout(t){this.clearAuthData();const e={client_id:encodeURIComponent(this.clientId)};t&&(e.redirect_uri=encodeURIComponent(t));const r=this._buildAuthUrl("logout",e);window.location.replace(r)}setAccessToken(t){this._saveSettings({accessToken:t})}testAccessToken(t){return this.callApi("/api/v2/tokens/me","get",t)}parseDate(t){return new Date(t.replace(/T/i," "))}paramToString(t){return t?t instanceof Date?t.toJSON():t.toString():""}buildUrl(t,e={}){t.match(/^\//)||(t="/"+t);return(this.basePath+t).replace(/\{([\w-]+)\}/g,(t,r)=>{let o;return o=Object.getOwnPropertyDescriptor(e,r)?this.paramToString(e[r]):t,encodeURIComponent(o)})}callApi(t,e,r){var o;const n=this.buildUrl(t);return a.a[e](n).type("application/json").timeout(this.timeout).set("Authorization","Bearer "+(r||(null===(o=this.authData)||void 0===o?void 0:o.accessToken))).send()}_debug(t,e){this.config.debugMode&&v(t,e)}_saveSettings(t){try{if(this.authData.accessToken=t.accessToken,this.authentications["PureCloud OAuth"].accessToken=t.accessToken,t.state&&(this.authData.state=t.state),this.authData.error=t.error,this.authData.error_description=t.error_description,t.tokenExpiryTime&&(this.authData.tokenExpiryTime=t.tokenExpiryTime,this.authData.tokenExpiryTimeString=t.tokenExpiryTimeString),!this.config.persist)return void this._debug("persist is not true. Settings will not be saved.");if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be saved.");const e=JSON.parse(JSON.stringify(this.authData));delete e.state,localStorage.setItem(this.config.storageKey,JSON.stringify(e)),this._debug("Auth data saved to local storage",e)}catch(t){console.error(t)}}_getId(t){return"gc-ca_"+(t=t||h())}_authenticateViaPopup(t,e){const r=this._getId(),o=Object.assign(Object.assign({},t),{storageKey:this.config.storageKey});this.config.debugMode&&(o.debug=!0),localStorage.setItem(r,JSON.stringify(o)),t.state=r,t.redirect_uri||(t.redirect_uri=encodeURIComponent(`https://apps.${this.environment}/client-auth`));const n=this._buildAuthUrl("oauth/authorize",t);return new Promise((o,i)=>{this._debug("Implicit grant: opening new window: "+n),window.open(n,"_blank","width=500px,height=500px,noreferrer,noopener,resizable,scrollbars,status");const a=setTimeout(()=>{this._debug("timeout for loginImplicitGrant using popup",t);const e=new m("Popup authentation timeout. It is possible that the popup was blocked or the login page encountered an error");i(e)},e),s=t=>{if(this._debug("value was just written to storage by another app",{key:t.key,newValue:t.newValue,oldValue:t.oldValue}),t.key===this.config.storageKey){this._debug("keys matched. resolving value",{key:t.key,value:t.newValue}),window.removeEventListener("storage",s),clearTimeout(a);const e=JSON.parse(t.newValue);localStorage.removeItem(r),o(e)}};window.addEventListener("storage",s)})}_testTokenAccess(){return o(this,void 0,void 0,(function*(){if(this._loadSettings(),!this.authentications["PureCloud OAuth"].accessToken)throw new g("errorTokenNotSet","No access token provided.");try{yield this.callApi("/api/v2/tokens/me","get")}catch(t){throw this._saveSettings({accessToken:void 0}),t}}))}_loadSettings(){if(!this.config.persist)return;if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be loaded.");const t=this.authData.state,e=localStorage.getItem(this.config.storageKey);this.authData=e?JSON.parse(e):{},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=t}_buildAuthUrl(t,e={}){return Object.keys(e).reduce((t,r)=>e[r]?`${t}&${r}=${e[r]}`:t,`${this.authUrl}/${t}?`)}}const j=()=>{const t=b();if(t.error)throw new Error(`[${t.error}]: ${t.error_description}`);if(!t.accessToken)throw new g("errorToken","No access token provided.");const e=t.state;if(!e)throw new g("errorStateParam","No state param on redirect. Unable to determine location to save auth data.");const r=JSON.parse(localStorage.getItem(e)||"false");if(!r||!r.storageKey)throw new g("errorParse","Unable to parse information from localStorage.");r.state?t.state=r.state:delete t.state,v("setting auth data to key: "+r.storageKey,t),localStorage.setItem(r.storageKey,JSON.stringify(t)),r.debug?v("In debug mode. Not closing window or removing storageId",{storageId:e,authData:t,href:window.location.href}):(v("removing temp storage key: "+e),localStorage.removeItem(e),v("closing window"),window.close())},A=new Map,E=(t,e)=>{let r=A.get(t);return r||(r=new O(t,e),A.set(t,r)),r};e.default=E}]);
1
+ (()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{GenesysCloudClientAuthenticator:()=>Pt,TimeoutError:()=>l,VERSION:()=>c,authenticatorFactory:()=>It,default:()=>Ft,handleRedirectFromLogin:()=>Dt,isIssuedTimeWithinTimeframe:()=>p,isIssuedTimeWithinWindow:()=>m,parseOauthParams:()=>f,tokenWasIssuedAt:()=>g});var n={};e.r(n),e.d(n,{hasBrowserEnv:()=>_e,hasStandardBrowserEnv:()=>Ue,hasStandardBrowserWebWorkerEnv:()=>ke,navigator:()=>Ae,origin:()=>Ce}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const s=new Uint8Array(16),i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));const a=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const a=(e=e||{}).random??e.rng?.()??function(){if(!o){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");o=crypto.getRandomValues.bind(crypto)}return o(s)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=a[e];return t}return function(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}(a)},c="1.0.0",u="color: #f29f2c";class l extends Error{constructor(){super(...arguments),this.name="TIMEOUT_ERROR"}}class d extends Error{constructor(e,t){const n=t&&t instanceof Error;super(n?t.message:t),n&&(this.name=t.name),this.translationKey=e}}const f=(e=window.location.hash)=>{const t={},n={},r=new RegExp("^#*(.+?)=(.+?)$","i");if(e.split("&").forEach(e=>{const n=r.exec(e);n&&(t[n[1]]=decodeURIComponent(decodeURIComponent(n[2].replace(/\+/g,"%20"))))}),t.error)return t;if(t.access_token){if(t.state&&(n.state=t.state),t.expires_in){const e=1e3*parseInt(t.expires_in.replace(/\+/g,"%20"));n.tokenExpiryTime=Date.now()+e,n.tokenExpiryTimeString=new Date(n.tokenExpiryTime).toISOString()}n.accessToken=t.access_token.replace(/\+/g,"%20")}return n},h=(e,t)=>{t?(console.log(`%c [DEBUG:gc-client-auth:${c}] ${e}`,u,t),"object"==typeof t&&console.log(`%c [DEBUG:gc-client-auth:${c}] ^ stringified: ${JSON.stringify(t)}`,u)):console.log(`%c [DEBUG:gc-client-auth:${c}] ${e}`,u)},p=(e,t=691199e3,n=168e4,r=Date.now())=>r-g(e,t)<n,m=(e,t,n)=>p(e,t,n),g=(e,t)=>e-t;function y(e,t){return function(){return e.apply(t,arguments)}}const{toString:b}=Object.prototype,{getPrototypeOf:w}=Object,{iterator:E,toStringTag:S}=Symbol,O=(R=Object.create(null),e=>{const t=b.call(e);return R[t]||(R[t]=t.slice(8,-1).toLowerCase())});var R;const T=e=>(e=e.toLowerCase(),t=>O(t)===e),v=e=>t=>typeof t===e,{isArray:_}=Array,A=v("undefined");function U(e){return null!==e&&!A(e)&&null!==e.constructor&&!A(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const k=T("ArrayBuffer"),C=v("string"),x=v("function"),N=v("number"),j=e=>null!==e&&"object"==typeof e,P=e=>{if("object"!==O(e))return!1;const t=w(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||S in e||E in e)},D=T("Date"),L=T("File"),I=T("Blob"),F=T("FileList"),B=T("URLSearchParams"),[q,$,M,z]=["ReadableStream","Request","Response","Headers"].map(T);function J(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),_(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(U(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function V(e,t){if(U(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const K="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,W=e=>!A(e)&&e!==K,H=(G="undefined"!=typeof Uint8Array&&w(Uint8Array),e=>G&&e instanceof G);var G;const X=T("HTMLFormElement"),Q=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Y=T("RegExp"),Z=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)}),Object.defineProperties(e,r)},ee=T("AsyncFunction"),te=(ne="function"==typeof setImmediate,re=x(K.postMessage),ne?setImmediate:re?(oe=`axios@${Math.random()}`,se=[],K.addEventListener("message",({source:e,data:t})=>{e===K&&t===oe&&se.length&&se.shift()()},!1),e=>{se.push(e),K.postMessage(oe,"*")}):e=>setTimeout(e));var ne,re,oe,se;const ie="undefined"!=typeof queueMicrotask?queueMicrotask.bind(K):"undefined"!=typeof process&&process.nextTick||te,ae={isArray:_,isArrayBuffer:k,isBuffer:U,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||x(e.append)&&("formdata"===(t=O(e))||"object"===t&&x(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&k(e.buffer),t},isString:C,isNumber:N,isBoolean:e=>!0===e||!1===e,isObject:j,isPlainObject:P,isEmptyObject:e=>{if(!j(e)||U(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:q,isRequest:$,isResponse:M,isHeaders:z,isUndefined:A,isDate:D,isFile:L,isBlob:I,isRegExp:Y,isFunction:x,isStream:e=>j(e)&&x(e.pipe),isURLSearchParams:B,isTypedArray:H,isFileList:F,forEach:J,merge:function e(){const{caseless:t}=W(this)&&this||{},n={},r=(r,o)=>{const s=t&&V(n,o)||o;P(n[s])&&P(r)?n[s]=e(n[s],r):P(r)?n[s]=e({},r):_(r)?n[s]=r.slice():n[s]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&J(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(J(t,(t,r)=>{n&&x(t)?e[r]=y(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&w(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:O,kindOfTest:T,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(_(e))return e;let t=e.length;if(!N(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[E]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:X,hasOwnProperty:Q,hasOwnProp:Q,reduceDescriptors:Z,freezeMethods:e=>{Z(e,(t,n)=>{if(x(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];x(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return _(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:V,global:K,isContextDefined:W,isSpecCompliantForm:function(e){return!!(e&&x(e.append)&&"FormData"===e[S]&&e[E])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(j(e)){if(t.indexOf(e)>=0)return;if(U(e))return e;if(!("toJSON"in e)){t[r]=e;const o=_(e)?[]:{};return J(e,(e,t)=>{const s=n(e,r+1);!A(s)&&(o[t]=s)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:ee,isThenable:e=>e&&(j(e)||x(e))&&x(e.then)&&x(e.catch),setImmediate:te,asap:ie,isIterable:e=>null!=e&&x(e[E])};function ce(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ae.inherits(ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ae.toJSONObject(this.config),code:this.code,status:this.status}}});const ue=ce.prototype,le={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{le[e]={value:e}}),Object.defineProperties(ce,le),Object.defineProperty(ue,"isAxiosError",{value:!0}),ce.from=(e,t,n,r,o,s)=>{const i=Object.create(ue);return ae.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),ce.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const de=ce;function fe(e){return ae.isPlainObject(e)||ae.isArray(e)}function he(e){return ae.endsWith(e,"[]")?e.slice(0,-2):e}function pe(e,t,n){return e?e.concat(t).map(function(e,t){return e=he(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const me=ae.toFlatObject(ae,{},null,function(e){return/^is[A-Z]/.test(e)}),ge=function(e,t,n){if(!ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ae.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ae.isUndefined(t[e])})).metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ae.isSpecCompliantForm(t);if(!ae.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ae.isDate(e))return e.toISOString();if(ae.isBoolean(e))return e.toString();if(!a&&ae.isBlob(e))throw new de("Blob is not supported. Use a Buffer instead.");return ae.isArrayBuffer(e)||ae.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(ae.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ae.isArray(e)&&function(e){return ae.isArray(e)&&!e.some(fe)}(e)||(ae.isFileList(e)||ae.endsWith(n,"[]"))&&(a=ae.toArray(e)))return n=he(n),a.forEach(function(e,r){!ae.isUndefined(e)&&null!==e&&t.append(!0===i?pe([n],r,s):null===i?n:n+"[]",c(e))}),!1;return!!fe(e)||(t.append(pe(o,n,s),c(e)),!1)}const l=[],d=Object.assign(me,{defaultVisitor:u,convertValue:c,isVisitable:fe});if(!ae.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ae.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),ae.forEach(n,function(n,s){!0===(!(ae.isUndefined(n)||null===n)&&o.call(t,n,ae.isString(s)?s.trim():s,r,d))&&e(n,r?r.concat(s):[s])}),l.pop()}}(e),t};function ye(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function be(e,t){this._pairs=[],e&&ge(e,this,t)}const we=be.prototype;we.append=function(e,t){this._pairs.push([e,t])},we.toString=function(e){const t=e?function(t){return e.call(this,t,ye)}:ye;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Ee=be;function Se(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Oe(e,t,n){if(!t)return e;const r=n&&n.encode||Se;ae.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(s=o?o(t,n):ae.isURLSearchParams(t)?t.toString():new Ee(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const Re=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ae.forEach(this.handlers,function(t){null!==t&&e(t)})}},Te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ve={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ee,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},_e="undefined"!=typeof window&&"undefined"!=typeof document,Ae="object"==typeof navigator&&navigator||void 0,Ue=_e&&(!Ae||["ReactNative","NativeScript","NS"].indexOf(Ae.product)<0),ke="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ce=_e&&window.location.href||"http://localhost",xe={...n,...ve},Ne=function(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&ae.isArray(r)?r.length:s,a?(ae.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i):(r[s]&&ae.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&ae.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i)}if(ae.isFormData(e)&&ae.isFunction(e.entries)){const n={};return ae.forEachEntry(e,(e,r)=>{t(function(e){return ae.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},je={transitional:Te,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ae.isObject(e);if(o&&ae.isHTMLForm(e)&&(e=new FormData(e)),ae.isFormData(e))return r?JSON.stringify(Ne(e)):e;if(ae.isArrayBuffer(e)||ae.isBuffer(e)||ae.isStream(e)||ae.isFile(e)||ae.isBlob(e)||ae.isReadableStream(e))return e;if(ae.isArrayBufferView(e))return e.buffer;if(ae.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ge(e,new xe.classes.URLSearchParams,{visitor:function(e,t,n,r){return xe.isNode&&ae.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=ae.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ge(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(ae.isString(e))try{return(0,JSON.parse)(e),ae.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||je.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ae.isResponse(e)||ae.isReadableStream(e))return e;if(e&&ae.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw de.from(e,de.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xe.classes.FormData,Blob:xe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ae.forEach(["delete","get","head","post","put","patch"],e=>{je.headers[e]={}});const Pe=je,De=ae.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Le=Symbol("internals");function Ie(e){return e&&String(e).trim().toLowerCase()}function Fe(e){return!1===e||null==e?e:ae.isArray(e)?e.map(Fe):String(e)}function Be(e,t,n,r,o){return ae.isFunction(r)?r.call(this,t,n):(o&&(t=n),ae.isString(t)?ae.isString(r)?-1!==t.indexOf(r):ae.isRegExp(r)?r.test(t):void 0:void 0)}class qe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ie(t);if(!o)throw new Error("header name must be a non-empty string");const s=ae.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Fe(e))}const s=(e,t)=>ae.forEach(e,(e,n)=>o(e,n,t));if(ae.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(ae.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&De[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(ae.isObject(e)&&ae.isIterable(e)){let n,r,o={};for(const t of e){if(!ae.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?ae.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ie(e)){const n=ae.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ae.isFunction(t))return t.call(this,e,n);if(ae.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ie(e)){const n=ae.findKey(this,e);return!(!n||void 0===this[n]||t&&!Be(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ie(e)){const o=ae.findKey(n,e);!o||t&&!Be(0,n[o],o,t)||(delete n[o],r=!0)}}return ae.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Be(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ae.forEach(this,(r,o)=>{const s=ae.findKey(n,o);if(s)return t[s]=Fe(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Fe(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ae.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ae.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Le]=this[Le]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ie(e);t[r]||(function(e,t){const n=ae.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return ae.isArray(e)?e.forEach(r):r(e),this}}qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ae.reduceDescriptors(qe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ae.freezeMethods(qe);const $e=qe;function Me(e,t){const n=this||Pe,r=t||n,o=$e.from(r.headers);let s=r.data;return ae.forEach(e,function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function ze(e){return!(!e||!e.__CANCEL__)}function Je(e,t,n){de.call(this,null==e?"canceled":e,de.ERR_CANCELED,t,n),this.name="CanceledError"}ae.inherits(Je,de,{__CANCEL__:!0});const Ve=Je;function Ke(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const We=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,d=0;for(;l!==s;)d+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const f=u&&c-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},s-a)))},()=>n&&i(n)]}(n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s,e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},He=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ge=e=>(...t)=>ae.asap(()=>e(...t)),Xe=xe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,xe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(xe.origin),xe.navigator&&/(msie|trident)/i.test(xe.navigator.userAgent)):()=>!0,Qe=xe.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];ae.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),ae.isString(r)&&i.push("path="+r),ae.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ye(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ze=e=>e instanceof $e?{...e}:e;function et(e,t){t=t||{};const n={};function r(e,t,n,r){return ae.isPlainObject(e)&&ae.isPlainObject(t)?ae.merge.call({caseless:r},e,t):ae.isPlainObject(t)?ae.merge({},t):ae.isArray(t)?t.slice():t}function o(e,t,n,o){return ae.isUndefined(t)?ae.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!ae.isUndefined(t))return r(void 0,t)}function i(e,t){return ae.isUndefined(t)?ae.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t,n)=>o(Ze(e),Ze(t),0,!0)};return ae.forEach(Object.keys({...e,...t}),function(r){const s=c[r]||o,i=s(e[r],t[r],r);ae.isUndefined(i)&&s!==a||(n[r]=i)}),n}const tt=e=>{const t=et({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:c}=t;if(t.headers=a=$e.from(a),t.url=Oe(Ye(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ae.isFormData(r))if(xe.hasStandardBrowserEnv||xe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(xe.hasStandardBrowserEnv&&(o&&ae.isFunction(o)&&(o=o(t)),o||!1!==o&&Xe(t.url))){const e=s&&i&&Qe.read(i);e&&a.set(s,e)}return t},nt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=tt(e);let o=r.data;const s=$e.from(r.headers).normalize();let i,a,c,u,l,{responseType:d,onUploadProgress:f,onDownloadProgress:h}=r;function p(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=$e.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ke(function(e){t(e),p()},function(e){n(e),p()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new de("Request aborted",de.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new de("Network Error",de.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Te;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new de(t,o.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&ae.forEach(s.toJSON(),function(e,t){m.setRequestHeader(t,e)}),ae.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),h&&([c,l]=We(h,!0),m.addEventListener("progress",c)),f&&m.upload&&([a,u]=We(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Ve(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===xe.protocols.indexOf(y)?n(new de("Unsupported protocol "+y+":",de.ERR_BAD_REQUEST,e)):m.send(o||null)})},rt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof de?t:new Ve(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,o(new de(`timeout ${t} of ms exceeded`,de.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>ae.asap(i),a}},ot=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},st=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*ot(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},it="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,at=it&&"function"==typeof ReadableStream,ct=it&&("function"==typeof TextEncoder?(ut=new TextEncoder,e=>ut.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ut;const lt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},dt=at&&lt(()=>{let e=!1;const t=new Request(xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ft=at&&lt(()=>ae.isReadableStream(new Response("").body)),ht={stream:ft&&(e=>e.body)};var pt;it&&(pt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ht[e]&&(ht[e]=ae.isFunction(pt[e])?t=>t[e]():(t,n)=>{throw new de(`Response type '${e}' is not supported`,de.ERR_NOT_SUPPORT,n)})}));const mt={http:null,xhr:nt,fetch:it&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:f}=tt(e);u=u?(u+"").toLowerCase():"text";let h,p=rt([o,s&&s.toAbortSignal()],i);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(c&&dt&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=ae.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ae.isBlob(e))return e.size;if(ae.isSpecCompliantForm(e)){const t=new Request(xe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ae.isArrayBufferView(e)||ae.isArrayBuffer(e)?e.byteLength:(ae.isURLSearchParams(e)&&(e+=""),ae.isString(e)?(await ct(e)).byteLength:void 0)})(t):n})(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ae.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=He(g,We(Ge(c)));r=st(n.body,65536,e,t)}}ae.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;h=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let s=await fetch(h,f);const i=ft&&("stream"===u||"response"===u);if(ft&&(a||i&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});const t=ae.toFiniteNumber(s.headers.get("content-length")),[n,r]=a&&He(t,We(Ge(a),!0))||[];s=new Response(st(s.body,65536,n,()=>{r&&r(),m&&m()}),e)}u=u||"text";let y=await ht[ae.findKey(ht,u)||"text"](s,e);return!i&&m&&m(),await new Promise((t,n)=>{Ke(t,n,{data:y,headers:$e.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:h})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new de("Network Error",de.ERR_NETWORK,e,h),{cause:t.cause||t});throw de.from(t,t&&t.code,e,h)}})};ae.forEach(mt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const gt=e=>`- ${e}`,yt=e=>ae.isFunction(e)||null===e||!1===e,bt=e=>{e=ae.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){let t;if(n=e[s],r=n,!yt(n)&&(r=mt[(t=String(n)).toLowerCase()],void 0===r))throw new de(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+s]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let n=t?e.length>1?"since :\n"+e.map(gt).join("\n"):" "+gt(e[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function wt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ve(null,e)}function Et(e){return wt(e),e.headers=$e.from(e.headers),e.data=Me.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bt(e.adapter||Pe.adapter)(e).then(function(t){return wt(e),t.data=Me.call(e,e.transformResponse,t),t.headers=$e.from(t.headers),t},function(t){return ze(t)||(wt(e),t&&t.response&&(t.response.data=Me.call(e,e.transformResponse,t.response),t.response.headers=$e.from(t.response.headers))),Promise.reject(t)})}const St="1.11.0",Ot={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Rt={};Ot.transitional=function(e,t,n){function r(e,t){return"[Axios v"+St+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new de(r(o," has been removed"+(t?" in "+t:"")),de.ERR_DEPRECATED);return t&&!Rt[o]&&(Rt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},Ot.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Tt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new de("option "+s+" must be "+n,de.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new de("Unknown option "+s,de.ERR_BAD_OPTION)}},validators:Ot},vt=Tt.validators;class _t{constructor(e){this.defaults=e||{},this.interceptors={request:new Re,response:new Re}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=et(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Tt.assertOptions(n,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),null!=r&&(ae.isFunction(r)?t.paramsSerializer={serialize:r}:Tt.assertOptions(r,{encode:vt.function,serialize:vt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Tt.assertOptions(t,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&ae.merge(o.common,o[t.method]);o&&ae.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=$e.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,d=0;if(!a){const e=[Et.bind(this),void 0];for(e.unshift(...i),e.push(...c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=i.length;let f=t;for(d=0;d<l;){const e=i[d++],t=i[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=Et.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return Oe(Ye((e=et(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}ae.forEach(["delete","get","head","options"],function(e){_t.prototype[e]=function(t,n){return this.request(et(n||{},{method:e,url:t,data:(n||{}).data}))}}),ae.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(et(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}_t.prototype[e]=t(),_t.prototype[e+"Form"]=t(!0)});const At=_t;class Ut{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Ve(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ut(function(t){e=t}),cancel:e}}}const kt=Ut,Ct={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ct).forEach(([e,t])=>{Ct[t]=e});const xt=Ct,Nt=function e(t){const n=new At(t),r=y(At.prototype.request,n);return ae.extend(r,At.prototype,n,{allOwnKeys:!0}),ae.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(et(t,n))},r}(Pe);Nt.Axios=At,Nt.CanceledError=Ve,Nt.CancelToken=kt,Nt.isCancel=ze,Nt.VERSION=St,Nt.toFormData=ge,Nt.AxiosError=de,Nt.Cancel=Nt.CanceledError,Nt.all=function(e){return Promise.all(e)},Nt.spread=function(e){return function(t){return e.apply(null,t)}},Nt.isAxiosError=function(e){return ae.isObject(e)&&!0===e.isAxiosError},Nt.mergeConfig=et,Nt.AxiosHeaders=$e,Nt.formToJSON=e=>Ne(ae.isHTMLForm(e)?new FormData(e):e),Nt.getAdapter=bt,Nt.HttpStatusCode=xt,Nt.default=Nt;const jt=Nt;class Pt{constructor(e,t={}){this.VERSION=c,this.clientId=e,t.storageKey||(t.storageKey="gc_client_auth_data"),"boolean"!=typeof t.persist&&(t.persist=!1),this.config=Object.assign({},t),this.customHeaders=t.customHeaders,this.setEnvironment(t.environment),this.timeout=16e3,this.authData={},this.authentications={"PureCloud OAuth":{type:"oauth2"}};try{localStorage.setItem("genesys_cloud_local_storage_test","genesys_cloud_local_storage_test"),localStorage.removeItem("genesys_cloud_local_storage_test"),this.hasLocalStorage=!0}catch(e){this.hasLocalStorage=!1}this._loadSettings()}loginImplicitGrant(e={},t){const n=t||f();return new Promise((t,r)=>{e.org&&!e.provider?r(new Error("opts.provider must be set if opts.org is set")):e.provider&&!e.org?r(new Error("opts.org must be set if opts.provider is set")):e.redirectUri||e.usePopupAuth||r(new Error("redirectUri must be provided for implicit grant and not utilizing client-auth app for popup auth")),n&&n.error&&(n.accessToken=void 0,this._saveSettings(n),r(new Error(`[${n.error}] ${n.error_description}`))),n.accessToken&&this._saveSettings(n),this._testTokenAccess().then(()=>(!this.authData.state&&e.state&&(this.authData.state=e.state),t(this.authData))).catch(n=>{this._debug("Error encountered during login. This is normal if the application has not yet been authorized.",n);const o={client_id:encodeURIComponent(this.clientId),response_type:"token"};if(e.redirectUri&&(o.redirect_uri=encodeURIComponent(e.redirectUri)),e.state&&(o.state=encodeURIComponent(e.state)),e.org&&(o.org=encodeURIComponent(e.org)),e.provider&&(o.provider=encodeURIComponent(e.provider)),e.usePopupAuth){if(!this.hasLocalStorage)return r(new Error("localStorage is unavailable. Cannot authenticate via popup window."));this._debug("using popup auth – adding listener"),this._authenticateViaPopup(o,e.popupTimeout||15e3).then(e=>{this._saveSettings(e),t(e)}).catch(r)}else{const e=this._buildAuthUrl("oauth/authorize",o);this._debug("Implicit grant: redirecting to: "+e),window.location.replace(e),r(new Error(`Routing to login: "${e}"`))}})})}setEnvironment(e){e||(e="mypurecloud.com"),(e=e.replace(/\/+$/,"")).startsWith("https://")&&(e=e.substring(8)),e.startsWith("http://")&&(e=e.substring(7)),e.startsWith("api.")&&(e=e.substring(4)),this.environment=e,this.basePath=`https://api.${e}`,this.authUrl=`https://login.${e}`}clearAuthData(){this._saveSettings({accessToken:void 0,state:void 0,tokenExpiryTime:void 0,tokenExpiryTimeString:void 0})}logout(e){this.clearAuthData();const t={client_id:encodeURIComponent(this.clientId)};e&&(t.redirect_uri=encodeURIComponent(e));const n=this._buildAuthUrl("logout",t);window.location.replace(n)}setAccessToken(e){this._saveSettings({accessToken:e})}testAccessToken(e){return this.callApi("/api/v2/tokens/me","get",e)}parseDate(e){return new Date(e.replace(/T/i," "))}paramToString(e){return e?e instanceof Date?e.toJSON():e.toString():""}buildUrl(e,t={}){return e.match(/^\//)||(e=`/${e}`),(this.basePath+e).replace(/\{([\w-]+)\}/g,(e,n)=>{let r;return r=Object.getOwnPropertyDescriptor(t,n)?this.paramToString(t[n]):e,encodeURIComponent(r)})}callApi(e,t,n){var r;const o=this.buildUrl(e),s={Authorization:`Bearer ${n||(null===(r=this.authData)||void 0===r?void 0:r.accessToken)}`,"Content-Type":"application/json"};this.customHeaders&&Object.entries(this.customHeaders).forEach(([e,t])=>{s[e]=t});const i={method:t,url:o,headers:s,timeout:this.timeout};return jt.request(i)}_debug(e,t){this.config.debugMode&&h(e,t)}_saveSettings(e){try{if(this.authData.accessToken=e.accessToken,this.authentications["PureCloud OAuth"].accessToken=e.accessToken,e.state&&(this.authData.state=e.state),this.authData.error=e.error,this.authData.error_description=e.error_description,e.tokenExpiryTime&&(this.authData.tokenExpiryTime=e.tokenExpiryTime,this.authData.tokenExpiryTimeString=e.tokenExpiryTimeString),!this.config.persist)return void this._debug("persist is not true. Settings will not be saved.");if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be saved.");const t=JSON.parse(JSON.stringify(this.authData));delete t.state,localStorage.setItem(this.config.storageKey,JSON.stringify(t)),this._debug("Auth data saved to local storage",t)}catch(e){console.error(e)}}_getId(e){return`gc-ca_${e=e||a()}`}_authenticateViaPopup(e,t){const n=this._getId(),r=Object.assign(Object.assign({},e),{storageKey:this.config.storageKey});this.config.debugMode&&(r.debug=!0),localStorage.setItem(n,JSON.stringify(r)),e.state=n,e.redirect_uri||(e.redirect_uri=encodeURIComponent(`https://apps.${this.environment}/client-auth`));const o=this._buildAuthUrl("oauth/authorize",e);return new Promise((r,s)=>{this._debug("Implicit grant: opening new window: "+o),window.open(o,"_blank","width=500px,height=500px,noreferrer,noopener,resizable,scrollbars,status");const i=setTimeout(()=>{this._debug("timeout for loginImplicitGrant using popup",e);const t=new l("Popup authentation timeout. It is possible that the popup was blocked or the login page encountered an error");s(t)},t),a=e=>{if(this._debug("value was just written to storage by another app",{key:e.key,newValue:e.newValue,oldValue:e.oldValue}),e.key===this.config.storageKey){this._debug("keys matched. resolving value",{key:e.key,value:e.newValue}),window.removeEventListener("storage",a),clearTimeout(i);const t=JSON.parse(e.newValue);localStorage.removeItem(n),r(t)}};window.addEventListener("storage",a)})}_testTokenAccess(){return e=this,t=void 0,r=function*(){if(this._loadSettings(),!this.authentications["PureCloud OAuth"].accessToken)throw new d("errorTokenNotSet","No access token provided.");try{yield this.callApi("/api/v2/tokens/me","get")}catch(e){throw this._saveSettings({accessToken:void 0}),e}},new((n=void 0)||(n=Promise))(function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}c((r=r.apply(e,t||[])).next())});var e,t,n,r}_loadSettings(){if(!this.config.persist)return;if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be loaded.");const e=this.authData.state,t=localStorage.getItem(this.config.storageKey);this.authData=t?JSON.parse(t):{},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=e}_buildAuthUrl(e,t={}){return Object.keys(t).reduce((e,n)=>t[n]?`${e}&${n}=${t[n]}`:e,`${this.authUrl}/${e}?`)}}const Dt=()=>{const e=f();if(e.error)throw new Error(`[${e.error}]: ${e.error_description}`);if(!e.accessToken)throw new d("errorToken","No access token provided.");const t=e.state;if(!t)throw new d("errorStateParam","No state param on redirect. Unable to determine location to save auth data.");const n=JSON.parse(localStorage.getItem(t)||"false");if(!n||!n.storageKey)throw new d("errorParse","Unable to parse information from localStorage.");n.state?e.state=n.state:delete e.state,h(`setting auth data to key: ${n.storageKey}`,e),localStorage.setItem(n.storageKey,JSON.stringify(e)),n.debug?h("In debug mode. Not closing window or removing storageId",{storageId:t,authData:e,href:window.location.href}):(h(`removing temp storage key: ${t}`),localStorage.removeItem(t),h("closing window"),window.close())},Lt=new Map,It=(e,t)=>{let n=Lt.get(e);return n||(n=new Pt(e,t),Lt.set(e,n)),n},Ft=It;window.GenesysCloudClientAuth=t})();
2
2
  //# sourceMappingURL=genesys-cloud-client-auth.browser.min.js.map
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json CHANGED
@@ -1,74 +1,73 @@
1
1
  {
2
- "name": "genesys-cloud-client-auth",
3
- "description": "Small, lightweight library and app to handle authentication for client applications. Big advantage is utilization of popup windows to authenticate apps within iframes.",
4
- "version": "1.0.0-develop.7",
5
- "main": "dist/lib/cjs/index.js",
6
- "module": "dist/lib/es/index.js",
7
- "browser": "dist/lib/es/index.js",
8
- "repository": "https://github.com/mypurecloud/genesys-cloud-client-auth",
9
- "license": "MIT",
10
- "publishConfig": {
11
- "registry": "https://registry.npmjs.org/"
12
- },
13
- "scripts": {
14
- "install:all": "npm ci && cd src/react-app && yarn --pure-lockfile",
15
- "start": "concurrently \"npm run start:lib\" \"npm run start:react\"",
16
- "start:lib": "webpack -c webpack.config.dev.js",
17
- "start:react": "cd src/react-app && yarn start",
18
- "prebuild": "rimraf dist",
19
- "build": "npm run build:react && npm run build:lib && node scripts/version-manifest.js",
20
- "build:react": "cd src/react-app && yarn build",
21
- "build:lib": "npm run compile:cjs && npm run compile:module && npm run compile:webpack",
22
- "compile:cjs": "tsc -p ./tsconfig.json --outDir ./dist/lib/cjs --target es2018 --module commonjs",
23
- "compile:module": "tsc -p ./tsconfig.json",
24
- "compile:webpack": "webpack --mode production",
25
- "test": "npm run test:lib && npm run test:react",
26
- "test:lib": "jest",
27
- "test:react": "cd src/react-app && yarn test --watchAll=false",
28
- "test:watch": "jest --watch --collectCoverage=false",
29
- "lint": "npm run lint:lib",
30
- "lint:lib": "eslint ./src/lib --ext .ts",
31
- "lint:react": "",
32
- "_build:test": "npm run build:lib && cp test/index.html dist/lib && stupid-server -s dist/lib",
33
- "codecov": "node scripts/merge-coverage-reports.js && codecov"
34
- },
35
- "files": [
36
- "dist"
37
- ],
38
- "dependencies": {
39
- "superagent": "^6.1.0",
40
- "uuid": "^8.3.2"
41
- },
42
- "devDependencies": {
43
- "@babel/core": "^7.14.3",
44
- "@babel/preset-env": "^7.14.4",
45
- "@babel/preset-typescript": "^7.13.0",
46
- "@types/jest": "^26.0.23",
47
- "@types/nock": "^11.1.0",
48
- "@types/superagent": "^4.1.10",
49
- "@types/uuid": "^8.3.0",
50
- "@typescript-eslint/eslint-plugin": "^4.26.0",
51
- "@typescript-eslint/parser": "^4.26.0",
52
- "codecov": "^3.8.2",
53
- "concurrently": "^6.1.0",
54
- "eslint": "^7.27.0",
55
- "istanbul-api": "^3.0.0",
56
- "jest": "^27.0.3",
57
- "nock": "^13.1.0",
58
- "pre-push": "^0.1.1",
59
- "rimraf": "^3.0.2",
60
- "ts-loader": "^8.2.0",
61
- "ts-node": "^10.0.0",
62
- "tslib": "^2.2.0",
63
- "typescript": "^4.2.4",
64
- "webpack": "4.44.2",
65
- "webpack-cli": "^4.6.0"
66
- },
67
- "pre-push": [
68
- "lint",
69
- "test"
70
- ],
71
- "false": {
72
-
73
- }
74
- }
2
+ "name": "genesys-cloud-client-auth",
3
+ "description": "Small, lightweight library and app to handle authentication for client applications. Big advantage is utilization of popup windows to authenticate apps within iframes.",
4
+ "version": "1.0.0-release.8",
5
+ "main": "dist/lib/cjs/index.js",
6
+ "module": "dist/lib/es/index.js",
7
+ "browser": "dist/lib/es/index.js",
8
+ "repository": "https://github.com/mypurecloud/genesys-cloud-client-auth",
9
+ "license": "MIT",
10
+ "publishConfig": {
11
+ "registry": "https://registry.npmjs.org/"
12
+ },
13
+ "scripts": {
14
+ "install:all": "npm ci && cd src/react-app && npm install",
15
+ "start": "concurrently \"npm run start:lib\" \"npm run start:react\"",
16
+ "start:lib": "webpack -c webpack.config.dev.js",
17
+ "start:react": "cd src/react-app && npm run dev",
18
+ "prebuild": "rimraf dist",
19
+ "build": "npm run build:react && npm run build:lib && npm run copy:react-dist && node scripts/version-manifest.js",
20
+ "build:react": "cd src/react-app && npm run build",
21
+ "build:lib": "npm run compile:cjs && npm run compile:module && npm run compile:webpack",
22
+ "compile:cjs": "tsc -p ./tsconfig.json --outDir ./dist/lib/cjs --target es2018 --module commonjs",
23
+ "compile:module": "tsc -p ./tsconfig.json",
24
+ "compile:webpack": "webpack --mode production",
25
+ "test": "npm run test:lib",
26
+ "test:lib": "jest",
27
+ "test:watch": "jest --watch --collectCoverage=false",
28
+ "lint": "npm run lint:lib",
29
+ "lint:lib": "eslint ./src/lib",
30
+ "lint:fix": "npm run lint -- --fix",
31
+ "_build:test": "npm run build:lib && cp test/index.html dist/lib && stupid-server -s dist/lib",
32
+ "codecov": "node scripts/merge-coverage-reports.js && codecov",
33
+ "copy:react-dist": "cp -r src/react-app/dist/* dist/ || true"
34
+ },
35
+ "files": [
36
+ "dist"
37
+ ],
38
+ "dependencies": {
39
+ "axios": "^1.10.0",
40
+ "uuid": "^11.0.4"
41
+ },
42
+ "devDependencies": {
43
+ "@babel/core": "^7.26.0",
44
+ "@babel/preset-env": "^7.26.0",
45
+ "@babel/preset-typescript": "^7.26.0",
46
+ "@types/jest": "^29.5.14",
47
+ "@types/nock": "^11.1.0",
48
+ "@types/superagent": "^8.1.9",
49
+ "@types/uuid": "^10.0.0",
50
+ "@typescript-eslint/eslint-plugin": "^8.20.0",
51
+ "@typescript-eslint/parser": "^8.20.0",
52
+ "codecov": "^3.8.2",
53
+ "concurrently": "^9.1.2",
54
+ "eslint": "^9.24.0",
55
+ "istanbul-api": "^3.0.0",
56
+ "jest": "^29.7.0",
57
+ "jest-environment-jsdom": "^29.7.0",
58
+ "nock": "^13.5.6",
59
+ "pre-push": "^0.1.4",
60
+ "rimraf": "^6.0.1",
61
+ "ts-loader": "^9.5.1",
62
+ "ts-node": "^10.9.2",
63
+ "tslib": "^2.8.1",
64
+ "typescript": "^5.7.2",
65
+ "webpack": "5.97.1",
66
+ "webpack-cli": "^6.0.1"
67
+ },
68
+ "pre-push": [
69
+ "lint",
70
+ "test"
71
+ ],
72
+ "false": {}
73
+ }
package/CHANGELOG.md DELETED
@@ -1,16 +0,0 @@
1
- # Changelog
2
- All notable changes to this project will be documented in this file.
3
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
-
6
- # [Unreleased](https://github.com/MyPureCloud/genesys-cloud-client-auth/compare/v0.0.1...HEAD)
7
-
8
- ### BREAKING CHANGES
9
- * [PCM-1939](https://inindca.atlassian.net/browse/PCM-1939) – Adjusted cdn version urls to specify major and exact versions. For example:
10
- * `/v1.0.0/genesys-cloud-client-auth.browser.min.js` (exact version)
11
- * `/v1/genesys-cloud-client-auth.browser.min.js` (locked to latest for a specific major version)
12
-
13
- ### Added
14
- * [PCM-1937](https://inindca.atlassian.net/browse/PCM-1937) – migrated to new build pipeline
15
-
16
- # [v0.0.1](https://github.com/MyPureCloud/genesys-cloud-client-auth/tags/v0.0.1)
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Genesys Cloud Services, Inc.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.