https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Ft.sidekickopen54.com%2FCtc%2FI6%2B23284%2FcW7l304%2FJl22-6q7W7lCdLW6lZ3pbW5zbKyc1vzT6wN27Hc87FgVS-W3yYpp83tfN9NN8Mk84Sy_XMBW1T512j70RBnjW7lxS1x4pTrQ8W8Pstvc6_DnNXW93N2247x_MlbW498PhJ4z7JQhW14bV3q3SmW4QW4V6l3t8hhZ_4W6GqKgp8QmXFpW2bBn_C4NR3Z5Vh_P9k3DyvjlW6VQswL54VTRYW6fhnff3T9r7HW3h0Q3L21BBrhW4F7jxZ7B3y0fW7MLq2t5yrQshN8qsm2TjqBYDW87t3WS3j2lwkW5CXyQr1wCHrrW8wt0N-6nkZ7cW8_gglH8wBR6sf5Ljl0M04&data=05%7C01%7Csanna.airaksinen%40echa.europa.eu%7C9ede3b09defe42ed5cf008db0f6e8eda%7C9d1545f902be47ed920211ef4d057f1e%7C0%7C0%7C638120739755613925%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=m9WYYkMkPSVcRKZlBoFmzRgRZbLVatPhHUWG%2Fvg3aeA%3D&reserved=0

Last Checked: Feb 16, 2023, 02:07 EST

IP Address: 104.47.51.220
ASN #: AS8075 MICROSOFT-CORP-MSN-AS-BLOCK, US
Location: Unknown, Unknown, Unknown
URL Reputation:
  • Unknown This URL is not identified as malicious in the PhishTank Database.
  • Unknown PhishCheck thinks this URL is likely not a phish.
  • Unknown OpenPhish: URL not in feed.

Other submissions on 104.47.51.220:

  • https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftrack.smtpmailsend.com%2F9032119%2Fc%3Fp%3DXISvvOEz9vz_9Qz1ktRUuH0c9yIqDHDUA2arpIgJzx7uxpOp-Upk2LnFKGnBLrq8b8bvLI2P7k0YCyiqUIZuB3QzD8rNEz95nHpZQ_TcXGdnxTRLTTrdpGedLKB8W7wcifTVFPzekCttMtDJ5_AKZ_iVx2aX8qrDPWeQedZ47YTrJXSM0RmbTQ1l8Dy8S-Bn9nCo8OXzxIrAJi_GXCMGtRPnDhQux3D5-wG0NT8qV64%3D&data=05%7C01%7Cp.mcfadden%40ulster.ac.uk%7C0238d35d84134e8609be08dac185f8ef%7C6f0b94874fa842a8aeb4bf2e2c22d4e8%7C0%7C0%7C638035078394119230%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2cIK6jjF6cLcUUXGS5uH31Mdf7qtytqrjdqzXUjSGxE%3D&reserved=0

  • https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.constantcontact.com%2Findex.jsp%3Fcc%3Dnge%26rmc%3DVF21_CPE%26pn%3Diraffiliate%26nav%3Dcbfa0268-a525-4eba-b650-38c8fb802d8f&data=05%7C01%7Cbenoit.enuset%40proximus.com%7Cfb893f8866cb4523f17308dac8b838e1%7Ce7ab81b21e844bf79dcbb6fec01ed138%7C0%7C0%7C638042990801886612%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=hCigvSgmhLxEvatTaPRRD7u7bSgTgOhxV91tdFsqFu0%3D&reserved=0

  • https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmysignins.microsoft.com%2Fsecurity-info&data=05%7C01%7Cn.gonzalez.fernandez%40externos.altamiraam.com%7C4f500a735f844cc5ba4c08dacdee55b4%7Cf90daa0a10ca4b5a9e03dbe9edbd221d%7C1%7C0%7C638048720798208429%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=eIr332D559MgwpkY93khMrVHq1ySpRsGetzsSL7UlUU%3D&reserved=0

  • https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeverenews.co.uk%2Fpub%2Fcc%3F_ri_%3DX0Gzc2X%253DAQpglLjHJlTQG5oWn95OzahqATzfzazabzeTzdsCjWXRbieazcbBF1eDFzgsRS4p2zemmfRzfKNOVXtpKX%253DTUWTCRSAT%26_ei_%3DEW2tf9zs59idfPO1Sc_9BblyMBNH5uZEu7MXS3sNnxtipliRn4x7bpgEY2yIDc6ixR6K-sw_YGJuW9Ga5v56-tPCUjh7TdxdlBT3E3gifsG5vM.%26_di_%3Dvan9ho5jrb0uetvr32urq1hm0lc0le0krm259174ncv90d6mi7lg&data=05%7C01%7Cnathan.bishop%40graftonplc.com%7Cd1a686cf05934e17ef3308dad2f99ce9%7Cf1ee9b919f5147339ec1421db2f3cac3%7C0%7C0%7C638054266789949381%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2AY8rTIZMUmVkEgVrV8%2F4kmKT9IIpBtj%2FTfmN5pa7Lk%3D&reserved=0

  • https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Femails.azure.microsoft.com%2Fredirect%2F%3Fdestination%3Dhttps%253A%252F%252Fwww.microsoft.com%252Fworkplace-discount-program%253Ftoken%253D9ccb5f73-12d4-4fd9-a604-62f5b7a31f2f%2526ocid%253Deml_OrganicEligibility_cons_officehup_acq_hup_poceligibility%26p%3DbT1mZDQyMGY0Ni1hMjcwLTQzNjItOWUwOC0wMWNhZGQ0NWRlM2Qmcz0wMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAmdT1hZW8mbD13b3JrcGxhY2UtZGlzY291bnQtcHJvZ3JhbQ%253D%253D&data=05%7C01%7Cdavy.albrecht%40proximus.com%7C730277b8a6a6459d893e08dad947124f%7Ce7ab81b21e844bf79dcbb6fec01ed138%7C0%7C0%7C638061196520944166%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=V4HJEEleY3Ucldh55G9JN%2BhnyC2%2FpWer%2BerKpRWeiVw%3D&reserved=0

  • https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Femail.umi.us%2Fc%2FeJx1UM1qwzAMfprk1mBb8k8OOQxKX2PIstN6xEmWxDD29HO7buwyEEj6_kCKgzQWNRolsQ1DUMIr1aZBCQVCKhQWQbiO0LHVHshb5Rl8g6Lk1JW9vQ2CtdMIjkckKwhJU2-YWDJ6YGHaabgdx7o38NKoS633kj67b_tzq80AW99LG4S2qISQMRATqAflbYxRjqNRNkCgHqX0Fhq4lCO_7kvZODZwZsorpevcKHPHcwyp5IrHTGl6gr8aOJdtOj2o0x_jui2VMoDRCuuRnOuN9K7X_Wi8roKJ5us98y5ut2GiI43U-aXM9LZR_UtN-Ei57B0vuT2Gn-w6bsRpjnX476Av93d5Ig&data=05%7C01%7Clatifa.bounajra%40proximus.com%7Cbff9466ddd9142b592d008dafddeb61f%7Ce7ab81b21e844bf79dcbb6fec01ed138%7C0%7C0%7C638101430225812964%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=w77%2BKG8dc6NZSgwO6xhIGAJG3Rs4vfXqg6C1BaFKB5k%3D&reserved=0

  • https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Femail.umi.us%2Fc%2FeJwVTUtuxSAQO03YNYKZeUAWLLrpPWYI6aN6QJRA1d6-VLIsyx85BWMdPciCIbWHHbQAqBxAA2oDpB2h9iuTj-4hyOJAIspCepS8jls9QyKKCVCsBn94Btw8RsORZdusMUm9wrP3817wfYGPibl8y7W2b-651TW2Ms3JZdTcf9UVXjM4eJU2Kn9dPM_Oq_3kMu7_suohcjk5f9YpL465piksikspmeOw4HbceSNjxOEf2R5FpQ&data=05%7C01%7Clatifa.bounajra%40proximus.com%7Cbff9466ddd9142b592d008dafddeb61f%7Ce7ab81b21e844bf79dcbb6fec01ed138%7C0%7C0%7C638101430225812964%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CGxPlMilxDpMjBHduO9CmqXg0gnhfq902%2B7qEveSyCM%3D&reserved=0

  • https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.kinfos.events%2Fobsca%2Fbrief-agenda%2F&data=05

  • https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkatesmith.hosted.phplist.com%2Flists%2Flt.php%3Ftid%3DLU0DA1daXwBXVE4NWVcKGw0PDQNICwNXABtbBgENVwtQAQIPBw5FAgJUUgoKVFYbCQkFB0gHUVAFGwAABFEfBwACAlVWXQFSA1VaRFpRUQAOAAJXSAoABAcbDFIBAR9QBFJRGwYPAAELVVdbXgYDUw&data=05%7C01%7C%7Cdaa03516170b4aa080a008db0dbccb0a%7Cef8a53ea1a1c4189b792c832dcaea568%7C0%7C0%7C638118876903581589%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=xIZLshW13N0%2F47LnEoe8ydFD%2B%2BJv79ZyLYOQ4ELeSWU%3D&reserved=0

  • https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.it-internal-support.co.uk%2Fls%2Fclick%3Fupn%3D8GeKl1YQT110biCctuDr-2BQqTLXqJZoYBf5rVVa7lombo1M3sk8NNMB57BC6DaIPK05Huui74k8NzCwAn1qykYBHLZNdEKKauKAGhX-2Fj-2FAQzUZw1R-2Bcgj6CpqN9-2FNB-2FOwz9SxJKOPMPfYqyln531N0qQWlZtKlJBBrqT3ul8Ir-2F9oB3bIqBTAd5AEDBqIbC-2FFA56d7sc9elJsT4SY3zRwSuR5CB0vz359k780gszX-2BRTAz3bvcglKARWb9coUxfzwiy3wTOj-2FzCsf-2BqFFdzJUMbBpnTBRUFTJPqkrhihlEE0-3DW9Ug_TFry4mdYqg0NkkFO6LQ-2BonMz3wfvujDsT7t9K3MAD8ZlNllSN66w4jZ6T1HB4nXi6WNh2NN9gUR84skcdq-2FUYBTCWYf-2BlhWdJ9U9JTA4voB3casCQUxhPOHpdRsJTqQFvCjeMyU8x2IH2vsqZCKmmaAeJ-2BIoUVC5hrf1BXmIPIjdWpzYRfsmzcdzSChSzqg8PgPWsLX-2B7BgjoPhrOzCwFXsJoeM6EtTnkpYqyonFqyoApEkrwzuRtZBL63-2Borj-2FwoYVskpwTxwDJgCgVg4Nhb5lmVdmvGk2WVj9PO9ARe8hjmh8XNymwyzPbKIAo2vnrSQHuNH8gvcbZOlYUKt2P4dMw3nd2bWqCt26v3hir2sAlrIJvF-2FUoWj3V9UTdj9EkGeogHg0aRkN-2B4Y9FoTVilJ6bOPawZ376ilKgyQpbqg2aFalTj-2FgEQ1KnBa-2FUYrdkifft6GCaol-2FW-2B9pg1RJTtBocXwRQF5mosndpoi1UASg-3D&data=05%7C01%7Cf.cordes%40terumoaortic.com%7Cd9a9fe1a29224bce376d08db1342827c%7C10776c2757454bbc8d853d50cc7592f5%7C0%7C0%7C638124949420822960%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=SHYYSXbRVHX2uYypP5GGxJSW1GQA3TJkOhj7zvAUwNo%3D&reserved=0

Other submissions on outlook.com:

  • https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.it-internal-support.co.uk%2Fls%2Fclick%3Fupn%3D8GeKl1YQT110biCctuDr-2BQqTLXqJZoYBf5rVVa7lombo1M3sk8NNMB57BC6DaIPK05Huui74k8NzCwAn1qykYBHLZNdEKKauKAGhX-2Fj-2FAQzUZw1R-2Bcgj6CpqN9-2FNB-2FOwz9SxJKOPMPfYqyln531N0qQWlZtKlJBBrqT3ul8Ir-2F9oB3bIqBTAd5AEDBqIbC-2FFA56d7sc9elJsT4SY3zRwSuR5CB0vz359k780gszX-2BRTAz3bvcglKARWb9coUxfzwiy3wTOj-2FzCsf-2BqFFdzJUMbBpnTBRUFTJPqkrhihlEE0-3DW9Ug_TFry4mdYqg0NkkFO6LQ-2BonMz3wfvujDsT7t9K3MAD8ZlNllSN66w4jZ6T1HB4nXi6WNh2NN9gUR84skcdq-2FUYBTCWYf-2BlhWdJ9U9JTA4voB3casCQUxhPOHpdRsJTqQFvCjeMyU8x2IH2vsqZCKmmaAeJ-2BIoUVC5hrf1BXmIPIjdWpzYRfsmzcdzSChSzqg8PgPWsLX-2B7BgjoPhrOzCwFXsJoeM6EtTnkpYqyonFqyoApEkrwzuRtZBL63-2Borj-2FwoYVskpwTxwDJgCgVg4Nhb5lmVdmvGk2WVj9PO9ARe8hjmh8XNymwyzPbKIAo2vnrSQHuNH8gvcbZOlYUKt2P4dMw3nd2bWqCt26v3hir2sAlrIJvF-2FUoWj3V9UTdj9EkGeogHg0aRkN-2B4Y9FoTVilJ6bOPawZ376ilKgyQpbqg2aFalTj-2FgEQ1KnBa-2FUYrdkifft6GCaol-2FW-2B9pg1RJTtBocXwRQF5mosndpoi1UASg-3D&data=05%7C01%7Cf.cordes%40terumoaortic.com%7Cd9a9fe1a29224bce376d08db1342827c%7C10776c2757454bbc8d853d50cc7592f5%7C0%7C0%7C638124949420822960%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=SHYYSXbRVHX2uYypP5GGxJSW1GQA3TJkOhj7zvAUwNo%3D&reserved=0

  • https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fis.gd%2FqCBaKb&data=05%7C01%7Crachel.page%40education.tas.gov.au%7C234be5b19dfc4023483808db0eabc610%7Ca9be3ac70c60491e8b3ba32f8f46aec8%7C1%7C0%7C638119903304893411%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=p6Ahs6UvXB2WqS%2F7S7Segp%2BbpFpBS5n8cZMi2MEyYGc%3D&reserved=0

  • https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.zruipower.com%2F&data=05%7C01%7Cvoitech.makovskij%40ignitis.lt%7C98498b43851a4b73006208db13ff1867%7Cea88e983d65a47b3adb43e1c6d2110d2%7C0%7C0%7C638125758595197379%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=952K8BanOKP8fa8b0KfkrGZpUrcIko%2FZnOkliaXnb8Y%3D&reserved=0

  • https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fivan-chan-a91352242%2F&data=05%7C01%7Cvoitech.makovskij%40ignitis.lt%7C98498b43851a4b73006208db13ff1867%7Cea88e983d65a47b3adb43e1c6d2110d2%7C0%7C0%7C638125758595197379%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=VsGEYZYzdO%2BWl3A0RhMnfdRf0AunTbnkB4ufjgRw%2Fa8%3D&reserved=0

  • https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fexit.streamoptim.com%2Ftrack%2Fedm2%3Futm_source%3Dstream%26utm_medium%3Dedm%26utm_campaign%3D20230130-6%25E4%25BC%2598%25E6%2596%25B0-6%25E7%2588%2586-%25E4%25BC%259A%25E5%2591%2598-yjh%26stream_ukey%3D5v3001rgx383%26stream_msg_no%3D76867-1675027872-3097-p1%26lan%3Den%26stream_m%3DeyJtb2RlIjoyLCJjb2RlIjoiU1dWSVAyMCIsImRlc2MiOiIgVklQLUV4Y2x1c2l2ZSAyMCUgT2ZmIFVzZWQgb24gVHVlc2RheXMgT25seSFcdWQ4M2NcdWRmODFcdWZlMGYifQ%253D%253D%26url%3Dhttp%3A%2F%2F43304477.delweno.cl%2F%3F43304477%3Djbrown%40greensourcefab.com&data=05%7C01%7Cjbrown%40greensourcefab.com%7C659dbb6f1231494c173d08db151aca2d%7C6c433b1758c846f79c433028eb668014%7C0%7C1%7C638126977062716502%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=Botf3kdt6ng5bXpkXFoDvekga%2FFgv9fY%2BYwik7Ykojo%3D&reserved=0

  • https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Flinks.mkt3630.com%2Fels%2Fv2%2F_kP4Bz~wx9JX%2FK1JHOUZVWEMrbnU0dUd0ZStVeHR6NjdtQ24rMEtMeWR6aUd2MU80dE1tZjNreEhOTXdodWJibUhzL0pTR0VPWUVGTkhkNXYvcVBNbDJXcmFobGNjNHAwMUxCS1pLUUxsd3A3MmQ3cFA1dEU9S0%2F&data=05%7C01%7Cjohn.guidone%40yale.edu%7C2bbc3d731bc8467b13a808db15192ac5%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C638126970054187505%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=WX9eNt7z7J9XXBnXnTNWsxa3IfA1Tj%2FyIqaDaRPi04w%3D&reserved=0

  • https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbit.ly%2F3JYYkEE&data=05%7C01%7Cjohn.guidone%40yale.edu%7C5e2854fa0a1d4689169408db0dce017f%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C638118950670624003%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=%2B9pb5j0GWv5NgcjIUFMQOeuuUTvld7QsfSgEds4bQ1I%3D&reserved=0

  • https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo2.catalyst-connection.org%2Ff%2Fa%2FaIzRVYoiWzzN94rLfzviecU~~%2FwJsBFcr~%2FaHR0cHM6Ly9sdWlzZWxsYWdpb2JiaS5jb20vNGNvbGxlZW50c2FpMXI%3D&data=05%7C01%7Ccolleen.tsai%40otsuka-us.com%7C419bdd2c9bd8496be14608db1445941f%7C34ddb3397fd04f009041c2e47fbbc9f4%7C0%7C0%7C638126061566915747%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=0e0C36tHMtrjegzxXHAQmftvX3%2FIWborTcVtFgMSwLA%3D&reserved=0

  • https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fotsuka-us.com%2F&data=05%7C01%7Ccolleen.tsai%40otsuka-us.com%7C419bdd2c9bd8496be14608db1445941f%7C34ddb3397fd04f009041c2e47fbbc9f4%7C0%7C0%7C638126061566915747%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=RPW547%2BQ1l81mvTDHpyDfpnTraUAIE98wWRFpvjSeEk%3D&reserved=0

  • https://jpn01.safelinks.protection.outlook.com/?url=http%3A%2F%2Furl7269.risebuildings.com%2Fls%2Fclick%3Fupn%3Dqz4lD1CeYLGWf-2FkhWmqyi4uCAFWRKuUIjnQQh5spT4a4soxIU9Bt9-2FDORnXeCEg471FNmt0lwn6AxUJVq9L1lf07DKMa3HCFDV52GK0-2BznzUrlO8r-2B60LxXZg-2FAYlh7WAfE9Qsvy6j1d0Gppwi1cEw-3D-3DUnoD_nqBp-2F0ddnm8f0taaXl9nbEbOlUCDOZYJNbJbU2pGCQwRLm4q4l-2BQurzCIvYjjlNlC1GpS2bR2KAsiRhVylvpcfSaM8XC2I0v284TJf30QBpo-2BjFUFnG9-2F2jCPSEzOIYSrDI-2FSvukwLWEvho9Nx65MHWzTngwWCf7s9HgAyvW0qeCgySGjhMbOvXaUocEE7w-2FP12fy1W4ZYj-2FJQZtcP4ty2N3YJVFFzsCvUCNTj4EB-2BcHDLvbf7zfLNEf6u0-2BzzrbH14roohegpESMWan8OwLwi5THV10F2piz56PnSg4z9BLTn7i1orxRfLC1G9c7rjd4REzGoSocykGxOfBW72H6DFgJCT8gPj4NgMhcxhBvDw-3D&data=05%7C01%7Cdonna.desimone-cw%40otsuka-us.com%7C28eed9c70f484d2e1bfd08db1661639d%7C34ddb3397fd04f009041c2e47fbbc9f4%7C0%7C0%7C638128379757142881%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=95SoR%2BW1D%2Bo0qkEoMCWPT07Vhb1m6gWes1J1vM5l7jI%3D&reserved=0

Previous checks:

                               
                             
  • GET
    0 Timed out waiting for a response.

    https://login.microsoftonline.com/common//discovery/instance?api-version=1.1&authorization_endpoint=https://login.microsoftonline.com/common/oauth2/v2.0/authorize

  • https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Ft.sidekickopen54.com%2FCtc%2FI6%2B23284%2FcW7l304%2FJl22-6q7W7lCdLW6lZ3pbW5zbKyc1vzT6wN27Hc87FgVS-W3yYpp83tfN9NN8Mk84Sy_XMBW1T512j70RBnjW7lxS1x4pTrQ8W8Pstvc6_DnNXW93N2247x_MlbW498PhJ4z7JQhW14bV3q3SmW4QW4V6l3t8hhZ_4W6GqKgp8QmXFpW2bBn_C4NR3Z5Vh_P9k3DyvjlW6VQswL54VTRYW6fhnff3T9r7HW3h0Q3L21BBrhW4F7jxZ7B3y0fW7MLq2t5yrQshN8qsm2TjqBYDW87t3WS3j2lwkW5CXyQr1wCHrrW8wt0N-6nkZ7cW8_gglH8wBR6sf5Ljl0M04&data=05%7C01%7Csanna.airaksinen%40echa.europa.eu%7C9ede3b09defe42ed5cf008db0f6e8eda%7C9d1545f902be47ed920211ef4d057f1e%7C0%7C0%7C638120739755613925%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=m9WYYkMkPSVcRKZlBoFmzRgRZbLVatPhHUWG%2Fvg3aeA%3D&reserved=0 https://t.sidekickopen54.com/Ctc/I6+23284/cW7l304/Jl22-6q7W7lCdLW6lZ3pbW5zbKyc1vzT6wN27Hc87FgVS-W3yYpp83tfN9NN8Mk84Sy_XMBW1T512j70RBnjW7lxS1x4pTrQ8W8Pstvc6_DnNXW93N2247x_MlbW498PhJ4z7JQhW14bV3q3SmW4QW4V6l3t8hhZ_4W6GqKgp8QmXFpW2bBn_C4NR3Z5Vh_P9k3DyvjlW6VQswL54VTRYW6fhnff3T9r7HW3h0Q3L21BBrhW4F7jxZ7B3y0fW7MLq2t5yrQshN8qsm2TjqBYDW87t3WS3j2lwkW5CXyQr1wCHrrW8wt0N-6nkZ7cW8_gglH8wBR6sf5Ljl0M04
  • http://t.sidekickopen54.com/events/public/v1/encoded/track/tc/I6+23284/cW7l304/Jl22-6q7W7lCdLW6lZ3pbW5zbKyc1vzT6wN27Hc87FgVS-W3yYpp83tfN9NN8Mk84Sy_XMBW1T512j70RBnjW7lxS1x4pTrQ8W8Pstvc6_DnNXW93N2247x_MlbW498PhJ4z7JQhW14bV3q3SmW4QW4V6l3t8hhZ_4W6GqKgp8QmXFpW2bBn_C4NR3Z5Vh_P9k3DyvjlW6VQswL54VTRYW6fhnff3T9r7HW3h0Q3L21BBrhW4F7jxZ7B3y0fW7MLq2t5yrQshN8qsm2TjqBYDW87t3WS3j2lwkW5CXyQr1wCHrrW8wt0N-6nkZ7cW8_gglH8wBR6sf5Ljl0M04?_ud=46dbadff-05a4-4dc0-aca8-548301a75b2a&_jss=1&_fl=9&_pl=5&_hc=4&_lg=en-US,en&_plt=Linux%20x86_64&_scr=1366,768 https://t.sidekickopen54.com/events/public/v1/encoded/track/tc/I6+23284/cW7l304/Jl22-6q7W7lCdLW6lZ3pbW5zbKyc1vzT6wN27Hc87FgVS-W3yYpp83tfN9NN8Mk84Sy_XMBW1T512j70RBnjW7lxS1x4pTrQ8W8Pstvc6_DnNXW93N2247x_MlbW498PhJ4z7JQhW14bV3q3SmW4QW4V6l3t8hhZ_4W6GqKgp8QmXFpW2bBn_C4NR3Z5Vh_P9k3DyvjlW6VQswL54VTRYW6fhnff3T9r7HW3h0Q3L21BBrhW4F7jxZ7B3y0fW7MLq2t5yrQshN8qsm2TjqBYDW87t3WS3j2lwkW5CXyQr1wCHrrW8wt0N-6nkZ7cW8_gglH8wBR6sf5Ljl0M04?_ud=46dbadff-05a4-4dc0-aca8-548301a75b2a&_jss=1&_fl=9&_pl=5&_hc=4&_lg=en-US,en&_plt=Linux%20x86_64&_scr=1366,768
  • https://teams.microsoft.com/l/chat/0/0?users=dan.king@theknowledgeacademy.com /dl/launcher/launcher.html?url=%2F_%23%2Fl%2Fchat%2F0%2F0%3Fusers%3Ddan.king%40theknowledgeacademy.com&type=chat&deeplinkId=4ee2ec51-5ab7-4ef6-9262-8bd59f258965&directDl=true&msLaunch=true&enableMobilePage=true
  • https://teams.microsoft.com/favicon.ico https://statics.teams.cdn.office.net/hashed/favicon/prod/favicon-f1722d9.ico
<html><head>
  <title>Checking your credentials...</title>

  <!-- This page is loaded from login as well as in subsequent renewal iframes -->
  <!-- TODO (rtuit) Viewport based on device detection -->
  <meta name="viewport">
  <meta name="robots" content="noindex">

  <script nonce="">
    /**
 * core-js 2.4.1
 * https://github.com/zloirock/core-js
 * License: http://rock.mit-license.org
 * © 2016 Denis Pushkarev
 */
!function(a,b,c){"use strict";!function(a){function __webpack_require__(c){if(b[c])return b[c].exports;var d=b[c]={exports:{},id:c,loaded:!1};return a[c].call(d.exports,d,d.exports,__webpack_require__),d.loaded=!0,d.exports}var b={};return __webpack_require__.m=a,__webpack_require__.c=b,__webpack_require__.p="",__webpack_require__(0)}([function(a,b,c){c(1),c(50),c(51),c(52),c(54),c(55),c(58),c(59),c(60),c(61),c(62),c(63),c(64),c(65),c(66),c(68),c(70),c(72),c(74),c(77),c(78),c(79),c(83),c(86),c(87),c(88),c(89),c(91),c(92),c(93),c(94),c(95),c(97),c(99),c(100),c(101),c(103),c(104),c(105),c(107),c(108),c(109),c(111),c(112),c(113),c(114),c(115),c(116),c(117),c(118),c(119),c(120),c(121),c(122),c(123),c(124),c(126),c(130),c(131),c(132),c(133),c(137),c(139),c(140),c(141),c(142),c(143),c(144),c(145),c(146),c(147),c(148),c(149),c(150),c(151),c(152),c(158),c(159),c(161),c(162),c(163),c(167),c(168),c(169),c(170),c(171),c(173),c(174),c(175),c(176),c(179),c(181),c(182),c(183),c(185),c(187),c(189),c(190),c(191),c(193),c(194),c(195),c(196),c(203),c(206),c(207),c(209),c(210),c(211),c(212),c(213),c(214),c(215),c(216),c(217),c(218),c(219),c(220),c(222),c(223),c(224),c(225),c(226),c(227),c(228),c(229),c(231),c(234),c(235),c(237),c(238),c(239),c(240),c(241),c(242),c(243),c(244),c(245),c(246),c(247),c(249),c(250),c(251),c(252),c(253),c(254),c(255),c(256),c(258),c(259),c(261),c(262),c(263),c(264),c(267),c(268),c(269),c(270),c(271),c(272),c(273),c(274),c(276),c(277),c(278),c(279),c(280),c(281),c(282),c(283),c(284),c(285),c(286),c(287),a.exports=c(288)},function(a,b,d){var e=d(2),f=d(3),g=d(4),h=d(6),i=d(16),j=d(20).KEY,k=d(5),l=d(21),m=d(22),n=d(17),o=d(23),p=d(24),q=d(25),r=d(27),s=d(40),t=d(43),u=d(10),v=d(30),w=d(14),x=d(15),y=d(44),z=d(47),A=d(49),B=d(9),C=d(28),D=A.f,E=B.f,F=z.f,G=e.Symbol,H=e.JSON,I=H&&H.stringify,J="prototype",K=o("_hidden"),L=o("toPrimitive"),M={}.propertyIsEnumerable,N=l("symbol-registry"),O=l("symbols"),P=l("op-symbols"),Q=Object[J],R="function"==typeof G,S=e.QObject,T=!S||!S[J]||!S[J].findChild,U=g&&k(function(){return 7!=y(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(a,b,c){var d=D(Q,b);d&&delete Q[b],E(a,b,c),d&&a!==Q&&E(Q,b,d)}:E,V=function(a){var b=O[a]=y(G[J]);return b._k=a,b},W=R&&"symbol"==typeof G.iterator?function(a){return"symbol"==typeof a}:function(a){return a instanceof G},X=function defineProperty(a,b,c){return a===Q&&X(P,b,c),u(a),b=w(b,!0),u(c),f(O,b)?(c.enumerable?(f(a,K)&&a[K][b]&&(a[K][b]=!1),c=y(c,{enumerable:x(0,!1)})):(f(a,K)||E(a,K,x(1,{})),a[K][b]=!0),U(a,b,c)):E(a,b,c)},Y=function defineProperties(a,b){u(a);for(var c,d=s(b=v(b)),e=0,f=d.length;f>e;)X(a,c=d[e++],b[c]);return a},Z=function create(a,b){return b===c?y(a):Y(y(a),b)},$=function propertyIsEnumerable(a){var b=M.call(this,a=w(a,!0));return!(this===Q&&f(O,a)&&!f(P,a))&&(!(b||!f(this,a)||!f(O,a)||f(this,K)&&this[K][a])||b)},_=function getOwnPropertyDescriptor(a,b){if(a=v(a),b=w(b,!0),a!==Q||!f(O,b)||f(P,b)){var c=D(a,b);return!c||!f(O,b)||f(a,K)&&a[K][b]||(c.enumerable=!0),c}},aa=function getOwnPropertyNames(a){for(var b,c=F(v(a)),d=[],e=0;c.length>e;)f(O,b=c[e++])||b==K||b==j||d.push(b);return d},ba=function getOwnPropertySymbols(a){for(var b,c=a===Q,d=F(c?P:v(a)),e=[],g=0;d.length>g;)!f(O,b=d[g++])||c&&!f(Q,b)||e.push(O[b]);return e};R||(G=function Symbol(){if(this instanceof G)throw TypeError("Symbol is not a constructor!");var a=n(arguments.length>0?arguments[0]:c),b=function(c){this===Q&&b.call(P,c),f(this,K)&&f(this[K],a)&&(this[K][a]=!1),U(this,a,x(1,c))};return g&&T&&U(Q,a,{configurable:!0,set:b}),V(a)},i(G[J],"toString",function toString(){return this._k}),A.f=_,B.f=X,d(48).f=z.f=aa,d(42).f=$,d(41).f=ba,g&&!d(26)&&i(Q,"propertyIsEnumerable",$,!0),p.f=function(a){return V(o(a))}),h(h.G+h.W+h.F*!R,{Symbol:G});for(var ca="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),da=0;ca.length>da;)o(ca[da++]);for(var ca=C(o.store),da=0;ca.length>da;)q(ca[da++]);h(h.S+h.F*!R,"Symbol",{"for":function(a){return f(N,a+="")?N[a]:N[a]=G(a)},keyFor:function keyFor(a){if(W(a))return r(N,a);throw TypeError(a+" is not a symbol!")},useSetter:function(){T=!0},useSimple:function(){T=!1}}),h(h.S+h.F*!R,"Object",{create:Z,defineProperty:X,defineProperties:Y,getOwnPropertyDescriptor:_,getOwnPropertyNames:aa,getOwnPropertySymbols:ba}),H&&h(h.S+h.F*(!R||k(function(){var a=G();return"[null]"!=I([a])||"{}"!=I({a:a})||"{}"!=I(Object(a))})),"JSON",{stringify:function stringify(a){if(a!==c&&!W(a)){for(var b,d,e=[a],f=1;arguments.length>f;)e.push(arguments[f++]);return b=e[1],"function"==typeof b&&(d=b),!d&&t(b)||(b=function(a,b){if(d&&(b=d.call(this,a,b)),!W(b))return b}),e[1]=b,I.apply(H,e)}}}),G[J][L]||d(8)(G[J],L,G[J].valueOf),m(G,"Symbol"),m(Math,"Math",!0),m(e.JSON,"JSON",!0)},function(a,c){var d=a.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof b&&(b=d)},function(a,b){var c={}.hasOwnProperty;a.exports=function(a,b){return c.call(a,b)}},function(a,b,c){a.exports=!c(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(a,b){a.exports=function(a){try{return!!a()}catch(b){return!0}}},function(a,b,d){var e=d(2),f=d(7),g=d(8),h=d(16),i=d(18),j="prototype",k=function(a,b,d){var l,m,n,o,p=a&k.F,q=a&k.G,r=a&k.S,s=a&k.P,t=a&k.B,u=q?e:r?e[b]||(e[b]={}):(e[b]||{})[j],v=q?f:f[b]||(f[b]={}),w=v[j]||(v[j]={});q&&(d=b);for(l in d)m=!p&&u&&u[l]!==c,n=(m?u:d)[l],o=t&&m?i(n,e):s&&"function"==typeof n?i(Function.call,n):n,u&&h(u,l,n,a&k.U),v[l]!=n&&g(v,l,o),s&&w[l]!=n&&(w[l]=n)};e.core=f,k.F=1,k.G=2,k.S=4,k.P=8,k.B=16,k.W=32,k.U=64,k.R=128,a.exports=k},function(b,c){var d=b.exports={version:"2.4.0"};"number"==typeof a&&(a=d)},function(a,b,c){var d=c(9),e=c(15);a.exports=c(4)?function(a,b,c){return d.f(a,b,e(1,c))}:function(a,b,c){return a[b]=c,a}},function(a,b,c){var d=c(10),e=c(12),f=c(14),g=Object.defineProperty;b.f=c(4)?Object.defineProperty:function defineProperty(a,b,c){if(d(a),b=f(b,!0),d(c),e)try{return g(a,b,c)}catch(h){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(a[b]=c.value),a}},function(a,b,c){var d=c(11);a.exports=function(a){if(!d(a))throw TypeError(a+" is not an object!");return a}},function(a,b){a.exports=function(a){return"object"==typeof a?null!==a:"function"==typeof a}},function(a,b,c){a.exports=!c(4)&&!c(5)(function(){return 7!=Object.defineProperty(c(13)("div"),"a",{get:function(){return 7}}).a})},function(a,b,c){var d=c(11),e=c(2).document,f=d(e)&&d(e.createElement);a.exports=function(a){return f?e.createElement(a):{}}},function(a,b,c){var d=c(11);a.exports=function(a,b){if(!d(a))return a;var c,e;if(b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;if("function"==typeof(c=a.valueOf)&&!d(e=c.call(a)))return e;if(!b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;throw TypeError("Can't convert object to primitive value")}},function(a,b){a.exports=function(a,b){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:b}}},function(a,b,c){var d=c(2),e=c(8),f=c(3),g=c(17)("src"),h="toString",i=Function[h],j=(""+i).split(h);c(7).inspectSource=function(a){return i.call(a)},(a.exports=function(a,b,c,h){var i="function"==typeof c;i&&(f(c,"name")||e(c,"name",b)),a[b]!==c&&(i&&(f(c,g)||e(c,g,a[b]?""+a[b]:j.join(String(b)))),a===d?a[b]=c:h?a[b]?a[b]=c:e(a,b,c):(delete a[b],e(a,b,c)))})(Function.prototype,h,function toString(){return"function"==typeof this&&this[g]||i.call(this)})},function(a,b){var d=0,e=Math.random();a.exports=function(a){return"Symbol(".concat(a===c?"":a,")_",(++d+e).toString(36))}},function(a,b,d){var e=d(19);a.exports=function(a,b,d){if(e(a),b===c)return a;switch(d){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}}},function(a,b){a.exports=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function!");return a}},function(a,b,c){var d=c(17)("meta"),e=c(11),f=c(3),g=c(9).f,h=0,i=Object.isExtensible||function(){return!0},j=!c(5)(function(){return i(Object.preventExtensions({}))}),k=function(a){g(a,d,{value:{i:"O"+ ++h,w:{}}})},l=function(a,b){if(!e(a))return"symbol"==typeof a?a:("string"==typeof a?"S":"P")+a;if(!f(a,d)){if(!i(a))return"F";if(!b)return"E";k(a)}return a[d].i},m=function(a,b){if(!f(a,d)){if(!i(a))return!0;if(!b)return!1;k(a)}return a[d].w},n=function(a){return j&&o.NEED&&i(a)&&!f(a,d)&&k(a),a},o=a.exports={KEY:d,NEED:!1,fastKey:l,getWeak:m,onFreeze:n}},function(a,b,c){var d=c(2),e="__core-js_shared__",f=d[e]||(d[e]={});a.exports=function(a){return f[a]||(f[a]={})}},function(a,b,c){var d=c(9).f,e=c(3),f=c(23)("toStringTag");a.exports=function(a,b,c){a&&!e(a=c?a:a.prototype,f)&&d(a,f,{configurable:!0,value:b})}},function(a,b,c){var d=c(21)("wks"),e=c(17),f=c(2).Symbol,g="function"==typeof f,h=a.exports=function(a){return d[a]||(d[a]=g&&f[a]||(g?f:e)("Symbol."+a))};h.store=d},function(a,b,c){b.f=c(23)},function(a,b,c){var d=c(2),e=c(7),f=c(26),g=c(24),h=c(9).f;a.exports=function(a){var b=e.Symbol||(e.Symbol=f?{}:d.Symbol||{});"_"==a.charAt(0)||a in b||h(b,a,{value:g.f(a)})}},function(a,b){a.exports=!1},function(a,b,c){var d=c(28),e=c(30);a.exports=function(a,b){for(var c,f=e(a),g=d(f),h=g.length,i=0;h>i;)if(f[c=g[i++]]===b)return c}},function(a,b,c){var d=c(29),e=c(39);a.exports=Object.keys||function keys(a){return d(a,e)}},function(a,b,c){var d=c(3),e=c(30),f=c(34)(!1),g=c(38)("IE_PROTO");a.exports=function(a,b){var c,h=e(a),i=0,j=[];for(c in h)c!=g&&d(h,c)&&j.push(c);for(;b.length>i;)d(h,c=b[i++])&&(~f(j,c)||j.push(c));return j}},function(a,b,c){var d=c(31),e=c(33);a.exports=function(a){return d(e(a))}},function(a,b,c){var d=c(32);a.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return"String"==d(a)?a.split(""):Object(a)}},function(a,b){var c={}.toString;a.exports=function(a){return c.call(a).slice(8,-1)}},function(a,b){a.exports=function(a){if(a==c)throw TypeError("Can't call method on  "+a);return a}},function(a,b,c){var d=c(30),e=c(35),f=c(37);a.exports=function(a){return function(b,c,g){var h,i=d(b),j=e(i.length),k=f(g,j);if(a&&c!=c){for(;j>k;)if(h=i[k++],h!=h)return!0}else for(;j>k;k++)if((a||k in i)&&i[k]===c)return a||k||0;return!a&&-1}}},function(a,b,c){var d=c(36),e=Math.min;a.exports=function(a){return a>0?e(d(a),9007199254740991):0}},function(a,b){var c=Math.ceil,d=Math.floor;a.exports=function(a){return isNaN(a=+a)?0:(a>0?d:c)(a)}},function(a,b,c){var d=c(36),e=Math.max,f=Math.min;a.exports=function(a,b){return a=d(a),a<0?e(a+b,0):f(a,b)}},function(a,b,c){var d=c(21)("keys"),e=c(17);a.exports=function(a){return d[a]||(d[a]=e(a))}},function(a,b){a.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(a,b,c){var d=c(28),e=c(41),f=c(42);a.exports=function(a){var b=d(a),c=e.f;if(c)for(var g,h=c(a),i=f.f,j=0;h.length>j;)i.call(a,g=h[j++])&&b.push(g);return b}},function(a,b){b.f=Object.getOwnPropertySymbols},function(a,b){b.f={}.propertyIsEnumerable},function(a,b,c){var d=c(32);a.exports=Array.isArray||function isArray(a){return"Array"==d(a)}},function(a,b,d){var e=d(10),f=d(45),g=d(39),h=d(38)("IE_PROTO"),i=function(){},j="prototype",k=function(){var a,b=d(13)("iframe"),c=g.length,e="<",f=">";for(b.style.display="none",d(46).appendChild(b),b.src="javascript:",a=b.contentWindow.document,a.open(),a.write(e+"script"+f+"document.F=Object"+e+"/script"+f),a.close(),k=a.F;c--;)delete k[j][g[c]];return k()};a.exports=Object.create||function create(a,b){var d;return null!==a?(i[j]=e(a),d=new i,i[j]=null,d[h]=a):d=k(),b===c?d:f(d,b)}},function(a,b,c){var d=c(9),e=c(10),f=c(28);a.exports=c(4)?Object.defineProperties:function defineProperties(a,b){e(a);for(var c,g=f(b),h=g.length,i=0;h>i;)d.f(a,c=g[i++],b[c]);return a}},function(a,b,c){a.exports=c(2).document&&document.documentElement},function(a,b,c){var d=c(30),e=c(48).f,f={}.toString,g="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=function(a){try{return e(a)}catch(b){return g.slice()}};a.exports.f=function getOwnPropertyNames(a){return g&&"[object Window]"==f.call(a)?h(a):e(d(a))}},function(a,b,c){var d=c(29),e=c(39).concat("length","prototype");b.f=Object.getOwnPropertyNames||function getOwnPropertyNames(a){return d(a,e)}},function(a,b,c){var d=c(42),e=c(15),f=c(30),g=c(14),h=c(3),i=c(12),j=Object.getOwnPropertyDescriptor;b.f=c(4)?j:function getOwnPropertyDescriptor(a,b){if(a=f(a),b=g(b,!0),i)try{return j(a,b)}catch(c){}if(h(a,b))return e(!d.f.call(a,b),a[b])}},function(a,b,c){var d=c(6);d(d.S+d.F*!c(4),"Object",{defineProperty:c(9).f})},function(a,b,c){var d=c(6);d(d.S+d.F*!c(4),"Object",{defineProperties:c(45)})},function(a,b,c){var d=c(30),e=c(49).f;c(53)("getOwnPropertyDescriptor",function(){return function getOwnPropertyDescriptor(a,b){return e(d(a),b)}})},function(a,b,c){var d=c(6),e=c(7),f=c(5);a.exports=function(a,b){var c=(e.Object||{})[a]||Object[a],g={};g[a]=b(c),d(d.S+d.F*f(function(){c(1)}),"Object",g)}},function(a,b,c){var d=c(6);d(d.S,"Object",{create:c(44)})},function(a,b,c){var d=c(56),e=c(57);c(53)("getPrototypeOf",function(){return function getPrototypeOf(a){return e(d(a))}})},function(a,b,c){var d=c(33);a.exports=function(a){return Object(d(a))}},function(a,b,c){var d=c(3),e=c(56),f=c(38)("IE_PROTO"),g=Object.prototype;a.exports=Object.getPrototypeOf||function(a){return a=e(a),d(a,f)?a[f]:"function"==typeof a.constructor&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?g:null}},function(a,b,c){var d=c(56),e=c(28);c(53)("keys",function(){return function keys(a){return e(d(a))}})},function(a,b,c){c(53)("getOwnPropertyNames",function(){return c(47).f})},function(a,b,c){var d=c(11),e=c(20).onFreeze;c(53)("freeze",function(a){return function freeze(b){return a&&d(b)?a(e(b)):b}})},function(a,b,c){var d=c(11),e=c(20).onFreeze;c(53)("seal",function(a){return function seal(b){return a&&d(b)?a(e(b)):b}})},function(a,b,c){var d=c(11),e=c(20).onFreeze;c(53)("preventExtensions",function(a){return function preventExtensions(b){return a&&d(b)?a(e(b)):b}})},function(a,b,c){var d=c(11);c(53)("isFrozen",function(a){return function isFrozen(b){return!d(b)||!!a&&a(b)}})},function(a,b,c){var d=c(11);c(53)("isSealed",function(a){return function isSealed(b){return!d(b)||!!a&&a(b)}})},function(a,b,c){var d=c(11);c(53)("isExtensible",function(a){return function isExtensible(b){return!!d(b)&&(!a||a(b))}})},function(a,b,c){var d=c(6);d(d.S+d.F,"Object",{assign:c(67)})},function(a,b,c){var d=c(28),e=c(41),f=c(42),g=c(56),h=c(31),i=Object.assign;a.exports=!i||c(5)(function(){var a={},b={},c=Symbol(),d="abcdefghijklmnopqrst";return a[c]=7,d.split("").forEach(function(a){b[a]=a}),7!=i({},a)[c]||Object.keys(i({},b)).join("")!=d})?function assign(a,b){for(var c=g(a),i=arguments.length,j=1,k=e.f,l=f.f;i>j;)for(var m,n=h(arguments[j++]),o=k?d(n).concat(k(n)):d(n),p=o.length,q=0;p>q;)l.call(n,m=o[q++])&&(c[m]=n[m]);return c}:i},function(a,b,c){var d=c(6);d(d.S,"Object",{is:c(69)})},function(a,b){a.exports=Object.is||function is(a,b){return a===b?0!==a||1/a===1/b:a!=a&&b!=b}},function(a,b,c){var d=c(6);d(d.S,"Object",{setPrototypeOf:c(71).set})},function(a,b,d){var e=d(11),f=d(10),g=function(a,b){if(f(a),!e(b)&&null!==b)throw TypeError(b+": can't set as prototype!")};a.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(a,b,c){try{c=d(18)(Function.call,d(49).f(Object.prototype,"__proto__").set,2),c(a,[]),b=!(a instanceof Array)}catch(e){b=!0}return function setPrototypeOf(a,d){return g(a,d),b?a.__proto__=d:c(a,d),a}}({},!1):c),check:g}},function(a,b,c){var d=c(73),e={};e[c(23)("toStringTag")]="z",e+""!="[object z]"&&c(16)(Object.prototype,"toString",function toString(){return"[object "+d(this)+"]"},!0)},function(a,b,d){var e=d(32),f=d(23)("toStringTag"),g="Arguments"==e(function(){return arguments}()),h=function(a,b){try{return a[b]}catch(c){}};a.exports=function(a){var b,d,i;return a===c?"Undefined":null===a?"Null":"string"==typeof(d=h(b=Object(a),f))?d:g?e(b):"Object"==(i=e(b))&&"function"==typeof b.callee?"Arguments":i}},function(a,b,c){var d=c(6);d(d.P,"Function",{bind:c(75)})},function(a,b,c){var d=c(19),e=c(11),f=c(76),g=[].slice,h={},i=function(a,b,c){if(!(b in h)){for(var d=[],e=0;e<b;e++)d[e]="a["+e+"]";h[b]=Function("F,a","return new F("+d.join(",")+")")}return h[b](a,c)};a.exports=Function.bind||function bind(a){var b=d(this),c=g.call(arguments,1),h=function(){var d=c.concat(g.call(arguments));return this instanceof h?i(b,d.length,d):f(b,d,a)};return e(b.prototype)&&(h.prototype=b.prototype),h}},function(a,b){a.exports=function(a,b,d){var e=d===c;switch(b.length){case 0:return e?a():a.call(d);case 1:return e?a(b[0]):a.call(d,b[0]);case 2:return e?a(b[0],b[1]):a.call(d,b[0],b[1]);case 3:return e?a(b[0],b[1],b[2]):a.call(d,b[0],b[1],b[2]);case 4:return e?a(b[0],b[1],b[2],b[3]):a.call(d,b[0],b[1],b[2],b[3])}return a.apply(d,b)}},function(a,b,c){var d=c(9).f,e=c(15),f=c(3),g=Function.prototype,h=/^\s*function ([^ (]*)/,i="name",j=Object.isExtensible||function(){return!0};i in g||c(4)&&d(g,i,{configurable:!0,get:function(){try{var a=this,b=(""+a).match(h)[1];return f(a,i)||!j(a)||d(a,i,e(5,b)),b}catch(c){return""}}})},function(a,b,c){var d=c(11),e=c(57),f=c(23)("hasInstance"),g=Function.prototype;f in g||c(9).f(g,f,{value:function(a){if("function"!=typeof this||!d(a))return!1;if(!d(this.prototype))return a instanceof this;for(;a=e(a);)if(this.prototype===a)return!0;return!1}})},function(a,b,c){var d=c(2),e=c(3),f=c(32),g=c(80),h=c(14),i=c(5),j=c(48).f,k=c(49).f,l=c(9).f,m=c(81).trim,n="Number",o=d[n],p=o,q=o.prototype,r=f(c(44)(q))==n,s="trim"in String.prototype,t=function(a){var b=h(a,!1);if("string"==typeof b&&b.length>2){b=s?b.trim():m(b,3);var c,d,e,f=b.charCodeAt(0);if(43===f||45===f){if(c=b.charCodeAt(2),88===c||120===c)return NaN}else if(48===f){switch(b.charCodeAt(1)){case 66:case 98:d=2,e=49;break;case 79:case 111:d=8,e=55;break;default:return+b}for(var g,i=b.slice(2),j=0,k=i.length;j<k;j++)if(g=i.charCodeAt(j),g<48||g>e)return NaN;return parseInt(i,d)}}return+b};if(!o(" 0o1")||!o("0b1")||o("+0x1")){o=function Number(a){var b=arguments.length<1?0:a,c=this;return c instanceof o&&(r?i(function(){q.valueOf.call(c)}):f(c)!=n)?g(new p(t(b)),c,o):t(b)};for(var u,v=c(4)?j(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;v.length>w;w++)e(p,u=v[w])&&!e(o,u)&&l(o,u,k(p,u));o.prototype=q,q.constructor=o,c(16)(d,n,o)}},function(a,b,c){var d=c(11),e=c(71).set;a.exports=function(a,b,c){var f,g=b.constructor;return g!==c&&"function"==typeof g&&(f=g.prototype)!==c.prototype&&d(f)&&e&&e(a,f),a}},function(a,b,c){var d=c(6),e=c(33),f=c(5),g=c(82),h="["+g+"]",i="​…",j=RegExp("^"+h+h+"*"),k=RegExp(h+h+"*$"),l=function(a,b,c){var e={},h=f(function(){return!!g[a]()||i[a]()!=i}),j=e[a]=h?b(m):g[a];c&&(e[c]=j),d(d.P+d.F*h,"String",e)},m=l.trim=function(a,b){return a=String(e(a)),1&b&&(a=a.replace(j,"")),2&b&&(a=a.replace(k,"")),a};a.exports=l},function(a,b){a.exports="\t\n\x0B\f\r   ᠎              \u2028\u2029\ufeff"},function(a,b,c){var d=c(6),e=c(36),f=c(84),g=c(85),h=1..toFixed,i=Math.floor,j=[0,0,0,0,0,0],k="Number.toFixed: incorrect invocation!",l="0",m=function(a,b){for(var c=-1,d=b;++c<6;)d+=a*j[c],j[c]=d%1e7,d=i(d/1e7)},n=function(a){for(var b=6,c=0;--b>=0;)c+=j[b],j[b]=i(c/a),c=c%a*1e7},o=function(){for(var a=6,b="";--a>=0;)if(""!==b||0===a||0!==j[a]){var c=String(j[a]);b=""===b?c:b+g.call(l,7-c.length)+c}return b},p=function(a,b,c){return 0===b?c:b%2===1?p(a,b-1,c*a):p(a*a,b/2,c)},q=function(a){for(var b=0,c=a;c>=4096;)b+=12,c/=4096;for(;c>=2;)b+=1,c/=2;return b};d(d.P+d.F*(!!h&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c(5)(function(){h.call({})})),"Number",{toFixed:function toFixed(a){var b,c,d,h,i=f(this,k),j=e(a),r="",s=l;if(j<0||j>20)throw RangeError(k);if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(r="-",i=-i),i>1e-21)if(b=q(i*p(2,69,1))-69,c=b<0?i*p(2,-b,1):i/p(2,b,1),c*=4503599627370496,b=52-b,b>0){for(m(0,c),d=j;d>=7;)m(1e7,0),d-=7;for(m(p(10,d,1),0),d=b-1;d>=23;)n(1<<23),d-=23;n(1<<d),m(1,1),n(2),s=o()}else m(0,c),m(1<<-b,0),s=o()+g.call(l,j);return j>0?(h=s.length,s=r+(h<=j?"0."+g.call(l,j-h)+s:s.slice(0,h-j)+"."+s.slice(h-j))):s=r+s,s}})},function(a,b,c){var d=c(32);a.exports=function(a,b){if("number"!=typeof a&&"Number"!=d(a))throw TypeError(b);return+a}},function(a,b,c){var d=c(36),e=c(33);a.exports=function repeat(a){var b=String(e(this)),c="",f=d(a);if(f<0||f==1/0)throw RangeError("Count can't be negative");for(;f>0;(f>>>=1)&&(b+=b))1&f&&(c+=b);return c}},function(a,b,d){var e=d(6),f=d(5),g=d(84),h=1..toPrecision;e(e.P+e.F*(f(function(){return"1"!==h.call(1,c)})||!f(function(){h.call({})})),"Number",{toPrecision:function toPrecision(a){var b=g(this,"Number#toPrecision: incorrect invocation!");return a===c?h.call(b):h.call(b,a)}})},function(a,b,c){var d=c(6);d(d.S,"Number",{EPSILON:Math.pow(2,-52)})},function(a,b,c){var d=c(6),e=c(2).isFinite;d(d.S,"Number",{isFinite:function isFinite(a){return"number"==typeof a&&e(a)}})},function(a,b,c){var d=c(6);d(d.S,"Number",{isInteger:c(90)})},function(a,b,c){var d=c(11),e=Math.floor;a.exports=function isInteger(a){return!d(a)&&isFinite(a)&&e(a)===a}},function(a,b,c){var d=c(6);d(d.S,"Number",{isNaN:function isNaN(a){return a!=a}})},function(a,b,c){var d=c(6),e=c(90),f=Math.abs;d(d.S,"Number",{isSafeInteger:function isSafeInteger(a){return e(a)&&f(a)<=9007199254740991}})},function(a,b,c){var d=c(6);d(d.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(a,b,c){var d=c(6);d(d.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(a,b,c){var d=c(6),e=c(96);d(d.S+d.F*(Number.parseFloat!=e),"Number",{parseFloat:e})},function(a,b,c){var d=c(2).parseFloat,e=c(81).trim;a.exports=1/d(c(82)+"-0")!==-(1/0)?function parseFloat(a){var b=e(String(a),3),c=d(b);return 0===c&&"-"==b.charAt(0)?-0:c}:d},function(a,b,c){var d=c(6),e=c(98);d(d.S+d.F*(Number.parseInt!=e),"Number",{parseInt:e})},function(a,b,c){var d=c(2).parseInt,e=c(81).trim,f=c(82),g=/^[\-+]?0[xX]/;a.exports=8!==d(f+"08")||22!==d(f+"0x16")?function parseInt(a,b){var c=e(String(a),3);return d(c,b>>>0||(g.test(c)?16:10))}:d},function(a,b,c){var d=c(6),e=c(98);d(d.G+d.F*(parseInt!=e),{parseInt:e})},function(a,b,c){var d=c(6),e=c(96);d(d.G+d.F*(parseFloat!=e),{parseFloat:e})},function(a,b,c){var d=c(6),e=c(102),f=Math.sqrt,g=Math.acosh;d(d.S+d.F*!(g&&710==Math.floor(g(Number.MAX_VALUE))&&g(1/0)==1/0),"Math",{acosh:function acosh(a){return(a=+a)<1?NaN:a>94906265.62425156?Math.log(a)+Math.LN2:e(a-1+f(a-1)*f(a+1))}})},function(a,b){a.exports=Math.log1p||function log1p(a){return(a=+a)>-1e-8&&a<1e-8?a-a*a/2:Math.log(1+a)}},function(a,b,c){function asinh(a){return isFinite(a=+a)&&0!=a?a<0?-asinh(-a):Math.log(a+Math.sqrt(a*a+1)):a}var d=c(6),e=Math.asinh;d(d.S+d.F*!(e&&1/e(0)>0),"Math",{asinh:asinh})},function(a,b,c){var d=c(6),e=Math.atanh;d(d.S+d.F*!(e&&1/e(-0)<0),"Math",{atanh:function atanh(a){return 0==(a=+a)?a:Math.log((1+a)/(1-a))/2}})},function(a,b,c){var d=c(6),e=c(106);d(d.S,"Math",{cbrt:function cbrt(a){return e(a=+a)*Math.pow(Math.abs(a),1/3)}})},function(a,b){a.exports=Math.sign||function sign(a){return 0==(a=+a)||a!=a?a:a<0?-1:1}},function(a,b,c){var d=c(6);d(d.S,"Math",{clz32:function clz32(a){return(a>>>=0)?31-Math.floor(Math.log(a+.5)*Math.LOG2E):32}})},function(a,b,c){var d=c(6),e=Math.exp;d(d.S,"Math",{cosh:function cosh(a){return(e(a=+a)+e(-a))/2}})},function(a,b,c){var d=c(6),e=c(110);d(d.S+d.F*(e!=Math.expm1),"Math",{expm1:e})},function(a,b){var c=Math.expm1;a.exports=!c||c(10)>22025.465794806718||c(10)<22025.465794806718||c(-2e-17)!=-2e-17?function expm1(a){return 0==(a=+a)?a:a>-1e-6&&a<1e-6?a+a*a/2:Math.exp(a)-1}:c},function(a,b,c){var d=c(6),e=c(106),f=Math.pow,g=f(2,-52),h=f(2,-23),i=f(2,127)*(2-h),j=f(2,-126),k=function(a){return a+1/g-1/g};d(d.S,"Math",{fround:function fround(a){var b,c,d=Math.abs(a),f=e(a);return d<j?f*k(d/j/h)*j*h:(b=(1+h/g)*d,c=b-(b-d),c>i||c!=c?f*(1/0):f*c)}})},function(a,b,c){var d=c(6),e=Math.abs;d(d.S,"Math",{hypot:function hypot(a,b){for(var c,d,f=0,g=0,h=arguments.length,i=0;g<h;)c=e(arguments[g++]),i<c?(d=i/c,f=f*d*d+1,i=c):c>0?(d=c/i,f+=d*d):f+=c;return i===1/0?1/0:i*Math.sqrt(f)}})},function(a,b,c){var d=c(6),e=Math.imul;d(d.S+d.F*c(5)(function(){return e(4294967295,5)!=-5||2!=e.length}),"Math",{imul:function imul(a,b){var c=65535,d=+a,e=+b,f=c&d,g=c&e;return 0|f*g+((c&d>>>16)*g+f*(c&e>>>16)<<16>>>0)}})},function(a,b,c){var d=c(6);d(d.S,"Math",{log10:function log10(a){return Math.log(a)/Math.LN10}})},function(a,b,c){var d=c(6);d(d.S,"Math",{log1p:c(102)})},function(a,b,c){var d=c(6);d(d.S,"Math",{log2:function log2(a){return Math.log(a)/Math.LN2}})},function(a,b,c){var d=c(6);d(d.S,"Math",{sign:c(106)})},function(a,b,c){var d=c(6),e=c(110),f=Math.exp;d(d.S+d.F*c(5)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function sinh(a){return Math.abs(a=+a)<1?(e(a)-e(-a))/2:(f(a-1)-f(-a-1))*(Math.E/2)}})},function(a,b,c){var d=c(6),e=c(110),f=Math.exp;d(d.S,"Math",{tanh:function tanh(a){var b=e(a=+a),c=e(-a);return b==1/0?1:c==1/0?-1:(b-c)/(f(a)+f(-a))}})},function(a,b,c){var d=c(6);d(d.S,"Math",{trunc:function trunc(a){return(a>0?Math.floor:Math.ceil)(a)}})},function(a,b,c){var d=c(6),e=c(37),f=String.fromCharCode,g=String.fromCodePoint;d(d.S+d.F*(!!g&&1!=g.length),"String",{fromCodePoint:function fromCodePoint(a){for(var b,c=[],d=arguments.length,g=0;d>g;){if(b=+arguments[g++],e(b,1114111)!==b)throw RangeError(b+" is not a valid code point");c.push(b<65536?f(b):f(((b-=65536)>>10)+55296,b%1024+56320))}return c.join("")}})},function(a,b,c){var d=c(6),e=c(30),f=c(35);d(d.S,"String",{raw:function raw(a){for(var b=e(a.raw),c=f(b.length),d=arguments.length,g=[],h=0;c>h;)g.push(String(b[h++])),h<d&&g.push(String(arguments[h]));return g.join("")}})},function(a,b,c){c(81)("trim",function(a){return function trim(){return a(this,3)}})},function(a,b,c){var d=c(6),e=c(125)(!1);d(d.P,"String",{codePointAt:function codePointAt(a){return e(this,a)}})},function(a,b,d){var e=d(36),f=d(33);a.exports=function(a){return function(b,d){var g,h,i=String(f(b)),j=e(d),k=i.length;return j<0||j>=k?a?"":c:(g=i.charCodeAt(j),g<55296||g>56319||j+1===k||(h=i.charCodeAt(j+1))<56320||h>57343?a?i.charAt(j):g:a?i.slice(j,j+2):(g-55296<<10)+(h-56320)+65536)}}},function(a,b,d){var e=d(6),f=d(35),g=d(127),h="endsWith",i=""[h];e(e.P+e.F*d(129)(h),"String",{endsWith:function endsWith(a){var b=g(this,a,h),d=arguments.length>1?arguments[1]:c,e=f(b.length),j=d===c?e:Math.min(f(d),e),k=String(a);return i?i.call(b,k,j):b.slice(j-k.length,j)===k}})},function(a,b,c){var d=c(128),e=c(33);a.exports=function(a,b,c){if(d(b))throw TypeError("String#"+c+" doesn't accept regex!");return String(e(a))}},function(a,b,d){var e=d(11),f=d(32),g=d(23)("match");a.exports=function(a){var b;return e(a)&&((b=a[g])!==c?!!b:"RegExp"==f(a))}},function(a,b,c){var d=c(23)("match");a.exports=function(a){var b=/./;try{"/./"[a](b)}catch(c){try{return b[d]=!1,!"/./"[a](b)}catch(e){}}return!0}},function(a,b,d){var e=d(6),f=d(127),g="includes";e(e.P+e.F*d(129)(g),"String",{includes:function includes(a){return!!~f(this,a,g).indexOf(a,arguments.length>1?arguments[1]:c)}})},function(a,b,c){var d=c(6);d(d.P,"String",{repeat:c(85)})},function(a,b,d){var e=d(6),f=d(35),g=d(127),h="startsWith",i=""[h];e(e.P+e.F*d(129)(h),"String",{startsWith:function startsWith(a){var b=g(this,a,h),d=f(Math.min(arguments.length>1?arguments[1]:c,b.length)),e=String(a);return i?i.call(b,e,d):b.slice(d,d+e.length)===e}})},function(a,b,d){var e=d(125)(!0);d(134)(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,b=this._t,d=this._i;return d>=b.length?{value:c,done:!0}:(a=e(b,d),this._i+=a.length,{value:a,done:!1})})},function(a,b,d){var e=d(26),f=d(6),g=d(16),h=d(8),i=d(3),j=d(135),k=d(136),l=d(22),m=d(57),n=d(23)("iterator"),o=!([].keys&&"next"in[].keys()),p="@@iterator",q="keys",r="values",s=function(){return this};a.exports=function(a,b,d,t,u,v,w){k(d,b,t);var x,y,z,A=function(a){if(!o&&a in E)return E[a];switch(a){case q:return function keys(){return new d(this,a)};case r:return function values(){return new d(this,a)}}return function entries(){return new d(this,a)}},B=b+" Iterator",C=u==r,D=!1,E=a.prototype,F=E[n]||E[p]||u&&E[u],G=F||A(u),H=u?C?A("entries"):G:c,I="Array"==b?E.entries||F:F;if(I&&(z=m(I.call(new a)),z!==Object.prototype&&(l(z,B,!0),e||i(z,n)||h(z,n,s))),C&&F&&F.name!==r&&(D=!0,G=function values(){return F.call(this)}),e&&!w||!o&&!D&&E[n]||h(E,n,G),j[b]=G,j[B]=s,u)if(x={values:C?G:A(r),keys:v?G:A(q),entries:H},w)for(y in x)y in E||g(E,y,x[y]);else f(f.P+f.F*(o||D),b,x);return x}},function(a,b){a.exports={}},function(a,b,c){var d=c(44),e=c(15),f=c(22),g={};c(8)(g,c(23)("iterator"),function(){return this}),a.exports=function(a,b,c){a.prototype=d(g,{next:e(1,c)}),f(a,b+" Iterator")}},function(a,b,c){c(138)("anchor",function(a){return function anchor(b){return a(this,"a","name",b)}})},function(a,b,c){var d=c(6),e=c(5),f=c(33),g=/"/g,h=function(a,b,c,d){var e=String(f(a)),h="<"+b;return""!==c&&(h+=" "+c+'="'+String(d).replace(g,"&quot;")+'"'),h+">"+e+"</"+b+">"};a.exports=function(a,b){var c={};c[a]=b(h),d(d.P+d.F*e(function(){var b=""[a]('"');return b!==b.toLowerCase()||b.split('"').length>3}),"String",c)}},function(a,b,c){c(138)("big",function(a){return function big(){return a(this,"big","","")}})},function(a,b,c){c(138)("blink",function(a){return function blink(){return a(this,"blink","","")}})},function(a,b,c){c(138)("bold",function(a){return function bold(){return a(this,"b","","")}})},function(a,b,c){c(138)("fixed",function(a){return function fixed(){return a(this,"tt","","")}})},function(a,b,c){c(138)("fontcolor",function(a){return function fontcolor(b){return a(this,"font","color",b)}})},function(a,b,c){c(138)("fontsize",function(a){return function fontsize(b){return a(this,"font","size",b)}})},function(a,b,c){c(138)("italics",function(a){return function italics(){return a(this,"i","","")}})},function(a,b,c){c(138)("link",function(a){return function link(b){return a(this,"a","href",b)}})},function(a,b,c){c(138)("small",function(a){return function small(){return a(this,"small","","")}})},function(a,b,c){c(138)("strike",function(a){return function strike(){return a(this,"strike","","")}})},function(a,b,c){c(138)("sub",function(a){return function sub(){return a(this,"sub","","")}})},function(a,b,c){c(138)("sup",function(a){return function sup(){return a(this,"sup","","")}})},function(a,b,c){var d=c(6);d(d.S,"Array",{isArray:c(43)})},function(a,b,d){var e=d(18),f=d(6),g=d(56),h=d(153),i=d(154),j=d(35),k=d(155),l=d(156);f(f.S+f.F*!d(157)(function(a){Array.from(a)}),"Array",{from:function from(a){var b,d,f,m,n=g(a),o="function"==typeof this?this:Array,p=arguments.length,q=p>1?arguments[1]:c,r=q!==c,s=0,t=l(n);if(r&&(q=e(q,p>2?arguments[2]:c,2)),t==c||o==Array&&i(t))for(b=j(n.length),d=new o(b);b>s;s++)k(d,s,r?q(n[s],s):n[s]);else for(m=t.call(n),d=new o;!(f=m.next()).done;s++)k(d,s,r?h(m,q,[f.value,s],!0):f.value);return d.length=s,d}})},function(a,b,d){var e=d(10);a.exports=function(a,b,d,f){try{return f?b(e(d)[0],d[1]):b(d)}catch(g){var h=a["return"];throw h!==c&&e(h.call(a)),g}}},function(a,b,d){var e=d(135),f=d(23)("iterator"),g=Array.prototype;a.exports=function(a){return a!==c&&(e.Array===a||g[f]===a)}},function(a,b,c){var d=c(9),e=c(15);a.exports=function(a,b,c){b in a?d.f(a,b,e(0,c)):a[b]=c}},function(a,b,d){var e=d(73),f=d(23)("iterator"),g=d(135);a.exports=d(7).getIteratorMethod=function(a){if(a!=c)return a[f]||a["@@iterator"]||g[e(a)]}},function(a,b,c){var d=c(23)("iterator"),e=!1;
try{var f=[7][d]();f["return"]=function(){e=!0},Array.from(f,function(){throw 2})}catch(g){}a.exports=function(a,b){if(!b&&!e)return!1;var c=!1;try{var f=[7],g=f[d]();g.next=function(){return{done:c=!0}},f[d]=function(){return g},a(f)}catch(h){}return c}},function(a,b,c){var d=c(6),e=c(155);d(d.S+d.F*c(5)(function(){function F(){}return!(Array.of.call(F)instanceof F)}),"Array",{of:function of(){for(var a=0,b=arguments.length,c=new("function"==typeof this?this:Array)(b);b>a;)e(c,a,arguments[a++]);return c.length=b,c}})},function(a,b,d){var e=d(6),f=d(30),g=[].join;e(e.P+e.F*(d(31)!=Object||!d(160)(g)),"Array",{join:function join(a){return g.call(f(this),a===c?",":a)}})},function(a,b,c){var d=c(5);a.exports=function(a,b){return!!a&&d(function(){b?a.call(null,function(){},1):a.call(null)})}},function(a,b,d){var e=d(6),f=d(46),g=d(32),h=d(37),i=d(35),j=[].slice;e(e.P+e.F*d(5)(function(){f&&j.call(f)}),"Array",{slice:function slice(a,b){var d=i(this.length),e=g(this);if(b=b===c?d:b,"Array"==e)return j.call(this,a,b);for(var f=h(a,d),k=h(b,d),l=i(k-f),m=Array(l),n=0;n<l;n++)m[n]="String"==e?this.charAt(f+n):this[f+n];return m}})},function(a,b,d){var e=d(6),f=d(19),g=d(56),h=d(5),i=[].sort,j=[1,2,3];e(e.P+e.F*(h(function(){j.sort(c)})||!h(function(){j.sort(null)})||!d(160)(i)),"Array",{sort:function sort(a){return a===c?i.call(g(this)):i.call(g(this),f(a))}})},function(a,b,c){var d=c(6),e=c(164)(0),f=c(160)([].forEach,!0);d(d.P+d.F*!f,"Array",{forEach:function forEach(a){return e(this,a,arguments[1])}})},function(a,b,d){var e=d(18),f=d(31),g=d(56),h=d(35),i=d(165);a.exports=function(a,b){var d=1==a,j=2==a,k=3==a,l=4==a,m=6==a,n=5==a||m,o=b||i;return function(b,i,p){for(var q,r,s=g(b),t=f(s),u=e(i,p,3),v=h(t.length),w=0,x=d?o(b,v):j?o(b,0):c;v>w;w++)if((n||w in t)&&(q=t[w],r=u(q,w,s),a))if(d)x[w]=r;else if(r)switch(a){case 3:return!0;case 5:return q;case 6:return w;case 2:x.push(q)}else if(l)return!1;return m?-1:k||l?l:x}}},function(a,b,c){var d=c(166);a.exports=function(a,b){return new(d(a))(b)}},function(a,b,d){var e=d(11),f=d(43),g=d(23)("species");a.exports=function(a){var b;return f(a)&&(b=a.constructor,"function"!=typeof b||b!==Array&&!f(b.prototype)||(b=c),e(b)&&(b=b[g],null===b&&(b=c))),b===c?Array:b}},function(a,b,c){var d=c(6),e=c(164)(1);d(d.P+d.F*!c(160)([].map,!0),"Array",{map:function map(a){return e(this,a,arguments[1])}})},function(a,b,c){var d=c(6),e=c(164)(2);d(d.P+d.F*!c(160)([].filter,!0),"Array",{filter:function filter(a){return e(this,a,arguments[1])}})},function(a,b,c){var d=c(6),e=c(164)(3);d(d.P+d.F*!c(160)([].some,!0),"Array",{some:function some(a){return e(this,a,arguments[1])}})},function(a,b,c){var d=c(6),e=c(164)(4);d(d.P+d.F*!c(160)([].every,!0),"Array",{every:function every(a){return e(this,a,arguments[1])}})},function(a,b,c){var d=c(6),e=c(172);d(d.P+d.F*!c(160)([].reduce,!0),"Array",{reduce:function reduce(a){return e(this,a,arguments.length,arguments[1],!1)}})},function(a,b,c){var d=c(19),e=c(56),f=c(31),g=c(35);a.exports=function(a,b,c,h,i){d(b);var j=e(a),k=f(j),l=g(j.length),m=i?l-1:0,n=i?-1:1;if(c<2)for(;;){if(m in k){h=k[m],m+=n;break}if(m+=n,i?m<0:l<=m)throw TypeError("Reduce of empty array with no initial value")}for(;i?m>=0:l>m;m+=n)m in k&&(h=b(h,k[m],m,j));return h}},function(a,b,c){var d=c(6),e=c(172);d(d.P+d.F*!c(160)([].reduceRight,!0),"Array",{reduceRight:function reduceRight(a){return e(this,a,arguments.length,arguments[1],!0)}})},function(a,b,c){var d=c(6),e=c(34)(!1),f=[].indexOf,g=!!f&&1/[1].indexOf(1,-0)<0;d(d.P+d.F*(g||!c(160)(f)),"Array",{indexOf:function indexOf(a){return g?f.apply(this,arguments)||0:e(this,a,arguments[1])}})},function(a,b,c){var d=c(6),e=c(30),f=c(36),g=c(35),h=[].lastIndexOf,i=!!h&&1/[1].lastIndexOf(1,-0)<0;d(d.P+d.F*(i||!c(160)(h)),"Array",{lastIndexOf:function lastIndexOf(a){if(i)return h.apply(this,arguments)||0;var b=e(this),c=g(b.length),d=c-1;for(arguments.length>1&&(d=Math.min(d,f(arguments[1]))),d<0&&(d=c+d);d>=0;d--)if(d in b&&b[d]===a)return d||0;return-1}})},function(a,b,c){var d=c(6);d(d.P,"Array",{copyWithin:c(177)}),c(178)("copyWithin")},function(a,b,d){var e=d(56),f=d(37),g=d(35);a.exports=[].copyWithin||function copyWithin(a,b){var d=e(this),h=g(d.length),i=f(a,h),j=f(b,h),k=arguments.length>2?arguments[2]:c,l=Math.min((k===c?h:f(k,h))-j,h-i),m=1;for(j<i&&i<j+l&&(m=-1,j+=l-1,i+=l-1);l-- >0;)j in d?d[i]=d[j]:delete d[i],i+=m,j+=m;return d}},function(a,b,d){var e=d(23)("unscopables"),f=Array.prototype;f[e]==c&&d(8)(f,e,{}),a.exports=function(a){f[e][a]=!0}},function(a,b,c){var d=c(6);d(d.P,"Array",{fill:c(180)}),c(178)("fill")},function(a,b,d){var e=d(56),f=d(37),g=d(35);a.exports=function fill(a){for(var b=e(this),d=g(b.length),h=arguments.length,i=f(h>1?arguments[1]:c,d),j=h>2?arguments[2]:c,k=j===c?d:f(j,d);k>i;)b[i++]=a;return b}},function(a,b,d){var e=d(6),f=d(164)(5),g="find",h=!0;g in[]&&Array(1)[g](function(){h=!1}),e(e.P+e.F*h,"Array",{find:function find(a){return f(this,a,arguments.length>1?arguments[1]:c)}}),d(178)(g)},function(a,b,d){var e=d(6),f=d(164)(6),g="findIndex",h=!0;g in[]&&Array(1)[g](function(){h=!1}),e(e.P+e.F*h,"Array",{findIndex:function findIndex(a){return f(this,a,arguments.length>1?arguments[1]:c)}}),d(178)(g)},function(a,b,d){var e=d(178),f=d(184),g=d(135),h=d(30);a.exports=d(134)(Array,"Array",function(a,b){this._t=h(a),this._i=0,this._k=b},function(){var a=this._t,b=this._k,d=this._i++;return!a||d>=a.length?(this._t=c,f(1)):"keys"==b?f(0,d):"values"==b?f(0,a[d]):f(0,[d,a[d]])},"values"),g.Arguments=g.Array,e("keys"),e("values"),e("entries")},function(a,b){a.exports=function(a,b){return{value:b,done:!!a}}},function(a,b,c){c(186)("Array")},function(a,b,c){var d=c(2),e=c(9),f=c(4),g=c(23)("species");a.exports=function(a){var b=d[a];f&&b&&!b[g]&&e.f(b,g,{configurable:!0,get:function(){return this}})}},function(a,b,d){var e=d(2),f=d(80),g=d(9).f,h=d(48).f,i=d(128),j=d(188),k=e.RegExp,l=k,m=k.prototype,n=/a/g,o=/a/g,p=new k(n)!==n;if(d(4)&&(!p||d(5)(function(){return o[d(23)("match")]=!1,k(n)!=n||k(o)==o||"/a/i"!=k(n,"i")}))){k=function RegExp(a,b){var d=this instanceof k,e=i(a),g=b===c;return!d&&e&&a.constructor===k&&g?a:f(p?new l(e&&!g?a.source:a,b):l((e=a instanceof k)?a.source:a,e&&g?j.call(a):b),d?this:m,k)};for(var q=(function(a){a in k||g(k,a,{configurable:!0,get:function(){return l[a]},set:function(b){l[a]=b}})}),r=h(l),s=0;r.length>s;)q(r[s++]);m.constructor=k,k.prototype=m,d(16)(e,"RegExp",k)}d(186)("RegExp")},function(a,b,c){var d=c(10);a.exports=function(){var a=d(this),b="";return a.global&&(b+="g"),a.ignoreCase&&(b+="i"),a.multiline&&(b+="m"),a.unicode&&(b+="u"),a.sticky&&(b+="y"),b}},function(a,b,d){d(190);var e=d(10),f=d(188),g=d(4),h="toString",i=/./[h],j=function(a){d(16)(RegExp.prototype,h,a,!0)};d(5)(function(){return"/a/b"!=i.call({source:"a",flags:"b"})})?j(function toString(){var a=e(this);return"/".concat(a.source,"/","flags"in a?a.flags:!g&&a instanceof RegExp?f.call(a):c)}):i.name!=h&&j(function toString(){return i.call(this)})},function(a,b,c){c(4)&&"g"!=/./g.flags&&c(9).f(RegExp.prototype,"flags",{configurable:!0,get:c(188)})},function(a,b,d){d(192)("match",1,function(a,b,d){return[function match(d){var e=a(this),f=d==c?c:d[b];return f!==c?f.call(d,e):new RegExp(d)[b](String(e))},d]})},function(a,b,c){var d=c(8),e=c(16),f=c(5),g=c(33),h=c(23);a.exports=function(a,b,c){var i=h(a),j=c(g,i,""[a]),k=j[0],l=j[1];f(function(){var b={};return b[i]=function(){return 7},7!=""[a](b)})&&(e(String.prototype,a,k),d(RegExp.prototype,i,2==b?function(a,b){return l.call(a,this,b)}:function(a){return l.call(a,this)}))}},function(a,b,d){d(192)("replace",2,function(a,b,d){return[function replace(e,f){var g=a(this),h=e==c?c:e[b];return h!==c?h.call(e,g,f):d.call(String(g),e,f)},d]})},function(a,b,d){d(192)("search",1,function(a,b,d){return[function search(d){var e=a(this),f=d==c?c:d[b];return f!==c?f.call(d,e):new RegExp(d)[b](String(e))},d]})},function(a,b,d){d(192)("split",2,function(a,b,e){var f=d(128),g=e,h=[].push,i="split",j="length",k="lastIndex";if("c"=="abbc"[i](/(b)*/)[1]||4!="test"[i](/(?:)/,-1)[j]||2!="ab"[i](/(?:ab)*/)[j]||4!="."[i](/(.?)(.?)/)[j]||"."[i](/()()/)[j]>1||""[i](/.?/)[j]){var l=/()??/.exec("")[1]===c;e=function(a,b){var d=String(this);if(a===c&&0===b)return[];if(!f(a))return g.call(d,a,b);var e,i,m,n,o,p=[],q=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),r=0,s=b===c?4294967295:b>>>0,t=new RegExp(a.source,q+"g");for(l||(e=new RegExp("^"+t.source+"$(?!\\s)",q));(i=t.exec(d))&&(m=i.index+i[0][j],!(m>r&&(p.push(d.slice(r,i.index)),!l&&i[j]>1&&i[0].replace(e,function(){for(o=1;o<arguments[j]-2;o++)arguments[o]===c&&(i[o]=c)}),i[j]>1&&i.index<d[j]&&h.apply(p,i.slice(1)),n=i[0][j],r=m,p[j]>=s)));)t[k]===i.index&&t[k]++;return r===d[j]?!n&&t.test("")||p.push(""):p.push(d.slice(r)),p[j]>s?p.slice(0,s):p}}else"0"[i](c,0)[j]&&(e=function(a,b){return a===c&&0===b?[]:g.call(this,a,b)});return[function split(d,f){var g=a(this),h=d==c?c:d[b];return h!==c?h.call(d,g,f):e.call(String(g),d,f)},e]})},function(a,b,d){var e,f,g,h=d(26),i=d(2),j=d(18),k=d(73),l=d(6),m=d(11),n=d(19),o=d(197),p=d(198),q=d(199),r=d(200).set,s=d(201)(),t="Promise",u=i.TypeError,v=i.process,w=i[t],v=i.process,x="process"==k(v),y=function(){},z=!!function(){try{var a=w.resolve(1),b=(a.constructor={})[d(23)("species")]=function(a){a(y,y)};return(x||"function"==typeof PromiseRejectionEvent)&&a.then(y)instanceof b}catch(c){}}(),A=function(a,b){return a===b||a===w&&b===g},B=function(a){var b;return!(!m(a)||"function"!=typeof(b=a.then))&&b},C=function(a){return A(w,a)?new D(a):new f(a)},D=f=function(a){var b,d;this.promise=new a(function(a,e){if(b!==c||d!==c)throw u("Bad Promise constructor");b=a,d=e}),this.resolve=n(b),this.reject=n(d)},E=function(a){try{a()}catch(b){return{error:b}}},F=function(a,b){if(!a._n){a._n=!0;var c=a._c;s(function(){for(var d=a._v,e=1==a._s,f=0,g=function(b){var c,f,g=e?b.ok:b.fail,h=b.resolve,i=b.reject,j=b.domain;try{g?(e||(2==a._h&&I(a),a._h=1),g===!0?c=d:(j&&j.enter(),c=g(d),j&&j.exit()),c===b.promise?i(u("Promise-chain cycle")):(f=B(c))?f.call(c,h,i):h(c)):i(d)}catch(k){i(k)}};c.length>f;)g(c[f++]);a._c=[],a._n=!1,b&&!a._h&&G(a)})}},G=function(a){r.call(i,function(){var b,d,e,f=a._v;if(H(a)&&(b=E(function(){x?v.emit("unhandledRejection",f,a):(d=i.onunhandledrejection)?d({promise:a,reason:f}):(e=i.console)&&e.error&&e.error("Unhandled promise rejection",f)}),a._h=x||H(a)?2:1),a._a=c,b)throw b.error})},H=function(a){if(1==a._h)return!1;for(var b,c=a._a||a._c,d=0;c.length>d;)if(b=c[d++],b.fail||!H(b.promise))return!1;return!0},I=function(a){r.call(i,function(){var b;x?v.emit("rejectionHandled",a):(b=i.onrejectionhandled)&&b({promise:a,reason:a._v})})},J=function(a){var b=this;b._d||(b._d=!0,b=b._w||b,b._v=a,b._s=2,b._a||(b._a=b._c.slice()),F(b,!0))},K=function(a){var b,c=this;if(!c._d){c._d=!0,c=c._w||c;try{if(c===a)throw u("Promise can't be resolved itself");(b=B(a))?s(function(){var d={_w:c,_d:!1};try{b.call(a,j(K,d,1),j(J,d,1))}catch(e){J.call(d,e)}}):(c._v=a,c._s=1,F(c,!1))}catch(d){J.call({_w:c,_d:!1},d)}}};z||(w=function Promise(a){o(this,w,t,"_h"),n(a),e.call(this);try{a(j(K,this,1),j(J,this,1))}catch(b){J.call(this,b)}},e=function Promise(a){this._c=[],this._a=c,this._s=0,this._d=!1,this._v=c,this._h=0,this._n=!1},e.prototype=d(202)(w.prototype,{then:function then(a,b){var d=C(q(this,w));return d.ok="function"!=typeof a||a,d.fail="function"==typeof b&&b,d.domain=x?v.domain:c,this._c.push(d),this._a&&this._a.push(d),this._s&&F(this,!1),d.promise},"catch":function(a){return this.then(c,a)}}),D=function(){var a=new e;this.promise=a,this.resolve=j(K,a,1),this.reject=j(J,a,1)}),l(l.G+l.W+l.F*!z,{Promise:w}),d(22)(w,t),d(186)(t),g=d(7)[t],l(l.S+l.F*!z,t,{reject:function reject(a){var b=C(this),c=b.reject;return c(a),b.promise}}),l(l.S+l.F*(h||!z),t,{resolve:function resolve(a){if(a instanceof w&&A(a.constructor,this))return a;var b=C(this),c=b.resolve;return c(a),b.promise}}),l(l.S+l.F*!(z&&d(157)(function(a){w.all(a)["catch"](y)})),t,{all:function all(a){var b=this,d=C(b),e=d.resolve,f=d.reject,g=E(function(){var d=[],g=0,h=1;p(a,!1,function(a){var i=g++,j=!1;d.push(c),h++,b.resolve(a).then(function(a){j||(j=!0,d[i]=a,--h||e(d))},f)}),--h||e(d)});return g&&f(g.error),d.promise},race:function race(a){var b=this,c=C(b),d=c.reject,e=E(function(){p(a,!1,function(a){b.resolve(a).then(c.resolve,d)})});return e&&d(e.error),c.promise}})},function(a,b){a.exports=function(a,b,d,e){if(!(a instanceof b)||e!==c&&e in a)throw TypeError(d+": incorrect invocation!");return a}},function(a,b,c){var d=c(18),e=c(153),f=c(154),g=c(10),h=c(35),i=c(156),j={},k={},b=a.exports=function(a,b,c,l,m){var n,o,p,q,r=m?function(){return a}:i(a),s=d(c,l,b?2:1),t=0;if("function"!=typeof r)throw TypeError(a+" is not iterable!");if(f(r)){for(n=h(a.length);n>t;t++)if(q=b?s(g(o=a[t])[0],o[1]):s(a[t]),q===j||q===k)return q}else for(p=r.call(a);!(o=p.next()).done;)if(q=e(p,s,o.value,b),q===j||q===k)return q};b.BREAK=j,b.RETURN=k},function(a,b,d){var e=d(10),f=d(19),g=d(23)("species");a.exports=function(a,b){var d,h=e(a).constructor;return h===c||(d=e(h)[g])==c?b:f(d)}},function(a,b,c){var d,e,f,g=c(18),h=c(76),i=c(46),j=c(13),k=c(2),l=k.process,m=k.setImmediate,n=k.clearImmediate,o=k.MessageChannel,p=0,q={},r="onreadystatechange",s=function(){var a=+this;if(q.hasOwnProperty(a)){var b=q[a];delete q[a],b()}},t=function(a){s.call(a.data)};m&&n||(m=function setImmediate(a){for(var b=[],c=1;arguments.length>c;)b.push(arguments[c++]);return q[++p]=function(){h("function"==typeof a?a:Function(a),b)},d(p),p},n=function clearImmediate(a){delete q[a]},"process"==c(32)(l)?d=function(a){l.nextTick(g(s,a,1))}:o?(e=new o,f=e.port2,e.port1.onmessage=t,d=g(f.postMessage,f,1)):k.addEventListener&&"function"==typeof postMessage&&!k.importScripts?(d=function(a){k.postMessage(a+"","*")},k.addEventListener("message",t,!1)):d=r in j("script")?function(a){i.appendChild(j("script"))[r]=function(){i.removeChild(this),s.call(a)}}:function(a){setTimeout(g(s,a,1),0)}),a.exports={set:m,clear:n}},function(a,b,d){var e=d(2),f=d(200).set,g=e.MutationObserver||e.WebKitMutationObserver,h=e.process,i=e.Promise,j="process"==d(32)(h);a.exports=function(){var a,b,d,k=function(){var e,f;for(j&&(e=h.domain)&&e.exit();a;){f=a.fn,a=a.next;try{f()}catch(g){throw a?d():b=c,g}}b=c,e&&e.enter()};if(j)d=function(){h.nextTick(k)};else if(g){var l=!0,m=document.createTextNode("");new g(k).observe(m,{characterData:!0}),d=function(){m.data=l=!l}}else if(i&&i.resolve){var n=i.resolve();d=function(){n.then(k)}}else d=function(){f.call(e,k)};return function(e){var f={fn:e,next:c};b&&(b.next=f),a||(a=f,d()),b=f}}},function(a,b,c){var d=c(16);a.exports=function(a,b,c){for(var e in b)d(a,e,b[e],c);return a}},function(a,b,d){var e=d(204);a.exports=d(205)("Map",function(a){return function Map(){return a(this,arguments.length>0?arguments[0]:c)}},{get:function get(a){var b=e.getEntry(this,a);return b&&b.v},set:function set(a,b){return e.def(this,0===a?0:a,b)}},e,!0)},function(a,b,d){var e=d(9).f,f=d(44),g=d(202),h=d(18),i=d(197),j=d(33),k=d(198),l=d(134),m=d(184),n=d(186),o=d(4),p=d(20).fastKey,q=o?"_s":"size",r=function(a,b){var c,d=p(b);if("F"!==d)return a._i[d];for(c=a._f;c;c=c.n)if(c.k==b)return c};a.exports={getConstructor:function(a,b,d,l){var m=a(function(a,e){i(a,m,b,"_i"),a._i=f(null),a._f=c,a._l=c,a[q]=0,e!=c&&k(e,d,a[l],a)});return g(m.prototype,{clear:function clear(){for(var a=this,b=a._i,d=a._f;d;d=d.n)d.r=!0,d.p&&(d.p=d.p.n=c),delete b[d.i];a._f=a._l=c,a[q]=0},"delete":function(a){var b=this,c=r(b,a);if(c){var d=c.n,e=c.p;delete b._i[c.i],c.r=!0,e&&(e.n=d),d&&(d.p=e),b._f==c&&(b._f=d),b._l==c&&(b._l=e),b[q]--}return!!c},forEach:function forEach(a){i(this,m,"forEach");for(var b,d=h(a,arguments.length>1?arguments[1]:c,3);b=b?b.n:this._f;)for(d(b.v,b.k,this);b&&b.r;)b=b.p},has:function has(a){return!!r(this,a)}}),o&&e(m.prototype,"size",{get:function(){return j(this[q])}}),m},def:function(a,b,d){var e,f,g=r(a,b);return g?g.v=d:(a._l=g={i:f=p(b,!0),k:b,v:d,p:e=a._l,n:c,r:!1},a._f||(a._f=g),e&&(e.n=g),a[q]++,"F"!==f&&(a._i[f]=g)),a},getEntry:r,setStrong:function(a,b,d){l(a,b,function(a,b){this._t=a,this._k=b,this._l=c},function(){for(var a=this,b=a._k,d=a._l;d&&d.r;)d=d.p;return a._t&&(a._l=d=d?d.n:a._t._f)?"keys"==b?m(0,d.k):"values"==b?m(0,d.v):m(0,[d.k,d.v]):(a._t=c,m(1))},d?"entries":"values",!d,!0),n(b)}}},function(a,b,d){var e=d(2),f=d(6),g=d(16),h=d(202),i=d(20),j=d(198),k=d(197),l=d(11),m=d(5),n=d(157),o=d(22),p=d(80);a.exports=function(a,b,d,q,r,s){var t=e[a],u=t,v=r?"set":"add",w=u&&u.prototype,x={},y=function(a){var b=w[a];g(w,a,"delete"==a?function(a){return!(s&&!l(a))&&b.call(this,0===a?0:a)}:"has"==a?function has(a){return!(s&&!l(a))&&b.call(this,0===a?0:a)}:"get"==a?function get(a){return s&&!l(a)?c:b.call(this,0===a?0:a)}:"add"==a?function add(a){return b.call(this,0===a?0:a),this}:function set(a,c){return b.call(this,0===a?0:a,c),this})};if("function"==typeof u&&(s||w.forEach&&!m(function(){(new u).entries().next()}))){var z=new u,A=z[v](s?{}:-0,1)!=z,B=m(function(){z.has(1)}),C=n(function(a){new u(a)}),D=!s&&m(function(){for(var a=new u,b=5;b--;)a[v](b,b);return!a.has(-0)});C||(u=b(function(b,d){k(b,u,a);var e=p(new t,b,u);return d!=c&&j(d,r,e[v],e),e}),u.prototype=w,w.constructor=u),(B||D)&&(y("delete"),y("has"),r&&y("get")),(D||A)&&y(v),s&&w.clear&&delete w.clear}else u=q.getConstructor(b,a,r,v),h(u.prototype,d),i.NEED=!0;return o(u,a),x[a]=u,f(f.G+f.W+f.F*(u!=t),x),s||q.setStrong(u,a,r),u}},function(a,b,d){var e=d(204);a.exports=d(205)("Set",function(a){return function Set(){return a(this,arguments.length>0?arguments[0]:c)}},{add:function add(a){return e.def(this,a=0===a?0:a,a)}},e)},function(a,b,d){var e,f=d(164)(0),g=d(16),h=d(20),i=d(67),j=d(208),k=d(11),l=h.getWeak,m=Object.isExtensible,n=j.ufstore,o={},p=function(a){return function WeakMap(){return a(this,arguments.length>0?arguments[0]:c)}},q={get:function get(a){if(k(a)){var b=l(a);return b===!0?n(this).get(a):b?b[this._i]:c}},set:function set(a,b){return j.def(this,a,b)}},r=a.exports=d(205)("WeakMap",p,q,j,!0,!0);7!=(new r).set((Object.freeze||Object)(o),7).get(o)&&(e=j.getConstructor(p),i(e.prototype,q),h.NEED=!0,f(["delete","has","get","set"],function(a){var b=r.prototype,c=b[a];g(b,a,function(b,d){if(k(b)&&!m(b)){this._f||(this._f=new e);var f=this._f[a](b,d);return"set"==a?this:f}return c.call(this,b,d)})}))},function(a,b,d){var e=d(202),f=d(20).getWeak,g=d(10),h=d(11),i=d(197),j=d(198),k=d(164),l=d(3),m=k(5),n=k(6),o=0,p=function(a){return a._l||(a._l=new q)},q=function(){this.a=[]},r=function(a,b){return m(a.a,function(a){return a[0]===b})};q.prototype={get:function(a){var b=r(this,a);if(b)return b[1]},has:function(a){return!!r(this,a)},set:function(a,b){var c=r(this,a);c?c[1]=b:this.a.push([a,b])},"delete":function(a){var b=n(this.a,function(b){return b[0]===a});return~b&&this.a.splice(b,1),!!~b}},a.exports={getConstructor:function(a,b,d,g){var k=a(function(a,e){i(a,k,b,"_i"),a._i=o++,a._l=c,e!=c&&j(e,d,a[g],a)});return e(k.prototype,{"delete":function(a){if(!h(a))return!1;var b=f(a);return b===!0?p(this)["delete"](a):b&&l(b,this._i)&&delete b[this._i]},has:function has(a){if(!h(a))return!1;var b=f(a);return b===!0?p(this).has(a):b&&l(b,this._i)}}),k},def:function(a,b,c){var d=f(g(b),!0);return d===!0?p(a).set(b,c):d[a._i]=c,a},ufstore:p}},function(a,b,d){var e=d(208);d(205)("WeakSet",function(a){return function WeakSet(){return a(this,arguments.length>0?arguments[0]:c)}},{add:function add(a){return e.def(this,a,!0)}},e,!1,!0)},function(a,b,c){var d=c(6),e=c(19),f=c(10),g=(c(2).Reflect||{}).apply,h=Function.apply;d(d.S+d.F*!c(5)(function(){g(function(){})}),"Reflect",{apply:function apply(a,b,c){var d=e(a),i=f(c);return g?g(d,b,i):h.call(d,b,i)}})},function(a,b,c){var d=c(6),e=c(44),f=c(19),g=c(10),h=c(11),i=c(5),j=c(75),k=(c(2).Reflect||{}).construct,l=i(function(){function F(){}return!(k(function(){},[],F)instanceof F)}),m=!i(function(){k(function(){})});d(d.S+d.F*(l||m),"Reflect",{construct:function construct(a,b){f(a),g(b);var c=arguments.length<3?a:f(arguments[2]);if(m&&!l)return k(a,b,c);if(a==c){switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],b[2]);case 4:return new a(b[0],b[1],b[2],b[3])}var d=[null];return d.push.apply(d,b),new(j.apply(a,d))}var i=c.prototype,n=e(h(i)?i:Object.prototype),o=Function.apply.call(a,n,b);return h(o)?o:n}})},function(a,b,c){var d=c(9),e=c(6),f=c(10),g=c(14);e(e.S+e.F*c(5)(function(){Reflect.defineProperty(d.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function defineProperty(a,b,c){f(a),b=g(b,!0),f(c);try{return d.f(a,b,c),!0}catch(e){return!1}}})},function(a,b,c){var d=c(6),e=c(49).f,f=c(10);d(d.S,"Reflect",{deleteProperty:function deleteProperty(a,b){var c=e(f(a),b);return!(c&&!c.configurable)&&delete a[b]}})},function(a,b,d){var e=d(6),f=d(10),g=function(a){this._t=f(a),this._i=0;var b,c=this._k=[];for(b in a)c.push(b)};d(136)(g,"Object",function(){var a,b=this,d=b._k;do if(b._i>=d.length)return{value:c,done:!0};while(!((a=d[b._i++])in b._t));return{value:a,done:!1}}),e(e.S,"Reflect",{enumerate:function enumerate(a){return new g(a)}})},function(a,b,d){function get(a,b){var d,h,k=arguments.length<3?a:arguments[2];return j(a)===k?a[b]:(d=e.f(a,b))?g(d,"value")?d.value:d.get!==c?d.get.call(k):c:i(h=f(a))?get(h,b,k):void 0}var e=d(49),f=d(57),g=d(3),h=d(6),i=d(11),j=d(10);h(h.S,"Reflect",{get:get})},function(a,b,c){var d=c(49),e=c(6),f=c(10);e(e.S,"Reflect",{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(a,b){return d.f(f(a),b)}})},function(a,b,c){var d=c(6),e=c(57),f=c(10);d(d.S,"Reflect",{getPrototypeOf:function getPrototypeOf(a){return e(f(a))}})},function(a,b,c){var d=c(6);d(d.S,"Reflect",{has:function has(a,b){return b in a}})},function(a,b,c){var d=c(6),e=c(10),f=Object.isExtensible;d(d.S,"Reflect",{isExtensible:function isExtensible(a){return e(a),!f||f(a)}})},function(a,b,c){var d=c(6);d(d.S,"Reflect",{ownKeys:c(221)})},function(a,b,c){var d=c(48),e=c(41),f=c(10),g=c(2).Reflect;a.exports=g&&g.ownKeys||function ownKeys(a){var b=d.f(f(a)),c=e.f;return c?b.concat(c(a)):b}},function(a,b,c){var d=c(6),e=c(10),f=Object.preventExtensions;d(d.S,"Reflect",{preventExtensions:function preventExtensions(a){e(a);try{return f&&f(a),!0}catch(b){return!1}}})},function(a,b,d){function set(a,b,d){var i,m,n=arguments.length<4?a:arguments[3],o=f.f(k(a),b);if(!o){if(l(m=g(a)))return set(m,b,d,n);o=j(0)}return h(o,"value")?!(o.writable===!1||!l(n))&&(i=f.f(n,b)||j(0),i.value=d,e.f(n,b,i),!0):o.set!==c&&(o.set.call(n,d),!0)}var e=d(9),f=d(49),g=d(57),h=d(3),i=d(6),j=d(15),k=d(10),l=d(11);i(i.S,"Reflect",{set:set})},function(a,b,c){var d=c(6),e=c(71);e&&d(d.S,"Reflect",{setPrototypeOf:function setPrototypeOf(a,b){e.check(a,b);try{return e.set(a,b),!0}catch(c){return!1}}})},function(a,b,c){var d=c(6);d(d.S,"Date",{now:function(){return(new Date).getTime()}})},function(a,b,c){var d=c(6),e=c(56),f=c(14);d(d.P+d.F*c(5)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function toJSON(a){var b=e(this),c=f(b);return"number"!=typeof c||isFinite(c)?b.toISOString():null}})},function(a,b,c){var d=c(6),e=c(5),f=Date.prototype.getTime,g=function(a){return a>9?a:"0"+a};d(d.P+d.F*(e(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!e(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function toISOString(){if(!isFinite(f.call(this)))throw RangeError("Invalid time value");var a=this,b=a.getUTCFullYear(),c=a.getUTCMilliseconds(),d=b<0?"-":b>9999?"+":"";return d+("00000"+Math.abs(b)).slice(d?-6:-4)+"-"+g(a.getUTCMonth()+1)+"-"+g(a.getUTCDate())+"T"+g(a.getUTCHours())+":"+g(a.getUTCMinutes())+":"+g(a.getUTCSeconds())+"."+(c>99?c:"0"+g(c))+"Z"}})},function(a,b,c){var d=Date.prototype,e="Invalid Date",f="toString",g=d[f],h=d.getTime;new Date(NaN)+""!=e&&c(16)(d,f,function toString(){var a=h.call(this);return a===a?g.call(this):e})},function(a,b,c){var d=c(23)("toPrimitive"),e=Date.prototype;d in e||c(8)(e,d,c(230))},function(a,b,c){var d=c(10),e=c(14),f="number";a.exports=function(a){if("string"!==a&&a!==f&&"default"!==a)throw TypeError("Incorrect hint");return e(d(this),a!=f)}},function(a,b,d){var e=d(6),f=d(232),g=d(233),h=d(10),i=d(37),j=d(35),k=d(11),l=d(2).ArrayBuffer,m=d(199),n=g.ArrayBuffer,o=g.DataView,p=f.ABV&&l.isView,q=n.prototype.slice,r=f.VIEW,s="ArrayBuffer";e(e.G+e.W+e.F*(l!==n),{ArrayBuffer:n}),e(e.S+e.F*!f.CONSTR,s,{isView:function isView(a){return p&&p(a)||k(a)&&r in a}}),e(e.P+e.U+e.F*d(5)(function(){return!new n(2).slice(1,c).byteLength}),s,{slice:function slice(a,b){if(q!==c&&b===c)return q.call(h(this),a);for(var d=h(this).byteLength,e=i(a,d),f=i(b===c?d:b,d),g=new(m(this,n))(j(f-e)),k=new o(this),l=new o(g),p=0;e<f;)l.setUint8(p++,k.getUint8(e++));return g}}),d(186)(s)},function(a,b,c){for(var d,e=c(2),f=c(8),g=c(17),h=g("typed_array"),i=g("view"),j=!(!e.ArrayBuffer||!e.DataView),k=j,l=0,m=9,n="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<m;)(d=e[n[l++]])?(f(d.prototype,h,!0),f(d.prototype,i,!0)):k=!1;a.exports={ABV:j,CONSTR:k,TYPED:h,VIEW:i}},function(a,b,d){var e=d(2),f=d(4),g=d(26),h=d(232),i=d(8),j=d(202),k=d(5),l=d(197),m=d(36),n=d(35),o=d(48).f,p=d(9).f,q=d(180),r=d(22),s="ArrayBuffer",t="DataView",u="prototype",v="Wrong length!",w="Wrong index!",x=e[s],y=e[t],z=e.Math,A=e.RangeError,B=e.Infinity,C=x,D=z.abs,E=z.pow,F=z.floor,G=z.log,H=z.LN2,I="buffer",J="byteLength",K="byteOffset",L=f?"_b":I,M=f?"_l":J,N=f?"_o":K,O=function(a,b,c){var d,e,f,g=Array(c),h=8*c-b-1,i=(1<<h)-1,j=i>>1,k=23===b?E(2,-24)-E(2,-77):0,l=0,m=a<0||0===a&&1/a<0?1:0;for(a=D(a),a!=a||a===B?(e=a!=a?1:0,d=i):(d=F(G(a)/H),a*(f=E(2,-d))<1&&(d--,f*=2),a+=d+j>=1?k/f:k*E(2,1-j),a*f>=2&&(d++,f/=2),d+j>=i?(e=0,d=i):d+j>=1?(e=(a*f-1)*E(2,b),d+=j):(e=a*E(2,j-1)*E(2,b),d=0));b>=8;g[l++]=255&e,e/=256,b-=8);for(d=d<<b|e,h+=b;h>0;g[l++]=255&d,d/=256,h-=8);return g[--l]|=128*m,g},P=function(a,b,c){var d,e=8*c-b-1,f=(1<<e)-1,g=f>>1,h=e-7,i=c-1,j=a[i--],k=127&j;for(j>>=7;h>0;k=256*k+a[i],i--,h-=8);for(d=k&(1<<-h)-1,k>>=-h,h+=b;h>0;d=256*d+a[i],i--,h-=8);if(0===k)k=1-g;else{if(k===f)return d?NaN:j?-B:B;d+=E(2,b),k-=g}return(j?-1:1)*d*E(2,k-b)},Q=function(a){return a[3]<<24|a[2]<<16|a[1]<<8|a[0]},R=function(a){return[255&a]},S=function(a){return[255&a,a>>8&255]},T=function(a){return[255&a,a>>8&255,a>>16&255,a>>24&255]},U=function(a){return O(a,52,8)},V=function(a){return O(a,23,4)},W=function(a,b,c){p(a[u],b,{get:function(){return this[c]}})},X=function(a,b,c,d){var e=+c,f=m(e);if(e!=f||f<0||f+b>a[M])throw A(w);var g=a[L]._b,h=f+a[N],i=g.slice(h,h+b);return d?i:i.reverse()},Y=function(a,b,c,d,e,f){var g=+c,h=m(g);if(g!=h||h<0||h+b>a[M])throw A(w);for(var i=a[L]._b,j=h+a[N],k=d(+e),l=0;l<b;l++)i[j+l]=k[f?l:b-l-1]},Z=function(a,b){l(a,x,s);var c=+b,d=n(c);if(c!=d)throw A(v);return d};if(h.ABV){if(!k(function(){new x})||!k(function(){new x(.5)})){x=function ArrayBuffer(a){return new C(Z(this,a))};for(var $,_=x[u]=C[u],aa=o(C),ba=0;aa.length>ba;)($=aa[ba++])in x||i(x,$,C[$]);g||(_.constructor=x)}var ca=new y(new x(2)),da=y[u].setInt8;ca.setInt8(0,2147483648),ca.setInt8(1,2147483649),!ca.getInt8(0)&&ca.getInt8(1)||j(y[u],{setInt8:function setInt8(a,b){da.call(this,a,b<<24>>24)},setUint8:function setUint8(a,b){da.call(this,a,b<<24>>24)}},!0)}else x=function ArrayBuffer(a){var b=Z(this,a);this._b=q.call(Array(b),0),this[M]=b},y=function DataView(a,b,d){l(this,y,t),l(a,x,t);var e=a[M],f=m(b);if(f<0||f>e)throw A("Wrong offset!");if(d=d===c?e-f:n(d),f+d>e)throw A(v);this[L]=a,this[N]=f,this[M]=d},f&&(W(x,J,"_l"),W(y,I,"_b"),W(y,J,"_l"),W(y,K,"_o")),j(y[u],{getInt8:function getInt8(a){return X(this,1,a)[0]<<24>>24},getUint8:function getUint8(a){return X(this,1,a)[0]},getInt16:function getInt16(a){var b=X(this,2,a,arguments[1]);return(b[1]<<8|b[0])<<16>>16},getUint16:function getUint16(a){var b=X(this,2,a,arguments[1]);return b[1]<<8|b[0]},getInt32:function getInt32(a){return Q(X(this,4,a,arguments[1]))},getUint32:function getUint32(a){return Q(X(this,4,a,arguments[1]))>>>0},getFloat32:function getFloat32(a){return P(X(this,4,a,arguments[1]),23,4)},getFloat64:function getFloat64(a){return P(X(this,8,a,arguments[1]),52,8)},setInt8:function setInt8(a,b){Y(this,1,a,R,b)},setUint8:function setUint8(a,b){Y(this,1,a,R,b)},setInt16:function setInt16(a,b){Y(this,2,a,S,b,arguments[2])},setUint16:function setUint16(a,b){Y(this,2,a,S,b,arguments[2])},setInt32:function setInt32(a,b){Y(this,4,a,T,b,arguments[2])},setUint32:function setUint32(a,b){Y(this,4,a,T,b,arguments[2])},setFloat32:function setFloat32(a,b){Y(this,4,a,V,b,arguments[2])},setFloat64:function setFloat64(a,b){Y(this,8,a,U,b,arguments[2])}});r(x,s),r(y,t),i(y[u],h.VIEW,!0),b[s]=x,b[t]=y},function(a,b,c){var d=c(6);d(d.G+d.W+d.F*!c(232).ABV,{DataView:c(233).DataView})},function(a,b,c){c(236)("Int8",1,function(a){return function Int8Array(b,c,d){return a(this,b,c,d)}})},function(a,b,d){if(d(4)){var e=d(26),f=d(2),g=d(5),h=d(6),i=d(232),j=d(233),k=d(18),l=d(197),m=d(15),n=d(8),o=d(202),p=d(36),q=d(35),r=d(37),s=d(14),t=d(3),u=d(69),v=d(73),w=d(11),x=d(56),y=d(154),z=d(44),A=d(57),B=d(48).f,C=d(156),D=d(17),E=d(23),F=d(164),G=d(34),H=d(199),I=d(183),J=d(135),K=d(157),L=d(186),M=d(180),N=d(177),O=d(9),P=d(49),Q=O.f,R=P.f,S=f.RangeError,T=f.TypeError,U=f.Uint8Array,V="ArrayBuffer",W="Shared"+V,X="BYTES_PER_ELEMENT",Y="prototype",Z=Array[Y],$=j.ArrayBuffer,_=j.DataView,aa=F(0),ba=F(2),ca=F(3),da=F(4),ea=F(5),fa=F(6),ga=G(!0),ha=G(!1),ia=I.values,ja=I.keys,ka=I.entries,la=Z.lastIndexOf,ma=Z.reduce,na=Z.reduceRight,oa=Z.join,pa=Z.sort,qa=Z.slice,ra=Z.toString,sa=Z.toLocaleString,ta=E("iterator"),ua=E("toStringTag"),va=D("typed_constructor"),wa=D("def_constructor"),xa=i.CONSTR,ya=i.TYPED,za=i.VIEW,Aa="Wrong length!",Ba=F(1,function(a,b){return Ha(H(a,a[wa]),b)}),Ca=g(function(){return 1===new U(new Uint16Array([1]).buffer)[0]}),Da=!!U&&!!U[Y].set&&g(function(){new U(1).set({})}),Ea=function(a,b){if(a===c)throw T(Aa);var d=+a,e=q(a);if(b&&!u(d,e))throw S(Aa);return e},Fa=function(a,b){var c=p(a);if(c<0||c%b)throw S("Wrong offset!");return c},Ga=function(a){if(w(a)&&ya in a)return a;throw T(a+" is not a typed array!")},Ha=function(a,b){if(!(w(a)&&va in a))throw T("It is not a typed array constructor!");return new a(b)},Ia=function(a,b){return Ja(H(a,a[wa]),b)},Ja=function(a,b){for(var c=0,d=b.length,e=Ha(a,d);d>c;)e[c]=b[c++];return e},Ka=function(a,b,c){Q(a,b,{get:function(){return this._d[c]}})},La=function from(a){var b,d,e,f,g,h,i=x(a),j=arguments.length,l=j>1?arguments[1]:c,m=l!==c,n=C(i);if(n!=c&&!y(n)){for(h=n.call(i),e=[],b=0;!(g=h.next()).done;b++)e.push(g.value);i=e}for(m&&j>2&&(l=k(l,arguments[2],2)),b=0,d=q(i.length),f=Ha(this,d);d>b;b++)f[b]=m?l(i[b],b):i[b];return f},Ma=function of(){for(var a=0,b=arguments.length,c=Ha(this,b);b>a;)c[a]=arguments[a++];return c},Na=!!U&&g(function(){sa.call(new U(1))}),Oa=function toLocaleString(){return sa.apply(Na?qa.call(Ga(this)):Ga(this),arguments)},Pa={copyWithin:function copyWithin(a,b){return N.call(Ga(this),a,b,arguments.length>2?arguments[2]:c)},every:function every(a){return da(Ga(this),a,arguments.length>1?arguments[1]:c)},fill:function fill(a){return M.apply(Ga(this),arguments)},filter:function filter(a){return Ia(this,ba(Ga(this),a,arguments.length>1?arguments[1]:c))},find:function find(a){return ea(Ga(this),a,arguments.length>1?arguments[1]:c)},findIndex:function findIndex(a){return fa(Ga(this),a,arguments.length>1?arguments[1]:c)},forEach:function forEach(a){aa(Ga(this),a,arguments.length>1?arguments[1]:c)},indexOf:function indexOf(a){return ha(Ga(this),a,arguments.length>1?arguments[1]:c)},includes:function includes(a){return ga(Ga(this),a,arguments.length>1?arguments[1]:c)},join:function join(a){return oa.apply(Ga(this),arguments)},lastIndexOf:function lastIndexOf(a){
return la.apply(Ga(this),arguments)},map:function map(a){return Ba(Ga(this),a,arguments.length>1?arguments[1]:c)},reduce:function reduce(a){return ma.apply(Ga(this),arguments)},reduceRight:function reduceRight(a){return na.apply(Ga(this),arguments)},reverse:function reverse(){for(var a,b=this,c=Ga(b).length,d=Math.floor(c/2),e=0;e<d;)a=b[e],b[e++]=b[--c],b[c]=a;return b},some:function some(a){return ca(Ga(this),a,arguments.length>1?arguments[1]:c)},sort:function sort(a){return pa.call(Ga(this),a)},subarray:function subarray(a,b){var d=Ga(this),e=d.length,f=r(a,e);return new(H(d,d[wa]))(d.buffer,d.byteOffset+f*d.BYTES_PER_ELEMENT,q((b===c?e:r(b,e))-f))}},Qa=function slice(a,b){return Ia(this,qa.call(Ga(this),a,b))},Ra=function set(a){Ga(this);var b=Fa(arguments[1],1),c=this.length,d=x(a),e=q(d.length),f=0;if(e+b>c)throw S(Aa);for(;f<e;)this[b+f]=d[f++]},Sa={entries:function entries(){return ka.call(Ga(this))},keys:function keys(){return ja.call(Ga(this))},values:function values(){return ia.call(Ga(this))}},Ta=function(a,b){return w(a)&&a[ya]&&"symbol"!=typeof b&&b in a&&String(+b)==String(b)},Ua=function getOwnPropertyDescriptor(a,b){return Ta(a,b=s(b,!0))?m(2,a[b]):R(a,b)},Va=function defineProperty(a,b,c){return!(Ta(a,b=s(b,!0))&&w(c)&&t(c,"value"))||t(c,"get")||t(c,"set")||c.configurable||t(c,"writable")&&!c.writable||t(c,"enumerable")&&!c.enumerable?Q(a,b,c):(a[b]=c.value,a)};xa||(P.f=Ua,O.f=Va),h(h.S+h.F*!xa,"Object",{getOwnPropertyDescriptor:Ua,defineProperty:Va}),g(function(){ra.call({})})&&(ra=sa=function toString(){return oa.call(this)});var Wa=o({},Pa);o(Wa,Sa),n(Wa,ta,Sa.values),o(Wa,{slice:Qa,set:Ra,constructor:function(){},toString:ra,toLocaleString:Oa}),Ka(Wa,"buffer","b"),Ka(Wa,"byteOffset","o"),Ka(Wa,"byteLength","l"),Ka(Wa,"length","e"),Q(Wa,ua,{get:function(){return this[ya]}}),a.exports=function(a,b,d,j){j=!!j;var k=a+(j?"Clamped":"")+"Array",m="Uint8Array"!=k,o="get"+a,p="set"+a,r=f[k],s=r||{},t=r&&A(r),u=!r||!i.ABV,x={},y=r&&r[Y],C=function(a,c){var d=a._d;return d.v[o](c*b+d.o,Ca)},D=function(a,c,d){var e=a._d;j&&(d=(d=Math.round(d))<0?0:d>255?255:255&d),e.v[p](c*b+e.o,d,Ca)},E=function(a,b){Q(a,b,{get:function(){return C(this,b)},set:function(a){return D(this,b,a)},enumerable:!0})};u?(r=d(function(a,d,e,f){l(a,r,k,"_d");var g,h,i,j,m=0,o=0;if(w(d)){if(!(d instanceof $||(j=v(d))==V||j==W))return ya in d?Ja(r,d):La.call(r,d);g=d,o=Fa(e,b);var p=d.byteLength;if(f===c){if(p%b)throw S(Aa);if(h=p-o,h<0)throw S(Aa)}else if(h=q(f)*b,h+o>p)throw S(Aa);i=h/b}else i=Ea(d,!0),h=i*b,g=new $(h);for(n(a,"_d",{b:g,o:o,l:h,e:i,v:new _(g)});m<i;)E(a,m++)}),y=r[Y]=z(Wa),n(y,"constructor",r)):K(function(a){new r(null),new r(a)},!0)||(r=d(function(a,d,e,f){l(a,r,k);var g;return w(d)?d instanceof $||(g=v(d))==V||g==W?f!==c?new s(d,Fa(e,b),f):e!==c?new s(d,Fa(e,b)):new s(d):ya in d?Ja(r,d):La.call(r,d):new s(Ea(d,m))}),aa(t!==Function.prototype?B(s).concat(B(t)):B(s),function(a){a in r||n(r,a,s[a])}),r[Y]=y,e||(y.constructor=r));var F=y[ta],G=!!F&&("values"==F.name||F.name==c),H=Sa.values;n(r,va,!0),n(y,ya,k),n(y,za,!0),n(y,wa,r),(j?new r(1)[ua]==k:ua in y)||Q(y,ua,{get:function(){return k}}),x[k]=r,h(h.G+h.W+h.F*(r!=s),x),h(h.S,k,{BYTES_PER_ELEMENT:b,from:La,of:Ma}),X in y||n(y,X,b),h(h.P,k,Pa),L(k),h(h.P+h.F*Da,k,{set:Ra}),h(h.P+h.F*!G,k,Sa),h(h.P+h.F*(y.toString!=ra),k,{toString:ra}),h(h.P+h.F*g(function(){new r(1).slice()}),k,{slice:Qa}),h(h.P+h.F*(g(function(){return[1,2].toLocaleString()!=new r([1,2]).toLocaleString()})||!g(function(){y.toLocaleString.call([1,2])})),k,{toLocaleString:Oa}),J[k]=G?F:H,e||G||n(y,ta,H)}}else a.exports=function(){}},function(a,b,c){c(236)("Uint8",1,function(a){return function Uint8Array(b,c,d){return a(this,b,c,d)}})},function(a,b,c){c(236)("Uint8",1,function(a){return function Uint8ClampedArray(b,c,d){return a(this,b,c,d)}},!0)},function(a,b,c){c(236)("Int16",2,function(a){return function Int16Array(b,c,d){return a(this,b,c,d)}})},function(a,b,c){c(236)("Uint16",2,function(a){return function Uint16Array(b,c,d){return a(this,b,c,d)}})},function(a,b,c){c(236)("Int32",4,function(a){return function Int32Array(b,c,d){return a(this,b,c,d)}})},function(a,b,c){c(236)("Uint32",4,function(a){return function Uint32Array(b,c,d){return a(this,b,c,d)}})},function(a,b,c){c(236)("Float32",4,function(a){return function Float32Array(b,c,d){return a(this,b,c,d)}})},function(a,b,c){c(236)("Float64",8,function(a){return function Float64Array(b,c,d){return a(this,b,c,d)}})},function(a,b,d){var e=d(6),f=d(34)(!0);e(e.P,"Array",{includes:function includes(a){return f(this,a,arguments.length>1?arguments[1]:c)}}),d(178)("includes")},function(a,b,c){var d=c(6),e=c(125)(!0);d(d.P,"String",{at:function at(a){return e(this,a)}})},function(a,b,d){var e=d(6),f=d(248);e(e.P,"String",{padStart:function padStart(a){return f(this,a,arguments.length>1?arguments[1]:c,!0)}})},function(a,b,d){var e=d(35),f=d(85),g=d(33);a.exports=function(a,b,d,h){var i=String(g(a)),j=i.length,k=d===c?" ":String(d),l=e(b);if(l<=j||""==k)return i;var m=l-j,n=f.call(k,Math.ceil(m/k.length));return n.length>m&&(n=n.slice(0,m)),h?n+i:i+n}},function(a,b,d){var e=d(6),f=d(248);e(e.P,"String",{padEnd:function padEnd(a){return f(this,a,arguments.length>1?arguments[1]:c,!1)}})},function(a,b,c){c(81)("trimLeft",function(a){return function trimLeft(){return a(this,1)}},"trimStart")},function(a,b,c){c(81)("trimRight",function(a){return function trimRight(){return a(this,2)}},"trimEnd")},function(a,b,c){var d=c(6),e=c(33),f=c(35),g=c(128),h=c(188),i=RegExp.prototype,j=function(a,b){this._r=a,this._s=b};c(136)(j,"RegExp String",function next(){var a=this._r.exec(this._s);return{value:a,done:null===a}}),d(d.P,"String",{matchAll:function matchAll(a){if(e(this),!g(a))throw TypeError(a+" is not a regexp!");var b=String(this),c="flags"in i?String(a.flags):h.call(a),d=new RegExp(a.source,~c.indexOf("g")?c:"g"+c);return d.lastIndex=f(a.lastIndex),new j(d,b)}})},function(a,b,c){c(25)("asyncIterator")},function(a,b,c){c(25)("observable")},function(a,b,c){var d=c(6),e=c(221),f=c(30),g=c(49),h=c(155);d(d.S,"Object",{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(a){for(var b,c=f(a),d=g.f,i=e(c),j={},k=0;i.length>k;)h(j,b=i[k++],d(c,b));return j}})},function(a,b,c){var d=c(6),e=c(257)(!1);d(d.S,"Object",{values:function values(a){return e(a)}})},function(a,b,c){var d=c(28),e=c(30),f=c(42).f;a.exports=function(a){return function(b){for(var c,g=e(b),h=d(g),i=h.length,j=0,k=[];i>j;)f.call(g,c=h[j++])&&k.push(a?[c,g[c]]:g[c]);return k}}},function(a,b,c){var d=c(6),e=c(257)(!0);d(d.S,"Object",{entries:function entries(a){return e(a)}})},function(a,b,c){var d=c(6),e=c(56),f=c(19),g=c(9);c(4)&&d(d.P+c(260),"Object",{__defineGetter__:function __defineGetter__(a,b){g.f(e(this),a,{get:f(b),enumerable:!0,configurable:!0})}})},function(a,b,c){a.exports=c(26)||!c(5)(function(){var a=Math.random();__defineSetter__.call(null,a,function(){}),delete c(2)[a]})},function(a,b,c){var d=c(6),e=c(56),f=c(19),g=c(9);c(4)&&d(d.P+c(260),"Object",{__defineSetter__:function __defineSetter__(a,b){g.f(e(this),a,{set:f(b),enumerable:!0,configurable:!0})}})},function(a,b,c){var d=c(6),e=c(56),f=c(14),g=c(57),h=c(49).f;c(4)&&d(d.P+c(260),"Object",{__lookupGetter__:function __lookupGetter__(a){var b,c=e(this),d=f(a,!0);do if(b=h(c,d))return b.get;while(c=g(c))}})},function(a,b,c){var d=c(6),e=c(56),f=c(14),g=c(57),h=c(49).f;c(4)&&d(d.P+c(260),"Object",{__lookupSetter__:function __lookupSetter__(a){var b,c=e(this),d=f(a,!0);do if(b=h(c,d))return b.set;while(c=g(c))}})},function(a,b,c){var d=c(6);d(d.P+d.R,"Map",{toJSON:c(265)("Map")})},function(a,b,c){var d=c(73),e=c(266);a.exports=function(a){return function toJSON(){if(d(this)!=a)throw TypeError(a+"#toJSON isn't generic");return e(this)}}},function(a,b,c){var d=c(198);a.exports=function(a,b){var c=[];return d(a,!1,c.push,c,b),c}},function(a,b,c){var d=c(6);d(d.P+d.R,"Set",{toJSON:c(265)("Set")})},function(a,b,c){var d=c(6);d(d.S,"System",{global:c(2)})},function(a,b,c){var d=c(6),e=c(32);d(d.S,"Error",{isError:function isError(a){return"Error"===e(a)}})},function(a,b,c){var d=c(6);d(d.S,"Math",{iaddh:function iaddh(a,b,c,d){var e=a>>>0,f=b>>>0,g=c>>>0;return f+(d>>>0)+((e&g|(e|g)&~(e+g>>>0))>>>31)|0}})},function(a,b,c){var d=c(6);d(d.S,"Math",{isubh:function isubh(a,b,c,d){var e=a>>>0,f=b>>>0,g=c>>>0;return f-(d>>>0)-((~e&g|~(e^g)&e-g>>>0)>>>31)|0}})},function(a,b,c){var d=c(6);d(d.S,"Math",{imulh:function imulh(a,b){var c=65535,d=+a,e=+b,f=d&c,g=e&c,h=d>>16,i=e>>16,j=(h*g>>>0)+(f*g>>>16);return h*i+(j>>16)+((f*i>>>0)+(j&c)>>16)}})},function(a,b,c){var d=c(6);d(d.S,"Math",{umulh:function umulh(a,b){var c=65535,d=+a,e=+b,f=d&c,g=e&c,h=d>>>16,i=e>>>16,j=(h*g>>>0)+(f*g>>>16);return h*i+(j>>>16)+((f*i>>>0)+(j&c)>>>16)}})},function(a,b,c){var d=c(275),e=c(10),f=d.key,g=d.set;d.exp({defineMetadata:function defineMetadata(a,b,c,d){g(a,b,e(c),f(d))}})},function(a,b,d){var e=d(203),f=d(6),g=d(21)("metadata"),h=g.store||(g.store=new(d(207))),i=function(a,b,d){var f=h.get(a);if(!f){if(!d)return c;h.set(a,f=new e)}var g=f.get(b);if(!g){if(!d)return c;f.set(b,g=new e)}return g},j=function(a,b,d){var e=i(b,d,!1);return e!==c&&e.has(a)},k=function(a,b,d){var e=i(b,d,!1);return e===c?c:e.get(a)},l=function(a,b,c,d){i(c,d,!0).set(a,b)},m=function(a,b){var c=i(a,b,!1),d=[];return c&&c.forEach(function(a,b){d.push(b)}),d},n=function(a){return a===c||"symbol"==typeof a?a:String(a)},o=function(a){f(f.S,"Reflect",a)};a.exports={store:h,map:i,has:j,get:k,set:l,keys:m,key:n,exp:o}},function(a,b,d){var e=d(275),f=d(10),g=e.key,h=e.map,i=e.store;e.exp({deleteMetadata:function deleteMetadata(a,b){var d=arguments.length<3?c:g(arguments[2]),e=h(f(b),d,!1);if(e===c||!e["delete"](a))return!1;if(e.size)return!0;var j=i.get(b);return j["delete"](d),!!j.size||i["delete"](b)}})},function(a,b,d){var e=d(275),f=d(10),g=d(57),h=e.has,i=e.get,j=e.key,k=function(a,b,d){var e=h(a,b,d);if(e)return i(a,b,d);var f=g(b);return null!==f?k(a,f,d):c};e.exp({getMetadata:function getMetadata(a,b){return k(a,f(b),arguments.length<3?c:j(arguments[2]))}})},function(a,b,d){var e=d(206),f=d(266),g=d(275),h=d(10),i=d(57),j=g.keys,k=g.key,l=function(a,b){var c=j(a,b),d=i(a);if(null===d)return c;var g=l(d,b);return g.length?c.length?f(new e(c.concat(g))):g:c};g.exp({getMetadataKeys:function getMetadataKeys(a){return l(h(a),arguments.length<2?c:k(arguments[1]))}})},function(a,b,d){var e=d(275),f=d(10),g=e.get,h=e.key;e.exp({getOwnMetadata:function getOwnMetadata(a,b){return g(a,f(b),arguments.length<3?c:h(arguments[2]))}})},function(a,b,d){var e=d(275),f=d(10),g=e.keys,h=e.key;e.exp({getOwnMetadataKeys:function getOwnMetadataKeys(a){return g(f(a),arguments.length<2?c:h(arguments[1]))}})},function(a,b,d){var e=d(275),f=d(10),g=d(57),h=e.has,i=e.key,j=function(a,b,c){var d=h(a,b,c);if(d)return!0;var e=g(b);return null!==e&&j(a,e,c)};e.exp({hasMetadata:function hasMetadata(a,b){return j(a,f(b),arguments.length<3?c:i(arguments[2]))}})},function(a,b,d){var e=d(275),f=d(10),g=e.has,h=e.key;e.exp({hasOwnMetadata:function hasOwnMetadata(a,b){return g(a,f(b),arguments.length<3?c:h(arguments[2]))}})},function(a,b,d){var e=d(275),f=d(10),g=d(19),h=e.key,i=e.set;e.exp({metadata:function metadata(a,b){return function decorator(d,e){i(a,b,(e!==c?f:g)(d),h(e))}}})},function(a,b,c){var d=c(6),e=c(201)(),f=c(2).process,g="process"==c(32)(f);d(d.G,{asap:function asap(a){var b=g&&f.domain;e(b?b.bind(a):a)}})},function(a,b,d){var e=d(6),f=d(2),g=d(7),h=d(201)(),i=d(23)("observable"),j=d(19),k=d(10),l=d(197),m=d(202),n=d(8),o=d(198),p=o.RETURN,q=function(a){return null==a?c:j(a)},r=function(a){var b=a._c;b&&(a._c=c,b())},s=function(a){return a._o===c},t=function(a){s(a)||(a._o=c,r(a))},u=function(a,b){k(a),this._c=c,this._o=a,a=new v(this);try{var d=b(a),e=d;null!=d&&("function"==typeof d.unsubscribe?d=function(){e.unsubscribe()}:j(d),this._c=d)}catch(f){return void a.error(f)}s(this)&&r(this)};u.prototype=m({},{unsubscribe:function unsubscribe(){t(this)}});var v=function(a){this._s=a};v.prototype=m({},{next:function next(a){var b=this._s;if(!s(b)){var c=b._o;try{var d=q(c.next);if(d)return d.call(c,a)}catch(e){try{t(b)}finally{throw e}}}},error:function error(a){var b=this._s;if(s(b))throw a;var d=b._o;b._o=c;try{var e=q(d.error);if(!e)throw a;a=e.call(d,a)}catch(f){try{r(b)}finally{throw f}}return r(b),a},complete:function complete(a){var b=this._s;if(!s(b)){var d=b._o;b._o=c;try{var e=q(d.complete);a=e?e.call(d,a):c}catch(f){try{r(b)}finally{throw f}}return r(b),a}}});var w=function Observable(a){l(this,w,"Observable","_f")._f=j(a)};m(w.prototype,{subscribe:function subscribe(a){return new u(a,this._f)},forEach:function forEach(a){var b=this;return new(g.Promise||f.Promise)(function(c,d){j(a);var e=b.subscribe({next:function(b){try{return a(b)}catch(c){d(c),e.unsubscribe()}},error:d,complete:c})})}}),m(w,{from:function from(a){var b="function"==typeof this?this:w,c=q(k(a)[i]);if(c){var d=k(c.call(a));return d.constructor===b?d:new b(function(a){return d.subscribe(a)})}return new b(function(b){var c=!1;return h(function(){if(!c){try{if(o(a,!1,function(a){if(b.next(a),c)return p})===p)return}catch(d){if(c)throw d;return void b.error(d)}b.complete()}}),function(){c=!0}})},of:function of(){for(var a=0,b=arguments.length,c=Array(b);a<b;)c[a]=arguments[a++];return new("function"==typeof this?this:w)(function(a){var b=!1;return h(function(){if(!b){for(var d=0;d<c.length;++d)if(a.next(c[d]),b)return;a.complete()}}),function(){b=!0}})}}),n(w.prototype,i,function(){return this}),e(e.G,{Observable:w}),d(186)("Observable")},function(a,b,c){var d=c(6),e=c(200);d(d.G+d.B,{setImmediate:e.set,clearImmediate:e.clear})},function(a,b,c){for(var d=c(183),e=c(16),f=c(2),g=c(8),h=c(135),i=c(23),j=i("iterator"),k=i("toStringTag"),l=h.Array,m=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],n=0;n<5;n++){var o,p=m[n],q=f[p],r=q&&q.prototype;if(r){r[j]||g(r,j,l),r[k]||g(r,k,p),h[p]=l;for(o in d)r[o]||e(r,o,d[o],!0)}}},function(a,b,c){var d=c(2),e=c(6),f=c(76),g=c(289),h=d.navigator,i=!!h&&/MSIE .\./.test(h.userAgent),j=function(a){return i?function(b,c){return a(f(g,[].slice.call(arguments,2),"function"==typeof b?b:Function(b)),c)}:a};e(e.G+e.B+e.F*i,{setTimeout:j(d.setTimeout),setInterval:j(d.setInterval)})},function(a,b,c){var d=c(290),e=c(76),f=c(19);a.exports=function(){for(var a=f(this),b=arguments.length,c=Array(b),g=0,h=d._,i=!1;b>g;)(c[g]=arguments[g++])===h&&(i=!0);return function(){var d,f=this,g=arguments.length,j=0,k=0;if(!i&&!g)return e(a,c,f);if(d=c.slice(),i)for(;b>j;j++)d[j]===h&&(d[j]=arguments[k++]);for(;g>k;)d.push(arguments[k++]);return e(a,d,f)}}},function(a,b,c){a.exports=c(2)}]),"undefined"!=typeof module&&module.exports?module.exports=a:"function"==typeof define&&define.amd?define(function(){return a}):b.core=a}(1,1);
//# sourceMappingURL=shim.min.js.map
    /*! msal v1.3.4 2020-08-06 */
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():false?define("Msal",[],t):"object"==typeof exports?exports.Msal=t():e.Msal=t()}(window,function(){return o={},n.m=r=[function(e,t,r){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function n(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a}function h(e){return this instanceof h?(this.v=e,this):new h(e)}t.__extends=function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},t.__assign=function(){return t.__assign=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.__assign.apply(this,arguments)},t.__rest=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},t.__decorate=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;0<=s;s--)(n=e[s])&&(a=(i<3?n(a):3<i?n(t,r,a):n(t,r))||a);return 3<i&&a&&Object.defineProperty(t,r,a),a},t.__param=function(r,o){return function(e,t){o(e,t,r)}},t.__metadata=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},t.__awaiter=function(i,a,s,c){return new(s=s||Promise)(function(e,t){function r(e){try{n(c.next(e))}catch(e){t(e)}}function o(e){try{n(c.throw(e))}catch(e){t(e)}}function n(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(r,o)}n((c=c.apply(i,a||[])).next())})},t.__generator=function(r,o){var n,i,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(a=2&t[0]?i.return:t[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,t[1])).done)return a;switch(i=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,i=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(r,s)}catch(e){t=[6,e],i=0}finally{n=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}},t.__exportStar=function(e,t){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])},t.__values=i,t.__read=n,t.__spread=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e},t.__spreadArrays=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var o=Array(e),n=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,n++)o[n]=i[a];return o},t.__await=h,t.__asyncGenerator=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),a=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(o){i[o]&&(n[o]=function(r){return new Promise(function(e,t){1<a.push([o,r,e,t])||s(o,r)})})}function s(e,t){try{!function(e){e.value instanceof h?Promise.resolve(e.value.v).then(c,u):l(a[0][2],e)}(i[e](t))}catch(e){l(a[0][3],e)}}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}},t.__asyncDelegator=function(o){var e,n;return e={},t("next"),t("throw",function(e){throw e}),t("return"),e[Symbol.iterator]=function(){return this},e;function t(t,r){e[t]=o[t]?function(e){return(n=!n)?{value:h(o[t](e)),done:"return"===t}:r?r(e):e}:r}},t.__asyncValues=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=i(n),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=n[o]&&function(r){return new Promise(function(e,t){(function(t,e,r,o){Promise.resolve(o).then(function(e){t({value:e,done:r})},e)})(e,t,(r=n[o](r)).done,r.value)})}}},t.__makeTemplateObject=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},t.__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},t.__importDefault=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o,n,i,a,s,c,u=(Object.defineProperty(l,"libraryName",{get:function(){return"Msal.js"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"claims",{get:function(){return"claims"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"clientId",{get:function(){return"clientId"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"adalIdToken",{get:function(){return"adal.idtoken"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"cachePrefix",{get:function(){return"msal"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"scopes",{get:function(){return"scopes"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"no_account",{get:function(){return"NO_ACCOUNT"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"upn",{get:function(){return"upn"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"domain_hint",{get:function(){return"domain_hint"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"prompt_select_account",{get:function(){return"&prompt=select_account"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"prompt_none",{get:function(){return"&prompt=none"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"prompt",{get:function(){return"prompt"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"response_mode_fragment",{get:function(){return"&response_mode=fragment"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"resourceDelimiter",{get:function(){return"|"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"cacheDelimiter",{get:function(){return"."},enumerable:!0,configurable:!0}),Object.defineProperty(l,"popUpWidth",{get:function(){return this._popUpWidth},set:function(e){this._popUpWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(l,"popUpHeight",{get:function(){return this._popUpHeight},set:function(e){this._popUpHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(l,"login",{get:function(){return"LOGIN"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"renewToken",{get:function(){return"RENEW_TOKEN"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"unknown",{get:function(){return"UNKNOWN"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"ADFS",{get:function(){return"adfs"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"homeAccountIdentifier",{get:function(){return"homeAccountIdentifier"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"common",{get:function(){return"common"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"openidScope",{get:function(){return"openid"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"profileScope",{get:function(){return"profile"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"interactionTypeRedirect",{get:function(){return"redirectInteraction"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"interactionTypePopup",{get:function(){return"popupInteraction"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"interactionTypeSilent",{get:function(){return"silentInteraction"},enumerable:!0,configurable:!0}),Object.defineProperty(l,"inProgress",{get:function(){return"inProgress"},enumerable:!0,configurable:!0}),l._popUpWidth=483,l._popUpHeight=600,l);function l(){}t.Constants=u,(o=t.ServerHashParamKeys||(t.ServerHashParamKeys={})).SCOPE="scope",o.STATE="state",o.ERROR="error",o.ERROR_DESCRIPTION="error_description",o.ACCESS_TOKEN="access_token",o.ID_TOKEN="id_token",o.EXPIRES_IN="expires_in",o.SESSION_STATE="session_state",o.CLIENT_INFO="client_info",(n=t.TemporaryCacheKeys||(t.TemporaryCacheKeys={})).AUTHORITY="authority",n.ACQUIRE_TOKEN_ACCOUNT="acquireTokenAccount",n.SESSION_STATE="session.state",n.STATE_LOGIN="state.login",n.STATE_ACQ_TOKEN="state.acquireToken",n.STATE_RENEW="state.renew",n.NONCE_IDTOKEN="nonce.idtoken",n.LOGIN_REQUEST="login.request",n.RENEW_STATUS="token.renew.status",n.URL_HASH="urlHash",n.INTERACTION_STATUS="interaction_status",n.REDIRECT_REQUEST="redirect_request",(i=t.PersistentCacheKeys||(t.PersistentCacheKeys={})).IDTOKEN="idtoken",i.CLIENT_INFO="client.info",(a=t.ErrorCacheKeys||(t.ErrorCacheKeys={})).LOGIN_ERROR="login.error",a.ERROR="error",a.ERROR_DESC="error.description",t.DEFAULT_AUTHORITY="https://login.microsoftonline.com/common/",t.AAD_INSTANCE_DISCOVERY_ENDPOINT=t.DEFAULT_AUTHORITY+"/discovery/instance?api-version=1.1&authorization_endpoint=",(c=s=t.SSOTypes||(t.SSOTypes={})).ACCOUNT="account",c.SID="sid",c.LOGIN_HINT="login_hint",c.ORGANIZATIONS="organizations",c.ID_TOKEN="id_token",c.ACCOUNT_ID="accountIdentifier",c.HOMEACCOUNT_ID="homeAccountIdentifier",t.BlacklistedEQParams=[s.SID,s.LOGIN_HINT],t.NetworkRequestType={GET:"GET",POST:"POST"},t.PromptState={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none"},t.FramePrefix={ID_TOKEN_FRAME:"msalIdTokenFrame",TOKEN_FRAME:"msalRenewFrame"},t.libraryVersion=function(){return"1.3.4"}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=(s.createNewGuid=function(){var e=window.crypto;if(e&&e.getRandomValues){var t=new Uint8Array(16);return e.getRandomValues(t),t[6]|=64,t[6]&=79,t[8]|=128,t[8]&=191,s.decimalToHex(t[0])+s.decimalToHex(t[1])+s.decimalToHex(t[2])+s.decimalToHex(t[3])+"-"+s.decimalToHex(t[4])+s.decimalToHex(t[5])+"-"+s.decimalToHex(t[6])+s.decimalToHex(t[7])+"-"+s.decimalToHex(t[8])+s.decimalToHex(t[9])+"-"+s.decimalToHex(t[10])+s.decimalToHex(t[11])+s.decimalToHex(t[12])+s.decimalToHex(t[13])+s.decimalToHex(t[14])+s.decimalToHex(t[15])}for(var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",o="0123456789abcdef",n=0,i="",a=0;a<36;a++)"-"!==r[a]&&"4"!==r[a]&&(n=16*Math.random()|0),"x"===r[a]?i+=o[n]:"y"===r[a]?(n&=3,i+=o[n|=8]):i+=r[a];return i},s.isGuid=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},s.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},s.base64Encode=function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(Number("0x"+t))}))},s.base64Decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}return decodeURIComponent(atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))},s.deserialize=function(e){function t(e){return decodeURIComponent(decodeURIComponent(e.replace(o," ")))}var r,o=/\+/g,n=/([^&=]+)=([^&]*)/g,i={};for(r=n.exec(e);r;)i[t(r[1])]=t(r[2]),r=n.exec(e);return i},s);function s(){}t.CryptoUtils=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=(n.isEmpty=function(e){return void 0===e||!e||0===e.length},n);function n(){}t.StringUtils=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=r(1),o=r(9),n=r(3),a=r(2),s=(c.createNavigateUrl=function(e){var t=this.createNavigationUrlString(e),r=e.authorityInstance.AuthorizationEndpoint;return r.indexOf("?")<0?r+="?":r+="&",""+r+t.join("&")},c.createNavigationUrlString=function(e){var t=e.scopes;-1===t.indexOf(e.clientId)&&t.push(e.clientId);var r=[];return r.push("response_type="+e.responseType),this.translateclientIdUsedInScope(t,e.clientId),r.push("scope="+encodeURIComponent(o.ScopeSet.parseScope(t))),r.push("client_id="+encodeURIComponent(e.clientId)),r.push("redirect_uri="+encodeURIComponent(e.redirectUri)),r.push("state="+encodeURIComponent(e.state)),r.push("nonce="+encodeURIComponent(e.nonce)),r.push("client_info=1"),r.push("x-client-SKU="+e.xClientSku),r.push("x-client-Ver="+e.xClientVer),e.promptValue&&r.push("prompt="+encodeURIComponent(e.promptValue)),e.claimsValue&&r.push("claims="+encodeURIComponent(e.claimsValue)),e.queryParameters&&r.push(e.queryParameters),e.extraQueryParameters&&r.push(e.extraQueryParameters),r.push("client-request-id="+encodeURIComponent(e.correlationId)),r},c.translateclientIdUsedInScope=function(e,t){var r=e.indexOf(t);0<=r&&(e.splice(r,1),-1===e.indexOf("openid")&&e.push("openid"),-1===e.indexOf("profile")&&e.push("profile"))},c.getCurrentUrl=function(){return window.location.href.split("?")[0].split("#")[0]},c.removeHashFromUrl=function(e){return e.split("#")[0]},c.replaceTenantPath=function(e,t){var r=e.toLowerCase(),o=this.GetUrlComponents(r),n=o.PathSegments;return!t||0===n.length||n[0]!==i.Constants.common&&n[0]!==i.SSOTypes.ORGANIZATIONS||(n[0]=t),this.constructAuthorityUriFromObject(o,n)},c.constructAuthorityUriFromObject=function(e,t){return this.CanonicalizeUri(e.Protocol+"//"+e.HostNameAndPort+"/"+t.join("/"))},c.isCommonAuthority=function(e){var t=this.CanonicalizeUri(e),r=this.GetUrlComponents(t).PathSegments;return 0!==r.length&&r[0]===i.Constants.common},c.isOrganizationsAuthority=function(e){var t=this.CanonicalizeUri(e),r=this.GetUrlComponents(t).PathSegments;return 0!==r.length&&r[0]===i.SSOTypes.ORGANIZATIONS},c.GetUrlComponents=function(e){if(!e)throw"Url required";var t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),r=e.match(t);if(!r||r.length<6)throw"Valid url required";var o={Protocol:r[1],HostNameAndPort:r[4],AbsolutePath:r[5]},n=o.AbsolutePath.split("/");return n=n.filter(function(e){return e&&0<e.length}),o.PathSegments=n,r[6]&&(o.Search=r[6]),r[8]&&(o.Hash=r[8]),o},c.CanonicalizeUri=function(e){return(e=e&&e.toLowerCase())&&!c.endsWith(e,"/")&&(e+="/"),e},c.endsWith=function(e,t){return!(!e||!t)&&-1!==e.indexOf(t,e.length-t.length)},c.urlRemoveQueryStringParameter=function(e,t){if(n.StringUtils.isEmpty(e))return e;var r=new RegExp("(\\&"+t+"=)[^&]+");return e=e.replace(r,""),r=new RegExp("("+t+"=)[^&]+&"),e=e.replace(r,""),r=new RegExp("("+t+"=)[^&]+"),e=e.replace(r,"")},c.getHashFromUrl=function(e){var t=e.indexOf("#"),r=e.indexOf("#/");return-1<r?e.substring(r+2):-1<t?e.substring(t+1):e},c.urlContainsHash=function(e){var t=c.deserializeHash(e);return t.hasOwnProperty(i.ServerHashParamKeys.ERROR_DESCRIPTION)||t.hasOwnProperty(i.ServerHashParamKeys.ERROR)||t.hasOwnProperty(i.ServerHashParamKeys.ACCESS_TOKEN)||t.hasOwnProperty(i.ServerHashParamKeys.ID_TOKEN)},c.deserializeHash=function(e){var t=c.getHashFromUrl(e);return a.CryptoUtils.deserialize(t)},c.getHostFromUri=function(e){var t=String(e).replace(/^(https?:)\/\//,"");return t=t.split("/")[0]},c);function c(){}t.UrlUtils=s},function(e,i,t){Object.defineProperty(i,"__esModule",{value:!0});var r=t(0),o=t(6);i.ClientConfigurationErrorMessage={configurationNotSet:{code:"no_config_set",desc:"Configuration has not been set. Please call the UserAgentApplication constructor with a valid Configuration object."},storageNotSupported:{code:"storage_not_supported",desc:"The value for the cacheLocation is not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call handleRedirectCallback() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},invalidCallbackObject:{code:"invalid_callback_object",desc:"The object passed for the callback was invalid. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},scopesRequired:{code:"scopes_required",desc:"Scopes are required to obtain an access token."},emptyScopes:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as empty array."},nonArrayScopes:{code:"nonarray_input_scopes_error",desc:"Scopes cannot be passed as non-array."},clientScope:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent' and 'none'"},invalidAuthorityType:{code:"invalid_authority_type",desc:"The given authority is not a valid type of authority supported by MSAL. Please see here for valid authorities: <insert URL here>."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https."},authorityUriInvalidPath:{code:"authority_uri_invalid_path",desc:"Given authority URI is invalid."},unsupportedAuthorityValidation:{code:"unsupported_authority_validation",desc:"The authority validation is not supported for this authority type."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter or set validateAuthority=false."},b2cAuthorityUriInvalidPath:{code:"b2c_authority_uri_invalid_path",desc:"The given URI for the B2C authority is invalid."},b2cKnownAuthoritiesNotSet:{code:"b2c_known_authorities_not_set",desc:"Must set known authorities when validateAuthority is set to True and using B2C"},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},emptyRequestError:{code:"empty_request_error",desc:"Request object is required."},invalidCorrelationIdError:{code:"invalid_guid_sent_as_correlationId",desc:"Please set the correlationId as a valid guid"},telemetryConfigError:{code:"telemetry_config_error",desc:"Telemetry config is not configured with required values"},ssoSilentError:{code:"sso_silent_error",desc:"request must contain either sid or login_hint"},invalidAuthorityMetadataError:{code:"authority_metadata_error",desc:"Invalid authorityMetadata. Must be a JSON object containing authorization_endpoint, end_session_endpoint, and issuer fields."}};var n,a=(n=o.ClientAuthError,r.__extends(s,n),s.createNoSetConfigurationError=function(){return new s(i.ClientConfigurationErrorMessage.configurationNotSet.code,""+i.ClientConfigurationErrorMessage.configurationNotSet.desc)},s.createStorageNotSupportedError=function(e){return new s(i.ClientConfigurationErrorMessage.storageNotSupported.code,i.ClientConfigurationErrorMessage.storageNotSupported.desc+" Given location: "+e)},s.createRedirectCallbacksNotSetError=function(){return new s(i.ClientConfigurationErrorMessage.noRedirectCallbacksSet.code,i.ClientConfigurationErrorMessage.noRedirectCallbacksSet.desc)},s.createInvalidCallbackObjectError=function(e){return new s(i.ClientConfigurationErrorMessage.invalidCallbackObject.code,i.ClientConfigurationErrorMessage.invalidCallbackObject.desc+" Given value for callback function: "+e)},s.createEmptyScopesArrayError=function(e){return new s(i.ClientConfigurationErrorMessage.emptyScopes.code,i.ClientConfigurationErrorMessage.emptyScopes.desc+" Given value: "+e+".")},s.createScopesNonArrayError=function(e){return new s(i.ClientConfigurationErrorMessage.nonArrayScopes.code,i.ClientConfigurationErrorMessage.nonArrayScopes.desc+" Given value: "+e+".")},s.createClientIdSingleScopeError=function(e){return new s(i.ClientConfigurationErrorMessage.clientScope.code,i.ClientConfigurationErrorMessage.clientScope.desc+" Given value: "+e+".")},s.createScopesRequiredError=function(e){return new s(i.ClientConfigurationErrorMessage.scopesRequired.code,i.ClientConfigurationErrorMessage.scopesRequired.desc+" Given value: "+e)},s.createInvalidPromptError=function(e){return new s(i.ClientConfigurationErrorMessage.invalidPrompt.code,i.ClientConfigurationErrorMessage.invalidPrompt.desc+" Given value: "+e)},s.createClaimsRequestParsingError=function(e){return new s(i.ClientConfigurationErrorMessage.claimsRequestParsingError.code,i.ClientConfigurationErrorMessage.claimsRequestParsingError.desc+" Given value: "+e)},s.createEmptyRequestError=function(){var e=i.ClientConfigurationErrorMessage.emptyRequestError;return new s(e.code,e.desc)},s.createInvalidCorrelationIdError=function(){return new s(i.ClientConfigurationErrorMessage.invalidCorrelationIdError.code,i.ClientConfigurationErrorMessage.invalidCorrelationIdError.desc)},s.createKnownAuthoritiesNotSetError=function(){return new s(i.ClientConfigurationErrorMessage.b2cKnownAuthoritiesNotSet.code,i.ClientConfigurationErrorMessage.b2cKnownAuthoritiesNotSet.desc)},s.createInvalidAuthorityTypeError=function(){return new s(i.ClientConfigurationErrorMessage.invalidAuthorityType.code,i.ClientConfigurationErrorMessage.invalidAuthorityType.desc)},s.createUntrustedAuthorityError=function(e){return new s(i.ClientConfigurationErrorMessage.untrustedAuthority.code,i.ClientConfigurationErrorMessage.untrustedAuthority.desc+" Provided Authority: "+e)},s.createTelemetryConfigError=function(r){var e=i.ClientConfigurationErrorMessage.telemetryConfigError,t=e.code,o=e.desc,n={applicationName:"string",applicationVersion:"string",telemetryEmitter:"function"};return new s(t,o+" mising values: "+Object.keys(n).reduce(function(e,t){return r[t]?e:e.concat([t+" ("+n[t]+")"])},[]).join(","))},s.createSsoSilentError=function(){return new s(i.ClientConfigurationErrorMessage.ssoSilentError.code,i.ClientConfigurationErrorMessage.ssoSilentError.desc)},s.createInvalidAuthorityMetadataError=function(){return new s(i.ClientConfigurationErrorMessage.invalidAuthorityMetadataError.code,i.ClientConfigurationErrorMessage.invalidAuthorityMetadataError.desc)},s);function s(e,t){var r=n.call(this,e,t)||this;return r.name="ClientConfigurationError",Object.setPrototypeOf(r,s.prototype),r}i.ClientConfigurationError=a},function(e,r,t){Object.defineProperty(r,"__esModule",{value:!0});var o=t(0),n=t(7),i=t(3);r.ClientAuthErrorMessage={multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements like authority."},multipleCacheAuthorities:{code:"multiple_authorities",desc:"Multiple authorities found in the cache. Pass authority in the API overload."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},popUpWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},tokenRenewalError:{code:"token_renewal_error",desc:"Token renewal operation failed due to timeout."},invalidIdToken:{code:"invalid_id_token",desc:"Invalid ID token format."},invalidStateError:{code:"invalid_state_error",desc:"Invalid state."},nonceMismatchError:{code:"nonce_mismatch_error",desc:"Nonce is not matching, Nonce received: "},loginProgressError:{code:"login_progress_error",desc:"Login_In_Progress: Error during login call - login is already in progress."},acquireTokenProgressError:{code:"acquiretoken_progress_error",desc:"AcquireToken_In_Progress: Error during login call - login is already in progress."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},callbackError:{code:"callback_error",desc:"Error occurred in token received callback function."},userLoginRequiredError:{code:"user_login_error",desc:"User login is required. For silent calls, request must contain either sid or login_hint"},userDoesNotExistError:{code:"user_non_existent",desc:"User object does not exist. Please call a login API."},clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoNotPopulatedError:{code:"client_info_not_populated_error",desc:"The service did not populate client_info in the response, Please verify with the service team"},nullOrEmptyIdToken:{code:"null_or_empty_id_token",desc:"The idToken is null or empty. Please review the trace to determine the root cause."},idTokenNotParsed:{code:"id_token_parsing_error",desc:"ID token cannot be parsed. Please review stack trace to determine root cause."},tokenEncodingError:{code:"token_encoding_error",desc:"The token to be decoded is not encoded correctly."},invalidInteractionType:{code:"invalid_interaction_type",desc:"The interaction type passed to the handler was incorrect or unknown"},cacheParseError:{code:"cannot_parse_cache",desc:"The cached token key is not a valid JSON and cannot be parsed"},blockTokenRequestsInHiddenIframe:{code:"block_token_requests",desc:"Token calls are blocked in hidden iframes"}};var a,s=(a=n.AuthError,o.__extends(c,a),c.createEndpointResolutionError=function(e){var t=r.ClientAuthErrorMessage.endpointResolutionError.desc;return e&&!i.StringUtils.isEmpty(e)&&(t+=" Details: "+e),new c(r.ClientAuthErrorMessage.endpointResolutionError.code,t)},c.createMultipleMatchingTokensInCacheError=function(e){return new c(r.ClientAuthErrorMessage.multipleMatchingTokens.code,"Cache error for scope "+e+": "+r.ClientAuthErrorMessage.multipleMatchingTokens.desc+".")},c.createMultipleAuthoritiesInCacheError=function(e){return new c(r.ClientAuthErrorMessage.multipleCacheAuthorities.code,"Cache error for scope "+e+": "+r.ClientAuthErrorMessage.multipleCacheAuthorities.desc+".")},c.createPopupWindowError=function(e){var t=r.ClientAuthErrorMessage.popUpWindowError.desc;return e&&!i.StringUtils.isEmpty(e)&&(t+=" Details: "+e),new c(r.ClientAuthErrorMessage.popUpWindowError.code,t)},c.createTokenRenewalTimeoutError=function(){return new c(r.ClientAuthErrorMessage.tokenRenewalError.code,r.ClientAuthErrorMessage.tokenRenewalError.desc)},c.createInvalidIdTokenError=function(e){return new c(r.ClientAuthErrorMessage.invalidIdToken.code,r.ClientAuthErrorMessage.invalidIdToken.desc+" Given token: "+e)},c.createInvalidStateError=function(e,t){return new c(r.ClientAuthErrorMessage.invalidStateError.code,r.ClientAuthErrorMessage.invalidStateError.desc+" "+e+", state expected : "+t+".")},c.createNonceMismatchError=function(e,t){return new c(r.ClientAuthErrorMessage.nonceMismatchError.code,r.ClientAuthErrorMessage.nonceMismatchError.desc+" "+e+", nonce expected : "+t+".")},c.createLoginInProgressError=function(){return new c(r.ClientAuthErrorMessage.loginProgressError.code,r.ClientAuthErrorMessage.loginProgressError.desc)},c.createAcquireTokenInProgressError=function(){return new c(r.ClientAuthErrorMessage.acquireTokenProgressError.code,r.ClientAuthErrorMessage.acquireTokenProgressError.desc)},c.createUserCancelledError=function(){return new c(r.ClientAuthErrorMessage.userCancelledError.code,r.ClientAuthErrorMessage.userCancelledError.desc)},c.createErrorInCallbackFunction=function(e){return new c(r.ClientAuthErrorMessage.callbackError.code,r.ClientAuthErrorMessage.callbackError.desc+" "+e+".")},c.createUserLoginRequiredError=function(){return new c(r.ClientAuthErrorMessage.userLoginRequiredError.code,r.ClientAuthErrorMessage.userLoginRequiredError.desc)},c.createUserDoesNotExistError=function(){return new c(r.ClientAuthErrorMessage.userDoesNotExistError.code,r.ClientAuthErrorMessage.userDoesNotExistError.desc)},c.createClientInfoDecodingError=function(e){return new c(r.ClientAuthErrorMessage.clientInfoDecodingError.code,r.ClientAuthErrorMessage.clientInfoDecodingError.desc+" Failed with error: "+e)},c.createClientInfoNotPopulatedError=function(e){return new c(r.ClientAuthErrorMessage.clientInfoNotPopulatedError.code,r.ClientAuthErrorMessage.clientInfoNotPopulatedError.desc+" Failed with error: "+e)},c.createIdTokenNullOrEmptyError=function(e){return new c(r.ClientAuthErrorMessage.nullOrEmptyIdToken.code,r.ClientAuthErrorMessage.nullOrEmptyIdToken.desc+" Raw ID Token Value: "+e)},c.createIdTokenParsingError=function(e){return new c(r.ClientAuthErrorMessage.idTokenNotParsed.code,r.ClientAuthErrorMessage.idTokenNotParsed.desc+" Failed with error: "+e)},c.createTokenEncodingError=function(e){return new c(r.ClientAuthErrorMessage.tokenEncodingError.code,r.ClientAuthErrorMessage.tokenEncodingError.desc+" Attempted to decode: "+e)},c.createInvalidInteractionTypeError=function(){return new c(r.ClientAuthErrorMessage.invalidInteractionType.code,r.ClientAuthErrorMessage.invalidInteractionType.desc)},c.createCacheParseError=function(e){var t="invalid key: "+e+", "+r.ClientAuthErrorMessage.cacheParseError.desc;return new c(r.ClientAuthErrorMessage.cacheParseError.code,t)},c.createBlockTokenRequestsInHiddenIframeError=function(){return new c(r.ClientAuthErrorMessage.blockTokenRequestsInHiddenIframe.code,r.ClientAuthErrorMessage.blockTokenRequestsInHiddenIframe.desc)},c);function c(e,t){var r=a.call(this,e,t)||this;return r.name="ClientAuthError",Object.setPrototypeOf(r,c.prototype),r}r.ClientAuthError=s},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(0);t.AuthErrorMessage={unexpectedError:{code:"unexpected_error",desc:"Unexpected error in authentication."},noWindowObjectError:{code:"no_window_object",desc:"No window object available. Details:"}};var n,i=(n=Error,o.__extends(a,n),a.createUnexpectedError=function(e){return new a(t.AuthErrorMessage.unexpectedError.code,t.AuthErrorMessage.unexpectedError.desc+": "+e)},a.createNoWindowObjectError=function(e){return new a(t.AuthErrorMessage.noWindowObjectError.code,t.AuthErrorMessage.noWindowObjectError.desc+" "+e)},a);function a(e,t){var r=n.call(this,t)||this;return Object.setPrototypeOf(r,a.prototype),r.errorCode=e,r.errorMessage=t,r.name="AuthError",r}t.AuthError=i},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.EVENT_NAME_PREFIX="msal.",t.EVENT_NAME_KEY="event_name",t.START_TIME_KEY="start_time",t.ELAPSED_TIME_KEY="elapsed_time",t.TELEMETRY_BLOB_EVENT_NAMES={MsalCorrelationIdConstStrKey:"Microsoft.MSAL.correlation_id",ApiTelemIdConstStrKey:"msal.api_telem_id",ApiIdConstStrKey:"msal.api_id",BrokerAppConstStrKey:"Microsoft_MSAL_broker_app",CacheEventCountConstStrKey:"Microsoft_MSAL_cache_event_count",HttpEventCountTelemetryBatchKey:"Microsoft_MSAL_http_event_count",IdpConstStrKey:"Microsoft_MSAL_idp",IsSilentTelemetryBatchKey:"",IsSuccessfulConstStrKey:"Microsoft_MSAL_is_successful",ResponseTimeConstStrKey:"Microsoft_MSAL_response_time",TenantIdConstStrKey:"Microsoft_MSAL_tenant_id",UiEventCountTelemetryBatchKey:"Microsoft_MSAL_ui_event_count"},t.TENANT_PLACEHOLDER="<tenant>"},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(5),n=r(1),i=(a.isIntersectingScopes=function(e,t){for(var r=this.trimAndConvertArrayToLowerCase(e.slice()),o=this.trimAndConvertArrayToLowerCase(t.slice()),n=0;n<o.length;n++)if(-1<r.indexOf(o[n].toLowerCase()))return!0;return!1},a.containsScope=function(e,t){var r=this.trimAndConvertArrayToLowerCase(e.slice());return this.trimAndConvertArrayToLowerCase(t.slice()).every(function(e){return 0<=r.indexOf(e.toString().toLowerCase())})},a.trimAndConvertToLowerCase=function(e){return e.trim().toLowerCase()},a.trimAndConvertArrayToLowerCase=function(e){var t=this;return e.map(function(e){return t.trimAndConvertToLowerCase(e)})},a.trimScopes=function(e){return e.map(function(e){return e.trim()})},a.removeElement=function(e,t){var r=this.trimAndConvertToLowerCase(t);return e.filter(function(e){return e!==r})},a.parseScope=function(e){var t="";if(e)for(var r=0;r<e.length;++r)t+=r!==e.length-1?e[r]+" ":e[r];return t},a.validateInputScope=function(e,t,r){if(e){if(!Array.isArray(e))throw o.ClientConfigurationError.createScopesNonArrayError(e);if(e.length<1)throw o.ClientConfigurationError.createEmptyScopesArrayError(e.toString());if(-1<e.indexOf(r)&&1<e.length)throw o.ClientConfigurationError.createClientIdSingleScopeError(e.toString())}else if(t)throw o.ClientConfigurationError.createScopesRequiredError(e)},a.getScopeFromState=function(e){if(e){var t=e.indexOf(n.Constants.resourceDelimiter);if(-1<t&&t+1<e.length)return e.substring(t+1)}return""},a.appendScopes=function(e,t){if(e){var r=t?this.trimAndConvertArrayToLowerCase(t.slice()):null,o=this.trimAndConvertArrayToLowerCase(e.slice());return r?o.concat(r):o}return null},a);function a(){}t.ScopeSet=i},function(e,o,t){Object.defineProperty(o,"__esModule",{value:!0});var n=t(8),r=t(2),i=t(4),a=t(21);o.scrubTenantFromUri=function(e){var t=i.UrlUtils.GetUrlComponents(e);if(a.AuthorityFactory.isAdfs(e))return e;var r=t.PathSegments;if(r&&2<=r.length){var o="tfp"===r[1]?2:1;o<r.length&&(r[o]=n.TENANT_PLACEHOLDER)}return t.Protocol+"//"+t.HostNameAndPort+"/"+r.join("/")},o.hashPersonalIdentifier=function(e){return r.CryptoUtils.base64Encode(e)},o.prependEventNamePrefix=function(e){return""+n.EVENT_NAME_PREFIX+(e||"")},o.supportsBrowserPerformance=function(){return!!("undefined"!=typeof window&&"performance"in window&&window.performance.mark&&window.performance.measure)},o.endBrowserPerformanceMeasurement=function(e,t,r){o.supportsBrowserPerformance()&&(window.performance.mark(r),window.performance.measure(e,t,r),window.performance.clearMeasures(e),window.performance.clearMarks(t),window.performance.clearMarks(r))},o.startBrowserPerformanceMeasurement=function(e){o.supportsBrowserPerformance()&&window.performance.mark(e)}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=(n.parseExpiresIn=function(e){return e=e||"3599",parseInt(e,10)},n.now=function(){return Math.round((new Date).getTime()/1e3)},n.relativeNowMs=function(){return window.performance.now()},n);function n(){}t.TimeUtils=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var c,o,i=r(3),a=r(1);(o=c=t.LogLevel||(t.LogLevel={}))[o.Error=0]="Error",o[o.Warning=1]="Warning",o[o.Info=2]="Info",o[o.Verbose=3]="Verbose";var n=(s.prototype.logMessage=function(e,t,r){if(!(e>this.level||!this.piiLoggingEnabled&&r)){var o,n=(new Date).toUTCString();o=i.StringUtils.isEmpty(this.correlationId)?n+":"+a.libraryVersion()+"-"+c[e]+(r?"-pii":"")+" "+t:n+":"+this.correlationId+"-"+a.libraryVersion()+"-"+c[e]+(r?"-pii":"")+" "+t,this.executeCallback(e,o,r)}},s.prototype.executeCallback=function(e,t,r){this.localCallback&&this.localCallback(e,t,r)},s.prototype.error=function(e){this.logMessage(c.Error,e,!1)},s.prototype.errorPii=function(e){this.logMessage(c.Error,e,!0)},s.prototype.warning=function(e){this.logMessage(c.Warning,e,!1)},s.prototype.warningPii=function(e){this.logMessage(c.Warning,e,!0)},s.prototype.info=function(e){this.logMessage(c.Info,e,!1)},s.prototype.infoPii=function(e){this.logMessage(c.Info,e,!0)},s.prototype.verbose=function(e){this.logMessage(c.Verbose,e,!1)},s.prototype.verbosePii=function(e){this.logMessage(c.Verbose,e,!0)},s.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled},s);function s(e,t){void 0===t&&(t={}),this.level=c.Info;var r=t.correlationId,o=void 0===r?"":r,n=t.level,i=void 0===n?c.Info:n,a=t.piiLoggingEnabled,s=void 0!==a&&a;this.localCallback=e,this.correlationId=o,this.level=i,this.piiLoggingEnabled=s}t.Logger=n},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),n=r(7);t.ServerErrorMessage={serverUnavailable:{code:"server_unavailable",desc:"Server is temporarily unavailable."},unknownServerError:{code:"unknown_server_error"}};var i,a=(i=n.AuthError,o.__extends(s,i),s.createServerUnavailableError=function(){return new s(t.ServerErrorMessage.serverUnavailable.code,t.ServerErrorMessage.serverUnavailable.desc)},s.createUnknownServerError=function(e){return new s(t.ServerErrorMessage.unknownServerError.code,e)},s);function s(e,t){var r=i.call(this,e,t)||this;return r.name="ServerError",Object.setPrototypeOf(r,s.prototype),r}t.ServerError=a},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),n=r(8),i=r(8),a=r(10),s=r(2),c=(u.prototype.setElapsedTime=function(e){this.event[a.prependEventNamePrefix(i.ELAPSED_TIME_KEY)]=e},u.prototype.stop=function(){this.setElapsedTime(+Date.now()-+this.startTimestamp),a.endBrowserPerformanceMeasurement(this.displayName,this.perfStartMark,this.perfEndMark)},u.prototype.start=function(){this.startTimestamp=Date.now(),this.event[a.prependEventNamePrefix(i.START_TIME_KEY)]=this.startTimestamp,a.startBrowserPerformanceMeasurement(this.perfStartMark)},Object.defineProperty(u.prototype,"telemetryCorrelationId",{get:function(){return this.event[""+n.TELEMETRY_BLOB_EVENT_NAMES.MsalCorrelationIdConstStrKey]},set:function(e){this.event[""+n.TELEMETRY_BLOB_EVENT_NAMES.MsalCorrelationIdConstStrKey]=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"eventName",{get:function(){return this.event[a.prependEventNamePrefix(i.EVENT_NAME_KEY)]},enumerable:!0,configurable:!0}),u.prototype.get=function(){return o.__assign({},this.event,{eventId:this.eventId})},Object.defineProperty(u.prototype,"key",{get:function(){return this.telemetryCorrelationId+"_"+this.eventId+"-"+this.eventName},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"displayName",{get:function(){return"Msal-"+this.label+"-"+this.telemetryCorrelationId},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"perfStartMark",{get:function(){return"start-"+this.key},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"perfEndMark",{get:function(){return"end-"+this.key},enumerable:!0,configurable:!0}),u);function u(e,t,r){var o;this.eventId=s.CryptoUtils.createNewGuid(),this.label=r,this.event=((o={})[a.prependEventNamePrefix(i.EVENT_NAME_KEY)]=e,o[a.prependEventNamePrefix(i.ELAPSED_TIME_KEY)]=-1,o[""+n.TELEMETRY_BLOB_EVENT_NAMES.MsalCorrelationIdConstStrKey]=t,o)}t.default=c},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var m=r(0),v=r(31),E=r(32),C=r(16),T=r(33),b=r(34),I=r(35),S=r(19),_=r(9),A=r(3),w=r(20),y=r(17),P=r(11),R=r(4),k=r(18),O=r(38),N=r(21),o=r(25),a=r(5),U=r(7),M=r(6),K=r(13),x=r(26),q=r(27),s=m.__importDefault(r(39)),c=r(28),L=r(1),u=r(2),n=r(24),H="id_token",i="token",l="id_token token",h=(Object.defineProperty(d.prototype,"authority",{get:function(){return this.authorityInstance.CanonicalAuthority},set:function(e){this.authorityInstance=N.AuthorityFactory.CreateInstance(e,this.config.auth.validateAuthority)},enumerable:!0,configurable:!0}),d.prototype.getAuthorityInstance=function(){return this.authorityInstance},d.prototype.handleRedirectCallback=function(e,t){if(!e)throw a.ClientConfigurationError.createInvalidCallbackObjectError(e);t?(this.tokenReceivedCallback=e,this.errorReceivedCallback=t,this.logger.warning("This overload for callback is deprecated - please change the format of the callbacks to a single callback as shown: (err: AuthError, response: AuthResponse).")):this.authResponseCallback=e,this.redirectError?this.authErrorHandler(L.Constants.interactionTypeRedirect,this.redirectError,this.redirectResponse):this.redirectResponse&&this.authResponseHandler(L.Constants.interactionTypeRedirect,this.redirectResponse)},d.prototype.urlContainsHash=function(e){return this.logger.verbose("UrlContainsHash has been called"),R.UrlUtils.urlContainsHash(e)},d.prototype.authResponseHandler=function(e,t,r){if(this.logger.verbose("AuthResponseHandler has been called"),e===L.Constants.interactionTypeRedirect)this.logger.verbose("Interaction type is redirect"),this.errorReceivedCallback?(this.logger.verbose("Two callbacks were provided to handleRedirectCallback, calling success callback with response"),this.tokenReceivedCallback(t)):this.authResponseCallback&&(this.logger.verbose("One callback was provided to handleRedirectCallback, calling authResponseCallback with response"),this.authResponseCallback(null,t));else{if(e!==L.Constants.interactionTypePopup)throw M.ClientAuthError.createInvalidInteractionTypeError();this.logger.verbose("Interaction type is popup, resolving"),r(t)}},d.prototype.authErrorHandler=function(e,t,r,o){if(this.logger.verbose("AuthErrorHandler has been called"),this.cacheStorage.removeItem(L.TemporaryCacheKeys.INTERACTION_STATUS),e===L.Constants.interactionTypeRedirect)if(this.logger.verbose("Interaction type is redirect"),this.errorReceivedCallback)this.logger.verbose("Two callbacks were provided to handleRedirectCallback, calling error callback"),this.errorReceivedCallback(t,r.accountState);else{if(!this.authResponseCallback)throw this.logger.verbose("handleRedirectCallback has not been called and no callbacks are registered, throwing error"),t;this.logger.verbose("One callback was provided to handleRedirectCallback, calling authResponseCallback with error"),this.authResponseCallback(t,r)}else{if(e!==L.Constants.interactionTypePopup)throw M.ClientAuthError.createInvalidInteractionTypeError();this.logger.verbose("Interaction type is popup, rejecting"),o(t)}},d.prototype.loginRedirect=function(e){this.logger.verbose("LoginRedirect has been called");var t=k.RequestUtils.validateRequest(e,!0,this.clientId,L.Constants.interactionTypeRedirect);this.acquireTokenInteractive(L.Constants.interactionTypeRedirect,!0,t,null,null)},d.prototype.acquireTokenRedirect=function(e){this.logger.verbose("AcquireTokenRedirect has been called");var t=k.RequestUtils.validateRequest(e,!1,this.clientId,L.Constants.interactionTypeRedirect);this.acquireTokenInteractive(L.Constants.interactionTypeRedirect,!1,t,null,null)},d.prototype.loginPopup=function(e){var r=this;this.logger.verbose("LoginPopup has been called");var o=k.RequestUtils.validateRequest(e,!0,this.clientId,L.Constants.interactionTypePopup),t=this.telemetryManager.createAndStartApiEvent(o.correlationId,c.API_EVENT_IDENTIFIER.LoginPopup);return new Promise(function(e,t){r.acquireTokenInteractive(L.Constants.interactionTypePopup,!0,o,e,t)}).then(function(e){return r.logger.verbose("Successfully logged in"),r.telemetryManager.stopAndFlushApiEvent(o.correlationId,t,!0),e}).catch(function(e){throw r.cacheStorage.resetTempCacheItems(o.state),r.telemetryManager.stopAndFlushApiEvent(o.correlationId,t,!1,e.errorCode),e})},d.prototype.acquireTokenPopup=function(e){var r=this;this.logger.verbose("AcquireTokenPopup has been called");var o=k.RequestUtils.validateRequest(e,!1,this.clientId,L.Constants.interactionTypePopup),t=this.telemetryManager.createAndStartApiEvent(o.correlationId,c.API_EVENT_IDENTIFIER.AcquireTokenPopup);return new Promise(function(e,t){r.acquireTokenInteractive(L.Constants.interactionTypePopup,!1,o,e,t)}).then(function(e){return r.logger.verbose("Successfully acquired token"),r.telemetryManager.stopAndFlushApiEvent(o.correlationId,t,!0),e}).catch(function(e){throw r.cacheStorage.resetTempCacheItems(o.state),r.telemetryManager.stopAndFlushApiEvent(o.correlationId,t,!1,e.errorCode),e})},d.prototype.acquireTokenInteractive=function(t,r,o,n,i){var a=this;this.logger.verbose("AcquireTokenInteractive has been called"),w.WindowUtils.blockReloadInHiddenIframes();var e,s=this.cacheStorage.getItem(L.TemporaryCacheKeys.INTERACTION_STATUS);if(t===L.Constants.interactionTypeRedirect&&this.cacheStorage.setItem(L.TemporaryCacheKeys.REDIRECT_REQUEST,""+L.Constants.inProgress+L.Constants.resourceDelimiter+o.state),s===L.Constants.inProgress){var c=r?M.ClientAuthError.createLoginInProgressError():M.ClientAuthError.createAcquireTokenInProgressError(),u=q.buildResponseStateOnly(this.getAccountState(o.state));return this.cacheStorage.resetTempCacheItems(o.state),void this.authErrorHandler(t,c,u,i)}if(o&&o.account&&!r?(e=o.account,this.logger.verbose("Account set from request")):(e=this.getAccount(),this.logger.verbose("Account set from MSAL Cache")),e||C.ServerRequestParameters.isSSOParam(o))this.logger.verbose("User session exists, login not required"),this.acquireTokenHelper(e,t,r,o,n,i);else{if(!r)return this.logger.verbose("AcquireToken call, no context or account given"),this.logger.info("User login is required"),u=q.buildResponseStateOnly(this.getAccountState(o.state)),this.cacheStorage.resetTempCacheItems(o.state),void this.authErrorHandler(t,M.ClientAuthError.createUserLoginRequiredError(),u,i);if(this.extractADALIdToken()&&!o.scopes){this.logger.info("ADAL's idToken exists. Extracting login information from ADAL's idToken");var l=this.buildIDTokenRequest(o);this.silentLogin=!0,this.acquireTokenSilent(l).then(function(e){a.silentLogin=!1,a.logger.info("Unified cache call is successful"),a.authResponseHandler(t,e,n)},function(e){a.silentLogin=!1,a.logger.error("Error occurred during unified cache ATS: "+e),a.acquireTokenHelper(null,t,r,o,n,i)})}else this.logger.verbose("Login call but no token found, proceed to login"),this.acquireTokenHelper(null,t,r,o,n,i)}},d.prototype.acquireTokenHelper=function(h,d,p,g,f,y){return m.__awaiter(this,void 0,Promise,function(){var t,r,o,n,i,a,s,c,u,l;return m.__generator(this,function(e){switch(e.label){case 0:this.logger.verbose("AcquireTokenHelper has been called"),this.logger.verbose("Interaction type: "+d+". isLoginCall: "+p),this.cacheStorage.setItem(L.TemporaryCacheKeys.INTERACTION_STATUS,L.Constants.inProgress),t=g.scopes?g.scopes.join(" ").toLowerCase():this.clientId.toLowerCase(),this.logger.verbosePii("Serialized scopes: "+t),o=g&&g.authority?N.AuthorityFactory.CreateInstance(g.authority,this.config.auth.validateAuthority,g.authorityMetadata):this.authorityInstance,e.label=1;case 1:return e.trys.push([1,11,,12]),o.hasCachedMetadata()?[3,3]:(this.logger.verbose("No cached metadata for authority"),[4,N.AuthorityFactory.saveMetadataFromNetwork(o,this.telemetryManager,g.correlationId)]);case 2:return e.sent(),[3,4];case 3:this.logger.verbose("Cached metadata found for authority"),e.label=4;case 4:if(i=p?H:this.getTokenType(h,g.scopes,!1),a=g.redirectStartPage||window.location.href,r=new C.ServerRequestParameters(o,this.clientId,i,this.getRedirectUri(g&&g.redirectUri),g.scopes,g.state,g.correlationId),this.logger.verbose("Finished building server authentication request"),this.updateCacheEntries(r,h,p,a),this.logger.verbose("Updating cache entries"),r.populateQueryParams(h,g),this.logger.verbose("Query parameters populated from account"),s=R.UrlUtils.createNavigateUrl(r)+L.Constants.response_mode_fragment,d===L.Constants.interactionTypeRedirect)p?this.logger.verbose("Interaction type redirect but login call is true. State not cached"):(this.cacheStorage.setItem(I.AuthCache.generateTemporaryCacheKey(L.TemporaryCacheKeys.STATE_ACQ_TOKEN,g.state),r.state,this.inCookie),this.logger.verbose("State cached for redirect"),this.logger.verbosePii("State cached: "+r.state));else{if(d!==L.Constants.interactionTypePopup)throw this.logger.verbose("Invalid interaction error. State not cached"),M.ClientAuthError.createInvalidInteractionTypeError();window.renewStates.push(r.state),window.requestType=p?L.Constants.login:L.Constants.renewToken,this.logger.verbose("State saved to window"),this.logger.verbosePii("State saved: "+r.state),this.registerCallback(r.state,t,f,y)}if(d!==L.Constants.interactionTypePopup)return[3,9];this.logger.verbose("Interaction type is popup. Generating popup window");try{n=this.openPopup(s,"msal",L.Constants.popUpWidth,L.Constants.popUpHeight),w.WindowUtils.trackPopup(n)}catch(e){if(this.logger.info(M.ClientAuthErrorMessage.popUpWindowError.code+":"+M.ClientAuthErrorMessage.popUpWindowError.desc),this.cacheStorage.setItem(L.ErrorCacheKeys.ERROR,M.ClientAuthErrorMessage.popUpWindowError.code),this.cacheStorage.setItem(L.ErrorCacheKeys.ERROR_DESC,M.ClientAuthErrorMessage.popUpWindowError.desc),y)return y(M.ClientAuthError.createPopupWindowError()),[2]}if(!n)return[3,8];e.label=5;case 5:return e.trys.push([5,7,,8]),[4,w.WindowUtils.monitorPopupForHash(n,this.config.system.loadFrameTimeout,s,this.logger)];case 6:return c=e.sent(),this.handleAuthenticationResponse(c),this.cacheStorage.removeItem(L.TemporaryCacheKeys.INTERACTION_STATUS),this.logger.info("Closing popup window"),this.config.framework.isAngular&&(this.broadcast("msal:popUpHashChanged",c),w.WindowUtils.closePopups()),[3,8];case 7:return u=e.sent(),y&&y(u),this.config.framework.isAngular?this.broadcast("msal:popUpClosed",u.errorCode+L.Constants.resourceDelimiter+u.errorMessage):(this.cacheStorage.removeItem(L.TemporaryCacheKeys.INTERACTION_STATUS),n.close()),[3,8];case 8:return[3,10];case 9:g.onRedirectNavigate?(this.logger.verbose("Invoking onRedirectNavigate callback"),!1!==g.onRedirectNavigate(s)?(this.logger.verbose("onRedirectNavigate did not return false, navigating"),this.navigateWindow(s)):this.logger.verbose("onRedirectNavigate returned false, stopping navigation")):(this.logger.verbose("Navigating window to urlNavigate"),this.navigateWindow(s)),e.label=10;case 10:return[3,12];case 11:return l=e.sent(),this.logger.error(l),this.cacheStorage.resetTempCacheItems(g.state),this.authErrorHandler(d,M.ClientAuthError.createEndpointResolutionError(l.toString),q.buildResponseStateOnly(g.state),y),n&&n.close(),[3,12];case 12:return[2]}})})},d.prototype.ssoSilent=function(e){if(this.logger.verbose("ssoSilent has been called"),!e)throw a.ClientConfigurationError.createEmptyRequestError();if(!e.sid&&!e.loginHint)throw a.ClientConfigurationError.createSsoSilentError();return this.acquireTokenSilent(m.__assign({},e,{scopes:[this.clientId]}))},d.prototype.acquireTokenSilent=function(e){var t=this;this.logger.verbose("AcquireTokenSilent has been called");var g=k.RequestUtils.validateRequest(e,!1,this.clientId,L.Constants.interactionTypeSilent),r=this.telemetryManager.createAndStartApiEvent(g.correlationId,c.API_EVENT_IDENTIFIER.AcquireTokenSilent),f=k.RequestUtils.createRequestSignature(g);return new Promise(function(d,p){return m.__awaiter(t,void 0,void 0,function(){var t,r,o,n,i,a,s,c,u,l,h;return m.__generator(this,function(e){switch(e.label){case 0:if(w.WindowUtils.blockReloadInHiddenIframes(),t=g.scopes.join(" ").toLowerCase(),this.logger.verbosePii("Serialized scopes: "+t),g.account?(r=g.account,this.logger.verbose("Account set from request")):(r=this.getAccount(),this.logger.verbose("Account set from MSAL Cache")),o=this.cacheStorage.getItem(L.Constants.adalIdToken),!r&&!g.sid&&!g.loginHint&&A.StringUtils.isEmpty(o))return this.logger.info("User login is required"),[2,p(M.ClientAuthError.createUserLoginRequiredError())];if(n=this.getTokenType(r,g.scopes,!0),this.logger.verbose("Response type: "+n),i=new C.ServerRequestParameters(N.AuthorityFactory.CreateInstance(g.authority,this.config.auth.validateAuthority,g.authorityMetadata),this.clientId,n,this.getRedirectUri(g.redirectUri),g.scopes,g.state,g.correlationId),this.logger.verbose("Finished building server authentication request"),C.ServerRequestParameters.isSSOParam(g)||r?(i.populateQueryParams(r,g,null,!0),this.logger.verbose("Query parameters populated from existing SSO or account")):r||A.StringUtils.isEmpty(o)?this.logger.verbose("No additional query parameters added"):(a=y.TokenUtils.extractIdToken(o),this.logger.verbose("ADAL's idToken exists. Extracting login information from ADAL's idToken to populate query parameters"),i.populateQueryParams(r,null,a,!0)),!(s=g.claimsRequest||i.claimsValue)&&!g.forceRefresh)try{u=this.getCachedToken(i,r)}catch(e){c=e}return u?(this.logger.verbose("Token found in cache lookup"),this.logger.verbosePii("Scopes found: "+JSON.stringify(u.scopes)),d(u),[2,null]):[3,1];case 1:return c?(this.logger.infoPii(c.errorCode+":"+c.errorMessage),p(c),[2,null]):[3,2];case 2:l=void 0,l=s?"Skipped cache lookup since claims were given":g.forceRefresh?"Skipped cache lookup since request.forceRefresh option was set to true":"No token found in cache lookup",this.logger.verbose(l),i.authorityInstance||(i.authorityInstance=g.authority?N.AuthorityFactory.CreateInstance(g.authority,this.config.auth.validateAuthority,g.authorityMetadata):this.authorityInstance),this.logger.verbosePii("Authority instance: "+i.authority),e.label=3;case 3:return e.trys.push([3,7,,8]),i.authorityInstance.hasCachedMetadata()?[3,5]:(this.logger.verbose("No cached metadata for authority"),[4,N.AuthorityFactory.saveMetadataFromNetwork(i.authorityInstance,this.telemetryManager,g.correlationId)]);case 4:return e.sent(),this.logger.verbose("Authority has been updated with endpoint discovery response"),[3,6];case 5:this.logger.verbose("Cached metadata found for authority"),e.label=6;case 6:return window.activeRenewals[f]?(this.logger.verbose("Renewing token in progress. Registering callback"),this.registerCallback(window.activeRenewals[f],f,d,p)):g.scopes&&-1<g.scopes.indexOf(this.clientId)&&1===g.scopes.length?(this.logger.verbose("ClientId is the only scope, renewing idToken"),this.silentLogin=!0,this.renewIdToken(f,d,p,r,i)):(this.logger.verbose("Renewing access token"),this.renewToken(f,d,p,r,i)),[3,8];case 7:return h=e.sent(),this.logger.error(h),p(M.ClientAuthError.createEndpointResolutionError(h.toString())),[2,null];case 8:return[2]}})})}).then(function(e){return t.logger.verbose("Successfully acquired token"),t.telemetryManager.stopAndFlushApiEvent(g.correlationId,r,!0),e}).catch(function(e){throw t.cacheStorage.resetTempCacheItems(g.state),t.telemetryManager.stopAndFlushApiEvent(g.correlationId,r,!1,e.errorCode),e})},d.prototype.openPopup=function(e,t,r,o){this.logger.verbose("OpenPopup has been called");try{var n=window.screenLeft?window.screenLeft:window.screenX,i=window.screenTop?window.screenTop:window.screenY,a=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,s=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,c=a/2-r/2+n,u=s/2-o/2+i,l=window.open(e,t,"width="+r+", height="+o+", top="+u+", left="+c+", scrollbars=yes");if(!l)throw M.ClientAuthError.createPopupWindowError();return l.focus&&l.focus(),l}catch(e){throw this.cacheStorage.removeItem(L.TemporaryCacheKeys.INTERACTION_STATUS),M.ClientAuthError.createPopupWindowError(e.toString())}},d.prototype.loadIframeTimeout=function(a,s,c){return m.__awaiter(this,void 0,Promise,function(){var t,r,o,n,i;return m.__generator(this,function(e){switch(e.label){case 0:return t=window.activeRenewals[c],this.logger.verbosePii("Set loading state to pending for: "+c+":"+t),this.cacheStorage.setItem(I.AuthCache.generateTemporaryCacheKey(L.TemporaryCacheKeys.RENEW_STATUS,t),L.Constants.inProgress),this.config.system.navigateFrameWait?[4,w.WindowUtils.loadFrame(a,s,this.config.system.navigateFrameWait,this.logger)]:[3,2];case 1:return o=e.sent(),[3,3];case 2:o=w.WindowUtils.loadFrameSync(a,s,this.logger),e.label=3;case 3:r=o,e.label=4;case 4:return e.trys.push([4,6,,7]),[4,w.WindowUtils.monitorIframeForHash(r.contentWindow,this.config.system.loadFrameTimeout,a,this.logger)];case 5:return(n=e.sent())&&this.handleAuthenticationResponse(n),[3,7];case 6:throw i=e.sent(),this.cacheStorage.getItem(I.AuthCache.generateTemporaryCacheKey(L.TemporaryCacheKeys.RENEW_STATUS,t))===L.Constants.inProgress&&(this.logger.verbose("Loading frame has timed out after: "+this.config.system.loadFrameTimeout/1e3+" seconds for scope/authority "+c+":"+t),t&&window.callbackMappedToRenewStates[t]&&window.callbackMappedToRenewStates[t](null,i),this.cacheStorage.removeItem(I.AuthCache.generateTemporaryCacheKey(L.TemporaryCacheKeys.RENEW_STATUS,t))),w.WindowUtils.removeHiddenIframe(r),i;case 7:return w.WindowUtils.removeHiddenIframe(r),[2]}})})},d.prototype.navigateWindow=function(e,t){if(!e||A.StringUtils.isEmpty(e))throw this.logger.info("Navigate url is empty"),U.AuthError.createUnexpectedError("Navigate url is empty");var r=t||window,o=t?"Navigated Popup window to:"+e:"Navigate to:"+e;this.logger.infoPii(o),r.location.assign(e)},d.prototype.registerCallback=function(o,n,e,t){var i=this;window.activeRenewals[n]=o,window.promiseMappedToRenewStates[o]||(window.promiseMappedToRenewStates[o]=[]),window.promiseMappedToRenewStates[o].push({resolve:e,reject:t}),window.callbackMappedToRenewStates[o]||(window.callbackMappedToRenewStates[o]=function(e,t){window.activeRenewals[n]=null;for(var r=0;r<window.promiseMappedToRenewStates[o].length;++r)try{if(t)window.promiseMappedToRenewStates[o][r].reject(t);else{if(!e)throw i.cacheStorage.resetTempCacheItems(o),U.AuthError.createUnexpectedError("Error and response are both null");window.promiseMappedToRenewStates[o][r].resolve(e)}}catch(e){i.logger.warning(e)}window.promiseMappedToRenewStates[o]=null,window.callbackMappedToRenewStates[o]=null})},d.prototype.logout=function(e){this.logger.verbose("Logout has been called"),this.logoutAsync(e)},d.prototype.logoutAsync=function(s){return m.__awaiter(this,void 0,Promise,function(){var t,r,o,n,i,a;return m.__generator(this,function(e){switch(e.label){case 0:t=s||u.CryptoUtils.createNewGuid(),r=this.telemetryManager.createAndStartApiEvent(t,c.API_EVENT_IDENTIFIER.Logout),this.clearCache(),this.account=null,e.label=1;case 1:return e.trys.push([1,5,,6]),this.authorityInstance.hasCachedMetadata()?[3,3]:(this.logger.verbose("No cached metadata for authority"),[4,N.AuthorityFactory.saveMetadataFromNetwork(this.authorityInstance,this.telemetryManager,s)]);case 2:return e.sent(),[3,4];case 3:this.logger.verbose("Cached metadata found for authority"),e.label=4;case 4:return o="client-request-id="+t,n=void 0,this.getPostLogoutRedirectUri()?(n="&post_logout_redirect_uri="+encodeURIComponent(this.getPostLogoutRedirectUri()),this.logger.verbose("redirectUri found and set")):(n="",this.logger.verbose("No redirectUri set for app. postLogoutQueryParam is empty")),i=void 0,this.authorityInstance.EndSessionEndpoint?(i=this.authorityInstance.EndSessionEndpoint+"?"+o+n,this.logger.verbose("EndSessionEndpoint found and urlNavigate set"),this.logger.verbosePii("urlNavigate set to: "+this.authorityInstance.EndSessionEndpoint)):(i=this.authority+"oauth2/v2.0/logout?"+o+n,this.logger.verbose("No endpoint, urlNavigate set to default")),this.telemetryManager.stopAndFlushApiEvent(t,r,!0),this.logger.verbose("Navigating window to urlNavigate"),this.navigateWindow(i),[3,6];case 5:return a=e.sent(),this.telemetryManager.stopAndFlushApiEvent(t,r,!1,a.errorCode),[3,6];case 6:return[2]}})})},d.prototype.clearCache=function(){this.logger.verbose("Clearing cache"),window.renewStates=[];for(var e=this.cacheStorage.getAllAccessTokens(L.Constants.clientId,L.Constants.homeAccountIdentifier),t=0;t<e.length;t++)this.cacheStorage.removeItem(JSON.stringify(e[t].key));this.cacheStorage.resetCacheItems(),this.cacheStorage.clearMsalCookie(),this.logger.verbose("Cache cleared")},d.prototype.clearCacheForScope=function(e){this.logger.verbose("Clearing access token from cache");for(var t=this.cacheStorage.getAllAccessTokens(L.Constants.clientId,L.Constants.homeAccountIdentifier),r=0;r<t.length;r++){var o=t[r];o.value.accessToken===e&&(this.cacheStorage.removeItem(JSON.stringify(o.key)),this.logger.verbosePii("Access token removed: "+o.key))}},d.prototype.isCallback=function(e){return this.logger.info("isCallback will be deprecated in favor of urlContainsHash in MSAL.js v2.0."),this.logger.verbose("isCallback has been called"),R.UrlUtils.urlContainsHash(e)},d.prototype.processCallBack=function(e,t,r){var o,n;this.logger.info("ProcessCallBack has been called. Processing callback from redirect response"),t||(this.logger.verbose("StateInfo is null, getting stateInfo from hash"),t=this.getResponseState(e));try{o=this.saveTokenFromHash(e,t)}catch(e){n=e}try{this.cacheStorage.clearMsalCookie(t.state);var i=this.getAccountState(t.state);if(o){if(t.requestType===L.Constants.renewToken||o.accessToken?(window.parent!==window?this.logger.verbose("Window is in iframe, acquiring token silently"):this.logger.verbose("Acquiring token interactive in progress"),this.logger.verbose("Response tokenType set to "+L.ServerHashParamKeys.ACCESS_TOKEN),o.tokenType=L.ServerHashParamKeys.ACCESS_TOKEN):t.requestType===L.Constants.login&&(this.logger.verbose("Response tokenType set to "+L.ServerHashParamKeys.ID_TOKEN),o.tokenType=L.ServerHashParamKeys.ID_TOKEN),!r)return this.logger.verbose("Setting redirectResponse"),void(this.redirectResponse=o)}else if(!r)return this.logger.verbose("Response is null, setting redirectResponse with state"),this.redirectResponse=q.buildResponseStateOnly(i),this.redirectError=n,void this.cacheStorage.resetTempCacheItems(t.state);this.logger.verbose("Calling callback provided to processCallback"),r(o,n)}catch(e){throw this.logger.error("Error occurred in token received callback function: "+e),M.ClientAuthError.createErrorInCallbackFunction(e.toString())}},d.prototype.handleAuthenticationResponse=function(e){this.logger.verbose("HandleAuthenticationResponse has been called");var t=e||window.location.hash,r=this.getResponseState(t);this.logger.verbose("Obtained state from response");var o=window.callbackMappedToRenewStates[r.state];this.processCallBack(t,r,o),w.WindowUtils.closePopups()},d.prototype.handleRedirectAuthenticationResponse=function(e){this.logger.info("Returned from redirect url"),this.logger.verbose("HandleRedirectAuthenticationResponse has been called"),window.location.hash="",this.logger.verbose("Window.location.hash cleared");var t=this.getResponseState(e);if(this.config.auth.navigateToLoginRequestUrl&&window.parent===window){this.logger.verbose("Window.parent is equal to window, not in popup or iframe. Navigation to login request url after login turned on");var r=this.cacheStorage.getItem(I.AuthCache.generateTemporaryCacheKey(L.TemporaryCacheKeys.LOGIN_REQUEST,t.state),this.inCookie);if(!r||"null"===r)return this.logger.error("Unable to get valid login request url from cache, redirecting to home page"),void window.location.assign("/");this.logger.verbose("Valid login request url obtained from cache");var o=R.UrlUtils.removeHashFromUrl(window.location.href),n=R.UrlUtils.removeHashFromUrl(r);if(o!==n)return this.logger.verbose("Current url is not login request url, navigating"),this.logger.verbosePii("CurrentUrl: "+o+", finalRedirectUrl: "+n),void window.location.assign(""+n+e);this.logger.verbose("Current url matches login request url");var i=R.UrlUtils.GetUrlComponents(r);i.Hash&&(this.logger.verbose("Login request url contains hash, resetting non-msal hash"),window.location.hash=i.Hash)}else this.config.auth.navigateToLoginRequestUrl||this.logger.verbose("Default navigation to start page after login turned off");this.processCallBack(e,t,null)},d.prototype.getResponseState=function(e){this.logger.verbose("GetResponseState has been called");var t,r=R.UrlUtils.deserializeHash(e);if(!r)throw U.AuthError.createUnexpectedError("Hash was not parsed correctly.");if(!r.hasOwnProperty(L.ServerHashParamKeys.STATE))throw U.AuthError.createUnexpectedError("Hash does not contain state.");this.logger.verbose("Hash contains state. Creating stateInfo object");var o=k.RequestUtils.parseLibraryState(r.state);if((t={requestType:L.Constants.unknown,state:r.state,timestamp:o.ts,method:o.method,stateMatch:!1}).state===this.cacheStorage.getItem(I.AuthCache.generateTemporaryCacheKey(L.TemporaryCacheKeys.STATE_LOGIN,t.state),this.inCookie)||t.state===this.silentAuthenticationState)return this.logger.verbose("State matches cached state, setting requestType to login"),t.requestType=L.Constants.login,t.stateMatch=!0,t;if(t.state===this.cacheStorage.getItem(I.AuthCache.generateTemporaryCacheKey(L.TemporaryCacheKeys.STATE_ACQ_TOKEN,t.state),this.inCookie))return this.logger.verbose("State matches cached state, setting requestType to renewToken"),t.requestType=L.Constants.renewToken,t.stateMatch=!0,t;if(!t.stateMatch){this.logger.verbose("State does not match cached state, setting requestType to type from window"),t.requestType=window.requestType;for(var n=window.renewStates,i=0;i<n.length;i++)if(n[i]===t.state){this.logger.verbose("Matching state found for request"),t.stateMatch=!0;break}t.stateMatch||this.logger.verbose("Matching state not found for request")}return t},d.prototype.getCachedToken=function(e,t){this.logger.verbose("GetCachedToken has been called");var r=null,o=e.scopes,n=this.cacheStorage.getAllAccessTokens(this.clientId,t?t.homeAccountIdentifier:null);if(this.logger.verbose("Getting all cached access tokens"),0===n.length)return this.logger.verbose("No matching tokens found when filtered by clientId and account"),null;var i=[];if(!e.authority||R.UrlUtils.isCommonAuthority(e.authority)||R.UrlUtils.isOrganizationsAuthority(e.authority)){this.logger.verbose("No authority passed, filtering tokens by scope");for(var a=0;a<n.length;a++){var s=(h=n[a]).key.scopes.split(" ");_.ScopeSet.containsScope(s,o)&&i.push(h)}if(1===i.length)this.logger.verbose("One matching token found, setting authorityInstance"),r=i[0],e.authorityInstance=N.AuthorityFactory.CreateInstance(r.key.authority,this.config.auth.validateAuthority);else if(1<i.length){if(!e.authority)throw M.ClientAuthError.createMultipleMatchingTokensInCacheError(o.toString());var c=R.UrlUtils.GetUrlComponents(e.authority).HostNameAndPort,u=i.filter(function(e){return R.UrlUtils.GetUrlComponents(e.key.authority).HostNameAndPort===c});if(1!==u.length){if(1<u.length)throw M.ClientAuthError.createMultipleMatchingTokensInCacheError(o.toString());return this.logger.verbose("No matching tokens found"),null}r=u[0],e.authorityInstance=N.AuthorityFactory.CreateInstance(r.key.authority,this.config.auth.validateAuthority)}else{this.logger.verbose("No matching token found when filtering by scope");var l=this.getUniqueAuthority(n,"authority");if(1<l.length)throw M.ClientAuthError.createMultipleAuthoritiesInCacheError(o.toString());this.logger.verbose("Single authority used, setting authorityInstance"),e.authorityInstance=N.AuthorityFactory.CreateInstance(l[0],this.config.auth.validateAuthority)}}else{for(this.logger.verbose("Authority passed, filtering by authority and scope"),a=0;a<n.length;a++){var h;s=(h=n[a]).key.scopes.split(" "),_.ScopeSet.containsScope(s,o)&&R.UrlUtils.CanonicalizeUri(h.key.authority)===e.authority&&i.push(h)}if(0===i.length)return this.logger.verbose("No matching tokens found"),null;if(1!==i.length)throw M.ClientAuthError.createMultipleMatchingTokensInCacheError(o.toString());this.logger.verbose("Single token found"),r=i[0]}if(null==r)return this.logger.verbose("No tokens found"),null;this.logger.verbose("Evaluating access token found");var d=Number(r.value.expiresIn),p=this.config.system.tokenRenewalOffsetSeconds||300;if(d&&d>P.TimeUtils.now()+p){this.logger.verbose("Token expiration is within offset, renewing token");var g=new b.IdToken(r.value.idToken);if(!t&&!(t=this.getAccount()))throw U.AuthError.createUnexpectedError("Account should not be null here.");var f=this.getAccountState(e.state),y={uniqueId:"",tenantId:"",tokenType:r.value.idToken===r.value.accessToken?L.ServerHashParamKeys.ID_TOKEN:L.ServerHashParamKeys.ACCESS_TOKEN,idToken:g,idTokenClaims:g.claims,accessToken:r.value.accessToken,scopes:r.key.scopes.split(" "),expiresOn:new Date(1e3*d),account:t,accountState:f,fromCache:!0};return O.ResponseUtils.setResponseIdToken(y,g),this.logger.verbose("Response generated and token set"),y}return this.logger.verbose("Token expired, removing from cache"),this.cacheStorage.removeItem(JSON.stringify(i[0].key)),null},d.prototype.getUniqueAuthority=function(e,t){this.logger.verbose("GetUniqueAuthority has been called");var r=[],o=[];return e.forEach(function(e){e.key.hasOwnProperty(t)&&-1===o.indexOf(e.key[t])&&(o.push(e.key[t]),r.push(e.key[t]))}),r},d.prototype.extractADALIdToken=function(){this.logger.verbose("ExtractADALIdToken has been called");var e=this.cacheStorage.getItem(L.Constants.adalIdToken);return A.StringUtils.isEmpty(e)?null:y.TokenUtils.extractIdToken(e)},d.prototype.renewToken=function(e,t,r,o,n){this.logger.verbose("RenewToken has been called"),this.logger.verbosePii("RenewToken scope and authority: "+e);var i=w.WindowUtils.generateFrameName(L.FramePrefix.TOKEN_FRAME,e);w.WindowUtils.addHiddenIFrame(i,this.logger),this.updateCacheEntries(n,o,!1),this.logger.verbosePii("RenewToken expected state: "+n.state);var a=R.UrlUtils.urlRemoveQueryStringParameter(R.UrlUtils.createNavigateUrl(n),L.Constants.prompt)+L.Constants.prompt_none+L.Constants.response_mode_fragment;window.renewStates.push(n.state),window.requestType=L.Constants.renewToken,this.logger.verbose("Set window.renewState and requestType"),this.registerCallback(n.state,e,t,r),this.logger.infoPii("Navigate to: "+a),this.loadIframeTimeout(a,i,e).catch(function(e){return r(e)})},d.prototype.renewIdToken=function(e,t,r,o,n){this.logger.info("RenewIdToken has been called");var i=w.WindowUtils.generateFrameName(L.FramePrefix.ID_TOKEN_FRAME,e);w.WindowUtils.addHiddenIFrame(i,this.logger),this.updateCacheEntries(n,o,!1),this.logger.verbose("RenewIdToken expected state: "+n.state);var a=R.UrlUtils.urlRemoveQueryStringParameter(R.UrlUtils.createNavigateUrl(n),L.Constants.prompt)+L.Constants.prompt_none+L.Constants.response_mode_fragment;this.silentLogin?(this.logger.verbose("Silent login is true, set silentAuthenticationState"),window.requestType=L.Constants.login,this.silentAuthenticationState=n.state):(this.logger.verbose("Not silent login, set window.renewState and requestType"),window.requestType=L.Constants.renewToken,window.renewStates.push(n.state)),this.registerCallback(n.state,e,t,r),this.logger.infoPii('Navigate to:" '+a),this.loadIframeTimeout(a,i,e).catch(function(e){return r(e)})},d.prototype.saveAccessToken=function(e,t,r,o,n){var i;this.logger.verbose("SaveAccessToken has been called");var a,s=m.__assign({},e),c=new T.ClientInfo(o);if(r.hasOwnProperty(L.ServerHashParamKeys.SCOPE)){this.logger.verbose("Response parameters contains scope");var u=(i=r[L.ServerHashParamKeys.SCOPE]).split(" "),l=this.cacheStorage.getAllAccessTokens(this.clientId,t);this.logger.verbose("Retrieving all access tokens from cache and removing duplicates");for(var h=0;h<l.length;h++){var d=l[h];if(d.key.homeAccountIdentifier===e.account.homeAccountIdentifier){var p=d.key.scopes.split(" ");_.ScopeSet.isIntersectingScopes(p,u)&&this.cacheStorage.removeItem(JSON.stringify(d.key))}}var g=P.TimeUtils.parseExpiresIn(r[L.ServerHashParamKeys.EXPIRES_IN]);a=k.RequestUtils.parseLibraryState(r[L.ServerHashParamKeys.STATE]).ts+g;var f=new v.AccessTokenKey(t,this.clientId,i,c.uid,c.utid),y=new E.AccessTokenValue(r[L.ServerHashParamKeys.ACCESS_TOKEN],n.rawIdToken,a.toString(),o);this.cacheStorage.setItem(JSON.stringify(f),JSON.stringify(y)),this.logger.verbose("Saving token to cache"),s.accessToken=r[L.ServerHashParamKeys.ACCESS_TOKEN],s.scopes=u}else this.logger.verbose("Response parameters does not contain scope, clientId set as scope"),i=this.clientId,f=new v.AccessTokenKey(t,this.clientId,i,c.uid,c.utid),a=Number(n.expiration),y=new E.AccessTokenValue(r[L.ServerHashParamKeys.ID_TOKEN],r[L.ServerHashParamKeys.ID_TOKEN],a.toString(),o),this.cacheStorage.setItem(JSON.stringify(f),JSON.stringify(y)),this.logger.verbose("Saving token to cache"),s.scopes=[i],s.accessToken=r[L.ServerHashParamKeys.ID_TOKEN];return a?(this.logger.verbose("New expiration set"),s.expiresOn=new Date(1e3*a)):this.logger.error("Could not parse expiresIn parameter"),s},d.prototype.saveTokenFromHash=function(e,t){this.logger.verbose("SaveTokenFromHash has been called"),this.logger.info("State status: "+t.stateMatch+"; Request type: "+t.requestType);var r,o={uniqueId:"",tenantId:"",tokenType:"",idToken:null,idTokenClaims:null,accessToken:null,scopes:[],expiresOn:null,account:null,accountState:"",fromCache:!1},n=R.UrlUtils.deserializeHash(e),i="",a="",s=null;if(n.hasOwnProperty(L.ServerHashParamKeys.ERROR_DESCRIPTION)||n.hasOwnProperty(L.ServerHashParamKeys.ERROR)){if(this.logger.verbose("Server returned an error"),this.logger.infoPii("Error : "+n[L.ServerHashParamKeys.ERROR]+"; Error description: "+n[L.ServerHashParamKeys.ERROR_DESCRIPTION]),this.cacheStorage.setItem(L.ErrorCacheKeys.ERROR,n[L.ServerHashParamKeys.ERROR]),this.cacheStorage.setItem(L.ErrorCacheKeys.ERROR_DESC,n[L.ServerHashParamKeys.ERROR_DESCRIPTION]),t.requestType===L.Constants.login&&(this.logger.verbose("RequestType is login, caching login error, generating authorityKey"),this.cacheStorage.setItem(L.ErrorCacheKeys.LOGIN_ERROR,n[L.ServerHashParamKeys.ERROR_DESCRIPTION]+":"+n[L.ServerHashParamKeys.ERROR]),i=I.AuthCache.generateAuthorityKey(t.state)),t.requestType===L.Constants.renewToken){this.logger.verbose("RequestType is renewToken, generating acquireTokenAccountKey"),i=I.AuthCache.generateAuthorityKey(t.state);var c=this.getAccount(),u=void 0;c&&!A.StringUtils.isEmpty(c.homeAccountIdentifier)?(u=c.homeAccountIdentifier,this.logger.verbose("AccountId is set")):(u=L.Constants.no_account,this.logger.verbose("AccountId is set as no_account")),a=I.AuthCache.generateAcquireTokenAccountKey(u,t.state)}var l=n[L.ServerHashParamKeys.ERROR],h=n[L.ServerHashParamKeys.ERROR_DESCRIPTION];r=x.InteractionRequiredAuthError.isInteractionRequiredError(l)||x.InteractionRequiredAuthError.isInteractionRequiredError(h)?new x.InteractionRequiredAuthError(n[L.ServerHashParamKeys.ERROR],n[L.ServerHashParamKeys.ERROR_DESCRIPTION]):new K.ServerError(n[L.ServerHashParamKeys.ERROR],n[L.ServerHashParamKeys.ERROR_DESCRIPTION])}else if(this.logger.verbose("Server returns success"),t.stateMatch){this.logger.info("State is right"),n.hasOwnProperty(L.ServerHashParamKeys.SESSION_STATE)&&(this.logger.verbose("Fragment has session state, caching"),this.cacheStorage.setItem(I.AuthCache.generateTemporaryCacheKey(L.TemporaryCacheKeys.SESSION_STATE,t.state),n[L.ServerHashParamKeys.SESSION_STATE])),o.accountState=this.getAccountState(t.state);var d="";if(n.hasOwnProperty(L.ServerHashParamKeys.ACCESS_TOKEN)){this.logger.info("Fragment has access token"),o.accessToken=n[L.ServerHashParamKeys.ACCESS_TOKEN],n.hasOwnProperty(L.ServerHashParamKeys.SCOPE)&&(o.scopes=n[L.ServerHashParamKeys.SCOPE].split(" ")),n.hasOwnProperty(L.ServerHashParamKeys.ID_TOKEN)?(this.logger.verbose("Fragment has id_token"),s=new b.IdToken(n[L.ServerHashParamKeys.ID_TOKEN]),o.idToken=s,o.idTokenClaims=s.claims):(this.logger.verbose("No idToken on fragment, getting idToken from cache"),s=new b.IdToken(this.cacheStorage.getItem(L.PersistentCacheKeys.IDTOKEN)),o=O.ResponseUtils.setResponseIdToken(o,s));var p=this.populateAuthority(t.state,this.inCookie,this.cacheStorage,s);if(this.logger.verbose("Got authority from cache"),!n.hasOwnProperty(L.ServerHashParamKeys.CLIENT_INFO))throw this.logger.warning("ClientInfo not received in the response from AAD"),M.ClientAuthError.createClientInfoNotPopulatedError("ClientInfo not received in the response from the server");this.logger.verbose("Fragment has clientInfo"),d=n[L.ServerHashParamKeys.CLIENT_INFO],o.account=S.Account.createAccount(s,new T.ClientInfo(d)),this.logger.verbose("Account object created from response");var g=void 0;g=o.account&&!A.StringUtils.isEmpty(o.account.homeAccountIdentifier)?(this.logger.verbose("AccountKey set"),o.account.homeAccountIdentifier):(this.logger.verbose("AccountKey set as no_account"),L.Constants.no_account),a=I.AuthCache.generateAcquireTokenAccountKey(g,t.state);var f=I.AuthCache.generateAcquireTokenAccountKey(L.Constants.no_account,t.state);this.logger.verbose("AcquireTokenAccountKey generated");var y=this.cacheStorage.getItem(a),m=void 0;A.StringUtils.isEmpty(y)?A.StringUtils.isEmpty(this.cacheStorage.getItem(f))||(this.logger.verbose("No acquireToken account retrieved from cache"),o=this.saveAccessToken(o,p,n,d,s)):(m=JSON.parse(y),this.logger.verbose("AcquireToken request account retrieved from cache"),o.account&&m&&S.Account.compareAccounts(o.account,m)?(o=this.saveAccessToken(o,p,n,d,s),this.logger.info("The user object received in the response is the same as the one passed in the acquireToken request")):this.logger.warning("The account object created from the response is not the same as the one passed in the acquireToken request"))}if(n.hasOwnProperty(L.ServerHashParamKeys.ID_TOKEN))if(this.logger.info("Fragment has idToken"),s=new b.IdToken(n[L.ServerHashParamKeys.ID_TOKEN]),o=O.ResponseUtils.setResponseIdToken(o,s),n.hasOwnProperty(L.ServerHashParamKeys.CLIENT_INFO)?(this.logger.verbose("Fragment has clientInfo"),d=n[L.ServerHashParamKeys.CLIENT_INFO]):this.logger.warning("ClientInfo not received in the response from AAD"),p=this.populateAuthority(t.state,this.inCookie,this.cacheStorage,s),this.account=S.Account.createAccount(s,new T.ClientInfo(d)),o.account=this.account,this.logger.verbose("Account object created from response"),s&&s.nonce){this.logger.verbose("IdToken has nonce");var v=this.cacheStorage.getItem(I.AuthCache.generateTemporaryCacheKey(L.TemporaryCacheKeys.NONCE_IDTOKEN,t.state),this.inCookie);s.nonce!==v?(this.account=null,this.cacheStorage.setItem(L.ErrorCacheKeys.LOGIN_ERROR,"Nonce Mismatch. Expected Nonce: "+v+",Actual Nonce: "+s.nonce),this.logger.error("Nonce Mismatch. Expected Nonce: "+v+", Actual Nonce: "+s.nonce),r=M.ClientAuthError.createNonceMismatchError(v,s.nonce)):(this.logger.verbose("Nonce matches, saving idToken to cache"),this.cacheStorage.setItem(L.PersistentCacheKeys.IDTOKEN,n[L.ServerHashParamKeys.ID_TOKEN],this.inCookie),this.cacheStorage.setItem(L.PersistentCacheKeys.CLIENT_INFO,d,this.inCookie),this.saveAccessToken(o,p,n,d,s))}else this.logger.verbose("No idToken or no nonce. Cache key for Authority set as state"),i=t.state,a=t.state,this.logger.error("Invalid id_token received in the response"),r=M.ClientAuthError.createInvalidIdTokenError(s),this.cacheStorage.setItem(L.ErrorCacheKeys.ERROR,r.errorCode),this.cacheStorage.setItem(L.ErrorCacheKeys.ERROR_DESC,r.errorMessage)}else{this.logger.verbose("State mismatch"),i=t.state,a=t.state;var E=this.cacheStorage.getItem(I.AuthCache.generateTemporaryCacheKey(L.TemporaryCacheKeys.STATE_LOGIN,t.state),this.inCookie);this.logger.error("State Mismatch. Expected State: "+E+", Actual State: "+t.state),r=M.ClientAuthError.createInvalidStateError(t.state,E),this.cacheStorage.setItem(L.ErrorCacheKeys.ERROR,r.errorCode),this.cacheStorage.setItem(L.ErrorCacheKeys.ERROR_DESC,r.errorMessage)}if(this.cacheStorage.removeItem(I.AuthCache.generateTemporaryCacheKey(L.TemporaryCacheKeys.RENEW_STATUS,t.state)),this.cacheStorage.resetTempCacheItems(t.state),this.logger.verbose("Status set to complete, temporary cache cleared"),this.inCookie&&(this.logger.verbose("InCookie is true, setting authorityKey in cookie"),this.cacheStorage.setItemCookie(i,"",-1),this.cacheStorage.clearMsalCookie(t.state)),r)throw r;if(!o)throw U.AuthError.createUnexpectedError("Response is null");return o},d.prototype.populateAuthority=function(e,t,r,o){this.logger.verbose("PopulateAuthority has been called");var n=I.AuthCache.generateAuthorityKey(e),i=r.getItem(n,t);return A.StringUtils.isEmpty(i)?i:R.UrlUtils.replaceTenantPath(i,o.tenantId)},d.prototype.getAccount=function(){if(this.account)return this.account;var e=this.cacheStorage.getItem(L.PersistentCacheKeys.IDTOKEN,this.inCookie),t=this.cacheStorage.getItem(L.PersistentCacheKeys.CLIENT_INFO,this.inCookie);if(A.StringUtils.isEmpty(e)||A.StringUtils.isEmpty(t))return null;var r=new b.IdToken(e),o=new T.ClientInfo(t);return this.account=S.Account.createAccount(r,o),this.account},d.prototype.getAccountState=function(e){if(e){var t=e.indexOf(L.Constants.resourceDelimiter);if(-1<t&&t+1<e.length)return e.substring(t+1)}return e},d.prototype.getAllAccounts=function(){for(var e=[],t=this.cacheStorage.getAllAccessTokens(L.Constants.clientId,L.Constants.homeAccountIdentifier),r=0;r<t.length;r++){var o=new b.IdToken(t[r].value.idToken),n=new T.ClientInfo(t[r].value.homeAccountIdentifier),i=S.Account.createAccount(o,n);e.push(i)}return this.getUniqueAccounts(e)},d.prototype.getUniqueAccounts=function(e){if(!e||e.length<=1)return e;for(var t=[],r=[],o=0;o<e.length;++o)e[o].homeAccountIdentifier&&-1===t.indexOf(e[o].homeAccountIdentifier)&&(t.push(e[o].homeAccountIdentifier),r.push(e[o]));return r},d.prototype.broadcast=function(e,t){var r=new CustomEvent(e,{detail:t});window.dispatchEvent(r)},d.prototype.getCachedTokenInternal=function(e,t,r,o){var n=t||this.getAccount();if(!n)return null;var i=this.authorityInstance?this.authorityInstance:N.AuthorityFactory.CreateInstance(this.authority,this.config.auth.validateAuthority),a=this.getTokenType(n,e,!0),s=new C.ServerRequestParameters(i,this.clientId,a,this.getRedirectUri(),e,r,o);return this.getCachedToken(s,t)},d.prototype.getScopesForEndpoint=function(e){if(0<this.config.framework.unprotectedResources.length)for(var t=0;t<this.config.framework.unprotectedResources.length;t++)if(-1<e.indexOf(this.config.framework.unprotectedResources[t]))return null;if(0<this.config.framework.protectedResourceMap.size)for(var r=0,o=Array.from(this.config.framework.protectedResourceMap.keys());r<o.length;r++){var n=o[r];if(-1<e.indexOf(n))return this.config.framework.protectedResourceMap.get(n)}return-1<e.indexOf("http://")||-1<e.indexOf("https://")?R.UrlUtils.getHostFromUri(e)===R.UrlUtils.getHostFromUri(this.getRedirectUri())?new Array(this.clientId):null:new Array(this.clientId)},d.prototype.getLoginInProgress=function(){return this.cacheStorage.getItem(L.TemporaryCacheKeys.INTERACTION_STATUS)===L.Constants.inProgress},d.prototype.setInteractionInProgress=function(e){e?this.cacheStorage.setItem(L.TemporaryCacheKeys.INTERACTION_STATUS,L.Constants.inProgress):this.cacheStorage.removeItem(L.TemporaryCacheKeys.INTERACTION_STATUS)},d.prototype.setloginInProgress=function(e){this.setInteractionInProgress(e)},d.prototype.getAcquireTokenInProgress=function(){return this.cacheStorage.getItem(L.TemporaryCacheKeys.INTERACTION_STATUS)===L.Constants.inProgress},d.prototype.setAcquireTokenInProgress=function(e){this.setInteractionInProgress(e)},d.prototype.getLogger=function(){return this.logger},d.prototype.setLogger=function(e){this.logger=e},d.prototype.getRedirectUri=function(e){return e||("function"==typeof this.config.auth.redirectUri?this.config.auth.redirectUri():this.config.auth.redirectUri)},d.prototype.getPostLogoutRedirectUri=function(){return"function"==typeof this.config.auth.postLogoutRedirectUri?this.config.auth.postLogoutRedirectUri():this.config.auth.postLogoutRedirectUri},d.prototype.getCurrentConfiguration=function(){if(!this.config)throw a.ClientConfigurationError.createNoSetConfigurationError();return this.config},d.prototype.getTokenType=function(e,t,r){return r?S.Account.compareAccounts(e,this.getAccount())?-1<t.indexOf(this.config.auth.clientId)?H:i:-1<t.indexOf(this.config.auth.clientId)?H:l:S.Account.compareAccounts(e,this.getAccount())?-1<t.indexOf(this.clientId)?H:i:l},d.prototype.setAccountCache=function(e,t){var r=e?this.getAccountId(e):L.Constants.no_account,o=I.AuthCache.generateAcquireTokenAccountKey(r,t);this.cacheStorage.setItem(o,JSON.stringify(e))},d.prototype.setAuthorityCache=function(e,t){var r=I.AuthCache.generateAuthorityKey(e);this.cacheStorage.setItem(r,R.UrlUtils.CanonicalizeUri(t),this.inCookie)},d.prototype.updateCacheEntries=function(e,t,r,o){o&&this.cacheStorage.setItem(I.AuthCache.generateTemporaryCacheKey(L.TemporaryCacheKeys.LOGIN_REQUEST,e.state),o,this.inCookie),r?this.cacheStorage.setItem(I.AuthCache.generateTemporaryCacheKey(L.TemporaryCacheKeys.STATE_LOGIN,e.state),e.state,this.inCookie):this.setAccountCache(t,e.state),this.setAuthorityCache(e.state,e.authority),this.cacheStorage.setItem(I.AuthCache.generateTemporaryCacheKey(L.TemporaryCacheKeys.NONCE_IDTOKEN,e.state),e.nonce,this.inCookie)},d.prototype.getAccountId=function(e){return A.StringUtils.isEmpty(e.homeAccountIdentifier)?L.Constants.no_account:e.homeAccountIdentifier},d.prototype.buildIDTokenRequest=function(e){return{scopes:[this.clientId],authority:this.authority,account:this.getAccount(),extraQueryParameters:e.extraQueryParameters,correlationId:e.correlationId}},d.prototype.getTelemetryManagerFromConfig=function(e,t){if(!e)return s.default.getTelemetrymanagerStub(t,this.logger);var r=e.applicationName,o=e.applicationVersion,n=e.telemetryEmitter;if(!r||!o||!n)throw a.ClientConfigurationError.createTelemetryConfigError(e);var i={platform:{applicationName:r,applicationVersion:o},clientId:t};return new s.default(i,n,this.logger)},d);function d(e){this.authResponseCallback=null,this.tokenReceivedCallback=null,this.errorReceivedCallback=null,this.config=o.buildConfiguration(e),this.logger=this.config.system.logger,this.clientId=this.config.auth.clientId,this.inCookie=this.config.cache.storeAuthStateInCookie,this.telemetryManager=this.getTelemetryManagerFromConfig(this.config.system.telemetry,this.clientId),n.TrustedAuthority.setTrustedAuthoritiesFromConfig(this.config.auth.validateAuthority,this.config.auth.knownAuthorities),N.AuthorityFactory.saveMetadataFromConfig(this.config.auth.authority,this.config.auth.authorityMetadata),this.authority=this.config.auth.authority||"https://login.microsoftonline.com/common",this.cacheStorage=new I.AuthCache(this.clientId,this.config.cache.cacheLocation,this.inCookie),window.activeRenewals={},window.renewStates=[],window.callbackMappedToRenewStates={},window.promiseMappedToRenewStates={},window.msal=this;var t=window.location.hash,r=R.UrlUtils.urlContainsHash(t);w.WindowUtils.checkIfBackButtonIsPressed(this.cacheStorage),!r||this.getResponseState(t).method===L.Constants.interactionTypeRedirect&&this.handleRedirectAuthenticationResponse(t)}t.UserAgentApplication=h},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),c=r(1),o=r(3),u=r(9),n=(Object.defineProperty(a.prototype,"authority",{get:function(){return this.authorityInstance?this.authorityInstance.CanonicalAuthority:null},enumerable:!0,configurable:!0}),a.prototype.populateQueryParams=function(e,t,r,o){var n={};t&&(t.prompt&&(this.promptValue=t.prompt),t.claimsRequest&&(this.claimsValue=t.claimsRequest),a.isSSOParam(t)&&(n=this.constructUnifiedCacheQueryParameter(t,null))),r&&(n=this.constructUnifiedCacheQueryParameter(null,r)),n=this.addHintParameters(e,n);var i=t?t.extraQueryParameters:null;this.queryParameters=a.generateQueryParametersString(n),this.extraQueryParameters=a.generateQueryParametersString(i,o)},a.prototype.constructUnifiedCacheQueryParameter=function(e,t){var r,o;if(e)if(e.account){var n=e.account;n.sid?(r=c.SSOTypes.SID,o=n.sid):n.userName&&(r=c.SSOTypes.LOGIN_HINT,o=n.userName)}else e.sid?(r=c.SSOTypes.SID,o=e.sid):e.loginHint&&(r=c.SSOTypes.LOGIN_HINT,o=e.loginHint);else t&&t.hasOwnProperty(c.Constants.upn)&&(r=c.SSOTypes.ID_TOKEN,o=t.upn);return this.addSSOParameter(r,o)},a.prototype.addHintParameters=function(e,t){return e&&!t[c.SSOTypes.SID]&&(!t[c.SSOTypes.LOGIN_HINT]&&e.sid&&this.promptValue===c.PromptState.NONE?t=this.addSSOParameter(c.SSOTypes.SID,e.sid,t):t[c.SSOTypes.LOGIN_HINT]||!e.userName||o.StringUtils.isEmpty(e.userName)||(t=this.addSSOParameter(c.SSOTypes.LOGIN_HINT,e.userName,t))),t},a.prototype.addSSOParameter=function(e,t,r){if(r=r||{},!t)return r;switch(e){case c.SSOTypes.SID:r[c.SSOTypes.SID]=t;break;case c.SSOTypes.ID_TOKEN:case c.SSOTypes.LOGIN_HINT:r[c.SSOTypes.LOGIN_HINT]=t}return r},a.generateQueryParametersString=function(t,r){var o=null;return t&&Object.keys(t).forEach(function(e){e===c.Constants.domain_hint&&(r||t[c.SSOTypes.SID])||(null==o?o=e+"="+encodeURIComponent(t[e]):o+="&"+e+"="+encodeURIComponent(t[e]))}),o},a.isSSOParam=function(e){return e&&(e.account||e.sid||e.loginHint)},a);function a(e,t,r,o,n,i,a){this.authorityInstance=e,this.clientId=t,this.nonce=s.CryptoUtils.createNewGuid(),this.scopes=n?n.slice():[t],this.scopes=u.ScopeSet.trimScopes(this.scopes),this.state=i,this.correlationId=a,this.xClientSku="MSAL.JS",this.xClientVer=c.libraryVersion(),this.responseType=r,this.redirectUri=o}t.ServerRequestParameters=n},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(3),i=(a.decodeJwt=function(e){if(o.StringUtils.isEmpty(e))return null;var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(e);return!t||t.length<4?null:{header:t[1],JWSPayload:t[2],JWSSig:t[3]}},a.extractIdToken=function(e){var t=this.decodeJwt(e);if(!t)return null;try{var r=t.JWSPayload,o=n.CryptoUtils.base64Decode(r);return o?JSON.parse(o):null}catch(e){}return null},a);function a(){}t.TokenUtils=i},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var c=r(0),o=r(1),u=r(5),l=r(9),n=r(3),i=r(2),a=r(11),s=r(6),h=(d.validateRequest=function(e,t,r,o){if(!t&&!e)throw u.ClientConfigurationError.createEmptyRequestError();var n,i;e&&(n=t?l.ScopeSet.appendScopes(e.scopes,e.extraScopesToConsent):e.scopes,l.ScopeSet.validateInputScope(n,!t,r),this.validatePromptParameter(e.prompt),i=this.validateEQParameters(e.extraQueryParameters,e.claimsRequest),this.validateClaimsRequest(e.claimsRequest));var a=this.validateAndGenerateState(e&&e.state,o),s=this.validateAndGenerateCorrelationId(e&&e.correlationId);return c.__assign({},e,{extraQueryParameters:i,scopes:n,state:a,correlationId:s})},d.validatePromptParameter=function(e){if(e&&[o.PromptState.LOGIN,o.PromptState.SELECT_ACCOUNT,o.PromptState.CONSENT,o.PromptState.NONE].indexOf(e)<0)throw u.ClientConfigurationError.createInvalidPromptError(e)},d.validateEQParameters=function(e,t){var r=c.__assign({},e);return r?(t&&delete r[o.Constants.claims],o.BlacklistedEQParams.forEach(function(e){r[e]&&delete r[e]}),r):null},d.validateClaimsRequest=function(e){if(e)try{JSON.parse(e)}catch(e){throw u.ClientConfigurationError.createClaimsRequestParsingError(e)}},d.validateAndGenerateState=function(e,t){return n.StringUtils.isEmpty(e)?d.generateLibraryState(t):""+d.generateLibraryState(t)+o.Constants.resourceDelimiter+e},d.generateLibraryState=function(e){var t={id:i.CryptoUtils.createNewGuid(),ts:a.TimeUtils.now(),method:e},r=JSON.stringify(t);return i.CryptoUtils.base64Encode(r)},d.parseLibraryState=function(t){var e=decodeURIComponent(t).split(o.Constants.resourceDelimiter)[0];if(i.CryptoUtils.isGuid(e))return{id:e,ts:a.TimeUtils.now(),method:o.Constants.interactionTypeRedirect};try{var r=i.CryptoUtils.base64Decode(e);return JSON.parse(r)}catch(e){throw s.ClientAuthError.createInvalidStateError(t,null)}},d.validateAndGenerateCorrelationId=function(e){if(e&&!i.CryptoUtils.isGuid(e))throw u.ClientConfigurationError.createInvalidCorrelationIdError();return i.CryptoUtils.isGuid(e)?e:i.CryptoUtils.createNewGuid()},d.createRequestSignature=function(e){return""+e.scopes.join(" ").toLowerCase()+o.Constants.resourceDelimiter+e.authority},d);function d(){}t.RequestUtils=h},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),s=r(3),o=(c.createAccount=function(e,t){var r,o=e.objectId||e.subject,n=t?t.uid:"",i=t?t.utid:"";return s.StringUtils.isEmpty(n)||s.StringUtils.isEmpty(i)||(r=a.CryptoUtils.base64Encode(n)+"."+a.CryptoUtils.base64Encode(i)),new c(o,r,e.preferredName,e.name,e.claims,e.sid,e.issuer)},c.compareAccounts=function(e,t){return!!(e&&t&&e.homeAccountIdentifier&&t.homeAccountIdentifier&&e.homeAccountIdentifier===t.homeAccountIdentifier)},c);function c(e,t,r,o,n,i,a){this.accountIdentifier=e,this.homeAccountIdentifier=t,this.userName=r,this.name=o,this.idToken=n,this.idTokenClaims=n,this.sid=i,this.environment=a}t.Account=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var u=r(6),l=r(4),n=r(1),c=r(11),o=(h.isInIframe=function(){return window.parent!==window},h.isInPopup=function(){return!(!window.opener||window.opener===window)},h.generateFrameName=function(e,t){return""+e+n.Constants.resourceDelimiter+t},h.monitorIframeForHash=function(i,e,a,s){return new Promise(function(t,r){var o=c.TimeUtils.relativeNowMs()+e;s.verbose("monitorWindowForIframe polling started");var n=setInterval(function(){if(c.TimeUtils.relativeNowMs()>o)return s.error("monitorIframeForHash unable to find hash in url, timing out"),s.errorPii("monitorIframeForHash polling timed out for url: "+a),clearInterval(n),void r(u.ClientAuthError.createTokenRenewalTimeoutError());var e;try{e=i.location.href}catch(e){}e&&l.UrlUtils.urlContainsHash(e)&&(s.verbose("monitorIframeForHash found url in hash"),clearInterval(n),t(i.location.hash))},h.POLLING_INTERVAL_MS)})},h.monitorPopupForHash=function(a,e,s,c){return new Promise(function(t,r){var o=e/h.POLLING_INTERVAL_MS,n=0;c.verbose("monitorWindowForHash polling started");var i=setInterval(function(){if(a.closed)return c.error("monitorWindowForHash window closed"),clearInterval(i),void r(u.ClientAuthError.createUserCancelledError());var e;try{e=a.location.href}catch(e){}e&&"about:blank"!==e&&(n++,e&&l.UrlUtils.urlContainsHash(e)?(c.verbose("monitorPopupForHash found url in hash"),clearInterval(i),t(a.location.hash)):o<n&&(c.error("monitorPopupForHash unable to find hash in url, timing out"),c.errorPii("monitorPopupForHash polling timed out for url: "+s),clearInterval(i),r(u.ClientAuthError.createTokenRenewalTimeoutError())))},h.POLLING_INTERVAL_MS)})},h.loadFrame=function(o,n,e,i){var a=this;return i.infoPii("LoadFrame: "+n),new Promise(function(t,r){setTimeout(function(){var e=a.loadFrameSync(o,n,i);e?t(e):r("Unable to load iframe with name: "+n)},e)})},h.loadFrameSync=function(e,t,r){var o=h.addHiddenIFrame(t,r);return o?(""!==o.src&&"about:blank"!==o.src||(o.src=e,r.infoPii("Frame Name : "+t+" Navigated to: "+e)),o):null},h.addHiddenIFrame=function(e,t){if(void 0===e)return null;t.infoPii("Add msal frame to document:"+e);var r=document.getElementById(e);if(!r){if(document.createElement&&document.documentElement&&-1===window.navigator.userAgent.indexOf("MSIE 5.0")){var o=document.createElement("iframe");o.setAttribute("id",e),o.setAttribute("aria-hidden","true"),o.style.visibility="hidden",o.style.position="absolute",o.style.width=o.style.height="0",o.style.border="0",o.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),r=document.getElementsByTagName("body")[0].appendChild(o)}else document.body&&document.body.insertAdjacentHTML&&document.body.insertAdjacentHTML("beforeend","<iframe name='"+e+"' id='"+e+"' style='display:none'></iframe>");window.frames&&window.frames[e]&&(r=window.frames[e])}return r},h.removeHiddenIframe=function(e){document.body===e.parentNode&&document.body.removeChild(e)},h.getIframeWithHash=function(t){var r=document.getElementsByTagName("iframe");return Array.apply(null,Array(r.length)).map(function(e,t){return r.item(t)}).filter(function(e){try{return e.contentWindow.location.hash===t}catch(e){return!1}})[0]},h.getPopups=function(){return window.openedWindows||(window.openedWindows=[]),window.openedWindows},h.getPopUpWithHash=function(t){return h.getPopups().filter(function(e){try{return e.location.hash===t}catch(e){return!1}})[0]},h.trackPopup=function(e){h.getPopups().push(e)},h.closePopups=function(){h.getPopups().forEach(function(e){return e.close()})},h.blockReloadInHiddenIframes=function(){if(l.UrlUtils.urlContainsHash(window.location.hash)&&h.isInIframe())throw u.ClientAuthError.createBlockTokenRequestsInHiddenIframeError()},h.checkIfBackButtonIsPressed=function(e){var t=e.getItem(n.TemporaryCacheKeys.REDIRECT_REQUEST);if(t&&!l.UrlUtils.urlContainsHash(window.location.hash)){var r=t.split(n.Constants.resourceDelimiter);r.shift();var o=0<r.length?r.join(n.Constants.resourceDelimiter):null;e.resetTempCacheItems(o)}},h.POLLING_INTERVAL_MS=50,h);function h(){}t.WindowUtils=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(22),n=r(3),a=r(5),s=r(1),c=r(4),u=(l.saveMetadataFromNetwork=function(r,o,n){return i.__awaiter(this,void 0,Promise,function(){var t;return i.__generator(this,function(e){switch(e.label){case 0:return[4,r.resolveEndpointsAsync(o,n)];case 1:return t=e.sent(),this.metadataMap.set(r.CanonicalAuthority,t),[2,t]}})})},l.getMetadata=function(e){return this.metadataMap.get(e)},l.saveMetadataFromConfig=function(e,t){try{if(t){var r=JSON.parse(t);if(!r.authorization_endpoint||!r.end_session_endpoint||!r.issuer)throw a.ClientConfigurationError.createInvalidAuthorityMetadataError();this.metadataMap.set(e,{AuthorizationEndpoint:r.authorization_endpoint,EndSessionEndpoint:r.end_session_endpoint,Issuer:r.issuer})}}catch(e){throw a.ClientConfigurationError.createInvalidAuthorityMetadataError()}},l.CreateInstance=function(e,t,r){return n.StringUtils.isEmpty(e)?null:(r&&this.saveMetadataFromConfig(e,r),new o.Authority(e,t,this.metadataMap.get(e)))},l.isAdfs=function(e){var t=c.UrlUtils.GetUrlComponents(e).PathSegments;return!(!t.length||t[0].toLowerCase()!==s.Constants.ADFS)},l.metadataMap=new Map,l);function l(){}t.AuthorityFactory=u},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o,a=r(0),s=r(5),c=r(23),n=r(4),u=r(24),l=r(1);(o=t.AuthorityType||(t.AuthorityType={}))[o.Default=0]="Default",o[o.Adfs=1]="Adfs";var i=(Object.defineProperty(h.prototype,"Tenant",{get:function(){return this.CanonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"AuthorizationEndpoint",{get:function(){return this.validateResolved(),this.tenantDiscoveryResponse.AuthorizationEndpoint.replace(/{tenant}|{tenantid}/g,this.Tenant)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"EndSessionEndpoint",{get:function(){return this.validateResolved(),this.tenantDiscoveryResponse.EndSessionEndpoint.replace(/{tenant}|{tenantid}/g,this.Tenant)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"SelfSignedJwtAudience",{get:function(){return this.validateResolved(),this.tenantDiscoveryResponse.Issuer.replace(/{tenant}|{tenantid}/g,this.Tenant)},enumerable:!0,configurable:!0}),h.prototype.validateResolved=function(){if(!this.hasCachedMetadata())throw"Please call ResolveEndpointsAsync first"},Object.defineProperty(h.prototype,"CanonicalAuthority",{get:function(){return this.canonicalAuthority},set:function(e){this.canonicalAuthority=n.UrlUtils.CanonicalizeUri(e),this.canonicalAuthorityUrlComponents=null},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"CanonicalAuthorityUrlComponents",{get:function(){return this.canonicalAuthorityUrlComponents||(this.canonicalAuthorityUrlComponents=n.UrlUtils.GetUrlComponents(this.CanonicalAuthority)),this.canonicalAuthorityUrlComponents},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"DefaultOpenIdConfigurationEndpoint",{get:function(){return this.CanonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!0,configurable:!0}),h.prototype.validateAsUri=function(){var e;try{e=this.CanonicalAuthorityUrlComponents}catch(e){throw s.ClientConfigurationErrorMessage.invalidAuthorityType}if(!e.Protocol||"https:"!==e.Protocol.toLowerCase())throw s.ClientConfigurationErrorMessage.authorityUriInsecure;if(!e.PathSegments||e.PathSegments.length<1)throw s.ClientConfigurationErrorMessage.authorityUriInvalidPath},h.prototype.DiscoverEndpoints=function(e,t,r){var o=new c.XhrClient,n=l.NetworkRequestType.GET,i=t.createAndStartHttpEvent(r,n,e,"openIdConfigurationEndpoint");return o.sendRequestAsync(e,n,!0).then(function(e){return i.httpResponseStatus=e.statusCode,t.stopEvent(i),{AuthorizationEndpoint:e.body.authorization_endpoint,EndSessionEndpoint:e.body.end_session_endpoint,Issuer:e.body.issuer}}).catch(function(e){throw i.serverErrorCode=e,t.stopEvent(i),e})},h.prototype.resolveEndpointsAsync=function(n,i){return a.__awaiter(this,void 0,Promise,function(){var t,r,o;return a.__generator(this,function(e){switch(e.label){case 0:return this.IsValidationEnabled?(t=this.canonicalAuthorityUrlComponents.HostNameAndPort,0!==u.TrustedAuthority.getTrustedHostList().length?[3,2]:[4,u.TrustedAuthority.setTrustedAuthoritiesFromNetwork(this.canonicalAuthority,n,i)]):[3,3];case 1:e.sent(),e.label=2;case 2:if(!u.TrustedAuthority.IsInTrustedHostList(t))throw s.ClientConfigurationError.createUntrustedAuthorityError(t);e.label=3;case 3:return r=this.GetOpenIdConfigurationEndpoint(),[4,(o=this).DiscoverEndpoints(r,n,i)];case 4:return o.tenantDiscoveryResponse=e.sent(),[2,this.tenantDiscoveryResponse]}})})},h.prototype.hasCachedMetadata=function(){return!!(this.tenantDiscoveryResponse&&this.tenantDiscoveryResponse.AuthorizationEndpoint&&this.tenantDiscoveryResponse.EndSessionEndpoint&&this.tenantDiscoveryResponse.Issuer)},h.prototype.GetOpenIdConfigurationEndpoint=function(){return this.DefaultOpenIdConfigurationEndpoint},h);function h(e,t,r){this.IsValidationEnabled=t,this.CanonicalAuthority=e,this.validateAsUri(),this.tenantDiscoveryResponse=r}t.Authority=i},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),o=(n.prototype.sendRequestAsync=function(e,t,r){var a=this;return new Promise(function(o,n){var i=new XMLHttpRequest;if(i.open(t,e,!0),i.onload=function(e){var t;(i.status<200||300<=i.status)&&n(a.handleError(i.responseText));try{t=JSON.parse(i.responseText)}catch(e){n(a.handleError(i.responseText))}var r={statusCode:i.status,body:t};o(r)},i.onerror=function(e){n(i.status)},t!==s.NetworkRequestType.GET)throw"not implemented";i.send()})},n.prototype.handleError=function(t){var e;try{if((e=JSON.parse(t)).error)return e.error;throw t}catch(e){return t}},n);function n(){}t.XhrClient=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var c=r(0),u=r(23),l=r(1),i=r(4),o=(a.setTrustedAuthoritiesFromConfig=function(e,t){e&&!this.getTrustedHostList().length&&t.forEach(function(e){a.TrustedHostList.push(e.toLowerCase())})},a.getAliases=function(i,a,s){return c.__awaiter(this,void 0,Promise,function(){var t,r,o,n;return c.__generator(this,function(e){return t=new u.XhrClient,r=l.NetworkRequestType.GET,o=""+l.AAD_INSTANCE_DISCOVERY_ENDPOINT+i+"oauth2/v2.0/authorize",n=a.createAndStartHttpEvent(s,r,o,"getAliases"),[2,t.sendRequestAsync(o,r,!0).then(function(e){return n.httpResponseStatus=e.statusCode,a.stopEvent(n),e.body.metadata}).catch(function(e){throw n.serverErrorCode=e,a.stopEvent(n),e})]})})},a.setTrustedAuthoritiesFromNetwork=function(r,o,n){return c.__awaiter(this,void 0,Promise,function(){var t;return c.__generator(this,function(e){switch(e.label){case 0:return[4,this.getAliases(r,o,n)];case 1:return e.sent().forEach(function(e){e.aliases.forEach(function(e){a.TrustedHostList.push(e.toLowerCase())})}),t=i.UrlUtils.GetUrlComponents(r).HostNameAndPort,a.getTrustedHostList().length&&!a.IsInTrustedHostList(t)&&a.TrustedHostList.push(t.toLowerCase()),[2]}})})},a.getTrustedHostList=function(){return this.TrustedHostList},a.IsInTrustedHostList=function(e){return-1<this.TrustedHostList.indexOf(e.toLowerCase())},a.TrustedHostList=[],a);function a(){}t.TrustedAuthority=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var c=r(0),o=r(12),n=r(4),u={clientId:"",authority:null,validateAuthority:!0,authorityMetadata:"",knownAuthorities:[],redirectUri:function(){return n.UrlUtils.getCurrentUrl()},postLogoutRedirectUri:function(){return n.UrlUtils.getCurrentUrl()},navigateToLoginRequestUrl:!0},l={cacheLocation:"sessionStorage",storeAuthStateInCookie:!1},h={logger:new o.Logger(null),loadFrameTimeout:6e3,tokenRenewalOffsetSeconds:300,navigateFrameWait:500},d={isAngular:!1,unprotectedResources:new Array,protectedResourceMap:new Map};t.buildConfiguration=function(e){var t=e.auth,r=e.cache,o=void 0===r?{}:r,n=e.system,i=void 0===n?{}:n,a=e.framework,s=void 0===a?{}:a;return{auth:c.__assign({},u,t),cache:c.__assign({},l,o),system:c.__assign({},h,i),framework:c.__assign({},d,s)}}},function(e,r,t){Object.defineProperty(r,"__esModule",{value:!0});var o=t(0),n=t(13);r.InteractionRequiredAuthErrorMessage={interactionRequired:{code:"interaction_required"},consentRequired:{code:"consent_required"},loginRequired:{code:"login_required"}};var i,a=(i=n.ServerError,o.__extends(s,i),s.isInteractionRequiredError=function(e){var t=[r.InteractionRequiredAuthErrorMessage.interactionRequired.code,r.InteractionRequiredAuthErrorMessage.consentRequired.code,r.InteractionRequiredAuthErrorMessage.loginRequired.code];return e&&-1<t.indexOf(e)},s.createLoginRequiredAuthError=function(e){return new s(r.InteractionRequiredAuthErrorMessage.loginRequired.code,e)},s.createInteractionRequiredAuthError=function(e){return new s(r.InteractionRequiredAuthErrorMessage.interactionRequired.code,e)},s.createConsentRequiredAuthError=function(e){return new s(r.InteractionRequiredAuthErrorMessage.consentRequired.code,e)},s);function s(e,t){var r=i.call(this,e,t)||this;return r.name="InteractionRequiredAuthError",Object.setPrototypeOf(r,s.prototype),r}r.InteractionRequiredAuthError=a},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.buildResponseStateOnly=function(e){return{uniqueId:"",tenantId:"",tokenType:"",idToken:null,idTokenClaims:null,accessToken:"",scopes:null,expiresOn:null,account:null,accountState:e,fromCache:!1}}},function(e,t,r){var o;Object.defineProperty(t,"__esModule",{value:!0});var n,i,a,s,c=r(0),u=c.__importDefault(r(14)),l=r(8),h=r(10);t.EVENT_KEYS={AUTHORITY:h.prependEventNamePrefix("authority"),AUTHORITY_TYPE:h.prependEventNamePrefix("authority_type"),PROMPT:h.prependEventNamePrefix("ui_behavior"),TENANT_ID:h.prependEventNamePrefix("tenant_id"),USER_ID:h.prependEventNamePrefix("user_id"),WAS_SUCESSFUL:h.prependEventNamePrefix("was_successful"),API_ERROR_CODE:h.prependEventNamePrefix("api_error_code"),LOGIN_HINT:h.prependEventNamePrefix("login_hint")},(i=n=t.API_CODE||(t.API_CODE={}))[i.AcquireTokenRedirect=2001]="AcquireTokenRedirect",i[i.AcquireTokenSilent=2002]="AcquireTokenSilent",i[i.AcquireTokenPopup=2003]="AcquireTokenPopup",i[i.LoginRedirect=2004]="LoginRedirect",i[i.LoginPopup=2005]="LoginPopup",i[i.Logout=2006]="Logout",(s=a=t.API_EVENT_IDENTIFIER||(t.API_EVENT_IDENTIFIER={})).AcquireTokenRedirect="AcquireTokenRedirect",s.AcquireTokenSilent="AcquireTokenSilent",s.AcquireTokenPopup="AcquireTokenPopup",s.LoginRedirect="LoginRedirect",s.LoginPopup="LoginPopup",s.Logout="Logout";var d,p=((o={})[a.AcquireTokenSilent]=n.AcquireTokenSilent,o[a.AcquireTokenPopup]=n.AcquireTokenPopup,o[a.AcquireTokenRedirect]=n.AcquireTokenRedirect,o[a.LoginPopup]=n.LoginPopup,o[a.LoginRedirect]=n.LoginRedirect,o[a.Logout]=n.Logout,o),g=(d=u.default,c.__extends(f,d),Object.defineProperty(f.prototype,"apiEventIdentifier",{set:function(e){this.event[l.TELEMETRY_BLOB_EVENT_NAMES.ApiTelemIdConstStrKey]=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"apiCode",{set:function(e){this.event[l.TELEMETRY_BLOB_EVENT_NAMES.ApiIdConstStrKey]=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"authority",{set:function(e){this.event[t.EVENT_KEYS.AUTHORITY]=h.scrubTenantFromUri(e).toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"apiErrorCode",{set:function(e){this.event[t.EVENT_KEYS.API_ERROR_CODE]=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"tenantId",{set:function(e){this.event[t.EVENT_KEYS.TENANT_ID]=this.piiEnabled&&e?h.hashPersonalIdentifier(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"accountId",{set:function(e){this.event[t.EVENT_KEYS.USER_ID]=this.piiEnabled&&e?h.hashPersonalIdentifier(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"wasSuccessful",{get:function(){return!0===this.event[t.EVENT_KEYS.WAS_SUCESSFUL]},set:function(e){this.event[t.EVENT_KEYS.WAS_SUCESSFUL]=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"loginHint",{set:function(e){this.event[t.EVENT_KEYS.LOGIN_HINT]=this.piiEnabled&&e?h.hashPersonalIdentifier(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"authorityType",{set:function(e){this.event[t.EVENT_KEYS.AUTHORITY_TYPE]=e.toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"promptType",{set:function(e){this.event[t.EVENT_KEYS.PROMPT]=e.toLowerCase()},enumerable:!0,configurable:!0}),f);function f(e,t,r){var o=d.call(this,h.prependEventNamePrefix("api_event"),e,r)||this;return r&&(o.apiCode=p[r],o.apiEventIdentifier=r),o.piiEnabled=t,o}t.default=g},function(e,t,r){e.exports=r(30)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(15);t.UserAgentApplication=o.UserAgentApplication,t.authResponseCallback=o.authResponseCallback,t.errorReceivedCallback=o.errorReceivedCallback,t.tokenReceivedCallback=o.tokenReceivedCallback;var n=r(12);t.Logger=n.Logger;var i=r(12);t.LogLevel=i.LogLevel;var a=r(19);t.Account=a.Account;var s=r(1);t.Constants=s.Constants,t.ServerHashParamKeys=s.ServerHashParamKeys;var c=r(22);t.Authority=c.Authority;var u=r(15);t.CacheResult=u.CacheResult;var l=r(25);t.CacheLocation=l.CacheLocation,t.Configuration=l.Configuration;var h=r(42);t.AuthenticationParameters=h.AuthenticationParameters;var d=r(27);t.AuthResponse=d.AuthResponse;var p=r(2);t.CryptoUtils=p.CryptoUtils;var g=r(4);t.UrlUtils=g.UrlUtils;var f=r(20);t.WindowUtils=f.WindowUtils;var y=r(7);t.AuthError=y.AuthError;var m=r(6);t.ClientAuthError=m.ClientAuthError;var v=r(13);t.ServerError=v.ServerError;var E=r(5);t.ClientConfigurationError=E.ClientConfigurationError;var C=r(26);t.InteractionRequiredAuthError=C.InteractionRequiredAuthError},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,r,o,n){this.authority=a.UrlUtils.CanonicalizeUri(e),this.clientId=t,this.scopes=r,this.homeAccountIdentifier=i.CryptoUtils.base64Encode(o)+"."+i.CryptoUtils.base64Encode(n)}var i=r(2),a=r(4);t.AccessTokenKey=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,r,o){this.accessToken=e,this.idToken=t,this.expiresIn=r,this.homeAccountIdentifier=o}t.AccessTokenValue=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),n=r(6),i=r(3),a=(Object.defineProperty(s.prototype,"uid",{get:function(){return this._uid?this._uid:""},set:function(e){this._uid=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"utid",{get:function(){return this._utid?this._utid:""},set:function(e){this._utid=e},enumerable:!0,configurable:!0}),s);function s(e){if(!e||i.StringUtils.isEmpty(e))return this.uid="",void(this.utid="");try{var t=o.CryptoUtils.base64Decode(e),r=JSON.parse(t);r&&(r.hasOwnProperty("uid")&&(this.uid=r.uid),r.hasOwnProperty("utid")&&(this.utid=r.utid))}catch(e){throw n.ClientAuthError.createClientInfoDecodingError(e)}}t.ClientInfo=a},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});function o(e){if(a.StringUtils.isEmpty(e))throw n.ClientAuthError.createIdTokenNullOrEmptyError(e);try{this.rawIdToken=e,this.claims=i.TokenUtils.extractIdToken(e),this.claims&&(this.claims.hasOwnProperty("iss")&&(this.issuer=this.claims.iss),this.claims.hasOwnProperty("oid")&&(this.objectId=this.claims.oid),this.claims.hasOwnProperty("sub")&&(this.subject=this.claims.sub),this.claims.hasOwnProperty("tid")&&(this.tenantId=this.claims.tid),this.claims.hasOwnProperty("ver")&&(this.version=this.claims.ver),this.claims.hasOwnProperty("preferred_username")&&(this.preferredName=this.claims.preferred_username),this.claims.hasOwnProperty("name")&&(this.name=this.claims.name),this.claims.hasOwnProperty("nonce")&&(this.nonce=this.claims.nonce),this.claims.hasOwnProperty("exp")&&(this.expiration=this.claims.exp),this.claims.hasOwnProperty("home_oid")&&(this.homeObjectId=this.claims.home_oid),this.claims.hasOwnProperty("sid")&&(this.sid=this.claims.sid),this.claims.hasOwnProperty("cloud_instance_host_name")&&(this.cloudInstance=this.claims.cloud_instance_host_name))}catch(e){throw n.ClientAuthError.createIdTokenParsingError(e)}}var n=r(6),i=r(17),a=r(3);t.IdToken=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var s,o=r(0),c=r(1),u=r(36),n=r(37),l=r(6),i=r(18),a=(s=n.BrowserStorage,o.__extends(h,s),h.prototype.migrateCacheEntries=function(r){var o=this,e=c.Constants.cachePrefix+"."+c.PersistentCacheKeys.IDTOKEN,t=c.Constants.cachePrefix+"."+c.PersistentCacheKeys.CLIENT_INFO,n=c.Constants.cachePrefix+"."+c.ErrorCacheKeys.ERROR,i=c.Constants.cachePrefix+"."+c.ErrorCacheKeys.ERROR_DESC,a=[s.prototype.getItem.call(this,e),s.prototype.getItem.call(this,t),s.prototype.getItem.call(this,n),s.prototype.getItem.call(this,i)];[c.PersistentCacheKeys.IDTOKEN,c.PersistentCacheKeys.CLIENT_INFO,c.ErrorCacheKeys.ERROR,c.ErrorCacheKeys.ERROR_DESC].forEach(function(e,t){return o.duplicateCacheEntry(e,a[t],r)})},h.prototype.duplicateCacheEntry=function(e,t,r){t&&this.setItem(e,t,r)},h.prototype.generateCacheKey=function(t,r){try{return JSON.parse(t),t}catch(e){return 0===t.indexOf(""+c.Constants.cachePrefix)||0===t.indexOf(c.Constants.adalIdToken)?t:r?c.Constants.cachePrefix+"."+this.clientId+"."+t:c.Constants.cachePrefix+"."+t}},h.prototype.setItem=function(e,t,r){s.prototype.setItem.call(this,this.generateCacheKey(e,!0),t,r),this.rollbackEnabled&&!r&&s.prototype.setItem.call(this,this.generateCacheKey(e,!1),t,r)},h.prototype.getItem=function(e,t){return s.prototype.getItem.call(this,this.generateCacheKey(e,!0),t)},h.prototype.removeItem=function(e){s.prototype.removeItem.call(this,this.generateCacheKey(e,!0)),this.rollbackEnabled&&s.prototype.removeItem.call(this,this.generateCacheKey(e,!1))},h.prototype.resetCacheItems=function(){var e,t=window[this.cacheLocation];for(e in t)t.hasOwnProperty(e)&&-1!==e.indexOf(c.Constants.cachePrefix)&&s.prototype.removeItem.call(this,e)},h.prototype.resetTempCacheItems=function(e){var t=this,r=e&&i.RequestUtils.parseLibraryState(e).id,o=this.tokenRenewalInProgress(e),n=window[this.cacheLocation];r&&!o&&Object.keys(n).forEach(function(e){-1!==e.indexOf(r)&&(t.removeItem(e),s.prototype.clearItemCookie.call(t,e))}),this.removeItem(c.TemporaryCacheKeys.INTERACTION_STATUS),this.removeItem(c.TemporaryCacheKeys.REDIRECT_REQUEST)},h.prototype.setItemCookie=function(e,t,r){s.prototype.setItemCookie.call(this,this.generateCacheKey(e,!0),t,r),this.rollbackEnabled&&s.prototype.setItemCookie.call(this,this.generateCacheKey(e,!1),t,r)},h.prototype.clearItemCookie=function(e){s.prototype.clearItemCookie.call(this,this.generateCacheKey(e,!0)),this.rollbackEnabled&&s.prototype.clearItemCookie.call(this,this.generateCacheKey(e,!1))},h.prototype.getItemCookie=function(e){return s.prototype.getItemCookie.call(this,this.generateCacheKey(e,!0))},h.prototype.getAllAccessTokens=function(i,a){var s=this;return Object.keys(window[this.cacheLocation]).reduce(function(e,t){if(t.match(i)&&t.match(a)&&t.match(c.Constants.scopes)){var r=s.getItem(t);if(r)try{var o=JSON.parse(t),n=new u.AccessTokenCacheItem(o,JSON.parse(r));return e.concat([n])}catch(e){throw l.ClientAuthError.createCacheParseError(t)}}return e},[])},h.prototype.tokenRenewalInProgress=function(e){var t=this.getItem(h.generateTemporaryCacheKey(c.TemporaryCacheKeys.RENEW_STATUS,e));return!(!t||t!==c.Constants.inProgress)},h.prototype.clearMsalCookie=function(e){var r=this;e?(this.clearItemCookie(h.generateTemporaryCacheKey(c.TemporaryCacheKeys.NONCE_IDTOKEN,e)),this.clearItemCookie(h.generateTemporaryCacheKey(c.TemporaryCacheKeys.STATE_LOGIN,e)),this.clearItemCookie(h.generateTemporaryCacheKey(c.TemporaryCacheKeys.LOGIN_REQUEST,e)),this.clearItemCookie(h.generateTemporaryCacheKey(c.TemporaryCacheKeys.STATE_ACQ_TOKEN,e))):document.cookie.split(";").forEach(function(e){var t=e.trim().split("=")[0];-1<t.indexOf(c.Constants.cachePrefix)&&s.prototype.clearItemCookie.call(r,t)})},h.generateAcquireTokenAccountKey=function(e,t){var r=i.RequestUtils.parseLibraryState(t).id;return""+c.TemporaryCacheKeys.ACQUIRE_TOKEN_ACCOUNT+c.Constants.resourceDelimiter+e+c.Constants.resourceDelimiter+r},h.generateAuthorityKey=function(e){return h.generateTemporaryCacheKey(c.TemporaryCacheKeys.AUTHORITY,e)},h.generateTemporaryCacheKey=function(e,t){var r=i.RequestUtils.parseLibraryState(t).id;return""+e+c.Constants.resourceDelimiter+r},h);function h(e,t,r){var o=s.call(this,t)||this;return o.clientId=e,o.rollbackEnabled=!0,o.migrateCacheEntries(r),o}t.AuthCache=a},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});function o(e,t){this.key=e,this.value=t}t.AccessTokenCacheItem=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(5),n=r(7),i=(a.prototype.setItem=function(e,t,r){window[this.cacheLocation].setItem(e,t),r&&this.setItemCookie(e,t)},a.prototype.getItem=function(e,t){return t&&this.getItemCookie(e)?this.getItemCookie(e):window[this.cacheLocation].getItem(e)},a.prototype.removeItem=function(e){return window[this.cacheLocation].removeItem(e)},a.prototype.clear=function(){return window[this.cacheLocation].clear()},a.prototype.setItemCookie=function(e,t,r){var o=e+"="+t+";path=/;";r&&(o+="expires="+this.getCookieExpirationTime(r)+";"),document.cookie=o},a.prototype.getItemCookie=function(e){for(var t=e+"=",r=document.cookie.split(";"),o=0;o<r.length;o++){for(var n=r[o];" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return""},a.prototype.clearItemCookie=function(e){this.setItemCookie(e,"",-1)},a.prototype.getCookieExpirationTime=function(e){var t=new Date;return new Date(t.getTime()+24*e*60*60*1e3).toUTCString()},a);function a(e){if(!window)throw n.AuthError.createNoWindowObjectError("Browser storage class could not find window object");if(!(void 0!==window[e]&&null!=window[e]))throw o.ClientConfigurationError.createStorageNotSupportedError(e);this.cacheLocation=e}t.BrowserStorage=i},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),n=(i.setResponseIdToken=function(e,t){if(!e)return null;if(!t)return e;var r=Number(t.expiration);return r&&!e.expiresOn&&(e.expiresOn=new Date(1e3*r)),o.__assign({},e,{idToken:t,idTokenClaims:t.claims,uniqueId:t.objectId||t.subject,tenantId:t.tenantId})},i);function i(){}t.ResponseUtils=n},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),s=o.__importDefault(r(40)),n=r(1),i=o.__importDefault(r(28)),a=o.__importDefault(r(41)),c=(u.getTelemetrymanagerStub=function(e,t){return new this({platform:{applicationName:"UnSetStub",applicationVersion:"0.0"},clientId:e},function(){},t)},u.prototype.startEvent=function(e){this.logger.verbose("Telemetry Event started: "+e.key),this.telemetryEmitter&&(e.start(),this.inProgressEvents[e.key]=e)},u.prototype.stopEvent=function(e){if(this.logger.verbose("Telemetry Event stopped: "+e.key),this.telemetryEmitter&&this.inProgressEvents[e.key]){e.stop(),this.incrementEventCount(e);var t=this.completedEvents[e.telemetryCorrelationId];this.completedEvents[e.telemetryCorrelationId]=(t||[]).concat([e]),delete this.inProgressEvents[e.key]}},u.prototype.flush=function(e){var t=this;if(this.logger.verbose("Flushing telemetry events: "+e),this.telemetryEmitter&&this.completedEvents[e]){var r=this.getOrphanedEvents(e);r.forEach(function(e){return t.incrementEventCount(e)});var o=this.completedEvents[e].concat(r);delete this.completedEvents[e];var n=this.eventCountByCorrelationId[e];if(delete this.eventCountByCorrelationId[e],o&&o.length){var i=new s.default(this.telemetryPlatform,e,this.clientId,n),a=o.concat([i]);this.telemetryEmitter(a.map(function(e){return e.get()}))}}},u.prototype.createAndStartApiEvent=function(e,t){var r=new i.default(e,this.logger.isPiiLoggingEnabled(),t);return this.startEvent(r),r},u.prototype.stopAndFlushApiEvent=function(e,t,r,o){t.wasSuccessful=r,o&&(t.apiErrorCode=o),this.stopEvent(t),this.flush(e)},u.prototype.createAndStartHttpEvent=function(e,t,r,o){var n=new a.default(e,o);return n.url=r,n.httpMethod=t,this.startEvent(n),n},u.prototype.incrementEventCount=function(e){var t,r=e.eventName,o=this.eventCountByCorrelationId[e.telemetryCorrelationId];o?o[r]=o[r]?o[r]+1:1:this.eventCountByCorrelationId[e.telemetryCorrelationId]=((t={})[r]=1,t)},u.prototype.getOrphanedEvents=function(o){var n=this;return Object.keys(this.inProgressEvents).reduce(function(e,t){if(-1===t.indexOf(o))return e;var r=n.inProgressEvents[t];return delete n.inProgressEvents[t],e.concat([r])},[])},u);function u(e,t,r){this.completedEvents={},this.inProgressEvents={},this.eventCountByCorrelationId={},this.onlySendFailureTelemetry=!1,this.telemetryPlatform=o.__assign({sdk:n.Constants.libraryName,sdkVersion:n.libraryVersion(),networkInformation:{connectionSpeed:"undefined"!=typeof navigator&&navigator.connection&&navigator.connection.effectiveType}},e.platform),this.clientId=e.clientId,this.onlySendFailureTelemetry=e.onlySendFailureTelemetry,this.telemetryEmitter=t,this.logger=r}t.default=c},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var i,o=r(0),a=r(8),n=o.__importDefault(r(14)),s=r(10),c=(i=n.default,o.__extends(u,i),u.prototype.getEventCount=function(e,t){return t[e]?t[e]:0},u);function u(e,t,r,o){var n=i.call(this,s.prependEventNamePrefix("default_event"),t,"DefaultEvent")||this;return n.event[s.prependEventNamePrefix("client_id")]=r,n.event[s.prependEventNamePrefix("sdk_plaform")]=e.sdk,n.event[s.prependEventNamePrefix("sdk_version")]=e.sdkVersion,n.event[s.prependEventNamePrefix("application_name")]=e.applicationName,n.event[s.prependEventNamePrefix("application_version")]=e.applicationVersion,n.event[s.prependEventNamePrefix("effective_connection_speed")]=e.networkInformation&&e.networkInformation.connectionSpeed,n.event[""+a.TELEMETRY_BLOB_EVENT_NAMES.UiEventCountTelemetryBatchKey]=n.getEventCount(s.prependEventNamePrefix("ui_event"),o),n.event[""+a.TELEMETRY_BLOB_EVENT_NAMES.HttpEventCountTelemetryBatchKey]=n.getEventCount(s.prependEventNamePrefix("http_event"),o),n.event[""+a.TELEMETRY_BLOB_EVENT_NAMES.CacheEventCountConstStrKey]=n.getEventCount(s.prependEventNamePrefix("cache_event"),o),n}t.default=c},function(e,r,t){Object.defineProperty(r,"__esModule",{value:!0});var o=t(0),n=o.__importDefault(t(14)),i=t(10),a=t(16);r.EVENT_KEYS={HTTP_PATH:i.prependEventNamePrefix("http_path"),USER_AGENT:i.prependEventNamePrefix("user_agent"),QUERY_PARAMETERS:i.prependEventNamePrefix("query_parameters"),API_VERSION:i.prependEventNamePrefix("api_version"),RESPONSE_CODE:i.prependEventNamePrefix("response_code"),O_AUTH_ERROR_CODE:i.prependEventNamePrefix("oauth_error_code"),HTTP_METHOD:i.prependEventNamePrefix("http_method"),REQUEST_ID_HEADER:i.prependEventNamePrefix("request_id_header"),SPE_INFO:i.prependEventNamePrefix("spe_info"),SERVER_ERROR_CODE:i.prependEventNamePrefix("server_error_code"),SERVER_SUB_ERROR_CODE:i.prependEventNamePrefix("server_sub_error_code"),URL:i.prependEventNamePrefix("url")};var s,c=(s=n.default,o.__extends(u,s),Object.defineProperty(u.prototype,"url",{set:function(e){var t=i.scrubTenantFromUri(e);this.event[r.EVENT_KEYS.URL]=t&&t.toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"httpPath",{set:function(e){this.event[r.EVENT_KEYS.HTTP_PATH]=i.scrubTenantFromUri(e).toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"userAgent",{set:function(e){this.event[r.EVENT_KEYS.USER_AGENT]=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"queryParams",{set:function(e){this.event[r.EVENT_KEYS.QUERY_PARAMETERS]=a.ServerRequestParameters.generateQueryParametersString(e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"apiVersion",{set:function(e){this.event[r.EVENT_KEYS.API_VERSION]=e.toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"httpResponseStatus",{set:function(e){this.event[r.EVENT_KEYS.RESPONSE_CODE]=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"oAuthErrorCode",{set:function(e){this.event[r.EVENT_KEYS.O_AUTH_ERROR_CODE]=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"httpMethod",{set:function(e){this.event[r.EVENT_KEYS.HTTP_METHOD]=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"requestIdHeader",{set:function(e){this.event[r.EVENT_KEYS.REQUEST_ID_HEADER]=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"speInfo",{set:function(e){this.event[r.EVENT_KEYS.SPE_INFO]=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"serverErrorCode",{set:function(e){this.event[r.EVENT_KEYS.SERVER_ERROR_CODE]=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"serverSubErrorCode",{set:function(e){this.event[r.EVENT_KEYS.SERVER_SUB_ERROR_CODE]=e},enumerable:!0,configurable:!0}),u);function u(e,t){return s.call(this,i.prependEventNamePrefix("http_event"),e,t)||this}r.default=c},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(5);t.validateClaimsRequest=function(e){if(e.claimsRequest)try{JSON.parse(e.claimsRequest)}catch(e){throw o.ClientConfigurationError.createClaimsRequestParsingError(e)}}}],n.c=o,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=29);function n(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var r,o});
//# sourceMappingURL=msal.min.js.map
  </script>

  <script nonce="">
    (function () {
      document.addEventListener("DOMContentLoaded", function () {

        /** WARNINGS
         * 1 - IF YOU UPDATE THIS FILE you need to keep in mind that this file is currently served from local disc
         * which is different from all other resources. Therefore be sure your change is backwards compat with the FE bits.
         *
         * 2 - Authstrap is only loaded for the msal authentication as
         * the framework requires this.
         */

         var isInIFrame = function() {
          try {
            return window.self !== window.top;
          } catch(e) {
            return true;
          }
        };

        if (isInIFrame()) {
          // Return prior to instantiating an Msal.UserAgentApplication to avoid this embedded object taking over the hash processing
          // if it wins the race with the busy looping done by the main instance.
          // This race was made possible by this fix: https://github.com/AzureAD/microsoft-authentication-library-for-js/pull/1413
          // Differences between storage formats used by different versions of MSAL can break things.
          return;
        }

        var rootUri = 'https://teams.microsoft.com/'; // rootUri will be replaced by the web server (IndexController.Auth).
        if (rootUri.charAt(0) === '[') {
          // TODO (chschafl): Remove fallback once authConstants.redirectUri has been removed.
          rootUri = '{SETINENVIRONMENTTRANSFORM}';
        }

        if (rootUri.charAt(rootUri.length - 1) !== '/') {
          rootUri += '/';
        }

        var clientId = '5e3ce6c0-2b1f-4285-8d4b-75ee78787346'; // clientId will be replaced by the web server (IndexController.Auth)
        if (clientId.charAt(0) === '[') {
          // Fallback to default client Id if the webserver doesn't replace it.
          clientId = '5e3ce6c0-2b1f-4285-8d4b-75ee78787346';
        }

        var redirectRoute = 'go';
        var redirectUri = rootUri + redirectRoute;

        // prepare list of routes to be ignored when saving locations
        // We still keep the temporary /package/go route until it's totally removed from the system
        var pdsRedirectRoute = '';
        var exceptionRoutes = [redirectRoute, pdsRedirectRoute];

        var alternateSite = 'https://teams.live.com';
        if (alternateSite.charAt(0) === '[') {
          // Fallback to empty (as in no avaliable)
          alternateSite = '';
        }

        var instanceBase = 'https://login.microsoftonline.com/';
        if (!instanceBase) {
          instanceBase = 'https://login.microsoftonline.com/';
        }

        // Audience can be restricted to consumers, organizations, theoretically to a particular tenant as well
        var audience = 'organizations';
        if (!audience) {
          // Fallback to 'consumers'
          audience = 'consumers';
        }

        // Retrieve "common front door" setting, only if alternate site is enabled
        var commonFrontDoor = "none";
        if (alternateSite) {
          commonFrontDoor = 'primary';
        }

        var secureCookie = true;
        var enableAuthCookieStore = true;

        var consumerMTResource = '';
        if (audience === 'consumers') {
          consumerMTResource = 'https://api.spaces.skype.com';
        } else {
          consumerMTResource = 'service::api.fl.teams.microsoft.com::MBI_SSL'
        }

        var instance = instanceBase + audience;
        var prefix = 'AUTHSTRAPMSAL:MSAL.JS: ';

        // Check presence of local storage
        var redirectToDOMStorageErrorPage = function () {
          window.location.assign(rootUri + 'error/DOM_storage_disabled');
        };

        var showDOMStorageError = function (e) {
          console.error('AUTHSTRAPMSAL: Storage check failed');
          redirectToErrorPage();
        };

        var localStorageEnabled = function() {
          var value = 'skypeStorageTest';
          try {
            localStorage.setItem(value, value);
            localStorage.removeItem(value);
            return true;
          } catch(e) {
            showError(e);
            return false;
          }
        };

        if(!localStorageEnabled()) {
          // Redirect to DOM error page
          redirectToDOMStorageErrorPage();
          return;
        }

        // Okta workaround
        // Okta flows currently rely on authstrap ignoring being launched with an error in an ADAL-generated redirection
        // (AADSTS90014, The+required+field+%27nonce%27+is+missing+from+the+credential.)
        // Reset the hash to let authstrap continue with the default flow
        if (window.location.hash.indexOf("AADSTS90014") >= 0 &&
          window.location.hash.indexOf("%27nonce%27") >= 0) {
          console.warn("AUTHSTRAPMSAL: Okta workaround");
          window.location.hash = "";
        }

        /* ROLLLBACK MECHANISM IS DISABLED NOW
        // Rollback check
        // inject authStrapRollbackScript here

        var authStrapRollback = new teamspace.auth.AuthStrapRollback(
          rootUri,
          redirectUri,
          document,
          console,
          localStorage);
        if (!authStrapRollback.handleRollbackCheck()) {
          // Exit fast if a rollback is under way
          return;
        }
        */

        var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var teamspace;
(function (teamspace) {
    var auth;
    (function (auth) {
        /**
         * WARNING: If you update this file you need to keep in mind that this file is compiled and inserting into Authstrap.html.
         * Currently this file is served from local disc which is different from all other resources. Therefore be sure your change
         * is backwards compat with the FE bits.
         */
        var CommonFrontDoorType;
        (function (CommonFrontDoorType) {
            // Not enabled
            CommonFrontDoorType["None"] = "none";
            // The primary site
            CommonFrontDoorType["Primary"] = "primary";
            // The secondary site
            CommonFrontDoorType["Secondary"] = "secondary";
        })(CommonFrontDoorType || (CommonFrontDoorType = {}));
        var AuthStrapMsal = /** @class */ (function () {
            // tslint:disable-next-line: no-local-storage
            function AuthStrapMsal(uap, clientId, rootUrl, redirectUrl, $window, console, document, lastLocationHashName, exceptionRoutes, alternateSite, commonFrontDoor, instanceBase, audience, showErrorOuter, feCookieName, localStorage, sessionStorage, secureCookie, enableCookieStore, signInStateCookieName, enableGuestAccess, consumerAuthzResource, consumerMTResource, tokenRenewalOffsetSeconds, extraQSPs) {
                this.uap = uap;
                this.clientId = clientId;
                this.rootUrl = rootUrl;
                this.redirectUrl = redirectUrl;
                this.$window = $window;
                this.console = console;
                this.document = document;
                this.lastLocationHashName = lastLocationHashName;
                this.exceptionRoutes = exceptionRoutes;
                this.alternateSite = alternateSite;
                this.instanceBase = instanceBase;
                this.showErrorOuter = showErrorOuter;
                this.feCookieName = feCookieName;
                this.localStorage = localStorage;
                this.sessionStorage = sessionStorage;
                this.secureCookie = secureCookie;
                this.enableCookieStore = enableCookieStore;
                this.signInStateCookieName = signInStateCookieName;
                this.enableGuestAccess = enableGuestAccess;
                this.consumerAuthzResource = consumerAuthzResource;
                this.consumerMTResource = consumerMTResource;
                this.tokenRenewalOffsetSeconds = tokenRenewalOffsetSeconds;
                this.commonFrontDoorType = CommonFrontDoorType.None;
                this.extraQueryParameters = undefined;
                this.redirectCallbackHasBeenSet = false;
                this.reentrantHandleWindowActive = false;
                // Normalize to "use 'consumers' if audience is <consumersTenantId>" model
                this.audience = this.convertToTenantIdWithConsumers(audience);
                this.isConsumersSite = audience === 'consumers';
                if (alternateSite) {
                    if (commonFrontDoor === 'primary') {
                        this.commonFrontDoorType = CommonFrontDoorType.Primary;
                    }
                    else if (commonFrontDoor === 'secondary') {
                        this.commonFrontDoorType = CommonFrontDoorType.Secondary;
                    }
                }
                // Configured (in authstrap) QSPs
                this.applyExtraQSPs(extraQSPs);
                //
                // Further customisation:
                // "auth" QSP and associated "DesiredAuth" cookie are mostly handled by PDS, driving what authstrap is
                // executed and what app id is used.
                // In addition, the current authstrap supports additional knobs for non default configurations, stored in an expandable json
                //  - "safe rollout" guid: optional guid for a QSP based safe rollout, appended to all requests
                //  - "no common front door": disables commmon front door
                // These knobs can be passed through a QSP ('authoptions') and they're persisted in an authstrap-controlled cookie ('DesiredAuthOptions')
                // Authstrap tries its best to keep 'DesiredAuth' (usually set by PDS) and 'DesiredAuthOptions' (maintained by authstrap) consistent
                //
                // Read "auth" QSP. Whoever passes "auth" is also responsible for passing "authoptions"
                var authQsp = this.getQueryParamByName(document.location.href, AuthStrapMsal.authQsp);
                if (authQsp) {
                    // Read "authoptions" QSP if present
                    var authOptionsQsp = this.getQueryParamByName(document.location.href, AuthStrapMsal.authOptionsQsp);
                    if (authOptionsQsp !== null) {
                        // Save to cookie. Validation is coming later below
                        if (authOptionsQsp) {
                            this.updateAuthCookie(AuthStrapMsal.authOptionsCookieName, authOptionsQsp);
                        }
                        else {
                            this.updateAuthCookie(AuthStrapMsal.authOptionsCookieName, null);
                        }
                    }
                }
                // Read auth option from cookie
                this.authOption = this.getAuthOption(AuthStrapMsal.authCookieName);
                // Read auth options from cookie
                var authOptionsObject = this.getAuthOption(AuthStrapMsal.authOptionsCookieName);
                if (authOptionsObject) {
                    // Options Validation
                    var authOptionsValid = false;
                    // Is non default option
                    if (this.authOption) {
                        // Is JSON parsable
                        try {
                            var authOptions = JSON.parse(authOptionsObject);
                            // Is auth field same as authOption (consistency check)
                            if (authOptions.auth === this.authOption) {
                                if (authOptions.extra) {
                                    this.applyExtraQSPs(authOptions.extra);
                                }
                                // Save for telemetry
                                this.authOptionExtended = encodeURIComponent(authOptionsObject);
                                authOptionsValid = true;
                            }
                        }
                        catch (jsonEx) {
                            this.tryErrorLog('Options parsing error');
                        }
                    }
                    if (!authOptionsValid) {
                        this.updateAuthCookie(AuthStrapMsal.authOptionsCookieName, null);
                    }
                }
                // Force "no common front door" for msal_dev1
                if (this.authOption === 'msal_dev1') {
                    this.commonFrontDoorType = CommonFrontDoorType.None;
                }
            }
            AuthStrapMsal.prototype.handleWindow = function () {
                // There's no need to call an equivalent to <adal auth context>.handleWindowCallback since that's taken care of by the constructor of UserAgentApplication itself
                var _this = this;
                // If the context is an iframe our job is done as our source is loaded. This
                // will relay the token back to the caller.
                if (this.isInIFrame()) {
                    return;
                }
                try {
                    this.tryWarnLog('Main handleWindow');
                    this.tryWarnLog("Environment: audience: " + this.audience + ", common front door: " + this.commonFrontDoorType);
                    if (this.getLoginError()) {
                        this.tryErrorLog("Authorization error: " + this.getLoginError());
                    }
                    if (!this.redirectCallbackHasBeenSet) {
                        // Capture errors happening in interactive modes
                        this.uap.handleRedirectCallback(function (authErr, response) {
                            if (authErr) {
                                if ((typeof Msal !== 'undefined') &&
                                    (authErr instanceof Msal.AuthError) &&
                                    AuthStrapMsal.errorCodesToIgnore.includes(authErr.errorCode)) {
                                    _this.tryErrorLog("Error in callback (" + authErr.errorCode + "), ignoring.");
                                }
                                else {
                                    _this.showError('callback', authErr);
                                    return;
                                }
                            }
                            if (_this.redirectCallbackHasBeenSet) {
                                // Callback coming after it has been set.
                                // One known scenario is the ADAL SSO. It is implemented internally by using an AcquireTokenSilent, with the completion
                                // delivered asynchronously with regard to "handleWindow"
                                if (!_this.reentrantHandleWindowActive) {
                                    _this.reentrantHandleWindowActive = true;
                                    _this.tryWarnLog('Completion deferred to handleWindow');
                                    _this.handleWindow();
                                    _this.reentrantHandleWindowActive = false;
                                }
                                else {
                                    // should never happen
                                    _this.tryErrorLog("Callback too reentrant, ignoring.");
                                }
                            }
                        });
                    }
                    this.redirectCallbackHasBeenSet = true;
                    //
                    // Extract the current state (cached account) and various supported QSPs that will drive the rest of the decisions
                    //
                    // Get currently signed in account, if any (could be expired)
                    var account_1 = this.uap.getAccount();
                    if (account_1) {
                        if (account_1 === null || account_1 === void 0 ? void 0 : account_1.sid) {
                            account_1.sid = undefined;
                            this.tryWarnLog('set account sid undefined');
                        }
                        try {
                            this.localStorage.setItem(AuthStrapMsal.msalActiveUserProfile, JSON.stringify(account_1.idTokenClaims));
                        }
                        catch (e) {
                            this.tryWarnLog('unable to set active user profile');
                        }
                    }
                    // Get tenant from query string parameter
                    var tenant_1 = this.getTenantQueryParam(this.document.location.href);
                    // Get sid from query string parameter
                    var sid_1 = this.getQueryParamByName(this.document.location.href, AuthStrapMsal.sid);
                    // Get login_hint from query string parameter; temporarily support the "safe" parameter as well
                    var login_hint_safe = this.getQueryParamByName(this.document.location.href, AuthStrapMsal.loginHintSafe);
                    var login_hint_1 = login_hint_safe || this.getQueryParamByName(this.document.location.href, AuthStrapMsal.loginHint);
                    // Logout request
                    var logoutRequest_1 = this.getBooleanQueryParamByName(this.document.location.href, AuthStrapMsal.logoutQsp);
                    if (this.isAccountPresent(account_1)) {
                        this.uap.authority = this.instanceBase + account_1.idTokenClaims.tid;
                    }
                    else {
                        //
                        // Tweak authority to "/common" if account detection is needed (this is a common front door)
                        //
                        if (this.commonFrontDoorType === CommonFrontDoorType.Primary ||
                            this.commonFrontDoorType === CommonFrontDoorType.Secondary) {
                            this.uap.authority = this.instanceBase + AuthStrapMsal.commonAudience;
                        }
                        else if (this.isConsumersSite) {
                            // Tokens are saved in cache with a key that contains an authority.
                            // That authority is derived from the authority used in request, with an aditional step of replacing "common" or "organizations" with the actual value from the "tid" claim.
                            // Note: "consumers" is left as is, so we avoid using that authority for consistency of results.
                            this.uap.authority = this.instanceBase + AuthStrapMsal.consumersTenantId;
                        }
                    }
                    // Detect a start from root for telemetry purposes. Only works if redirection route is different
                    if (this.rootUrl != this.redirectUrl &&
                        this.document.location.origin + this.document.location.pathname === this.rootUrl) {
                        if (logoutRequest_1) {
                            this.sendTelemetry('startlogout');
                        }
                        else {
                            this.sendTelemetry('start');
                        }
                    }
                    //
                    // Main part
                    //
                    var mainLogic_1 = function () {
                        if (logoutRequest_1) {
                            _this.tryWarnLog('Forced logout');
                            // Reset any prior "redirected to TFL" hint
                            _this.localStorage.removeItem(AuthStrapMsal.siteRedirectionHint);
                            // Clear rollback flag, to minimize false positives
                            _this.clearRollbackFlag();
                            if (_this.commonFrontDoorType === CommonFrontDoorType.Secondary) {
                                // If secondary front door, we need to sign out from both sites, to avoid the user being forced
                                // into same account when navigating to the primary front door (due to cached account on front door)
                                _this.handleCrossSiteSignOut();
                            }
                            else {
                                _this.transferUser(false);
                            }
                        }
                        else if (_this.shouldRedirectToAlternateSiteBeforeLogin(account_1, tenant_1, sid_1, login_hint_1)) {
                            _this.handleRedirectToAlternateSite(tenant_1, sid_1, login_hint_1);
                        }
                        else if (_this.shouldLogInInvalidProfile(account_1, tenant_1, sid_1, login_hint_1)) {
                            // save the url for reload once the user is logged in
                            _this.storeLocationForNonLoggedInUser();
                            _this.transferUser(true, _this.shouldForcePrompting(account_1, sid_1, login_hint_1), sid_1, login_hint_1);
                        }
                        else if (_this.shouldLogoutInvalidProfile(account_1)) {
                            _this.transferUser(false);
                        }
                        else {
                            _this.shouldRedirectToAlternateSiteAfterLogin(account_1, tenant_1, sid_1, login_hint_1).then(function (shouldRedirect) {
                                if (shouldRedirect) {
                                    _this.handleRedirectToAlternateSiteWithAccount(account_1, tenant_1);
                                }
                                else {
                                    var redirectToIndexWithRightAudience_1 = function () {
                                        var redirectToIndex = function (a) {
                                            _this.handleRedirect(a);
                                        };
                                        if (_this.shouldNarrowDownAudience(account_1)) {
                                            _this.narrowDownAudienceUsingRedirect(account_1);
                                        }
                                        else {
                                            redirectToIndex(account_1);
                                        }
                                    };
                                    _this.shouldDoPhoneAccrual(account_1).then(function (phoneAccrualNeeded) {
                                        if (phoneAccrualNeeded) {
                                            _this.handlePhoneAccrual(account_1);
                                        }
                                        else {
                                            redirectToIndexWithRightAudience_1();
                                        }
                                    }).catch(function (err) {
                                        _this.showError('phoneaccrual', err);
                                    });
                                }
                            }).catch(function (err) {
                                _this.showError('shouldredirect', err);
                            });
                        }
                    };
                    if (this.shouldRefreshCachedFiles()) {
                        this.refreshCachedFiles().then(function () {
                            mainLogic_1();
                        }).catch(function (err) {
                            _this.showError('refresh', err);
                        });
                    }
                    else {
                        mainLogic_1();
                    }
                }
                catch (e) {
                    this.showError('main', e);
                }
            };
            AuthStrapMsal.prototype.isInIFrame = function () {
                try {
                    return this.$window.self !== this.$window.top;
                }
                catch (e) {
                    this.showError('iniframe', e);
                    return true;
                }
            };
            AuthStrapMsal.prototype.getQueryParamByName = function (url, name) {
                name = name.replace(/[\[\]]/g, "\\$&");
                var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(url);
                if (!results) {
                    return null;
                }
                if (!results[2]) {
                    return '';
                }
                return decodeURIComponent(results[2].replace(/\+/g, " "));
            };
            AuthStrapMsal.prototype.getTenantQueryParam = function (url) {
                var tenant = this.getQueryParamByName(url, AuthStrapMsal.tenantId);
                if (!tenant) {
                    return tenant;
                }
                return this.convertToTenantId(tenant);
            };
            AuthStrapMsal.prototype.getBooleanQueryParamByName = function (url, name) {
                var boolValue = this.getQueryParamByName(url, name);
                return !!boolValue && boolValue.toLowerCase() === 'true';
            };
            AuthStrapMsal.prototype.convertToTenantIdWithConsumers = function (tenantId) {
                tenantId = tenantId.toLowerCase();
                // "consumers" is used instead of the explicit consumersTenantId
                if (tenantId === AuthStrapMsal.consumersTenantId) {
                    return AuthStrapMsal.consumersAudience;
                }
                return tenantId;
            };
            AuthStrapMsal.prototype.convertToTenantId = function (tenantId) {
                tenantId = tenantId.toLowerCase();
                if (tenantId === AuthStrapMsal.consumersAudience) {
                    return AuthStrapMsal.consumersTenantId;
                }
                return tenantId;
            };
            AuthStrapMsal.prototype.shouldRedirectToAlternateSiteBeforeLogin = function (account, tenant, sid, login_hint) {
                if (this.commonFrontDoorType === CommonFrontDoorType.None) {
                    // Common front door not enabled, hence there's no point to redirect
                    return false;
                }
                else if (tenant &&
                    ((this.isConsumersSite && tenant !== AuthStrapMsal.consumersTenantId) || (!this.isConsumersSite && tenant === AuthStrapMsal.consumersTenantId))) {
                    // Tenant QSP is present and is not compatible to current site
                    this.tryWarnLog('Incompatible tenant');
                    return true;
                }
                else if (!this.isAccountPresent(account)) {
                    // No cached account present.
                    // Redirect if no tenant/hint is available AND common front door type is secondary
                    var redirect = this.commonFrontDoorType === CommonFrontDoorType.Secondary && !(tenant || sid || login_hint);
                    if (redirect) {
                        this.tryWarnLog('Fresh sign in, delegating to common front door');
                    }
                    return redirect;
                }
            };
            AuthStrapMsal.prototype.shouldLogInInvalidProfile = function (account, tenant, sid, login_hint) {
                // Check account presence first
                var invalidUserState = !this.isAccountPresent(account);
                // Hints received in QSP take higher precendence.
                // A locally cached account may trump them, so force a clear cache if hints not compatible
                if (!invalidUserState &&
                    ((sid && account.sid !== sid) ||
                        (login_hint && account.idTokenClaims.preferred_username !== login_hint))) {
                    this.tryWarnLog('Clearing account profile on mismatched hints');
                    this.clearCache();
                    invalidUserState = true;
                }
                if (invalidUserState) {
                    // Case 1: no account present
                    // Override authority if tenant parameter present
                    if (tenant && this.isSwitchingToTenantAllowed(tenant)) {
                        this.uap.authority = this.instanceBase + this.convertToTenantId(tenant);
                    }
                    this.tryWarnLog('Account profile not found');
                }
                else if (tenant && account.idTokenClaims.tid != tenant && this.isSwitchingToTenantAllowed(tenant)) {
                    // Case 2: account present, but not of the required (by parameter) tenant
                    this.tryWarnLog('Account is logged into a different tenant');
                    // Override authority if tenant parameter present
                    this.uap.authority = this.instanceBase + this.convertToTenantId(tenant);
                    // Start with clean slate on Teams domain storage
                    this.clearCache();
                    invalidUserState = true;
                }
                else if (account.idTokenClaims.aud && account.idTokenClaims.aud != this.clientId) {
                    this.tryWarnLog('Client id mismatch');
                    // Start with clean slate on Teams domain storage
                    this.clearCache();
                    invalidUserState = true;
                }
                else if (this.profileExpiresIn(account, this.tokenRenewalOffsetSeconds)) {
                    // Case 3: account present, but associated token expired.
                    this.tryWarnLog('Account profile expired');
                    invalidUserState = true;
                }
                else {
                    // Check cached token consistency with user
                    try {
                        var cachedTokenResult = this.uap.getCachedToken({
                            authority: this.uap.authority,
                            scopes: [this.clientId]
                        }, account);
                        if (!cachedTokenResult) {
                            this.tryErrorLog('Cached id_token missing: null result');
                            // Force a clean slate, we may have multiple tokens (different authorities, etc.), situation we shouldn't end up in into the first place.
                            this.clearCache();
                            invalidUserState = true;
                        }
                    }
                    catch (e) {
                        if (e.name === 'ClientAuthError') {
                            var authErr = e;
                            this.tryErrorLog('Cached user id_token missing: ' + authErr.errorMessage);
                            invalidUserState = true;
                            // Force a clean slate
                            this.clearCache();
                        }
                        else {
                            throw e;
                        }
                    }
                }
                return invalidUserState;
            };
            AuthStrapMsal.prototype.isSwitchingToTenantAllowed = function (tenant) {
                if (!tenant) {
                    return false;
                }
                var allowed = false;
                if (this.audience === AuthStrapMsal.organizationsAudience) {
                    // If guest access enabled, allow switching to anything other than Personal tenant
                    allowed = this.enableGuestAccess && tenant != AuthStrapMsal.consumersTenantId;
                }
                // Remaining cases for this.audience are:
                // - "consumers": no change allowed, account is confined to Personal tenant
                // - <tenantId> (theoretical): no change allowed, account is confined to that tenant
                // - "common": not supported
                return allowed;
            };
            AuthStrapMsal.prototype.shouldForcePrompting = function (account, sid, login_hint) {
                // Some browser SSO mechanisms (Edge, for ex.) may re-sign in the user back without giving an account selection choice.
                // Our expectation is this choice is provided when there's no pre-existing hint on client side (cached account, sid, login_hint) and
                // when we're following a sign out (inferred from code being executed from redirectUrl)
                var looksLikeFollowingASignOut = this.document.location.origin + this.document.location.pathname === this.redirectUrl;
                return looksLikeFollowingASignOut && !(account || sid || login_hint);
            };
            AuthStrapMsal.prototype.shouldLogoutInvalidProfile = function (account) {
                if (!account.idTokenClaims.aud) {
                    this.tryWarnLog('Account profile type is missing aud');
                    return true;
                }
                else if (account.idTokenClaims.altsecid && account.idTokenClaims.altsecid.indexOf('1:') === 0) {
                    // Account is an MSA account in "enterprise" mode (altsecid is present and starts with "1:")
                    // V2 tickets do have oid in this case, but fill if missing (V1 case).
                    if (!account.idTokenClaims.oid) {
                        account.idTokenClaims.oid = 'msaDefaultOid';
                    }
                    // Do not log out.
                    return false;
                }
                else if (account.idTokenClaims.tid == AuthStrapMsal.consumersTenantId) {
                    // Account is MSA personal
                    // V2 tickets do have oid in this case, but fill if missing.
                    if (!account.idTokenClaims.oid) {
                        account.idTokenClaims.oid = 'msaDefaultOid';
                    }
                    // Do not log out.
                    return false;
                }
                else {
                    var isGuest = account.idTokenClaims.iss &&
                        account.idTokenClaims.idp &&
                        account.idTokenClaims.iss !== account.idTokenClaims.idp;
                    // Unredeemed guests may not have an oid.
                    // authenticationService will kick out the account if there's no oid, so set one now
                    if (isGuest && !account.idTokenClaims.oid) {
                        account.idTokenClaims.oid = 'aadDefaultOid';
                        return false;
                    }
                    // Non guest access requires upn
                    if (!isGuest && (!account.idTokenClaims.oid || !account.idTokenClaims.upn)) {
                        this.tryWarnLog('Account profile is missing oid or upn');
                        return true;
                    }
                }
                return false;
            };
            AuthStrapMsal.prototype.shouldRedirectToAlternateSiteAfterLogin = function (account, tenant, sid, login_hint) {
                var _this = this;
                if (this.commonFrontDoorType === CommonFrontDoorType.None) {
                    // Common front door not enabled, hence there's no point to redirect
                    return Promise.resolve(false);
                }
                else if (this.commonFrontDoorType === CommonFrontDoorType.Primary) {
                    // Common front door is primary.
                    return this.shouldBeServedByLifeSite(account).then(function (result) {
                        var redirect = (result !== undefined) &&
                            ((!_this.isConsumersSite && result) // Front door is work site, and life site has to be given control
                                ||
                                    (_this.isConsumersSite && !result) // Front door is life site, and work site has to be given control (testing scenario)
                            );
                        if (redirect) {
                            _this.tryWarnLog('Will be served by secondary site');
                        }
                        return Promise.resolve(redirect);
                    });
                }
                else if (this.commonFrontDoorType === CommonFrontDoorType.Secondary) {
                    // A redirection hint on primary site may land the user here even though the intention is to use a work account.
                    // Also, user can change their mind during login flow, if they don't want to go through phone accrual, for example.
                    // If account is MSA (and it's always in Consumers tenant), we continue in Life (and user can subsequently switch tenants there)
                    // Else we redirect back to work site.
                    if (account.idTokenClaims.tid !== AuthStrapMsal.consumersTenantId) {
                        this.tryWarnLog('Will be served by primary site');
                        return Promise.resolve(true);
                    }
                    else {
                        return Promise.resolve(false);
                    }
                }
                else {
                    // All other cases, no redirection
                    return Promise.resolve(false);
                }
            };
            AuthStrapMsal.prototype.shouldBeServedByLifeSite = function (account) {
                var _this = this;
                // Check whether the account (by prefered_username) has been redirected to secondary site in the past.
                // This is true if either:
                // - A prior run of heuristic determined login has to be served by Secondary site (this saves us from running heuristic again)
                // - User switched to Consumers tenant forcibly (this makes that choice stick from the previous tenant switching action)
                //
                if (account.idTokenClaims.tid === AuthStrapMsal.consumersTenantId) {
                    this.tryWarnLog('MSA Consumer account');
                    var redirectionHintAccount = this.localStorage.getItem(AuthStrapMsal.siteRedirectionHint);
                    if (redirectionHintAccount && redirectionHintAccount === account.userName) {
                        this.tryWarnLog('Redirection hint present');
                        return Promise.resolve(!this.isConsumersSite);
                    }
                    // Perform heuristic if MSA Consumers account
                    // Acquire token for Consumer MT
                    // We narrow down to current authority to avoid authority duplicates
                    return this.uap.acquireTokenSilent({
                        authority: this.uap.authority,
                        scopes: [this.consumerMTResource],
                        extraQueryParameters: this.extraQueryParameters
                    }).then(function (consumerMTTokenResponse) {
                        return new Promise(function (resolve, reject) {
                            // Use hardcoded MT Url to avoid the need to call AuthZ, which may trigger phone accrual and worsen the performance even more
                            var getTenantsUrl = AuthStrapMsal.hardcodedConsumerMT + AuthStrapMsal.getTenantsRoute;
                            var httpRequest = new XMLHttpRequest();
                            httpRequest.open("GET", getTenantsUrl, true);
                            httpRequest.setRequestHeader('authorization', 'Bearer ' + consumerMTTokenResponse.accessToken);
                            httpRequest.setRequestHeader('x-ms-client-type', 'web');
                            // TODO: timeout?
                            httpRequest.onload = function () {
                                if (httpRequest.readyState === 4) {
                                    if (httpRequest.status === 200) {
                                        var hasWorkFootPrint_1 = false;
                                        var hasConsumerTenant_1 = false;
                                        var hasRedeemedConsumerTenant_1 = false;
                                        var tenants = null;
                                        try {
                                            tenants = JSON.parse(httpRequest.responseText);
                                            tenants.forEach(function (tenant) {
                                                if (tenant.tenantType === 'organization') {
                                                    hasWorkFootPrint_1 = true;
                                                }
                                                else if (tenant.tenantType === 'consumer') {
                                                    hasConsumerTenant_1 = true;
                                                    if (tenant.isInvitationRedeemed) {
                                                        hasRedeemedConsumerTenant_1 = true;
                                                    }
                                                }
                                            });
                                        }
                                        catch (jsonEx) {
                                            _this.tryErrorLog('Tenants parsing error');
                                            resolve(undefined);
                                            return;
                                        }
                                        _this.tryWarnLog("Tenant retrieval succeeded: work: " + (hasWorkFootPrint_1 ? 'yes' : 'no') + ", consumer: " + (hasConsumerTenant_1 ? "yes (redeemed: " + (hasRedeemedConsumerTenant_1 ? 'yes' : 'no') + ")" : 'no'));
                                        _this.sendTelemetry("footprint&work=" + (hasWorkFootPrint_1 ? 'true' : 'false') + "&consumer=" + (hasConsumerTenant_1 ? "true&redeemed=" + (hasRedeemedConsumerTenant_1 ? 'true' : 'false') : 'false'));
                                        if (_this.isConsumersSite) {
                                            // Testing scenario
                                            resolve(hasConsumerTenant_1);
                                        }
                                        else {
                                            // Use Life site if consumer tenant present and no work foot print
                                            resolve(!hasWorkFootPrint_1 && hasConsumerTenant_1);
                                        }
                                    }
                                    else {
                                        _this.tryErrorLog("Tenant retrieval returned error: " + httpRequest.status);
                                        resolve(undefined);
                                    }
                                }
                            };
                            httpRequest.onerror = function () {
                                _this.tryErrorLog("Tenant retrieval failed: " + httpRequest.statusText);
                                resolve(undefined);
                            };
                            httpRequest.send(null);
                        });
                    }).catch(function (err) {
                        _this.tryErrorLog("CMT Token retrieval failed: " + err.errorMessage);
                        return Promise.resolve(undefined);
                    });
                }
                else {
                    this.tryWarnLog('Enterprise (AAD or MSA) account');
                    // All other cases (OrgID, MSA in non consumer tenants), answer is no.
                    return Promise.resolve(false);
                }
            };
            /**
             * We will use MT scope if:
             * - the site is work type or
             * - account is not MSA
             */
            AuthStrapMsal.prototype.getPhoneAccrualScopes = function (idTokenClaims) {
                var useMTScope = !this.isConsumersSite || (idTokenClaims === null || idTokenClaims === void 0 ? void 0 : idTokenClaims.tid) !== "9188040d-6c67-4c5b-b112-36a304b66dad" /* ConsumersTenantId */;
                return useMTScope ? ["https://api.spaces.skype.com/.default"] : [this.consumerAuthzResource];
            };
            AuthStrapMsal.prototype.shouldDoPhoneAccrual = function (_a) {
                var _this = this;
                var idTokenClaims = (_a === void 0 ? {} : _a).idTokenClaims;
                return new Promise(function (resolve, reject) {
                    // Try acquiring the authz token (the one with phone accrual) silently
                    _this.uap.acquireTokenSilent({
                        authority: _this.uap.authority,
                        scopes: _this.getPhoneAccrualScopes(idTokenClaims),
                        extraQueryParameters: _this.extraQueryParameters
                    }).then(function (theToken) {
                        // Succeeded, so phone accrual is not needed
                        resolve(false);
                    }).catch(function (err) {
                        if (err.name === 'InteractionRequiredAuthError') {
                            // phone accrual needed
                            _this.tryWarnLog("Phone accrual needed");
                            resolve(true);
                        }
                        else {
                            _this.tryErrorLog("AuthZ Token retrieval failed: " + err.errorMessage);
                            reject("" + err.errorMessage);
                        }
                    });
                });
            };
            /**
             * Acquire authz token with redirection interaction. In case of success, the next shouldDoPhoneAccrual will return false
             */
            AuthStrapMsal.prototype.handlePhoneAccrual = function (_a) {
                var idTokenClaims = (_a === void 0 ? {} : _a).idTokenClaims;
                var tokenRequest = {
                    authority: this.uap.authority,
                    scopes: this.getPhoneAccrualScopes(idTokenClaims),
                    extraQueryParameters: this.extraQueryParameters
                };
                if (tokenRequest.scopes[0] === this.consumerAuthzResource) {
                    this.tryWarnLog('Attempting phone accrual');
                    this.sendTelemetry('phoneaccrual');
                    // For TFL we use loginRedirect (rather than acquireTokenRedirect) to account for the case user changes their mind and signs in with different account.
                    this.uap.loginRedirect(tokenRequest);
                }
                else {
                    this.tryWarnLog('Attempting real name validation');
                    this.sendTelemetry('realnamevalidation');
                    // LoginRedirect doesn't work for Real Name Verification, we need to ask for authz access token
                    this.uap.acquireTokenRedirect(tokenRequest);
                }
            };
            AuthStrapMsal.prototype.shouldNarrowDownAudience = function (account) {
                // We have to exchange an id_token with one with narrower audience (organizations) if:
                // - the site is work type
                // - account is MSA in consumers tenant
                if (!this.isConsumersSite && account.idTokenClaims.tid === AuthStrapMsal.consumersTenantId) {
                    this.tryWarnLog('Will narrow scope to organizations');
                    return true;
                }
                return false;
            };
            AuthStrapMsal.prototype.narrowDownAudienceUsingRedirect = function (account) {
                var _a;
                var sid = undefined;
                var loginHint = undefined;
                if (account.sid && (((_a = account.idTokenClaims) === null || _a === void 0 ? void 0 : _a.tid) !== AuthStrapMsal.consumersTenantId)) {
                    this.tryWarnLog('sid for transferUser set');
                    sid = account.sid;
                }
                else if (account.userName) {
                    this.tryWarnLog('loginHint for transferUser set');
                    loginHint = account.userName;
                }
                this.clearCache();
                this.uap.authority = this.instanceBase + AuthStrapMsal.organizationsAudience;
                // NOTE: We need to do redirection for the exchange, silent acquiring just doesn't work
                this.transferUser(true, false, sid, loginHint);
            };
            AuthStrapMsal.prototype.sendTelemetry = function (area) {
                var authOptions = this.authOption ?
                    ("&auth=" + this.authOption + "&authoptions=" + (this.authOptionExtended || '')) : '';
                var url = this.rootUrl + "auth/mark?area=" + area + authOptions;
                var httpRequest = new XMLHttpRequest();
                httpRequest.open("GET", url, true);
                httpRequest.send(null);
            };
            AuthStrapMsal.prototype.storeLocationForNonLoggedInUser = function () {
                var href = window.location.href.replace(this.rootUrl, '');
                // Remove the leading '/' if it is there in the previous url
                // Example:
                // original url: https://local.teams.office.com/#/calendar?meetingId=AA
                // href: /#/calendar?meetingId=AA
                // href after substr call : #/calendar?meetingId=AA
                if (href.indexOf('/') === 0) {
                    href = href.substr(1);
                }
                // disallow 'go' urls (if non empty) from being saved
                if (href && this.localStorage && !this.exceptionRoutes.some(function (value) { return value && href.indexOf(value) === 0; })) {
                    this.localStorage.setItem(AuthStrapMsal.nonLoggedInUserLocationKey, href);
                }
            };
            AuthStrapMsal.prototype.handleRedirect = function (account) {
                this.tryWarnLog('Redirecting to index');
                if (account) {
                    // Update the fe auth cookie with the current client ID token in
                    // case this is a valid account and that is missing the token.
                    // We narrow down to current authority when getting the cached token, to avoid authority duplicates
                    this.updateFECookie(this.uap.getCachedToken({
                        authority: this.uap.authority,
                        scopes: [this.clientId]
                    }, account).idToken.rawIdToken);
                    this.updatePreSignInCookie("true");
                }
                // Reset any prior "redirected to TFL" hint
                if (this.commonFrontDoorType === CommonFrontDoorType.Primary) {
                    this.localStorage.removeItem(AuthStrapMsal.siteRedirectionHint);
                }
                var newLocation = this.rootUrl;
                // Takes the user to the index page
                newLocation += AuthStrapMsal.indexRoute;
                var locationPath = '';
                if (AuthStrapMsal.shouldIgnoreHashForRedirect(this.document.location.hash) &&
                    this.document.location.search === '') {
                    // Get stored location for the previous url from before the user logged in
                    locationPath = this.getLocationForNonLoggedInUser();
                    if (locationPath) {
                        if (this.localStorage) {
                            this.localStorage.removeItem(AuthStrapMsal.nonLoggedInUserLocationKey);
                        }
                        if (this.sessionStorage) {
                            this.sessionStorage.removeItem(AuthStrapMsal.nonLoggedInUserLocationKey);
                        }
                    }
                    else {
                        // if there was no specified url, then replace it with the user's previous url from localStorage if it is available
                        if (account) {
                            locationPath = this.getLocationForLoggedInUser(account.idTokenClaims);
                        }
                    }
                }
                else {
                    locationPath = this.document.location.search + this.document.location.hash;
                }
                // Remove QSPs with just authstrap relevancy.
                newLocation += this.removeAuthstrapQsps(locationPath);
                // Save extra QSPs for the auth provider in the app to use
                if (this.localStorage) {
                    if (this.extraQueryParameters) {
                        this.localStorage.setItem(AuthStrapMsal.extraQSPsUsedByAuthstrap, JSON.stringify(this.extraQueryParameters));
                    }
                    else {
                        this.localStorage.removeItem(AuthStrapMsal.extraQSPsUsedByAuthstrap);
                    }
                }
                if (this.sessionStorage) {
                    this.sessionStorage.setItem(AuthStrapMsal.redirect_authstrap_duration, "" + performance.now());
                }
                this.sendTelemetry("index");
                // It's the app's responsibility to clear the rollback flag (loginAttemptRecord)
                // Yet, due to backward compatibility with older apps (a temporary situation), the clearing happens here as well
                this.clearRollbackFlag();
                this.document.location.replace(newLocation);
            };
            /**
             * Gets the url from session storage for a previously anonymous user who is now logged in.
             * This is used for the redirection after coming back from login
             */
            AuthStrapMsal.prototype.getLocationForNonLoggedInUser = function () {
                var url = '';
                // On Edge and IE we're coming back with id_token in the hash instead of an empty hash.
                // The below conditional corrects for that; otherwise try to load from storage
                if (this.document.location.hash &&
                    (this.document.location.hash.indexOf(AuthStrapMsal.idTokenString) >= 0)) {
                    url = this.document.location.hash;
                }
                else if (this.localStorage) {
                    url = this.localStorage.getItem(AuthStrapMsal.nonLoggedInUserLocationKey);
                }
                else if (this.sessionStorage) {
                    url = this.sessionStorage.getItem(AuthStrapMsal.nonLoggedInUserLocationKey);
                }
                return url;
            };
            /**
             * Gets the url hash from local storage stored for the user in previous sessions
             */
            AuthStrapMsal.prototype.getLocationForLoggedInUser = function (profile) {
                var url = '';
                var startHash = this.document.location.hash;
                if (!startHash && this.localStorage && profile && profile.oid) {
                    // 'ts.' is auto prefixed to the local storage keys in the normal app workflow here. Oid is used as the partition.
                    startHash = this.localStorage.getItem('ts.' + profile.oid + '.' + this.lastLocationHashName); // with oid
                }
                if (startHash) {
                    url += '#' + startHash.replace(/^#|#$/, '');
                }
                return url;
            };
            /**
             * Check to make sure that the hash is empty or contains a token that indicates
             * we should use this hash for redirect. Returns true if the hash is empty or
             * contains the token.
             */
            AuthStrapMsal.shouldIgnoreHashForRedirect = function (hash) {
                return (hash && (hash.indexOf(AuthStrapMsal.idTokenString) >= 0)) ||
                    (hash === '') || (hash === '#');
            };
            AuthStrapMsal.prototype.transferUser = function (logUserIn, forcePrompt, sid, loginHint) {
                var _a;
                this.updateFECookie(null);
                if (logUserIn) {
                    this.tryWarnLog('Logging user in');
                    var request = {};
                    if (forcePrompt) {
                        request.prompt = AuthStrapMsal.forcePromptValue;
                    }
                    // Support domain_hint QSP for testing purposes.
                    // It's the caller's responsibility to avoid conflicts with sid/login_hint/etc. hints MSAL.JS uses
                    var domainHint = this.getQueryParamByName(this.document.location.href, AuthStrapMsal.domainHint);
                    if (domainHint) {
                        request = __assign(__assign({}, request), { extraQueryParameters: (_a = {},
                                _a[AuthStrapMsal.domainHint] = domainHint,
                                _a) });
                    }
                    // Check sid value first
                    if (sid) {
                        request = __assign(__assign({}, request), { sid: sid });
                    }
                    else {
                        // login_hint next
                        if (loginHint) {
                            request = __assign(__assign({}, request), { loginHint: loginHint });
                        }
                    }
                    if (this.extraQueryParameters) {
                        if (request.extraQueryParameters) {
                            request.extraQueryParameters = __assign(__assign({}, this.extraQueryParameters), request.extraQueryParameters);
                        }
                        else {
                            request.extraQueryParameters = this.extraQueryParameters;
                        }
                    }
                    this.sendTelemetry("prelogin");
                    // NOTE: A bug in MSAL.JS has as effect not clearing LOGIN.ERROR on new login.
                    this.setLoginError('');
                    this.uap.loginRedirect(request);
                }
                else {
                    this.tryWarnLog('Logging user out');
                    this.sendTelemetry("prelogout");
                    // NOTE: currently server prompts for "Account to logout", by their (current) design.
                    this.uap.logout();
                }
            };
            AuthStrapMsal.prototype.handleCrossSiteSignOut = function () {
                // Due to current ESTS limitations (holding the flow hostage to "you must close all browser windows" page),
                // we follow a compromise:
                // - we clear local caches/state as if we logged out fully
                // - we redirect to primary front door for full signout.
                this.tryWarnLog('Logging user out - both sites');
                this.clearCache();
                this.updateFECookie(null);
                this.tryWarnLog("Redirecting to primary site");
                this.document.location.replace("" + this.alternateSite + (this.alternateSite.indexOf('?') > -1 ? '&' : '?') + AuthStrapMsal.logoutQsp + "=true");
            };
            AuthStrapMsal.prototype.shouldRefreshCachedFiles = function () {
                // PDS directs browsers to cache the /go route for some minutes. As a result, dynamically switching to a different authstrap
                // by using a QSP is affected by the /go route bing served from browser cache, with random and bad results.
                // We force a refresh of the cache if user explicitly passes the "auth" QSP
                return !!this.getQueryParamByName(this.document.location.href, AuthStrapMsal.authQsp);
            };
            AuthStrapMsal.prototype.refreshCachedFiles = function () {
                var _this = this;
                // We use best effort, always resolving the promise successfully.
                this.tryWarnLog("Refreshing cached authstrap");
                if (typeof Request === 'undefined') {
                    // Giving up if API not available (IE, soon to be deprecated)
                    this.tryWarnLog("Refreshing cached unsupported");
                    return Promise.resolve([]);
                }
                // PDS has already set the right DesiredAuth cookie, so the request will retrieve (and cache) the expected pages
                var fetchGoWorker = function () {
                    // Reload the Go page by forcing a cache reload
                    return new Promise(function (resolve, reject) {
                        var headers = new Headers();
                        headers.append('x-ms-client-type', 'web');
                        var requestInfo = {
                            cache: "reload",
                            credentials: 'same-origin',
                            headers: headers
                        };
                        var request = new Request(_this.redirectUrl);
                        fetch(request, requestInfo).then(function (response) {
                            if (response.ok) {
                                _this.tryWarnLog("Refreshing cached authstrap succeeded");
                            }
                            else {
                                _this.tryWarnLog("Refreshing cached authstrap returned status " + response.status);
                            }
                            resolve();
                        }).catch(function (error) {
                            _this.tryErrorLog("Refreshing cached authstrap failed: " + error.message);
                            resolve();
                        });
                    });
                };
                var removeIndexWorker = function () {
                    // Remove the cached index from the SW maintained cache
                    return new Promise(function (resolve, reject) {
                        caches.open(AuthStrapMsal.teamsCache).then(function (cache) {
                            cache.delete(_this.rootUrl + AuthStrapMsal.indexRoute).then(function (found) {
                                _this.tryWarnLog("Removing cached index succeeded: (found: " + found + ")");
                                resolve();
                            }).catch(function (error) {
                                _this.tryErrorLog("Removing cached index failed: " + error.message);
                                resolve();
                            });
                        }).catch(function (error) {
                            _this.tryErrorLog("Opening cache failed: " + error.message);
                            resolve();
                        });
                    });
                };
                return Promise.all([fetchGoWorker(), removeIndexWorker()]);
            };
            AuthStrapMsal.prototype.updateFECookie = function (value) {
                value = value || '';
                if (this.enableCookieStore) {
                    var expireDate = new Date(Date.now() + 5 * 24 * 60 * 60 * 1000); // 5 Days
                    this.document.cookie = this.feCookieName + "=" + value + "; expires=" + expireDate + "; path=/" + (this.secureCookie ? '; secure' : '');
                }
                else {
                    this.document.cookie = this.feCookieName + "=" + value + "; path=/" + (this.secureCookie ? '; secure' : '');
                }
            };
            AuthStrapMsal.prototype.updatePreSignInCookie = function (value) {
                value = value || '';
                var expireDate = new Date(Date.now() + 365 * 24 * 60 * 60 * 1000); // 1 year
                this.document.cookie = this.signInStateCookieName + "=" + value + "; expires=" + expireDate + "; path=/" + (this.secureCookie ? '; secure' : '');
            };
            AuthStrapMsal.prototype.updateAuthCookie = function (name, value) {
                value = value || '';
                if (value) {
                    var expireDate = new Date(Date.now() + 365 * 24 * 60 * 60 * 1000); // 1 Year
                    this.document.cookie = name + "=" + encodeURIComponent(value) + "; expires=" + expireDate + "; path=/" + (this.secureCookie ? '; secure' : '');
                }
                else {
                    this.document.cookie = name + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/" + (this.secureCookie ? '; secure' : '');
                }
            };
            AuthStrapMsal.prototype.profileExpiresIn = function (account, seconds) {
                var profileExpiration = (account && account.idTokenClaims &&
                    (account.idTokenClaims.exp ? parseInt(account.idTokenClaims.exp, 10) * 1000 : Date.now()));
                return (profileExpiration - Date.now()) <= (1000 * seconds);
            };
            AuthStrapMsal.prototype.handleRedirectToAlternateSiteWithAccount = function (account, tenant) {
                var redirect_sid = null;
                var redirect_login_hint = null;
                // If cached account is present and is of an MSA type (either in the consumer tenant or as a guest/freemium), we
                // pass it as hints for the redirection target to try to do a silent login with same account
                if (account &&
                    account.idTokenClaims &&
                    (account.idTokenClaims.tid === AuthStrapMsal.consumersTenantId ||
                        (account.idTokenClaims.altsecid && account.idTokenClaims.altsecid.indexOf('1:') === 0))) {
                    redirect_sid = account.sid;
                    redirect_login_hint = account.userName;
                }
                this.handleRedirectToAlternateSite(tenant, redirect_sid, redirect_login_hint);
            };
            AuthStrapMsal.prototype.handleRedirectToAlternateSite = function (tenant, sid, login_hint) {
                this.tryWarnLog("Redirecting to " + (this.commonFrontDoorType === CommonFrontDoorType.Primary ? 'secondary' : 'primary') + " site");
                var newLocation = this.alternateSite;
                var appendParam = function (url, name, value) { return "" + url + (url.indexOf('?') > -1 ? '&' : '?') + name + "=" + encodeURIComponent(value); };
                // Limit the QSPs to those related to authentication.
                if (tenant) {
                    newLocation = appendParam(newLocation, AuthStrapMsal.tenantId, tenant);
                }
                if (sid) {
                    newLocation = appendParam(newLocation, AuthStrapMsal.sid, sid);
                }
                else if (login_hint) {
                    // Temporarily using a "safe" hint that's ingored by any ADAL.JS based authstrap on the target of the redirection
                    newLocation = appendParam(newLocation, AuthStrapMsal.loginHintSafe, login_hint);
                }
                // A redirection to secondary site is also tracked as a hint here.
                // This helps avoiding expensive tenant assesments for subsequent Life sign ins,
                // and helps the "user last used Life tenant" state stick
                if (login_hint && this.commonFrontDoorType === CommonFrontDoorType.Primary) {
                    this.localStorage.setItem(AuthStrapMsal.siteRedirectionHint, login_hint);
                }
                this.sendTelemetry('alternatesite');
                // Clear the flag maintained by the rollback mechanism, redirectiong to the other site accounts as success.
                this.clearRollbackFlag();
                this.document.location.replace(newLocation);
            };
            AuthStrapMsal.prototype.isAccountPresent = function (account) {
                return !!(account && account.idTokenClaims);
            };
            AuthStrapMsal.prototype.setLoginError = function (error) {
                this.uap.cacheStorage.setItem(AuthStrapMsal.loginErrorKey, error);
            };
            AuthStrapMsal.prototype.getLoginError = function () {
                return this.uap.cacheStorage.getItem(AuthStrapMsal.loginErrorKey);
            };
            AuthStrapMsal.prototype.clearCache = function () {
                // Delete MSAL.JS cache
                this.uap.clearCache();
                // Force clearing the account (not covered by clearing the cache).
                // This is needed when trying to continue silently with provided hints, rather than starting fresh through redirecting
                this.uap.account = null;
                // Delete the "login.required" marker, there's no point on retrying anything since we're starting fresh
                this.localStorage.removeItem(AuthStrapMsal.loginRequired);
            };
            AuthStrapMsal.prototype.getAuthOption = function (option) {
                var cookies = this.document.cookie.split(';');
                if (cookies) {
                    var authOptionValue_1 = null;
                    cookies.find(function (cookie) {
                        cookie = cookie.trim();
                        var cookieKeyValue = cookie.split('=');
                        if (cookieKeyValue.length === 2 && cookieKeyValue[0] === option) {
                            authOptionValue_1 = decodeURIComponent(cookieKeyValue[1]);
                            return true;
                        }
                    });
                    return authOptionValue_1;
                }
                return null;
            };
            AuthStrapMsal.prototype.removeAuthstrapQsps = function (locationPath) {
                var hash = '';
                var tweakedSearch = '';
                var pathComponents = locationPath.split('#');
                if (pathComponents.length >= 1) {
                    // The first component is an optional search string, regardless of whether a has is present
                    // The second component, if present, is the hash
                    if (pathComponents.length === 2) {
                        hash = "#" + pathComponents[1];
                    }
                    var search = pathComponents[0];
                    if (search) {
                        var qsps = search.slice(1).split('&');
                        var filteredQsps = qsps.filter(function (value) {
                            var qspPair = value.split('=');
                            return qspPair.length === 2 && AuthStrapMsal.qspsToRemove.indexOf(qspPair[0]) < 0;
                        });
                        if (filteredQsps.length > 0) {
                            filteredQsps.forEach(function (value, index) {
                                tweakedSearch = "" + tweakedSearch + (index === 0 ? '?' : '&') + value;
                            });
                        }
                    }
                }
                return tweakedSearch + hash;
            };
            AuthStrapMsal.prototype.applyExtraQSPs = function (qsps) {
                var _this = this;
                if (qsps) {
                    var qspArray = qsps.split('&');
                    qspArray.forEach(function (qsp) {
                        var qspPair = qsp.split('=');
                        if (qspPair.length === 2) {
                            if (!_this.extraQueryParameters) {
                                _this.extraQueryParameters = {};
                            }
                            var key = qspPair[0];
                            var value = qspPair[1];
                            if (value !== '') {
                                _this.extraQueryParameters[key] = decodeURIComponent(value);
                            }
                            else {
                                delete _this.extraQueryParameters[key];
                            }
                        }
                    });
                }
            };
            AuthStrapMsal.prototype.clearRollbackFlag = function () {
                this.localStorage.removeItem(AuthStrapMsal.loginAttemptRecord);
            };
            AuthStrapMsal.prototype.messageFromException = function (e) {
                if ((typeof Msal !== 'undefined') && (e instanceof Msal.AuthError)) {
                    return e.errorCode + "|" + e.errorMessage;
                }
                return e.message || '';
            };
            AuthStrapMsal.prototype.showError = function (area, e) {
                this.sendTelemetry("fatalerror&area=" + area + "&exception=" + encodeURIComponent(this.messageFromException(e)));
                this.showErrorOuter(e);
            };
            AuthStrapMsal.prototype.tryWarnLog = function (text) {
                if (this.console) {
                    this.console.warn("AUTHSTRAPMSAL: " + text);
                }
            };
            AuthStrapMsal.prototype.tryErrorLog = function (text) {
                this.sendTelemetry("error&message=" + text);
                if (this.console) {
                    this.console.error("AUTHSTRAPMSAL: " + text);
                }
            };
            AuthStrapMsal.consumersTenantId = '9188040d-6c67-4c5b-b112-36a304b66dad';
            AuthStrapMsal.consumersAudience = 'consumers';
            AuthStrapMsal.organizationsAudience = 'organizations';
            AuthStrapMsal.commonAudience = 'common';
            AuthStrapMsal.nonLoggedInUserLocationKey = "ts.nonLoggedInUserLocation";
            AuthStrapMsal.redirect_authstrap_duration = 'ts.redirect_authstrap_duration';
            AuthStrapMsal.loginRequired = 'ts.login.required';
            AuthStrapMsal.siteRedirectionHint = 'ts.authstrap.siteRedirectionHint';
            AuthStrapMsal.idTokenString = 'id_token=';
            AuthStrapMsal.loginErrorKey = 'login.error';
            AuthStrapMsal.tenantId = 'tenantId';
            AuthStrapMsal.domainHint = 'domain_hint';
            AuthStrapMsal.loginHint = 'login_hint';
            AuthStrapMsal.loginHintSafe = 'login_hint_safe';
            AuthStrapMsal.sid = 'sid';
            AuthStrapMsal.hardcodedConsumerMT = 'https://teams.live.com/api/mt';
            AuthStrapMsal.getTenantsRoute = '/beta/users/tenants';
            AuthStrapMsal.authQsp = 'auth';
            AuthStrapMsal.logoutQsp = 'logout';
            AuthStrapMsal.forcePromptValue = 'select_account';
            AuthStrapMsal.indexRoute = '_';
            AuthStrapMsal.teamsCache = 'teams-precache';
            AuthStrapMsal.authCookieName = 'DesiredAuth';
            AuthStrapMsal.safeRolloutKey = 'safe_rollout';
            AuthStrapMsal.authOptionsQsp = 'authoptions';
            AuthStrapMsal.authOptionsCookieName = 'DesiredAuthOptions';
            AuthStrapMsal.loginAttemptRecord = 'ts.authstrap.loginAttempt';
            AuthStrapMsal.extraQSPsUsedByAuthstrap = 'ts.msalExtraQSPs';
            AuthStrapMsal.msalActiveUserProfile = 'msal.activeUserProfile';
            AuthStrapMsal.qspsToRemove = [
                AuthStrapMsal.authQsp,
                AuthStrapMsal.authOptionsQsp,
                AuthStrapMsal.loginHint,
                AuthStrapMsal.loginHintSafe,
                AuthStrapMsal.sid
            ];
            AuthStrapMsal.errorCodesToIgnore = [
                'invalid_state_error'
            ];
            return AuthStrapMsal;
        }());
        auth.AuthStrapMsal = AuthStrapMsal;
    })(auth = teamspace.auth || (teamspace.auth = {}));
})(teamspace || (teamspace = {}));
//# sourceMappingURL=auth-strap-msal.js.map
//# sourceMappingURL=auth-strap-msal.js.map


        var theMsalLogger = function(level, message, containsPii) {
          switch(level) {
            case window.Msal.LogLevel.Error:
              console.error(prefix + message);
              break;
            case window.Msal.LogLevel.Warning:
              console.warn(prefix + message);
              break;
            case window.Msal.LogLevel.Verbose:
              console.debug(prefix + message);
              break;
            default:
              console.info(prefix + message);
              break;
          }
        }

        var redirectToErrorPage = function (e) {
          var errorDescription = 'other';
          if (e instanceof Msal.AuthError) {
            errorDescription = e.errorCode;
          } else {
            errorDescription = e.message || '';
          }
          window.location.assign(rootUri + 'error/oops?errorMessage=AuthstrapFailure&errorDescription=' + encodeURIComponent(errorDescription));
        };

        var showError = function (e) {
          console.error('AUTHSTRAPMSAL: Error occurred logging in: ' + e);
          redirectToErrorPage(e);
        };

        // Initialize an MSAL UserAgentApplication instance.
        var tokenRenewalOffsetSeconds = 300;

        var myMSALObj = undefined;
        try {
          myMSALObj = new window.Msal.UserAgentApplication({
            auth: {
              clientId: clientId,
              authority: instance,
              redirectUri: redirectUri,
              postLogoutRedirectUri: redirectUri, // don't use rootUri for postLogout, we rely on redirectUri for prompting mechanism, and could trigger false positives for rollback detection (if enabled)
              navigateToLoginRequestUrl: false
            },
            cache: {
              cacheLocation: 'localStorage',
              storeAuthStateInCookie: false
            },
            system: {
              logger: new window.Msal.Logger(theMsalLogger, {
                level: window.Msal.LogLevel.Verbose,
                piiLoggingEnabled: false
              }),
              tokenRenewalOffsetSeconds: tokenRenewalOffsetSeconds
            }
          });
        } catch (constructorException) {
          // Some errors are not caught in the Msal.UserAgentApplication constructor, so we catch them here
          showError(constructorException);
          return;
        }

        var authStrap = new teamspace.auth.AuthStrapMsal(
          myMSALObj,
          clientId,
          rootUri,
          redirectUri,
          window,
          console,
          document,
          'lastLocationHash',
          exceptionRoutes,
          alternateSite,
          commonFrontDoor,
          instanceBase,
          audience,
          showError,
          'TSAUTHCOOKIE',
          localStorage,
          sessionStorage,
          secureCookie,
          enableAuthCookieStore,
          'TSPREAUTHCOOKIE',
          true,
          'service::api.fl.spaces.skype.com::MBI_SSL',
          consumerMTResource,
          tokenRenewalOffsetSeconds,
          '');

        authStrap.handleWindow();
      });
    })();
  </script>
</head>
<body>



</body></html>

                             

Screenshot: