@clickview/exchange 0.57.0 → 0.58.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/css/{CczLEc2p.chunk.css → BBuiH5XR.chunk.css} +1 -1
- package/dist/en.json +1 -1
- package/dist/scripts/{B1IKzVyn.chunk.js → 59HBVVj3.chunk.js} +2 -2
- package/dist/scripts/{B1IKzVyn.chunk.js.map → 59HBVVj3.chunk.js.map} +1 -1
- package/dist/scripts/{DmL0FSJr.chunk.js → 77QNnWjW.chunk.js} +2 -2
- package/dist/scripts/{DmL0FSJr.chunk.js.map → 77QNnWjW.chunk.js.map} +1 -1
- package/dist/scripts/{dlcOoTX2.chunk.js → 97GoF_Eh.chunk.js} +2 -2
- package/dist/scripts/{dlcOoTX2.chunk.js.map → 97GoF_Eh.chunk.js.map} +1 -1
- package/dist/scripts/{DkVa76dg.chunk.js → A03ti58C.chunk.js} +2 -2
- package/dist/scripts/{DkVa76dg.chunk.js.map → A03ti58C.chunk.js.map} +1 -1
- package/dist/scripts/{DEFuGMsd.chunk.js → B0qPCCXt.chunk.js} +2 -2
- package/dist/scripts/{DEFuGMsd.chunk.js.map → B0qPCCXt.chunk.js.map} +1 -1
- package/dist/scripts/{CYuWFG4C.chunk.js → B3P1JDvZ.chunk.js} +2 -2
- package/dist/scripts/{CYuWFG4C.chunk.js.map → B3P1JDvZ.chunk.js.map} +1 -1
- package/dist/scripts/{BKID_sLP.chunk.js → B3hUKuRr.chunk.js} +2 -2
- package/dist/scripts/{BKID_sLP.chunk.js.map → B3hUKuRr.chunk.js.map} +1 -1
- package/dist/scripts/{CrYQzjgZ.chunk.js → B7sQixjZ.chunk.js} +2 -2
- package/dist/scripts/{CrYQzjgZ.chunk.js.map → B7sQixjZ.chunk.js.map} +1 -1
- package/dist/scripts/{CQnwddP2.chunk.js → B9q9og3n.chunk.js} +2 -2
- package/dist/scripts/{CQnwddP2.chunk.js.map → B9q9og3n.chunk.js.map} +1 -1
- package/dist/scripts/{Doc0JWTn.chunk.js → BD8uJxiB.chunk.js} +2 -2
- package/dist/scripts/{Doc0JWTn.chunk.js.map → BD8uJxiB.chunk.js.map} +1 -1
- package/dist/scripts/{C8Ld-38h.chunk.js → BJaYD8dc.chunk.js} +2 -2
- package/dist/scripts/{C8Ld-38h.chunk.js.map → BJaYD8dc.chunk.js.map} +1 -1
- package/dist/scripts/{DfLXqnWC.chunk.js → BMTawQoz.chunk.js} +2 -2
- package/dist/scripts/{DfLXqnWC.chunk.js.map → BMTawQoz.chunk.js.map} +1 -1
- package/dist/scripts/{BWu0k43d.chunk.js → BP-61ONz.chunk.js} +2 -2
- package/dist/scripts/{BWu0k43d.chunk.js.map → BP-61ONz.chunk.js.map} +1 -1
- package/dist/scripts/{COMMZ5NT.chunk.js → BQiCELUH.chunk.js} +2 -2
- package/dist/scripts/{COMMZ5NT.chunk.js.map → BQiCELUH.chunk.js.map} +1 -1
- package/dist/scripts/{Dj2iNM2-.chunk.js → BQz8nP4M.chunk.js} +2 -2
- package/dist/scripts/{Dj2iNM2-.chunk.js.map → BQz8nP4M.chunk.js.map} +1 -1
- package/dist/scripts/{p9Hw1u0F.chunk.js → BSZHRB-3.chunk.js} +2 -2
- package/dist/scripts/{p9Hw1u0F.chunk.js.map → BSZHRB-3.chunk.js.map} +1 -1
- package/dist/scripts/{Ci21j_NU.chunk.js → BTJwiZTv.chunk.js} +2 -2
- package/dist/scripts/{Ci21j_NU.chunk.js.map → BTJwiZTv.chunk.js.map} +1 -1
- package/dist/scripts/{CqWuZzIu.chunk.js → BVbJxgV8.chunk.js} +2 -2
- package/dist/scripts/{CqWuZzIu.chunk.js.map → BVbJxgV8.chunk.js.map} +1 -1
- package/dist/scripts/{aImHyMo0.chunk.js → BX8fMfGC.chunk.js} +2 -2
- package/dist/scripts/{aImHyMo0.chunk.js.map → BX8fMfGC.chunk.js.map} +1 -1
- package/dist/scripts/{D91xJv6J.chunk.js → BaNAbBYa.chunk.js} +2 -2
- package/dist/scripts/{D91xJv6J.chunk.js.map → BaNAbBYa.chunk.js.map} +1 -1
- package/dist/scripts/{BImNArot.chunk.js → BazXwFtM.chunk.js} +2 -2
- package/dist/scripts/{BImNArot.chunk.js.map → BazXwFtM.chunk.js.map} +1 -1
- package/dist/scripts/{e9ZqHdMv.chunk.js → BbGFMokw.chunk.js} +2 -2
- package/dist/scripts/{e9ZqHdMv.chunk.js.map → BbGFMokw.chunk.js.map} +1 -1
- package/dist/scripts/BfA6QK2M.chunk.js +2 -0
- package/dist/scripts/{BnkjQdg-.chunk.js.map → BfA6QK2M.chunk.js.map} +1 -1
- package/dist/scripts/{DbB0S2ZQ.chunk.js → BfAoEeOL.chunk.js} +2 -2
- package/dist/scripts/{DbB0S2ZQ.chunk.js.map → BfAoEeOL.chunk.js.map} +1 -1
- package/dist/scripts/{0Rgjdcqz.chunk.js → BiAKqJdD.chunk.js} +2 -2
- package/dist/scripts/{0Rgjdcqz.chunk.js.map → BiAKqJdD.chunk.js.map} +1 -1
- package/dist/scripts/{CssHbHjG.chunk.js → BmU_YUbl.chunk.js} +2 -2
- package/dist/scripts/{CssHbHjG.chunk.js.map → BmU_YUbl.chunk.js.map} +1 -1
- package/dist/scripts/{SmYpiCQA.chunk.js → BuSLCxEs.chunk.js} +2 -2
- package/dist/scripts/{SmYpiCQA.chunk.js.map → BuSLCxEs.chunk.js.map} +1 -1
- package/dist/scripts/{BZp1TuCa.chunk.js → Bvlv6PGR.chunk.js} +2 -2
- package/dist/scripts/{BZp1TuCa.chunk.js.map → Bvlv6PGR.chunk.js.map} +1 -1
- package/dist/scripts/{BYXBfLyn.chunk.js → BwS3tIqZ.chunk.js} +2 -2
- package/dist/scripts/{BYXBfLyn.chunk.js.map → BwS3tIqZ.chunk.js.map} +1 -1
- package/dist/scripts/{S6sUSK4X.chunk.js → ByKnIsJG.chunk.js} +2 -2
- package/dist/scripts/{S6sUSK4X.chunk.js.map → ByKnIsJG.chunk.js.map} +1 -1
- package/dist/scripts/Bz5fsSmV.chunk.js +15 -0
- package/dist/scripts/Bz5fsSmV.chunk.js.map +1 -0
- package/dist/scripts/{CXmjzxZL.chunk.js → C06GoFsR.chunk.js} +2 -2
- package/dist/scripts/{CXmjzxZL.chunk.js.map → C06GoFsR.chunk.js.map} +1 -1
- package/dist/scripts/{CYbmYWz6.chunk.js → C3cp4ax7.chunk.js} +2 -2
- package/dist/scripts/{CYbmYWz6.chunk.js.map → C3cp4ax7.chunk.js.map} +1 -1
- package/dist/scripts/{BHQ-iEoW.chunk.js → C7giBbHJ.chunk.js} +2 -2
- package/dist/scripts/{BHQ-iEoW.chunk.js.map → C7giBbHJ.chunk.js.map} +1 -1
- package/dist/scripts/{CWAi8BHf.chunk.js → CEXoa-wM.chunk.js} +2 -2
- package/dist/scripts/{CWAi8BHf.chunk.js.map → CEXoa-wM.chunk.js.map} +1 -1
- package/dist/scripts/{lO5fmjgI.chunk.js → CKbq02SS.chunk.js} +2 -2
- package/dist/scripts/{lO5fmjgI.chunk.js.map → CKbq02SS.chunk.js.map} +1 -1
- package/dist/scripts/{CxZxk1HQ.chunk.js → CNVerO1q.chunk.js} +2 -2
- package/dist/scripts/{CxZxk1HQ.chunk.js.map → CNVerO1q.chunk.js.map} +1 -1
- package/dist/scripts/{5jG1qquw.chunk.js → CNat3TfQ.chunk.js} +2 -2
- package/dist/scripts/{5jG1qquw.chunk.js.map → CNat3TfQ.chunk.js.map} +1 -1
- package/dist/scripts/{D-lhN8Br.chunk.js → CP5MKWC_.chunk.js} +2 -2
- package/dist/scripts/{D-lhN8Br.chunk.js.map → CP5MKWC_.chunk.js.map} +1 -1
- package/dist/scripts/{CiOp7PM4.chunk.js → CSvE-r6r.chunk.js} +2 -2
- package/dist/scripts/{CiOp7PM4.chunk.js.map → CSvE-r6r.chunk.js.map} +1 -1
- package/dist/scripts/{BZhnbXlC.chunk.js → CW4iXW5L.chunk.js} +2 -2
- package/dist/scripts/{BZhnbXlC.chunk.js.map → CW4iXW5L.chunk.js.map} +1 -1
- package/dist/scripts/{-Xvqr6f_.chunk.js → CWdK_7iP.chunk.js} +2 -2
- package/dist/scripts/{-Xvqr6f_.chunk.js.map → CWdK_7iP.chunk.js.map} +1 -1
- package/dist/scripts/{jFTHf_UL.chunk.js → CWjXnQlc.chunk.js} +2 -2
- package/dist/scripts/{jFTHf_UL.chunk.js.map → CWjXnQlc.chunk.js.map} +1 -1
- package/dist/scripts/{BwuTkpPz.chunk.js → CXEroOnb.chunk.js} +2 -2
- package/dist/scripts/{BwuTkpPz.chunk.js.map → CXEroOnb.chunk.js.map} +1 -1
- package/dist/scripts/{DMu9QirA.chunk.js → C_KOP_pH.chunk.js} +2 -2
- package/dist/scripts/{DMu9QirA.chunk.js.map → C_KOP_pH.chunk.js.map} +1 -1
- package/dist/scripts/CbqPW1QD.chunk.js +2 -0
- package/dist/scripts/{COkVtt29.chunk.js.map → CbqPW1QD.chunk.js.map} +1 -1
- package/dist/scripts/{BI2RzMBo.chunk.js → CelK9zYh.chunk.js} +2 -2
- package/dist/scripts/{BI2RzMBo.chunk.js.map → CelK9zYh.chunk.js.map} +1 -1
- package/dist/scripts/{DsAzRbUN.chunk.js → Cj7-nmDw.chunk.js} +2 -2
- package/dist/scripts/{DsAzRbUN.chunk.js.map → Cj7-nmDw.chunk.js.map} +1 -1
- package/dist/scripts/{CoZqjJhl.chunk.js → CkXDJSIC.chunk.js} +2 -2
- package/dist/scripts/{CoZqjJhl.chunk.js.map → CkXDJSIC.chunk.js.map} +1 -1
- package/dist/scripts/CmKuC0AJ.chunk.js +2 -0
- package/dist/scripts/CmKuC0AJ.chunk.js.map +1 -0
- package/dist/scripts/CmQwEhN8.chunk.js +2 -0
- package/dist/scripts/{DX5d-qLN.chunk.js.map → CmQwEhN8.chunk.js.map} +1 -1
- package/dist/scripts/{CKE8GGKH.chunk.js → CsI_aEby.chunk.js} +2 -2
- package/dist/scripts/{CKE8GGKH.chunk.js.map → CsI_aEby.chunk.js.map} +1 -1
- package/dist/scripts/{B9372wBc.chunk.js → CtbOxRCF.chunk.js} +2 -2
- package/dist/scripts/{B9372wBc.chunk.js.map → CtbOxRCF.chunk.js.map} +1 -1
- package/dist/scripts/{Ux2KpCQK.chunk.js → CxNf401G.chunk.js} +2 -2
- package/dist/scripts/{Ux2KpCQK.chunk.js.map → CxNf401G.chunk.js.map} +1 -1
- package/dist/scripts/{CeNx5Kzz.chunk.js → Cxg7zIQ7.chunk.js} +2 -2
- package/dist/scripts/{CeNx5Kzz.chunk.js.map → Cxg7zIQ7.chunk.js.map} +1 -1
- package/dist/scripts/{WuuAAnHZ.chunk.js → CyTjm-iy.chunk.js} +2 -2
- package/dist/scripts/{WuuAAnHZ.chunk.js.map → CyTjm-iy.chunk.js.map} +1 -1
- package/dist/scripts/{CfiDZ6LP.chunk.js → D-XHMtrK.chunk.js} +2 -2
- package/dist/scripts/{CfiDZ6LP.chunk.js.map → D-XHMtrK.chunk.js.map} +1 -1
- package/dist/scripts/{Dur2ee5n.chunk.js → D0Kez51H.chunk.js} +2 -2
- package/dist/scripts/{Dur2ee5n.chunk.js.map → D0Kez51H.chunk.js.map} +1 -1
- package/dist/scripts/{DUWvwOTa.chunk.js → D1O5BdYP.chunk.js} +2 -2
- package/dist/scripts/{DUWvwOTa.chunk.js.map → D1O5BdYP.chunk.js.map} +1 -1
- package/dist/scripts/{OZVJyZgM.chunk.js → D8QwkaNv.chunk.js} +2 -2
- package/dist/scripts/{OZVJyZgM.chunk.js.map → D8QwkaNv.chunk.js.map} +1 -1
- package/dist/scripts/{DvbFBcOQ.chunk.js → DDCwFNmm.chunk.js} +2 -2
- package/dist/scripts/{DvbFBcOQ.chunk.js.map → DDCwFNmm.chunk.js.map} +1 -1
- package/dist/scripts/{Cog61quf.chunk.js → DGdFdv74.chunk.js} +2 -2
- package/dist/scripts/{Cog61quf.chunk.js.map → DGdFdv74.chunk.js.map} +1 -1
- package/dist/scripts/DHQlkDUq.chunk.js +2 -0
- package/dist/scripts/{D0w9N-3T.chunk.js.map → DHQlkDUq.chunk.js.map} +1 -1
- package/dist/scripts/{D1o0K4Kj.chunk.js → DIzcUtXf.chunk.js} +2 -2
- package/dist/scripts/{D1o0K4Kj.chunk.js.map → DIzcUtXf.chunk.js.map} +1 -1
- package/dist/scripts/{BYq9jK40.chunk.js → DLqmmsup.chunk.js} +2 -2
- package/dist/scripts/{BYq9jK40.chunk.js.map → DLqmmsup.chunk.js.map} +1 -1
- package/dist/scripts/DOH54KcJ.chunk.js +2 -0
- package/dist/scripts/DOH54KcJ.chunk.js.map +1 -0
- package/dist/scripts/{CMUKx3aO.chunk.js → DQz3vFm9.chunk.js} +2 -2
- package/dist/scripts/{CMUKx3aO.chunk.js.map → DQz3vFm9.chunk.js.map} +1 -1
- package/dist/scripts/{BHC43d8p.chunk.js → DSuqoCKU.chunk.js} +2 -2
- package/dist/scripts/{BHC43d8p.chunk.js.map → DSuqoCKU.chunk.js.map} +1 -1
- package/dist/scripts/{Bj4aS_x2.chunk.js → DVgGpvRr.chunk.js} +2 -2
- package/dist/scripts/{Bj4aS_x2.chunk.js.map → DVgGpvRr.chunk.js.map} +1 -1
- package/dist/scripts/{j26kM5AB.chunk.js → DVqb0KMG.chunk.js} +2 -2
- package/dist/scripts/{j26kM5AB.chunk.js.map → DVqb0KMG.chunk.js.map} +1 -1
- package/dist/scripts/D_K0UgSq.chunk.js +2 -0
- package/dist/scripts/{DWYleim7.chunk.js.map → D_K0UgSq.chunk.js.map} +1 -1
- package/dist/scripts/{4r-SFWRv.chunk.js → DbQN84Ka.chunk.js} +2 -2
- package/dist/scripts/{4r-SFWRv.chunk.js.map → DbQN84Ka.chunk.js.map} +1 -1
- package/dist/scripts/{CqdCH0OC.chunk.js → DgCvHCTv.chunk.js} +2 -2
- package/dist/scripts/{CqdCH0OC.chunk.js.map → DgCvHCTv.chunk.js.map} +1 -1
- package/dist/scripts/{DZ9Qr412.chunk.js → DhiXbhAO.chunk.js} +2 -2
- package/dist/scripts/{DZ9Qr412.chunk.js.map → DhiXbhAO.chunk.js.map} +1 -1
- package/dist/scripts/{DbIiwJi6.chunk.js → DvMJBGNc.chunk.js} +2 -2
- package/dist/scripts/{DbIiwJi6.chunk.js.map → DvMJBGNc.chunk.js.map} +1 -1
- package/dist/scripts/{DQP0C036.chunk.js → DxppYmgw.chunk.js} +2 -2
- package/dist/scripts/{DQP0C036.chunk.js.map → DxppYmgw.chunk.js.map} +1 -1
- package/dist/scripts/{DlvPyEMc.chunk.js → DzTRfLQn.chunk.js} +2 -2
- package/dist/scripts/{DlvPyEMc.chunk.js.map → DzTRfLQn.chunk.js.map} +1 -1
- package/dist/scripts/EOyUW0EV.chunk.js +2 -0
- package/dist/scripts/{B6wIglzt.chunk.js.map → EOyUW0EV.chunk.js.map} +1 -1
- package/dist/scripts/{Dkw1yxVb.chunk.js → Ft5Mau7n.chunk.js} +2 -2
- package/dist/scripts/{Dkw1yxVb.chunk.js.map → Ft5Mau7n.chunk.js.map} +1 -1
- package/dist/scripts/{EypiXS_y.chunk.js → GIZO-DsR.chunk.js} +2 -2
- package/dist/scripts/{EypiXS_y.chunk.js.map → GIZO-DsR.chunk.js.map} +1 -1
- package/dist/scripts/{C-LZ1Pnr.chunk.js → PEkZnijT.chunk.js} +2 -2
- package/dist/scripts/{C-LZ1Pnr.chunk.js.map → PEkZnijT.chunk.js.map} +1 -1
- package/dist/scripts/{FwSaxfbL.chunk.js → YhHoI_hl.chunk.js} +3 -3
- package/dist/scripts/{FwSaxfbL.chunk.js.map → YhHoI_hl.chunk.js.map} +1 -1
- package/dist/scripts/{app-eQ6keCVj.js → app-DlxnnX-Y.js} +5 -5
- package/dist/scripts/{app-eQ6keCVj.js.map → app-DlxnnX-Y.js.map} +1 -1
- package/dist/scripts/{CBYrUSmz.chunk.js → eF4foLm3.chunk.js} +2 -2
- package/dist/scripts/{CBYrUSmz.chunk.js.map → eF4foLm3.chunk.js.map} +1 -1
- package/dist/scripts/{D4uscADt.chunk.js → faET_EvS.chunk.js} +2 -2
- package/dist/scripts/{D4uscADt.chunk.js.map → faET_EvS.chunk.js.map} +1 -1
- package/dist/scripts/{CtsGHZp3.chunk.js → i36I5rgn.chunk.js} +2 -2
- package/dist/scripts/{CtsGHZp3.chunk.js.map → i36I5rgn.chunk.js.map} +1 -1
- package/dist/scripts/i6PC1lEa.chunk.js +2 -0
- package/dist/scripts/{D8bdW5jN.chunk.js.map → i6PC1lEa.chunk.js.map} +1 -1
- package/dist/scripts/{BYTm1HdJ.chunk.js → mMvgsH8u.chunk.js} +2 -2
- package/dist/scripts/{BYTm1HdJ.chunk.js.map → mMvgsH8u.chunk.js.map} +1 -1
- package/dist/scripts/{1JtZW3TW.chunk.js → nzWgRE-N.chunk.js} +2 -2
- package/dist/scripts/{1JtZW3TW.chunk.js.map → nzWgRE-N.chunk.js.map} +1 -1
- package/dist/scripts/{DqYjDOWl.chunk.js → uFAznmkx.chunk.js} +2 -2
- package/dist/scripts/{DqYjDOWl.chunk.js.map → uFAznmkx.chunk.js.map} +1 -1
- package/dist/scripts/{zFY--sWD.chunk.js → wC1U3zaB.chunk.js} +2 -2
- package/dist/scripts/{zFY--sWD.chunk.js.map → wC1U3zaB.chunk.js.map} +1 -1
- package/package.json +1 -1
- package/dist/scripts/B6wIglzt.chunk.js +0 -2
- package/dist/scripts/BnkjQdg-.chunk.js +0 -2
- package/dist/scripts/ByM31Op_.chunk.js +0 -2
- package/dist/scripts/ByM31Op_.chunk.js.map +0 -1
- package/dist/scripts/COkVtt29.chunk.js +0 -2
- package/dist/scripts/D0w9N-3T.chunk.js +0 -2
- package/dist/scripts/D8bdW5jN.chunk.js +0 -2
- package/dist/scripts/DWYleim7.chunk.js +0 -2
- package/dist/scripts/DX5d-qLN.chunk.js +0 -2
- package/dist/scripts/DoJDzZ7U.chunk.js +0 -15
- package/dist/scripts/DoJDzZ7U.chunk.js.map +0 -1
- package/dist/scripts/k5oLm6N7.chunk.js +0 -2
- package/dist/scripts/k5oLm6N7.chunk.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["scripts/Cmu1J2M7.chunk.js","css/CD1qrI1T.chunk.css","scripts/
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["scripts/Cmu1J2M7.chunk.js","css/CD1qrI1T.chunk.css","scripts/CSvE-r6r.chunk.js","scripts/BSZHRB-3.chunk.js","scripts/pkzD5BEm.chunk.js","scripts/BVbJxgV8.chunk.js","css/jbMisi9r.chunk.css","scripts/BTJwiZTv.chunk.js","scripts/D0Kez51H.chunk.js","scripts/B7sQixjZ.chunk.js","css/CY0yvCW4.chunk.css","scripts/D1O5BdYP.chunk.js","scripts/77QNnWjW.chunk.js","scripts/59HBVVj3.chunk.js","scripts/CsI_aEby.chunk.js","scripts/C06GoFsR.chunk.js","scripts/CWjXnQlc.chunk.js","scripts/Cj7-nmDw.chunk.js","scripts/_sYSSSUN.chunk.js","scripts/B668bf5B.chunk.js","css/C5zULL5u.chunk.css","scripts/CbqPW1QD.chunk.js","scripts/BJaYD8dc.chunk.js","scripts/ByKnIsJG.chunk.js","css/C2R4QydJ.chunk.css","scripts/CXEroOnb.chunk.js","css/BPdg7JW4.chunk.css","scripts/CNat3TfQ.chunk.js","scripts/CKbq02SS.chunk.js","scripts/eF4foLm3.chunk.js","css/CC5F5C8O.chunk.css","css/CCsCPLDG.chunk.css","scripts/BQiCELUH.chunk.js","css/C7XoyEPr.chunk.css","css/BIeUeS4h.chunk.css","scripts/BiAKqJdD.chunk.js","scripts/CmQwEhN8.chunk.js","scripts/BaNAbBYa.chunk.js","scripts/CNVerO1q.chunk.js","css/DL_jCfRl.chunk.css","scripts/D8QwkaNv.chunk.js","scripts/Bz5fsSmV.chunk.js","scripts/BbGFMokw.chunk.js","scripts/BlDVEZsX.chunk.js","scripts/DxppYmgw.chunk.js","css/BiRz4h1c.chunk.css","css/DlOtoSz0.chunk.css","scripts/B9q9og3n.chunk.js","scripts/BD8uJxiB.chunk.js","scripts/A03ti58C.chunk.js","scripts/CtbOxRCF.chunk.js","scripts/uFAznmkx.chunk.js","scripts/BMTawQoz.chunk.js","scripts/BQz8nP4M.chunk.js","css/CrSv-tYo.chunk.css","scripts/BfA6QK2M.chunk.js","scripts/DzTRfLQn.chunk.js","scripts/Bvlv6PGR.chunk.js","scripts/B3hUKuRr.chunk.js","scripts/DIzcUtXf.chunk.js","css/DI4l_5OJ.chunk.css","scripts/Cxg7zIQ7.chunk.js","css/CkiKqj89.chunk.css","scripts/nzWgRE-N.chunk.js","scripts/faET_EvS.chunk.js","scripts/DbQN84Ka.chunk.js","scripts/wC1U3zaB.chunk.js","scripts/DvMJBGNc.chunk.js","scripts/DSuqoCKU.chunk.js","css/CuIe9di1.chunk.css","scripts/CWdK_7iP.chunk.js","scripts/CelK9zYh.chunk.js","css/CphXVlxY.chunk.css","scripts/QfCSKVqV.chunk.js","css/CM-cscAF.chunk.css","scripts/EOyUW0EV.chunk.js","scripts/i36I5rgn.chunk.js","scripts/DHQlkDUq.chunk.js","scripts/YhHoI_hl.chunk.js","scripts/BP-61ONz.chunk.js","scripts/BwS3tIqZ.chunk.js","css/DnhNnDZN.chunk.css","scripts/DGdFdv74.chunk.js","css/BDOTXlob.chunk.css","scripts/DLqmmsup.chunk.js","scripts/BX8fMfGC.chunk.js","css/EnQ3abug.chunk.css","css/BBuiH5XR.chunk.css","scripts/C_KOP_pH.chunk.js","scripts/BuSLCxEs.chunk.js","scripts/B0qPCCXt.chunk.js","scripts/C3cp4ax7.chunk.js","scripts/D-XHMtrK.chunk.js","scripts/BazXwFtM.chunk.js","scripts/DVgGpvRr.chunk.js","css/BBV1d-ZI.chunk.css","scripts/CxNf401G.chunk.js","scripts/BfAoEeOL.chunk.js","scripts/97GoF_Eh.chunk.js","scripts/Ft5Mau7n.chunk.js","scripts/DVqb0KMG.chunk.js","scripts/DQz3vFm9.chunk.js","css/Ci6HCTb5.chunk.css","scripts/D_K0UgSq.chunk.js","scripts/DDCwFNmm.chunk.js","css/w4TLT4f5.chunk.css","scripts/DOH54KcJ.chunk.js","scripts/B3P1JDvZ.chunk.js","css/B57G3PZD.chunk.css","css/DRlDmMhN.chunk.css","scripts/CmKuC0AJ.chunk.js","css/Bt3pBBLn.chunk.css","scripts/PEkZnijT.chunk.js","scripts/DgCvHCTv.chunk.js","css/DGyCCqtO.chunk.css","scripts/mMvgsH8u.chunk.js","scripts/DhiXbhAO.chunk.js","css/fs02hBfZ.chunk.css","scripts/GIZO-DsR.chunk.js","scripts/CP5MKWC_.chunk.js","css/CDiJwtuL.chunk.css","scripts/CkXDJSIC.chunk.js","css/Dkh6sNpi.chunk.css","scripts/CyTjm-iy.chunk.js","scripts/CW4iXW5L.chunk.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var Fie=Object.defineProperty;var jie=(e,t,r)=>t in e?Fie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Rn=(e,t,r)=>jie(e,typeof t!="symbol"?t+"":t,r);function Mn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function DLe(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var k_={exports:{}},vD;function Uie(){return vD||(vD=1,(function(e){var t=(function(r){var n=Object.prototype,i=n.hasOwnProperty,a,o=typeof Symbol=="function"?Symbol:{},l=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",f=o.toStringTag||"@@toStringTag";function d(H,J,z){return Object.defineProperty(H,J,{value:z,enumerable:!0,configurable:!0,writable:!0}),H[J]}try{d({},"")}catch{d=function(J,z,ue){return J[z]=ue}}function h(H,J,z,ue){var we=J&&J.prototype instanceof T?J:T,ke=Object.create(we.prototype),Be=new ie(ue||[]);return ke._invoke=B(H,z,Be),ke}r.wrap=h;function p(H,J,z){try{return{type:"normal",arg:H.call(J,z)}}catch(ue){return{type:"throw",arg:ue}}}var y="suspendedStart",_="suspendedYield",E="executing",S="completed",w={};function T(){}function C(){}function x(){}var R={};d(R,l,function(){return this});var O=Object.getPrototypeOf,m=O&&O(O(ae([])));m&&m!==n&&i.call(m,l)&&(R=m);var D=x.prototype=T.prototype=Object.create(R);C.prototype=x,d(D,"constructor",x),d(x,"constructor",C),C.displayName=d(x,f,"GeneratorFunction");function U(H){["next","throw","return"].forEach(function(J){d(H,J,function(z){return this._invoke(J,z)})})}r.isGeneratorFunction=function(H){var J=typeof H=="function"&&H.constructor;return J?J===C||(J.displayName||J.name)==="GeneratorFunction":!1},r.mark=function(H){return Object.setPrototypeOf?Object.setPrototypeOf(H,x):(H.__proto__=x,d(H,f,"GeneratorFunction")),H.prototype=Object.create(D),H},r.awrap=function(H){return{__await:H}};function K(H,J){function z(ke,Be,nt,rt){var q=p(H[ke],H,Be);if(q.type==="throw")rt(q.arg);else{var I=q.arg,N=I.value;return N&&typeof N=="object"&&i.call(N,"__await")?J.resolve(N.__await).then(function(M){z("next",M,nt,rt)},function(M){z("throw",M,nt,rt)}):J.resolve(N).then(function(M){I.value=M,nt(I)},function(M){return z("throw",M,nt,rt)})}}var ue;function we(ke,Be){function nt(){return new J(function(rt,q){z(ke,Be,rt,q)})}return ue=ue?ue.then(nt,nt):nt()}this._invoke=we}U(K.prototype),d(K.prototype,u,function(){return this}),r.AsyncIterator=K,r.async=function(H,J,z,ue,we){we===void 0&&(we=Promise);var ke=new K(h(H,J,z,ue),we);return r.isGeneratorFunction(J)?ke:ke.next().then(function(Be){return Be.done?Be.value:ke.next()})};function B(H,J,z){var ue=y;return function(ke,Be){if(ue===E)throw new Error("Generator is already running");if(ue===S){if(ke==="throw")throw Be;return ve()}for(z.method=ke,z.arg=Be;;){var nt=z.delegate;if(nt){var rt=W(nt,z);if(rt){if(rt===w)continue;return rt}}if(z.method==="next")z.sent=z._sent=z.arg;else if(z.method==="throw"){if(ue===y)throw ue=S,z.arg;z.dispatchException(z.arg)}else z.method==="return"&&z.abrupt("return",z.arg);ue=E;var q=p(H,J,z);if(q.type==="normal"){if(ue=z.done?S:_,q.arg===w)continue;return{value:q.arg,done:z.done}}else q.type==="throw"&&(ue=S,z.method="throw",z.arg=q.arg)}}}function W(H,J){var z=H.iterator[J.method];if(z===a){if(J.delegate=null,J.method==="throw"){if(H.iterator.return&&(J.method="return",J.arg=a,W(H,J),J.method==="throw"))return w;J.method="throw",J.arg=new TypeError("The iterator does not provide a 'throw' method")}return w}var ue=p(z,H.iterator,J.arg);if(ue.type==="throw")return J.method="throw",J.arg=ue.arg,J.delegate=null,w;var we=ue.arg;if(!we)return J.method="throw",J.arg=new TypeError("iterator result is not an object"),J.delegate=null,w;if(we.done)J[H.resultName]=we.value,J.next=H.nextLoc,J.method!=="return"&&(J.method="next",J.arg=a);else return we;return J.delegate=null,w}U(D),d(D,f,"Generator"),d(D,l,function(){return this}),d(D,"toString",function(){return"[object Generator]"});function Y(H){var J={tryLoc:H[0]};1 in H&&(J.catchLoc=H[1]),2 in H&&(J.finallyLoc=H[2],J.afterLoc=H[3]),this.tryEntries.push(J)}function Q(H){var J=H.completion||{};J.type="normal",delete J.arg,H.completion=J}function ie(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(Y,this),this.reset(!0)}r.keys=function(H){var J=[];for(var z in H)J.push(z);return J.reverse(),function ue(){for(;J.length;){var we=J.pop();if(we in H)return ue.value=we,ue.done=!1,ue}return ue.done=!0,ue}};function ae(H){if(H){var J=H[l];if(J)return J.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var z=-1,ue=function we(){for(;++z<H.length;)if(i.call(H,z))return we.value=H[z],we.done=!1,we;return we.value=a,we.done=!0,we};return ue.next=ue}}return{next:ve}}r.values=ae;function ve(){return{value:a,done:!0}}return ie.prototype={constructor:ie,reset:function(H){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(Q),!H)for(var J in this)J.charAt(0)==="t"&&i.call(this,J)&&!isNaN(+J.slice(1))&&(this[J]=a)},stop:function(){this.done=!0;var H=this.tryEntries[0],J=H.completion;if(J.type==="throw")throw J.arg;return this.rval},dispatchException:function(H){if(this.done)throw H;var J=this;function z(rt,q){return ke.type="throw",ke.arg=H,J.next=rt,q&&(J.method="next",J.arg=a),!!q}for(var ue=this.tryEntries.length-1;ue>=0;--ue){var we=this.tryEntries[ue],ke=we.completion;if(we.tryLoc==="root")return z("end");if(we.tryLoc<=this.prev){var Be=i.call(we,"catchLoc"),nt=i.call(we,"finallyLoc");if(Be&&nt){if(this.prev<we.catchLoc)return z(we.catchLoc,!0);if(this.prev<we.finallyLoc)return z(we.finallyLoc)}else if(Be){if(this.prev<we.catchLoc)return z(we.catchLoc,!0)}else if(nt){if(this.prev<we.finallyLoc)return z(we.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(H,J){for(var z=this.tryEntries.length-1;z>=0;--z){var ue=this.tryEntries[z];if(ue.tryLoc<=this.prev&&i.call(ue,"finallyLoc")&&this.prev<ue.finallyLoc){var we=ue;break}}we&&(H==="break"||H==="continue")&&we.tryLoc<=J&&J<=we.finallyLoc&&(we=null);var ke=we?we.completion:{};return ke.type=H,ke.arg=J,we?(this.method="next",this.next=we.finallyLoc,w):this.complete(ke)},complete:function(H,J){if(H.type==="throw")throw H.arg;return H.type==="break"||H.type==="continue"?this.next=H.arg:H.type==="return"?(this.rval=this.arg=H.arg,this.method="return",this.next="end"):H.type==="normal"&&J&&(this.next=J),w},finish:function(H){for(var J=this.tryEntries.length-1;J>=0;--J){var z=this.tryEntries[J];if(z.finallyLoc===H)return this.complete(z.completion,z.afterLoc),Q(z),w}},catch:function(H){for(var J=this.tryEntries.length-1;J>=0;--J){var z=this.tryEntries[J];if(z.tryLoc===H){var ue=z.completion;if(ue.type==="throw"){var we=ue.arg;Q(z)}return we}}throw new Error("illegal catch attempt")},delegateYield:function(H,J,z){return this.delegate={iterator:ae(H),resultName:J,nextLoc:z},this.method==="next"&&(this.arg=a),w}},r})(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(k_)),k_.exports}Uie();var gD={},mD={},qd,yD;function Zt(){if(yD)return qd;yD=1;var e=function(t){return t&&t.Math===Math&&t};return qd=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof globalThis=="object"&&globalThis)||e(typeof qd=="object"&&qd)||(function(){return this})()||Function("return this")(),qd}var D_={},L_,_D;function Ht(){return _D||(_D=1,L_=function(e){try{return!!e()}catch{return!0}}),L_}var N_,ED;function Rr(){if(ED)return N_;ED=1;var e=Ht();return N_=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),N_}var M_,SD;function Mh(){if(SD)return M_;SD=1;var e=Ht();return M_=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),M_}var $_,wD;function mr(){if(wD)return $_;wD=1;var e=Mh(),t=Function.prototype.call;return $_=e?t.bind(t):function(){return t.apply(t,arguments)},$_}var F_={},bD;function Wg(){if(bD)return F_;bD=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return F_.f=r?function(i){var a=t(this,i);return!!a&&a.enumerable}:e,F_}var j_,TD;function xo(){return TD||(TD=1,j_=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),j_}var U_,AD;function Kt(){if(AD)return U_;AD=1;var e=Mh(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return U_=e?n:function(i){return function(){return r.apply(i,arguments)}},U_}var q_,RD;function Ra(){if(RD)return q_;RD=1;var e=Kt(),t=e({}.toString),r=e("".slice);return q_=function(n){return r(t(n),8,-1)},q_}var B_,xD;function Uf(){if(xD)return B_;xD=1;var e=Kt(),t=Ht(),r=Ra(),n=Object,i=e("".split);return B_=t(function(){return!n("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):n(a)}:n,B_}var V_,CD;function Eu(){return CD||(CD=1,V_=function(e){return e==null}),V_}var H_,OD;function di(){if(OD)return H_;OD=1;var e=Eu(),t=TypeError;return H_=function(r){if(e(r))throw new t("Can't call method on "+r);return r},H_}var z_,ID;function ra(){if(ID)return z_;ID=1;var e=Uf(),t=di();return z_=function(r){return e(t(r))},z_}var W_,PD;function hn(){if(PD)return W_;PD=1;var e=typeof document=="object"&&document.all;return W_=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},W_}var G_,kD;function qr(){if(kD)return G_;kD=1;var e=hn();return G_=function(t){return typeof t=="object"?t!==null:e(t)},G_}var K_,DD;function ln(){if(DD)return K_;DD=1;var e=Zt(),t=hn(),r=function(n){return t(n)?n:void 0};return K_=function(n,i){return arguments.length<2?r(e[n]):e[n]&&e[n][i]},K_}var Y_,LD;function Va(){if(LD)return Y_;LD=1;var e=Kt();return Y_=e({}.isPrototypeOf),Y_}var X_,ND;function js(){if(ND)return X_;ND=1;var e=Zt(),t=e.navigator,r=t&&t.userAgent;return X_=r?String(r):"",X_}var Q_,MD;function Us(){if(MD)return Q_;MD=1;var e=Zt(),t=js(),r=e.process,n=e.Deno,i=r&&r.versions||n&&n.version,a=i&&i.v8,o,l;return a&&(o=a.split("."),l=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!l&&t&&(o=t.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=t.match(/Chrome\/(\d+)/),o&&(l=+o[1]))),Q_=l,Q_}var J_,$D;function qf(){if($D)return J_;$D=1;var e=Us(),t=Ht(),r=Zt(),n=r.String;return J_=!!Object.getOwnPropertySymbols&&!t(function(){var i=Symbol("symbol detection");return!n(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&e&&e<41}),J_}var Z_,FD;function mX(){if(FD)return Z_;FD=1;var e=qf();return Z_=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Z_}var eE,jD;function lc(){if(jD)return eE;jD=1;var e=ln(),t=hn(),r=Va(),n=mX(),i=Object;return eE=n?function(a){return typeof a=="symbol"}:function(a){var o=e("Symbol");return t(o)&&r(o.prototype,i(a))},eE}var tE,UD;function cc(){if(UD)return tE;UD=1;var e=String;return tE=function(t){try{return e(t)}catch{return"Object"}},tE}var rE,qD;function cn(){if(qD)return rE;qD=1;var e=hn(),t=cc(),r=TypeError;return rE=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},rE}var nE,BD;function la(){if(BD)return nE;BD=1;var e=cn(),t=Eu();return nE=function(r,n){var i=r[n];return t(i)?void 0:e(i)},nE}var iE,VD;function yX(){if(VD)return iE;VD=1;var e=mr(),t=hn(),r=qr(),n=TypeError;return iE=function(i,a){var o,l;if(a==="string"&&t(o=i.toString)&&!r(l=e(o,i))||t(o=i.valueOf)&&!r(l=e(o,i))||a!=="string"&&t(o=i.toString)&&!r(l=e(o,i)))return l;throw new n("Can't convert object to primitive value")},iE}var aE={exports:{}},oE,HD;function xn(){return HD||(HD=1,oE=!1),oE}var sE,zD;function LC(){if(zD)return sE;zD=1;var e=Zt(),t=Object.defineProperty;return sE=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},sE}var WD;function Gg(){if(WD)return aE.exports;WD=1;var e=xn(),t=Zt(),r=LC(),n="__core-js_shared__",i=aE.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.45.1",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"}),aE.exports}var uE,GD;function Bf(){if(GD)return uE;GD=1;var e=Gg();return uE=function(t,r){return e[t]||(e[t]=r||{})},uE}var lE,KD;function wn(){if(KD)return lE;KD=1;var e=di(),t=Object;return lE=function(r){return t(e(r))},lE}var cE,YD;function fn(){if(YD)return cE;YD=1;var e=Kt(),t=wn(),r=e({}.hasOwnProperty);return cE=Object.hasOwn||function(i,a){return r(t(i),a)},cE}var fE,XD;function Vf(){if(XD)return fE;XD=1;var e=Kt(),t=0,r=Math.random(),n=e(1.1.toString);return fE=function(i){return"Symbol("+(i===void 0?"":i)+")_"+n(++t+r,36)},fE}var dE,QD;function Br(){if(QD)return dE;QD=1;var e=Zt(),t=Bf(),r=fn(),n=Vf(),i=qf(),a=mX(),o=e.Symbol,l=t("wks"),u=a?o.for||o:o&&o.withoutSetter||n;return dE=function(f){return r(l,f)||(l[f]=i&&r(o,f)?o[f]:u("Symbol."+f)),l[f]},dE}var hE,JD;function Kg(){if(JD)return hE;JD=1;var e=mr(),t=qr(),r=lc(),n=la(),i=yX(),a=Br(),o=TypeError,l=a("toPrimitive");return hE=function(u,f){if(!t(u)||r(u))return u;var d=n(u,l),h;if(d){if(f===void 0&&(f="default"),h=e(d,u,f),!t(h)||r(h))return h;throw new o("Can't convert object to primitive value")}return f===void 0&&(f="number"),i(u,f)},hE}var pE,ZD;function sl(){if(ZD)return pE;ZD=1;var e=Kg(),t=lc();return pE=function(r){var n=e(r,"string");return t(n)?n:n+""},pE}var vE,eL;function Yg(){if(eL)return vE;eL=1;var e=Zt(),t=qr(),r=e.document,n=t(r)&&t(r.createElement);return vE=function(i){return n?r.createElement(i):{}},vE}var gE,tL;function _X(){if(tL)return gE;tL=1;var e=Rr(),t=Ht(),r=Yg();return gE=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),gE}var rL;function ca(){if(rL)return D_;rL=1;var e=Rr(),t=mr(),r=Wg(),n=xo(),i=ra(),a=sl(),o=fn(),l=_X(),u=Object.getOwnPropertyDescriptor;return D_.f=e?u:function(d,h){if(d=i(d),h=a(h),l)try{return u(d,h)}catch{}if(o(d,h))return n(!t(r.f,d,h),d[h])},D_}var mE={},yE,nL;function EX(){if(nL)return yE;nL=1;var e=Rr(),t=Ht();return yE=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),yE}var _E,iL;function Er(){if(iL)return _E;iL=1;var e=qr(),t=String,r=TypeError;return _E=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},_E}var aL;function ui(){if(aL)return mE;aL=1;var e=Rr(),t=_X(),r=EX(),n=Er(),i=sl(),a=TypeError,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u="enumerable",f="configurable",d="writable";return mE.f=e?r?function(p,y,_){if(n(p),y=i(y),n(_),typeof p=="function"&&y==="prototype"&&"value"in _&&d in _&&!_[d]){var E=l(p,y);E&&E[d]&&(p[y]=_.value,_={configurable:f in _?_[f]:E[f],enumerable:u in _?_[u]:E[u],writable:!1})}return o(p,y,_)}:o:function(p,y,_){if(n(p),y=i(y),n(_),t)try{return o(p,y,_)}catch{}if("get"in _||"set"in _)throw new a("Accessors not supported");return"value"in _&&(p[y]=_.value),p},mE}var EE,oL;function fa(){if(oL)return EE;oL=1;var e=Rr(),t=ui(),r=xo();return EE=e?function(n,i,a){return t.f(n,i,r(1,a))}:function(n,i,a){return n[i]=a,n},EE}var SE={exports:{}},wE,sL;function Hf(){if(sL)return wE;sL=1;var e=Rr(),t=fn(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,i=t(r,"name"),a=i&&(function(){}).name==="something",o=i&&(!e||e&&n(r,"name").configurable);return wE={EXISTS:i,PROPER:a,CONFIGURABLE:o},wE}var bE,uL;function NC(){if(uL)return bE;uL=1;var e=Kt(),t=hn(),r=Gg(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(i){return n(i)}),bE=r.inspectSource,bE}var TE,lL;function SX(){if(lL)return TE;lL=1;var e=Zt(),t=hn(),r=e.WeakMap;return TE=t(r)&&/native code/.test(String(r)),TE}var AE,cL;function Xg(){if(cL)return AE;cL=1;var e=Bf(),t=Vf(),r=e("keys");return AE=function(n){return r[n]||(r[n]=t(n))},AE}var RE,fL;function $h(){return fL||(fL=1,RE={}),RE}var xE,dL;function Ei(){if(dL)return xE;dL=1;var e=SX(),t=Zt(),r=qr(),n=fa(),i=fn(),a=Gg(),o=Xg(),l=$h(),u="Object already initialized",f=t.TypeError,d=t.WeakMap,h,p,y,_=function(T){return y(T)?p(T):h(T,{})},E=function(T){return function(C){var x;if(!r(C)||(x=p(C)).type!==T)throw new f("Incompatible receiver, "+T+" required");return x}};if(e||a.state){var S=a.state||(a.state=new d);S.get=S.get,S.has=S.has,S.set=S.set,h=function(T,C){if(S.has(T))throw new f(u);return C.facade=T,S.set(T,C),C},p=function(T){return S.get(T)||{}},y=function(T){return S.has(T)}}else{var w=o("state");l[w]=!0,h=function(T,C){if(i(T,w))throw new f(u);return C.facade=T,n(T,w,C),C},p=function(T){return i(T,w)?T[w]:{}},y=function(T){return i(T,w)}}return xE={set:h,get:p,has:y,enforce:_,getterFor:E},xE}var hL;function MC(){if(hL)return SE.exports;hL=1;var e=Kt(),t=Ht(),r=hn(),n=fn(),i=Rr(),a=Hf().CONFIGURABLE,o=NC(),l=Ei(),u=l.enforce,f=l.get,d=String,h=Object.defineProperty,p=e("".slice),y=e("".replace),_=e([].join),E=i&&!t(function(){return h(function(){},"length",{value:8}).length!==8}),S=String(String).split("String"),w=SE.exports=function(T,C,x){p(d(C),0,7)==="Symbol("&&(C="["+y(d(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(C="get "+C),x&&x.setter&&(C="set "+C),(!n(T,"name")||a&&T.name!==C)&&(i?h(T,"name",{value:C,configurable:!0}):T.name=C),E&&x&&n(x,"arity")&&T.length!==x.arity&&h(T,"length",{value:x.arity});try{x&&n(x,"constructor")&&x.constructor?i&&h(T,"prototype",{writable:!1}):T.prototype&&(T.prototype=void 0)}catch{}var R=u(T);return n(R,"source")||(R.source=_(S,typeof C=="string"?C:"")),T};return Function.prototype.toString=w(function(){return r(this)&&f(this).source||o(this)},"toString"),SE.exports}var CE,pL;function $n(){if(pL)return CE;pL=1;var e=hn(),t=ui(),r=MC(),n=LC();return CE=function(i,a,o,l){l||(l={});var u=l.enumerable,f=l.name!==void 0?l.name:a;if(e(o)&&r(o,f,l),l.global)u?i[a]=o:n(a,o);else{try{l.unsafe?i[a]&&(u=!0):delete i[a]}catch{}u?i[a]=o:t.f(i,a,{value:o,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return i},CE}var OE={},IE,vL;function wX(){if(vL)return IE;vL=1;var e=Math.ceil,t=Math.floor;return IE=Math.trunc||function(n){var i=+n;return(i>0?t:e)(i)},IE}var PE,gL;function Ri(){if(gL)return PE;gL=1;var e=wX();return PE=function(t){var r=+t;return r!==r||r===0?0:e(r)},PE}var kE,mL;function Su(){if(mL)return kE;mL=1;var e=Ri(),t=Math.max,r=Math.min;return kE=function(n,i){var a=e(n);return a<0?t(a+i,0):r(a,i)},kE}var DE,yL;function Co(){if(yL)return DE;yL=1;var e=Ri(),t=Math.min;return DE=function(r){var n=e(r);return n>0?t(n,9007199254740991):0},DE}var LE,_L;function Wn(){if(_L)return LE;_L=1;var e=Co();return LE=function(t){return e(t.length)},LE}var NE,EL;function Fh(){if(EL)return NE;EL=1;var e=ra(),t=Su(),r=Wn(),n=function(i){return function(a,o,l){var u=e(a),f=r(u);if(f===0)return!i&&-1;var d=t(l,f),h;if(i&&o!==o){for(;f>d;)if(h=u[d++],h!==h)return!0}else for(;f>d;d++)if((i||d in u)&&u[d]===o)return i||d||0;return!i&&-1}};return NE={includes:n(!0),indexOf:n(!1)},NE}var ME,SL;function bX(){if(SL)return ME;SL=1;var e=Kt(),t=fn(),r=ra(),n=Fh().indexOf,i=$h(),a=e([].push);return ME=function(o,l){var u=r(o),f=0,d=[],h;for(h in u)!t(i,h)&&t(u,h)&&a(d,h);for(;l.length>f;)t(u,h=l[f++])&&(~n(d,h)||a(d,h));return d},ME}var $E,wL;function $C(){return wL||(wL=1,$E=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),$E}var bL;function fc(){if(bL)return OE;bL=1;var e=bX(),t=$C(),r=t.concat("length","prototype");return OE.f=Object.getOwnPropertyNames||function(i){return e(i,r)},OE}var FE={},TL;function Qg(){return TL||(TL=1,FE.f=Object.getOwnPropertySymbols),FE}var jE,AL;function FC(){if(AL)return jE;AL=1;var e=ln(),t=Kt(),r=fc(),n=Qg(),i=Er(),a=t([].concat);return jE=e("Reflect","ownKeys")||function(l){var u=r.f(i(l)),f=n.f;return f?a(u,f(l)):u},jE}var UE,RL;function zf(){if(RL)return UE;RL=1;var e=fn(),t=FC(),r=ca(),n=ui();return UE=function(i,a,o){for(var l=t(a),u=n.f,f=r.f,d=0;d<l.length;d++){var h=l[d];!e(i,h)&&!(o&&e(o,h))&&u(i,h,f(a,h))}},UE}var qE,xL;function jh(){if(xL)return qE;xL=1;var e=Ht(),t=hn(),r=/#|\.prototype\./,n=function(u,f){var d=a[i(u)];return d===l?!0:d===o?!1:t(f)?e(f):!!f},i=n.normalize=function(u){return String(u).replace(r,".").toLowerCase()},a=n.data={},o=n.NATIVE="N",l=n.POLYFILL="P";return qE=n,qE}var BE,CL;function je(){if(CL)return BE;CL=1;var e=Zt(),t=ca().f,r=fa(),n=$n(),i=LC(),a=zf(),o=jh();return BE=function(l,u){var f=l.target,d=l.global,h=l.stat,p,y,_,E,S,w;if(d?y=e:h?y=e[f]||i(f,{}):y=e[f]&&e[f].prototype,y)for(_ in u){if(S=u[_],l.dontCallGetSet?(w=t(y,_),E=w&&w.value):E=y[_],p=o(d?_:f+(h?".":"#")+_,l.forced),!p&&E!==void 0){if(typeof S==typeof E)continue;a(S,E)}(l.sham||E&&E.sham)&&r(S,"sham",!0),n(y,_,S,l)}},BE}var VE,OL;function jC(){if(OL)return VE;OL=1;var e=Br(),t=e("toStringTag"),r={};return r[t]="z",VE=String(r)==="[object z]",VE}var HE,IL;function Oo(){if(IL)return HE;IL=1;var e=jC(),t=hn(),r=Ra(),n=Br(),i=n("toStringTag"),a=Object,o=r((function(){return arguments})())==="Arguments",l=function(u,f){try{return u[f]}catch{}};return HE=e?r:function(u){var f,d,h;return u===void 0?"Undefined":u===null?"Null":typeof(d=l(f=a(u),i))=="string"?d:o?r(f):(h=r(f))==="Object"&&t(f.callee)?"Arguments":h},HE}var zE,PL;function Xr(){if(PL)return zE;PL=1;var e=Oo(),t=String;return zE=function(r){if(e(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return t(r)},zE}var WE={},GE,kL;function Uh(){if(kL)return GE;kL=1;var e=bX(),t=$C();return GE=Object.keys||function(n){return e(n,t)},GE}var DL;function UC(){if(DL)return WE;DL=1;var e=Rr(),t=EX(),r=ui(),n=Er(),i=ra(),a=Uh();return WE.f=e&&!t?Object.defineProperties:function(l,u){n(l);for(var f=i(u),d=a(u),h=d.length,p=0,y;h>p;)r.f(l,y=d[p++],f[y]);return l},WE}var KE,LL;function TX(){if(LL)return KE;LL=1;var e=ln();return KE=e("document","documentElement"),KE}var YE,NL;function da(){if(NL)return YE;NL=1;var e=Er(),t=UC(),r=$C(),n=$h(),i=TX(),a=Yg(),o=Xg(),l=">",u="<",f="prototype",d="script",h=o("IE_PROTO"),p=function(){},y=function(T){return u+d+l+T+u+"/"+d+l},_=function(T){T.write(y("")),T.close();var C=T.parentWindow.Object;return T=null,C},E=function(){var T=a("iframe"),C="java"+d+":",x;return T.style.display="none",i.appendChild(T),T.src=String(C),x=T.contentWindow.document,x.open(),x.write(y("document.F=Object")),x.close(),x.F},S,w=function(){try{S=new ActiveXObject("htmlfile")}catch{}w=typeof document<"u"?document.domain&&S?_(S):E():_(S);for(var T=r.length;T--;)delete w[f][r[T]];return w()};return n[h]=!0,YE=Object.create||function(C,x){var R;return C!==null?(p[f]=e(C),R=new p,p[f]=null,R[h]=C):R=w(),x===void 0?R:t.f(R,x)},YE}var XE={},QE,ML;function ns(){if(ML)return QE;ML=1;var e=Kt();return QE=e([].slice),QE}var $L;function qC(){if($L)return XE;$L=1;var e=Ra(),t=ra(),r=fc().f,n=ns(),i=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(o){try{return r(o)}catch{return n(i)}};return XE.f=function(l){return i&&e(l)==="Window"?a(l):r(t(l))},XE}var JE,FL;function Di(){if(FL)return JE;FL=1;var e=MC(),t=ui();return JE=function(r,n,i){return i.get&&e(i.get,n,{getter:!0}),i.set&&e(i.set,n,{setter:!0}),t.f(r,n,i)},JE}var ZE={},jL;function AX(){if(jL)return ZE;jL=1;var e=Br();return ZE.f=e,ZE}var eS,UL;function Jg(){if(UL)return eS;UL=1;var e=Zt();return eS=e,eS}var tS,qL;function xa(){if(qL)return tS;qL=1;var e=Jg(),t=fn(),r=AX(),n=ui().f;return tS=function(i){var a=e.Symbol||(e.Symbol={});t(a,i)||n(a,i,{value:r.f(i)})},tS}var rS,BL;function RX(){if(BL)return rS;BL=1;var e=mr(),t=ln(),r=Br(),n=$n();return rS=function(){var i=t("Symbol"),a=i&&i.prototype,o=a&&a.valueOf,l=r("toPrimitive");a&&!a[l]&&n(a,l,function(u){return e(o,this)},{arity:1})},rS}var nS,VL;function uo(){if(VL)return nS;VL=1;var e=ui().f,t=fn(),r=Br(),n=r("toStringTag");return nS=function(i,a,o){i&&!o&&(i=i.prototype),i&&!t(i,n)&&e(i,n,{configurable:!0,value:a})},nS}var iS,HL;function dc(){if(HL)return iS;HL=1;var e=Ra(),t=Kt();return iS=function(r){if(e(r)==="Function")return t(r)},iS}var aS,zL;function Io(){if(zL)return aS;zL=1;var e=dc(),t=cn(),r=Mh(),n=e(e.bind);return aS=function(i,a){return t(i),a===void 0?i:r?n(i,a):function(){return i.apply(a,arguments)}},aS}var oS,WL;function ul(){if(WL)return oS;WL=1;var e=Ra();return oS=Array.isArray||function(r){return e(r)==="Array"},oS}var sS,GL;function hc(){if(GL)return sS;GL=1;var e=Kt(),t=Ht(),r=hn(),n=Oo(),i=ln(),a=NC(),o=function(){},l=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=e(u.exec),d=!u.test(o),h=function(_){if(!r(_))return!1;try{return l(o,[],_),!0}catch{return!1}},p=function(_){if(!r(_))return!1;switch(n(_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!f(u,a(_))}catch{return!0}};return p.sham=!0,sS=!l||t(function(){var y;return h(h.call)||!h(Object)||!h(function(){y=!0})||y})?p:h,sS}var uS,KL;function qie(){if(KL)return uS;KL=1;var e=ul(),t=hc(),r=qr(),n=Br(),i=n("species"),a=Array;return uS=function(o){var l;return e(o)&&(l=o.constructor,t(l)&&(l===a||e(l.prototype))?l=void 0:r(l)&&(l=l[i],l===null&&(l=void 0))),l===void 0?a:l},uS}var lS,YL;function qh(){if(YL)return lS;YL=1;var e=qie();return lS=function(t,r){return new(e(t))(r===0?0:r)},lS}var cS,XL;function ha(){if(XL)return cS;XL=1;var e=Io(),t=Kt(),r=Uf(),n=wn(),i=Wn(),a=qh(),o=t([].push),l=function(u){var f=u===1,d=u===2,h=u===3,p=u===4,y=u===6,_=u===7,E=u===5||y;return function(S,w,T,C){for(var x=n(S),R=r(x),O=i(R),m=e(w,T),D=0,U=C||a,K=f?U(S,O):d||_?U(S,0):void 0,B,W;O>D;D++)if((E||D in R)&&(B=R[D],W=m(B,D,x),u))if(f)K[D]=W;else if(W)switch(u){case 3:return!0;case 5:return B;case 6:return D;case 2:o(K,B)}else switch(u){case 4:return!1;case 7:o(K,B)}return y?-1:h||p?p:K}};return cS={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)},cS}var QL;function Bie(){if(QL)return mD;QL=1;var e=je(),t=Zt(),r=mr(),n=Kt(),i=xn(),a=Rr(),o=qf(),l=Ht(),u=fn(),f=Va(),d=Er(),h=ra(),p=sl(),y=Xr(),_=xo(),E=da(),S=Uh(),w=fc(),T=qC(),C=Qg(),x=ca(),R=ui(),O=UC(),m=Wg(),D=$n(),U=Di(),K=Bf(),B=Xg(),W=$h(),Y=Vf(),Q=Br(),ie=AX(),ae=xa(),ve=RX(),H=uo(),J=Ei(),z=ha().forEach,ue=B("hidden"),we="Symbol",ke="prototype",Be=J.set,nt=J.getterFor(we),rt=Object[ke],q=t.Symbol,I=q&&q[ke],N=t.RangeError,M=t.TypeError,Z=t.QObject,L=x.f,G=R.f,pe=T.f,ce=m.f,be=n([].push),_e=K("symbols"),Ce=K("op-symbols"),Me=K("wks"),fe=!Z||!Z[ke]||!Z[ke].findChild,me=function(wt,mt,Et){var At=L(rt,mt);At&&delete rt[mt],G(wt,mt,Et),At&&wt!==rt&&G(rt,mt,At)},ge=a&&l(function(){return E(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a!==7})?me:G,Te=function(wt,mt){var Et=_e[wt]=E(I);return Be(Et,{type:we,tag:wt,description:mt}),a||(Et.description=mt),Et},Pe=function(mt,Et,At){mt===rt&&Pe(Ce,Et,At),d(mt);var ft=p(Et);return d(At),u(_e,ft)?(At.enumerable?(u(mt,ue)&&mt[ue][ft]&&(mt[ue][ft]=!1),At=E(At,{enumerable:_(0,!1)})):(u(mt,ue)||G(mt,ue,_(1,E(null))),mt[ue][ft]=!0),ge(mt,ft,At)):G(mt,ft,At)},De=function(mt,Et){d(mt);var At=h(Et),ft=S(At).concat(Xe(At));return z(ft,function(Ft){(!a||r(_t,At,Ft))&&Pe(mt,Ft,At[Ft])}),mt},qe=function(mt,Et){return Et===void 0?E(mt):De(E(mt),Et)},_t=function(mt){var Et=p(mt),At=r(ce,this,Et);return this===rt&&u(_e,Et)&&!u(Ce,Et)?!1:At||!u(this,Et)||!u(_e,Et)||u(this,ue)&&this[ue][Et]?At:!0},qt=function(mt,Et){var At=h(mt),ft=p(Et);if(!(At===rt&&u(_e,ft)&&!u(Ce,ft))){var Ft=L(At,ft);return Ft&&u(_e,ft)&&!(u(At,ue)&&At[ue][ft])&&(Ft.enumerable=!0),Ft}},Mt=function(mt){var Et=pe(h(mt)),At=[];return z(Et,function(ft){!u(_e,ft)&&!u(W,ft)&&be(At,ft)}),At},Xe=function(wt){var mt=wt===rt,Et=pe(mt?Ce:h(wt)),At=[];return z(Et,function(ft){u(_e,ft)&&(!mt||u(rt,ft))&&be(At,_e[ft])}),At};return o||(q=function(){if(f(I,this))throw new M("Symbol is not a constructor");var mt=!arguments.length||arguments[0]===void 0?void 0:y(arguments[0]),Et=Y(mt),At=function(ft){var Ft=this===void 0?t:this;Ft===rt&&r(At,Ce,ft),u(Ft,ue)&&u(Ft[ue],Et)&&(Ft[ue][Et]=!1);var Ct=_(1,ft);try{ge(Ft,Et,Ct)}catch(Ae){if(!(Ae instanceof N))throw Ae;me(Ft,Et,Ct)}};return a&&fe&&ge(rt,Et,{configurable:!0,set:At}),Te(Et,mt)},I=q[ke],D(I,"toString",function(){return nt(this).tag}),D(q,"withoutSetter",function(wt){return Te(Y(wt),wt)}),m.f=_t,R.f=Pe,O.f=De,x.f=qt,w.f=T.f=Mt,C.f=Xe,ie.f=function(wt){return Te(Q(wt),wt)},a&&(U(I,"description",{configurable:!0,get:function(){return nt(this).description}}),i||D(rt,"propertyIsEnumerable",_t,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!o,sham:!o},{Symbol:q}),z(S(Me),function(wt){ae(wt)}),e({target:we,stat:!0,forced:!o},{useSetter:function(){fe=!0},useSimple:function(){fe=!1}}),e({target:"Object",stat:!0,forced:!o,sham:!a},{create:qe,defineProperty:Pe,defineProperties:De,getOwnPropertyDescriptor:qt}),e({target:"Object",stat:!0,forced:!o},{getOwnPropertyNames:Mt}),ve(),H(q,we),W[ue]=!0,mD}var JL={},fS,ZL;function xX(){if(ZL)return fS;ZL=1;var e=qf();return fS=e&&!!Symbol.for&&!!Symbol.keyFor,fS}var eN;function Vie(){if(eN)return JL;eN=1;var e=je(),t=ln(),r=fn(),n=Xr(),i=Bf(),a=xX(),o=i("string-to-symbol-registry"),l=i("symbol-to-string-registry");return e({target:"Symbol",stat:!0,forced:!a},{for:function(u){var f=n(u);if(r(o,f))return o[f];var d=t("Symbol")(f);return o[f]=d,l[d]=f,d}}),JL}var tN={},rN;function Hie(){if(rN)return tN;rN=1;var e=je(),t=fn(),r=lc(),n=cc(),i=Bf(),a=xX(),o=i("symbol-to-string-registry");return e({target:"Symbol",stat:!0,forced:!a},{keyFor:function(u){if(!r(u))throw new TypeError(n(u)+" is not a symbol");if(t(o,u))return o[u]}}),tN}var nN={},dS,iN;function Po(){if(iN)return dS;iN=1;var e=Mh(),t=Function.prototype,r=t.apply,n=t.call;return dS=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),dS}var hS,aN;function zie(){if(aN)return hS;aN=1;var e=Kt(),t=ul(),r=hn(),n=Ra(),i=Xr(),a=e([].push);return hS=function(o){if(r(o))return o;if(t(o)){for(var l=o.length,u=[],f=0;f<l;f++){var d=o[f];typeof d=="string"?a(u,d):(typeof d=="number"||n(d)==="Number"||n(d)==="String")&&a(u,i(d))}var h=u.length,p=!0;return function(y,_){if(p)return p=!1,_;if(t(this))return _;for(var E=0;E<h;E++)if(u[E]===y)return _}}},hS}var oN;function CX(){if(oN)return nN;oN=1;var e=je(),t=ln(),r=Po(),n=mr(),i=Kt(),a=Ht(),o=hn(),l=lc(),u=ns(),f=zie(),d=qf(),h=String,p=t("JSON","stringify"),y=i(/./.exec),_=i("".charAt),E=i("".charCodeAt),S=i("".replace),w=i(1.1.toString),T=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,x=/^[\uDC00-\uDFFF]$/,R=!d||a(function(){var U=t("Symbol")("stringify detection");return p([U])!=="[null]"||p({a:U})!=="{}"||p(Object(U))!=="{}"}),O=a(function(){return p("\uDF06\uD834")!=='"\\udf06\\ud834"'||p("\uDEAD")!=='"\\udead"'}),m=function(U,K){var B=u(arguments),W=f(K);if(!(!o(W)&&(U===void 0||l(U))))return B[1]=function(Y,Q){if(o(W)&&(Q=n(W,this,h(Y),Q)),!l(Q))return Q},r(p,null,B)},D=function(U,K,B){var W=_(B,K-1),Y=_(B,K+1);return y(C,U)&&!y(x,Y)||y(x,U)&&!y(C,W)?"\\u"+w(E(U,0),16):U};return p&&e({target:"JSON",stat:!0,arity:3,forced:R||O},{stringify:function(K,B,W){var Y=u(arguments),Q=r(R?m:p,null,Y);return O&&typeof Q=="string"?S(Q,T,D):Q}}),nN}var sN={},uN;function Wie(){if(uN)return sN;uN=1;var e=je(),t=qf(),r=Ht(),n=Qg(),i=wn(),a=!t||r(function(){n.f(1)});return e({target:"Object",stat:!0,forced:a},{getOwnPropertySymbols:function(l){var u=n.f;return u?u(i(l)):[]}}),sN}var lN;function Gie(){return lN||(lN=1,Bie(),Vie(),Hie(),CX(),Wie()),gD}var cN={},fN;function Kie(){if(fN)return cN;fN=1;var e=je(),t=Rr(),r=Zt(),n=Kt(),i=fn(),a=hn(),o=Va(),l=Xr(),u=Di(),f=zf(),d=r.Symbol,h=d&&d.prototype;if(t&&a(d)&&(!("description"in h)||d().description!==void 0)){var p={},y=function(){var R=arguments.length<1||arguments[0]===void 0?void 0:l(arguments[0]),O=o(h,this)?new d(R):R===void 0?d():d(R);return R===""&&(p[O]=!0),O};f(y,d),y.prototype=h,h.constructor=y;var _=String(d("description detection"))==="Symbol(description detection)",E=n(h.valueOf),S=n(h.toString),w=/^Symbol\((.*)\)[^)]+$/,T=n("".replace),C=n("".slice);u(h,"description",{configurable:!0,get:function(){var R=E(this);if(i(p,R))return"";var O=S(R),m=_?C(O,7,-1):T(O,w,"$1");return m===""?void 0:m}}),e({global:!0,constructor:!0,forced:!0},{Symbol:y})}return cN}var dN={},hN;function Yie(){if(hN)return dN;hN=1;var e=Zt(),t=xa(),r=ui().f,n=ca().f,i=e.Symbol;if(t("asyncDispose"),i){var a=n(i,"asyncDispose");a.enumerable&&a.configurable&&a.writable&&r(i,"asyncDispose",{value:a.value,enumerable:!1,configurable:!1,writable:!1})}return dN}var pN={},vN;function Xie(){if(vN)return pN;vN=1;var e=xa();return e("asyncIterator"),pN}var gN={},mN;function Qie(){if(mN)return gN;mN=1;var e=Zt(),t=xa(),r=ui().f,n=ca().f,i=e.Symbol;if(t("dispose"),i){var a=n(i,"dispose");a.enumerable&&a.configurable&&a.writable&&r(i,"dispose",{value:a.value,enumerable:!1,configurable:!1,writable:!1})}return gN}var yN={},_N;function Jie(){if(_N)return yN;_N=1;var e=xa();return e("hasInstance"),yN}var EN={},SN;function Zie(){if(SN)return EN;SN=1;var e=xa();return e("isConcatSpreadable"),EN}var wN={},bN;function eae(){if(bN)return wN;bN=1;var e=xa();return e("iterator"),wN}var TN={},AN;function tae(){if(AN)return TN;AN=1;var e=xa();return e("match"),TN}var RN={},xN;function rae(){if(xN)return RN;xN=1;var e=xa();return e("matchAll"),RN}var CN={},ON;function nae(){if(ON)return CN;ON=1;var e=xa();return e("replace"),CN}var IN={},PN;function iae(){if(PN)return IN;PN=1;var e=xa();return e("search"),IN}var kN={},DN;function aae(){if(DN)return kN;DN=1;var e=xa();return e("species"),kN}var LN={},NN;function oae(){if(NN)return LN;NN=1;var e=xa();return e("split"),LN}var MN={},$N;function sae(){if($N)return MN;$N=1;var e=xa(),t=RX();return e("toPrimitive"),t(),MN}var FN={},jN;function uae(){if(jN)return FN;jN=1;var e=ln(),t=xa(),r=uo();return t("toStringTag"),r(e("Symbol"),"Symbol"),FN}var UN={},qN;function lae(){if(qN)return UN;qN=1;var e=xa();return e("unscopables"),UN}var BN={},pS,VN;function Zg(){if(VN)return pS;VN=1;var e=Kt(),t=cn();return pS=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch{}},pS}var vS,HN;function OX(){if(HN)return vS;HN=1;var e=qr();return vS=function(t){return e(t)||t===null},vS}var gS,zN;function IX(){if(zN)return gS;zN=1;var e=OX(),t=String,r=TypeError;return gS=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")},gS}var mS,WN;function _s(){if(WN)return mS;WN=1;var e=Zg(),t=qr(),r=di(),n=IX();return mS=Object.setPrototypeOf||("__proto__"in{}?(function(){var i=!1,a={},o;try{o=e(Object.prototype,"__proto__","set"),o(a,[]),i=a instanceof Array}catch{}return function(u,f){return r(u),n(f),t(u)&&(i?o(u,f):u.__proto__=f),u}})():void 0),mS}var yS,GN;function PX(){if(GN)return yS;GN=1;var e=ui().f;return yS=function(t,r,n){n in t||e(t,n,{configurable:!0,get:function(){return r[n]},set:function(i){r[n]=i}})},yS}var _S,KN;function pc(){if(KN)return _S;KN=1;var e=hn(),t=qr(),r=_s();return _S=function(n,i,a){var o,l;return r&&e(o=i.constructor)&&o!==a&&t(l=o.prototype)&&l!==a.prototype&&r(n,l),n},_S}var ES,YN;function Wf(){if(YN)return ES;YN=1;var e=Xr();return ES=function(t,r){return t===void 0?arguments.length<2?"":r:e(t)},ES}var SS,XN;function kX(){if(XN)return SS;XN=1;var e=qr(),t=fa();return SS=function(r,n){e(n)&&"cause"in n&&t(r,"cause",n.cause)},SS}var wS,QN;function BC(){if(QN)return wS;QN=1;var e=Kt(),t=Error,r=e("".replace),n=(function(o){return String(new t(o).stack)})("zxcasd"),i=/\n\s*at [^:]*:[^\n]*/,a=i.test(n);return wS=function(o,l){if(a&&typeof o=="string"&&!t.prepareStackTrace)for(;l--;)o=r(o,i,"");return o},wS}var bS,JN;function DX(){if(JN)return bS;JN=1;var e=Ht(),t=xo();return bS=!e(function(){var r=new Error("a");return"stack"in r?(Object.defineProperty(r,"stack",t(1,7)),r.stack!==7):!0}),bS}var TS,ZN;function VC(){if(ZN)return TS;ZN=1;var e=fa(),t=BC(),r=DX(),n=Error.captureStackTrace;return TS=function(i,a,o,l){r&&(n?n(i,a):e(i,"stack",t(o,l)))},TS}var AS,eM;function LX(){if(eM)return AS;eM=1;var e=ln(),t=fn(),r=fa(),n=Va(),i=_s(),a=zf(),o=PX(),l=pc(),u=Wf(),f=kX(),d=VC(),h=Rr(),p=xn();return AS=function(y,_,E,S){var w="stackTraceLimit",T=S?2:1,C=y.split("."),x=C[C.length-1],R=e.apply(null,C);if(R){var O=R.prototype;if(!p&&t(O,"cause")&&delete O.cause,!E)return R;var m=e("Error"),D=_(function(U,K){var B=u(S?K:U,void 0),W=S?new R(U):new R;return B!==void 0&&r(W,"message",B),d(W,D,W.stack,2),this&&n(O,this)&&l(W,this,D),arguments.length>T&&f(W,arguments[T]),W});if(D.prototype=O,x!=="Error"?i?i(D,m):a(D,m,{name:!0}):h&&w in R&&(o(D,R,w),o(D,R,"prepareStackTrace")),a(D,R),!p)try{O.name!==x&&r(O,"name",x),O.constructor=D}catch{}return D}},AS}var tM;function cae(){if(tM)return BN;tM=1;var e=je(),t=Zt(),r=Po(),n=LX(),i="WebAssembly",a=t[i],o=new Error("e",{cause:7}).cause!==7,l=function(f,d){var h={};h[f]=n(f,d,o),e({global:!0,constructor:!0,arity:1,forced:o},h)},u=function(f,d){if(a&&a[f]){var h={};h[f]=n(i+"."+f,d,o),e({target:i,stat:!0,constructor:!0,arity:1,forced:o},h)}};return l("Error",function(f){return function(h){return r(f,this,arguments)}}),l("EvalError",function(f){return function(h){return r(f,this,arguments)}}),l("RangeError",function(f){return function(h){return r(f,this,arguments)}}),l("ReferenceError",function(f){return function(h){return r(f,this,arguments)}}),l("SyntaxError",function(f){return function(h){return r(f,this,arguments)}}),l("TypeError",function(f){return function(h){return r(f,this,arguments)}}),l("URIError",function(f){return function(h){return r(f,this,arguments)}}),u("CompileError",function(f){return function(h){return r(f,this,arguments)}}),u("LinkError",function(f){return function(h){return r(f,this,arguments)}}),u("RuntimeError",function(f){return function(h){return r(f,this,arguments)}}),BN}var rM={},nM;function fae(){if(nM)return rM;nM=1;var e=je(),t=ln(),r=qr(),n=Oo(),i=Ht(),a="Error",o="DOMException",l=Object.setPrototypeOf||{}.__proto__,u=t(o),f=Error,d=f.isError,h=!d||!l||i(function(){return u&&!d(new u(o))||!d(new f(a,{cause:function(){}}))||d(t("Object","create")(f.prototype))});return e({target:"Error",stat:!0,sham:!0,forced:h},{isError:function(y){if(!r(y))return!1;var _=n(y);return _===a||_===o}}),rM}var iM={},RS,aM;function NX(){if(aM)return RS;aM=1;var e=Rr(),t=Ht(),r=Er(),n=Wf(),i=Error.prototype.toString,a=t(function(){if(e){var o=Object.create(Object.defineProperty({},"name",{get:function(){return this===o}}));if(i.call(o)!=="true")return!0}return i.call({message:1,name:2})!=="2: 1"||i.call({})!=="Error"});return RS=a?function(){var l=r(this),u=n(l.name,"Error"),f=n(l.message);return u?f?u+": "+f:u:f}:i,RS}var oM;function dae(){if(oM)return iM;oM=1;var e=$n(),t=NX(),r=Error.prototype;return r.toString!==t&&e(r,"toString",t),iM}var sM={},uM={},xS,lM;function HC(){if(lM)return xS;lM=1;var e=Ht();return xS=!e(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),xS}var CS,cM;function Ha(){if(cM)return CS;cM=1;var e=fn(),t=hn(),r=wn(),n=Xg(),i=HC(),a=n("IE_PROTO"),o=Object,l=o.prototype;return CS=i?o.getPrototypeOf:function(u){var f=r(u);if(e(f,a))return f[a];var d=f.constructor;return t(d)&&f instanceof d?d.prototype:f instanceof o?l:null},CS}var OS,fM;function Bh(){return fM||(fM=1,OS={}),OS}var IS,dM;function zC(){if(dM)return IS;dM=1;var e=Br(),t=Bh(),r=e("iterator"),n=Array.prototype;return IS=function(i){return i!==void 0&&(t.Array===i||n[r]===i)},IS}var PS,hM;function vc(){if(hM)return PS;hM=1;var e=Oo(),t=la(),r=Eu(),n=Bh(),i=Br(),a=i("iterator");return PS=function(o){if(!r(o))return t(o,a)||t(o,"@@iterator")||n[e(o)]},PS}var kS,pM;function Gf(){if(pM)return kS;pM=1;var e=mr(),t=cn(),r=Er(),n=cc(),i=vc(),a=TypeError;return kS=function(o,l){var u=arguments.length<2?i(o):l;if(t(u))return r(e(u,o));throw new a(n(o)+" is not iterable")},kS}var DS,vM;function pa(){if(vM)return DS;vM=1;var e=mr(),t=Er(),r=la();return DS=function(n,i,a){var o,l;t(n);try{if(o=r(n,"return"),!o){if(i==="throw")throw a;return a}o=e(o,n)}catch(u){l=!0,o=u}if(i==="throw")throw a;if(l)throw o;return t(o),a},DS}var LS,gM;function zi(){if(gM)return LS;gM=1;var e=Io(),t=mr(),r=Er(),n=cc(),i=zC(),a=Wn(),o=Va(),l=Gf(),u=vc(),f=pa(),d=TypeError,h=function(y,_){this.stopped=y,this.result=_},p=h.prototype;return LS=function(y,_,E){var S=E&&E.that,w=!!(E&&E.AS_ENTRIES),T=!!(E&&E.IS_RECORD),C=!!(E&&E.IS_ITERATOR),x=!!(E&&E.INTERRUPTED),R=e(_,S),O,m,D,U,K,B,W,Y=function(ie){return O&&f(O,"normal"),new h(!0,ie)},Q=function(ie){return w?(r(ie),x?R(ie[0],ie[1],Y):R(ie[0],ie[1])):x?R(ie,Y):R(ie)};if(T)O=y.iterator;else if(C)O=y;else{if(m=u(y),!m)throw new d(n(y)+" is not iterable");if(i(m)){for(D=0,U=a(y);U>D;D++)if(K=Q(y[D]),K&&o(p,K))return K;return new h(!1)}O=l(y,m)}for(B=T?y.next:O.next;!(W=t(B,O)).done;){try{K=Q(W.value)}catch(ie){f(O,"throw",ie)}if(typeof K=="object"&&K&&o(p,K))return K}return new h(!1)},LS}var mM;function hae(){if(mM)return uM;mM=1;var e=je(),t=Va(),r=Ha(),n=_s(),i=zf(),a=da(),o=fa(),l=xo(),u=kX(),f=VC(),d=zi(),h=Wf(),p=Br(),y=p("toStringTag"),_=Error,E=[].push,S=function(C,x){var R=t(w,this),O;n?O=n(new _,R?r(this):w):(O=R?this:a(w),o(O,y,"Error")),x!==void 0&&o(O,"message",h(x)),f(O,S,O.stack,1),arguments.length>2&&u(O,arguments[2]);var m=[];return d(C,E,{that:m}),o(O,"errors",m),O};n?n(S,_):i(S,_,{name:!0});var w=S.prototype=a(_.prototype,{constructor:l(1,S),message:l(1,""),name:l(1,"AggregateError")});return e({global:!0,constructor:!0,arity:2},{AggregateError:S}),uM}var yM;function pae(){return yM||(yM=1,hae()),sM}var _M={},EM;function vae(){if(EM)return _M;EM=1;var e=je(),t=ln(),r=Po(),n=Ht(),i=LX(),a="AggregateError",o=t(a),l=!n(function(){return o([1]).errors[0]!==1})&&n(function(){return o([1],a,{cause:7}).cause!==7});return e({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:i(a,function(u){return function(d,h){return r(u,this,arguments)}},l,!0)}),_M}var SM={},wM;function gae(){if(wM)return SM;wM=1;var e=je(),t=Zt(),r=Va(),n=Ha(),i=_s(),a=zf(),o=da(),l=fa(),u=xo(),f=VC(),d=Wf(),h=Br(),p=Ht(),y=xn(),_=t.SuppressedError,E=h("toStringTag"),S=Error,w=!!_&&_.length!==3,T=!!_&&p(function(){return new _(1,2,3,{cause:4}).cause===4}),C=w||T,x=function(m,D,U){var K=r(R,this),B;return i?B=C&&(!K||n(this)===R)?new _:i(new S,K?n(this):R):(B=K?this:o(R),l(B,E,"Error")),U!==void 0&&l(B,"message",d(U)),f(B,x,B.stack,1),l(B,"error",m),l(B,"suppressed",D),B};i?i(x,S):a(x,S,{name:!0});var R=x.prototype=C?_.prototype:o(S.prototype,{constructor:u(1,x),message:u(1,""),name:u(1,"SuppressedError")});return C&&!y&&(R.constructor=x),e({global:!0,constructor:!0,arity:3,forced:C},{SuppressedError:x}),SM}var bM={},NS,TM;function lo(){if(TM)return NS;TM=1;var e=Br(),t=da(),r=ui().f,n=e("unscopables"),i=Array.prototype;return i[n]===void 0&&r(i,n,{configurable:!0,value:t(null)}),NS=function(a){i[n][a]=!0},NS}var AM;function mae(){if(AM)return bM;AM=1;var e=je(),t=wn(),r=Wn(),n=Ri(),i=lo();return e({target:"Array",proto:!0},{at:function(o){var l=t(this),u=r(l),f=n(o),d=f>=0?f:u+f;return d<0||d>=u?void 0:l[d]}}),i("at"),bM}var RM={},MS,xM;function gc(){if(xM)return MS;xM=1;var e=TypeError,t=9007199254740991;return MS=function(r){if(r>t)throw e("Maximum allowed index exceeded");return r},MS}var $S,CM;function wu(){if(CM)return $S;CM=1;var e=Rr(),t=ui(),r=xo();return $S=function(n,i,a){e?t.f(n,i,r(0,a)):n[i]=a},$S}var FS,OM;function Vh(){if(OM)return FS;OM=1;var e=Ht(),t=Br(),r=Us(),n=t("species");return FS=function(i){return r>=51||!e(function(){var a=[],o=a.constructor={};return o[n]=function(){return{foo:1}},a[i](Boolean).foo!==1})},FS}var IM;function yae(){if(IM)return RM;IM=1;var e=je(),t=Ht(),r=ul(),n=qr(),i=wn(),a=Wn(),o=gc(),l=wu(),u=qh(),f=Vh(),d=Br(),h=Us(),p=d("isConcatSpreadable"),y=h>=51||!t(function(){var S=[];return S[p]=!1,S.concat()[0]!==S}),_=function(S){if(!n(S))return!1;var w=S[p];return w!==void 0?!!w:r(S)},E=!y||!f("concat");return e({target:"Array",proto:!0,arity:1,forced:E},{concat:function(w){var T=i(this),C=u(T,0),x=0,R,O,m,D,U;for(R=-1,m=arguments.length;R<m;R++)if(U=R===-1?T:arguments[R],_(U))for(D=a(U),o(x+D),O=0;O<D;O++,x++)O in U&&l(C,x,U[O]);else o(x+1),l(C,x++,U);return C.length=x,C}}),RM}var PM={},jS,kM;function em(){if(kM)return jS;kM=1;var e=cc(),t=TypeError;return jS=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))},jS}var US,DM;function MX(){if(DM)return US;DM=1;var e=wn(),t=Su(),r=Wn(),n=em(),i=Math.min;return US=[].copyWithin||function(o,l){var u=e(this),f=r(u),d=t(o,f),h=t(l,f),p=arguments.length>2?arguments[2]:void 0,y=i((p===void 0?f:t(p,f))-h,f-d),_=1;for(h<d&&d<h+y&&(_=-1,h+=y-1,d+=y-1);y-- >0;)h in u?u[d]=u[h]:n(u,d),d+=_,h+=_;return u},US}var LM;function _ae(){if(LM)return PM;LM=1;var e=je(),t=MX(),r=lo();return e({target:"Array",proto:!0},{copyWithin:t}),r("copyWithin"),PM}var NM={},qS,MM;function bu(){if(MM)return qS;MM=1;var e=Ht();return qS=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})},qS}var $M;function Eae(){if($M)return NM;$M=1;var e=je(),t=ha().every,r=bu(),n=r("every");return e({target:"Array",proto:!0,forced:!n},{every:function(a){return t(this,a,arguments.length>1?arguments[1]:void 0)}}),NM}var FM={},BS,jM;function WC(){if(jM)return BS;jM=1;var e=wn(),t=Su(),r=Wn();return BS=function(i){for(var a=e(this),o=r(a),l=arguments.length,u=t(l>1?arguments[1]:void 0,o),f=l>2?arguments[2]:void 0,d=f===void 0?o:t(f,o);d>u;)a[u++]=i;return a},BS}var UM;function Sae(){if(UM)return FM;UM=1;var e=je(),t=WC(),r=lo();return e({target:"Array",proto:!0},{fill:t}),r("fill"),FM}var qM={},BM;function wae(){if(BM)return qM;BM=1;var e=je(),t=ha().filter,r=Vh(),n=r("filter");return e({target:"Array",proto:!0,forced:!n},{filter:function(a){return t(this,a,arguments.length>1?arguments[1]:void 0)}}),qM}var VM={},HM;function bae(){if(HM)return VM;HM=1;var e=je(),t=ha().find,r=lo(),n="find",i=!0;return n in[]&&Array(1)[n](function(){i=!1}),e({target:"Array",proto:!0,forced:i},{find:function(o){return t(this,o,arguments.length>1?arguments[1]:void 0)}}),r(n),VM}var zM={},WM;function Tae(){if(WM)return zM;WM=1;var e=je(),t=ha().findIndex,r=lo(),n="findIndex",i=!0;return n in[]&&Array(1)[n](function(){i=!1}),e({target:"Array",proto:!0,forced:i},{findIndex:function(o){return t(this,o,arguments.length>1?arguments[1]:void 0)}}),r(n),zM}var GM={},VS,KM;function tm(){if(KM)return VS;KM=1;var e=Io(),t=Uf(),r=wn(),n=Wn(),i=function(a){var o=a===1;return function(l,u,f){for(var d=r(l),h=t(d),p=n(h),y=e(u,f),_,E;p-- >0;)if(_=h[p],E=y(_,p,d),E)switch(a){case 0:return _;case 1:return p}return o?-1:void 0}};return VS={findLast:i(0),findLastIndex:i(1)},VS}var YM;function Aae(){if(YM)return GM;YM=1;var e=je(),t=tm().findLast,r=lo();return e({target:"Array",proto:!0},{findLast:function(i){return t(this,i,arguments.length>1?arguments[1]:void 0)}}),r("findLast"),GM}var XM={},QM;function Rae(){if(QM)return XM;QM=1;var e=je(),t=tm().findLastIndex,r=lo();return e({target:"Array",proto:!0},{findLastIndex:function(i){return t(this,i,arguments.length>1?arguments[1]:void 0)}}),r("findLastIndex"),XM}var JM={},HS,ZM;function $X(){if(ZM)return HS;ZM=1;var e=ul(),t=Wn(),r=gc(),n=Io(),i=function(a,o,l,u,f,d,h,p){for(var y=f,_=0,E=h?n(h,p):!1,S,w;_<u;)_ in l&&(S=E?E(l[_],_,o):l[_],d>0&&e(S)?(w=t(S),y=i(a,o,S,w,y,d-1)-1):(r(y+1),a[y]=S),y++),_++;return y};return HS=i,HS}var e$;function xae(){if(e$)return JM;e$=1;var e=je(),t=$X(),r=wn(),n=Wn(),i=Ri(),a=qh();return e({target:"Array",proto:!0},{flat:function(){var l=arguments.length?arguments[0]:void 0,u=r(this),f=n(u),d=a(u,0);return d.length=t(d,u,u,f,0,l===void 0?1:i(l)),d}}),JM}var t$={},r$;function Cae(){if(r$)return t$;r$=1;var e=je(),t=$X(),r=cn(),n=wn(),i=Wn(),a=qh();return e({target:"Array",proto:!0},{flatMap:function(l){var u=n(this),f=i(u),d;return r(l),d=a(u,0),d.length=t(d,u,u,f,0,1,l,arguments.length>1?arguments[1]:void 0),d}}),t$}var n$={},zS,i$;function FX(){if(i$)return zS;i$=1;var e=ha().forEach,t=bu(),r=t("forEach");return zS=r?[].forEach:function(i){return e(this,i,arguments.length>1?arguments[1]:void 0)},zS}var a$;function Oae(){if(a$)return n$;a$=1;var e=je(),t=FX();return e({target:"Array",proto:!0,forced:[].forEach!==t},{forEach:t}),n$}var o$={},WS,s$;function GC(){if(s$)return WS;s$=1;var e=Er(),t=pa();return WS=function(r,n,i,a){try{return a?n(e(i)[0],i[1]):n(i)}catch(o){t(r,"throw",o)}},WS}var GS,u$;function jX(){if(u$)return GS;u$=1;var e=Io(),t=mr(),r=wn(),n=GC(),i=zC(),a=hc(),o=Wn(),l=wu(),u=Gf(),f=vc(),d=Array;return GS=function(p){var y=r(p),_=a(this),E=arguments.length,S=E>1?arguments[1]:void 0,w=S!==void 0;w&&(S=e(S,E>2?arguments[2]:void 0));var T=f(y),C=0,x,R,O,m,D,U;if(T&&!(this===d&&i(T)))for(R=_?new this:[],m=u(y,T),D=m.next;!(O=t(D,m)).done;C++)U=w?n(m,S,[O.value,C],!0):O.value,l(R,C,U);else for(x=o(y),R=_?new this(x):d(x);x>C;C++)U=w?S(y[C],C):y[C],l(R,C,U);return R.length=C,R},GS}var KS,l$;function rm(){if(l$)return KS;l$=1;var e=Br(),t=e("iterator"),r=!1;try{var n=0,i={next:function(){return{done:!!n++}},return:function(){r=!0}};i[t]=function(){return this},Array.from(i,function(){throw 2})}catch{}return KS=function(a,o){try{if(!o&&!r)return!1}catch{return!1}var l=!1;try{var u={};u[t]=function(){return{next:function(){return{done:l=!0}}}},a(u)}catch{}return l},KS}var c$;function Iae(){if(c$)return o$;c$=1;var e=je(),t=jX(),r=rm(),n=!r(function(i){Array.from(i)});return e({target:"Array",stat:!0,forced:n},{from:t}),o$}var f$={},d$;function Pae(){if(d$)return f$;d$=1;var e=je(),t=Fh().includes,r=Ht(),n=lo(),i=r(function(){return!Array(1).includes()});return e({target:"Array",proto:!0,forced:i},{includes:function(o){return t(this,o,arguments.length>1?arguments[1]:void 0)}}),n("includes"),f$}var h$={},p$;function kae(){if(p$)return h$;p$=1;var e=je(),t=dc(),r=Fh().indexOf,n=bu(),i=t([].indexOf),a=!!i&&1/i([1],1,-0)<0,o=a||!n("indexOf");return e({target:"Array",proto:!0,forced:o},{indexOf:function(u){var f=arguments.length>1?arguments[1]:void 0;return a?i(this,u,f)||0:r(this,u,f)}}),h$}var v$={},g$;function Dae(){if(g$)return v$;g$=1;var e=je(),t=ul();return e({target:"Array",stat:!0},{isArray:t}),v$}var YS,m$;function Kf(){if(m$)return YS;m$=1;var e=Ht(),t=hn(),r=qr(),n=da(),i=Ha(),a=$n(),o=Br(),l=xn(),u=o("iterator"),f=!1,d,h,p;[].keys&&(p=[].keys(),"next"in p?(h=i(i(p)),h!==Object.prototype&&(d=h)):f=!0);var y=!r(d)||e(function(){var _={};return d[u].call(_)!==_});return y?d={}:l&&(d=n(d)),t(d[u])||a(d,u,function(){return this}),YS={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:f},YS}var XS,y$;function KC(){if(y$)return XS;y$=1;var e=Kf().IteratorPrototype,t=da(),r=xo(),n=uo(),i=Bh(),a=function(){return this};return XS=function(o,l,u,f){var d=l+" Iterator";return o.prototype=t(e,{next:r(+!f,u)}),n(o,d,!1,!0),i[d]=a,o},XS}var QS,_$;function YC(){if(_$)return QS;_$=1;var e=je(),t=mr(),r=xn(),n=Hf(),i=hn(),a=KC(),o=Ha(),l=_s(),u=uo(),f=fa(),d=$n(),h=Br(),p=Bh(),y=Kf(),_=n.PROPER,E=n.CONFIGURABLE,S=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,T=h("iterator"),C="keys",x="values",R="entries",O=function(){return this};return QS=function(m,D,U,K,B,W,Y){a(U,D,K);var Q=function(Be){if(Be===B&&J)return J;if(!w&&Be&&Be in ve)return ve[Be];switch(Be){case C:return function(){return new U(this,Be)};case x:return function(){return new U(this,Be)};case R:return function(){return new U(this,Be)}}return function(){return new U(this)}},ie=D+" Iterator",ae=!1,ve=m.prototype,H=ve[T]||ve["@@iterator"]||B&&ve[B],J=!w&&H||Q(B),z=D==="Array"&&ve.entries||H,ue,we,ke;if(z&&(ue=o(z.call(new m)),ue!==Object.prototype&&ue.next&&(!r&&o(ue)!==S&&(l?l(ue,S):i(ue[T])||d(ue,T,O)),u(ue,ie,!0,!0),r&&(p[ie]=O))),_&&B===x&&H&&H.name!==x&&(!r&&E?f(ve,"name",x):(ae=!0,J=function(){return t(H,this)})),B)if(we={values:Q(x),keys:W?J:Q(C),entries:Q(R)},Y)for(ke in we)(w||ae||!(ke in ve))&&d(ve,ke,we[ke]);else e({target:D,proto:!0,forced:w||ae},we);return(!r||Y)&&ve[T]!==J&&d(ve,T,J,{name:B}),p[D]=J,we},QS}var JS,E$;function mc(){return E$||(E$=1,JS=function(e,t){return{value:e,done:t}}),JS}var ZS,S$;function nm(){if(S$)return ZS;S$=1;var e=ra(),t=lo(),r=Bh(),n=Ei(),i=ui().f,a=YC(),o=mc(),l=xn(),u=Rr(),f="Array Iterator",d=n.set,h=n.getterFor(f);ZS=a(Array,"Array",function(y,_){d(this,{type:f,target:e(y),index:0,kind:_})},function(){var y=h(this),_=y.target,E=y.index++;if(!_||E>=_.length)return y.target=null,o(void 0,!0);switch(y.kind){case"keys":return o(E,!1);case"values":return o(_[E],!1)}return o([E,_[E]],!1)},"values");var p=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!l&&u&&p.name!=="values")try{i(p,"name",{value:"values"})}catch{}return ZS}var w$={},b$;function Lae(){if(b$)return w$;b$=1;var e=je(),t=Kt(),r=Uf(),n=ra(),i=bu(),a=t([].join),o=r!==Object,l=o||!i("join",",");return e({target:"Array",proto:!0,forced:l},{join:function(f){return a(n(this),f===void 0?",":f)}}),w$}var T$={},ew,A$;function UX(){if(A$)return ew;A$=1;var e=Po(),t=ra(),r=Ri(),n=Wn(),i=bu(),a=Math.min,o=[].lastIndexOf,l=!!o&&1/[1].lastIndexOf(1,-0)<0,u=i("lastIndexOf"),f=l||!u;return ew=f?function(h){if(l)return e(o,this,arguments)||0;var p=t(this),y=n(p);if(y===0)return-1;var _=y-1;for(arguments.length>1&&(_=a(_,r(arguments[1]))),_<0&&(_=y+_);_>=0;_--)if(_ in p&&p[_]===h)return _||0;return-1}:o,ew}var R$;function Nae(){if(R$)return T$;R$=1;var e=je(),t=UX();return e({target:"Array",proto:!0,forced:t!==[].lastIndexOf},{lastIndexOf:t}),T$}var x$={},C$;function Mae(){if(C$)return x$;C$=1;var e=je(),t=ha().map,r=Vh(),n=r("map");return e({target:"Array",proto:!0,forced:!n},{map:function(a){return t(this,a,arguments.length>1?arguments[1]:void 0)}}),x$}var O$={},I$;function $ae(){if(I$)return O$;I$=1;var e=je(),t=Ht(),r=hc(),n=wu(),i=Array,a=t(function(){function o(){}return!(i.of.call(o)instanceof o)});return e({target:"Array",stat:!0,forced:a},{of:function(){for(var l=0,u=arguments.length,f=new(r(this)?this:i)(u);u>l;)n(f,l,arguments[l++]);return f.length=u,f}}),O$}var P$={},tw,k$;function XC(){if(k$)return tw;k$=1;var e=Rr(),t=ul(),r=TypeError,n=Object.getOwnPropertyDescriptor,i=e&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(a){return a instanceof TypeError}})();return tw=i?function(a,o){if(t(a)&&!n(a,"length").writable)throw new r("Cannot set read only .length");return a.length=o}:function(a,o){return a.length=o},tw}var D$;function Fae(){if(D$)return P$;D$=1;var e=je(),t=wn(),r=Wn(),n=XC(),i=gc(),a=Ht(),o=a(function(){return[].push.call({length:4294967296},1)!==4294967297}),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(f){return f instanceof TypeError}},u=o||!l();return e({target:"Array",proto:!0,arity:1,forced:u},{push:function(d){var h=t(this),p=r(h),y=arguments.length;i(p+y);for(var _=0;_<y;_++)h[p]=arguments[_],p++;return n(h,p),p}}),P$}var L$={},rw,N$;function im(){if(N$)return rw;N$=1;var e=cn(),t=wn(),r=Uf(),n=Wn(),i=TypeError,a="Reduce of empty array with no initial value",o=function(l){return function(u,f,d,h){var p=t(u),y=r(p),_=n(p);if(e(f),_===0&&d<2)throw new i(a);var E=l?_-1:0,S=l?-1:1;if(d<2)for(;;){if(E in y){h=y[E],E+=S;break}if(E+=S,l?E<0:_<=E)throw new i(a)}for(;l?E>=0:_>E;E+=S)E in y&&(h=f(h,y[E],E,p));return h}};return rw={left:o(!1),right:o(!0)},rw}var nw,M$;function am(){if(M$)return nw;M$=1;var e=Zt(),t=js(),r=Ra(),n=function(i){return t.slice(0,i.length)===i};return nw=(function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="string"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":r(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"})(),nw}var iw,$$;function Yf(){if($$)return iw;$$=1;var e=am();return iw=e==="NODE",iw}var F$;function jae(){if(F$)return L$;F$=1;var e=je(),t=im().left,r=bu(),n=Us(),i=Yf(),a=!i&&n>79&&n<83,o=a||!r("reduce");return e({target:"Array",proto:!0,forced:o},{reduce:function(u){var f=arguments.length;return t(this,u,f,f>1?arguments[1]:void 0)}}),L$}var j$={},U$;function Uae(){if(U$)return j$;U$=1;var e=je(),t=im().right,r=bu(),n=Us(),i=Yf(),a=!i&&n>79&&n<83,o=a||!r("reduceRight");return e({target:"Array",proto:!0,forced:o},{reduceRight:function(u){return t(this,u,arguments.length,arguments.length>1?arguments[1]:void 0)}}),j$}var q$={},B$;function qae(){if(B$)return q$;B$=1;var e=je(),t=Kt(),r=ul(),n=t([].reverse),i=[1,2];return e({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),n(this)}}),q$}var V$={},H$;function Bae(){if(H$)return V$;H$=1;var e=je(),t=ul(),r=hc(),n=qr(),i=Su(),a=Wn(),o=ra(),l=wu(),u=Br(),f=Vh(),d=ns(),h=f("slice"),p=u("species"),y=Array,_=Math.max;return e({target:"Array",proto:!0,forced:!h},{slice:function(S,w){var T=o(this),C=a(T),x=i(S,C),R=i(w===void 0?C:w,C),O,m,D;if(t(T)&&(O=T.constructor,r(O)&&(O===y||t(O.prototype))?O=void 0:n(O)&&(O=O[p],O===null&&(O=void 0)),O===y||O===void 0))return d(T,x,R);for(m=new(O===void 0?y:O)(_(R-x,0)),D=0;x<R;x++,D++)x in T&&l(m,D,T[x]);return m.length=D,m}}),V$}var z$={},W$;function Vae(){if(W$)return z$;W$=1;var e=je(),t=ha().some,r=bu(),n=r("some");return e({target:"Array",proto:!0,forced:!n},{some:function(a){return t(this,a,arguments.length>1?arguments[1]:void 0)}}),z$}var G$={},aw,K$;function QC(){if(K$)return aw;K$=1;var e=ns(),t=Math.floor,r=function(n,i){var a=n.length;if(a<8)for(var o=1,l,u;o<a;){for(u=o,l=n[o];u&&i(n[u-1],l)>0;)n[u]=n[--u];u!==o++&&(n[u]=l)}else for(var f=t(a/2),d=r(e(n,0,f),i),h=r(e(n,f),i),p=d.length,y=h.length,_=0,E=0;_<p||E<y;)n[_+E]=_<p&&E<y?i(d[_],h[E])<=0?d[_++]:h[E++]:_<p?d[_++]:h[E++];return n};return aw=r,aw}var ow,Y$;function qX(){if(Y$)return ow;Y$=1;var e=js(),t=e.match(/firefox\/(\d+)/i);return ow=!!t&&+t[1],ow}var sw,X$;function BX(){if(X$)return sw;X$=1;var e=js();return sw=/MSIE|Trident/.test(e),sw}var uw,Q$;function JC(){if(Q$)return uw;Q$=1;var e=js(),t=e.match(/AppleWebKit\/(\d+)\./);return uw=!!t&&+t[1],uw}var J$;function Hae(){if(J$)return G$;J$=1;var e=je(),t=Kt(),r=cn(),n=wn(),i=Wn(),a=em(),o=Xr(),l=Ht(),u=QC(),f=bu(),d=qX(),h=BX(),p=Us(),y=JC(),_=[],E=t(_.sort),S=t(_.push),w=l(function(){_.sort(void 0)}),T=l(function(){_.sort(null)}),C=f("sort"),x=!l(function(){if(p)return p<70;if(!(d&&d>3)){if(h)return!0;if(y)return y<603;var m="",D,U,K,B;for(D=65;D<76;D++){switch(U=String.fromCharCode(D),D){case 66:case 69:case 70:case 72:K=3;break;case 68:case 71:K=4;break;default:K=2}for(B=0;B<47;B++)_.push({k:U+B,v:K})}for(_.sort(function(W,Y){return Y.v-W.v}),B=0;B<_.length;B++)U=_[B].k.charAt(0),m.charAt(m.length-1)!==U&&(m+=U);return m!=="DGBEFHACIJK"}}),R=w||!T||!C||!x,O=function(m){return function(D,U){return U===void 0?-1:D===void 0?1:m!==void 0?+m(D,U)||0:o(D)>o(U)?1:-1}};return e({target:"Array",proto:!0,forced:R},{sort:function(D){D!==void 0&&r(D);var U=n(this);if(x)return D===void 0?E(U):E(U,D);var K=[],B=i(U),W,Y;for(Y=0;Y<B;Y++)Y in U&&S(K,U[Y]);for(u(K,O(D)),W=i(K),Y=0;Y<W;)U[Y]=K[Y++];for(;Y<B;)a(U,Y++);return U}}),G$}var Z$={},lw,eF;function Xf(){if(eF)return lw;eF=1;var e=ln(),t=Di(),r=Br(),n=Rr(),i=r("species");return lw=function(a){var o=e(a);n&&o&&!o[i]&&t(o,i,{configurable:!0,get:function(){return this}})},lw}var tF;function zae(){if(tF)return Z$;tF=1;var e=Xf();return e("Array"),Z$}var rF={},nF;function Wae(){if(nF)return rF;nF=1;var e=je(),t=wn(),r=Su(),n=Ri(),i=Wn(),a=XC(),o=gc(),l=qh(),u=wu(),f=em(),d=Vh(),h=d("splice"),p=Math.max,y=Math.min;return e({target:"Array",proto:!0,forced:!h},{splice:function(E,S){var w=t(this),T=i(w),C=r(E,T),x=arguments.length,R,O,m,D,U,K;for(x===0?R=O=0:x===1?(R=0,O=T-C):(R=x-2,O=y(p(n(S),0),T-C)),o(T+R-O),m=l(w,O),D=0;D<O;D++)U=C+D,U in w&&u(m,D,w[U]);if(m.length=O,R<O){for(D=C;D<T-O;D++)U=D+O,K=D+R,U in w?w[K]=w[U]:f(w,K);for(D=T;D>T-O+R;D--)f(w,D-1)}else if(R>O)for(D=T-O;D>C;D--)U=D+O-1,K=D+R-1,U in w?w[K]=w[U]:f(w,K);for(D=0;D<R;D++)w[D+C]=arguments[D+2];return a(w,T-O+R),m}}),rF}var iF={},cw,aF;function VX(){if(aF)return cw;aF=1;var e=Wn();return cw=function(t,r){for(var n=e(t),i=new r(n),a=0;a<n;a++)i[a]=t[n-a-1];return i},cw}var oF;function Gae(){if(oF)return iF;oF=1;var e=je(),t=VX(),r=ra(),n=lo(),i=Array;return e({target:"Array",proto:!0},{toReversed:function(){return t(r(this),i)}}),n("toReversed"),iF}var sF={},fw,uF;function Hh(){if(uF)return fw;uF=1;var e=Wn();return fw=function(t,r,n){for(var i=0,a=arguments.length>2?n:e(r),o=new t(a);a>i;)o[i]=r[i++];return o},fw}var dw,lF;function HX(){if(lF)return dw;lF=1;var e=Zt();return dw=function(t,r){var n=e[t],i=n&&n.prototype;return i&&i[r]},dw}var cF;function Kae(){if(cF)return sF;cF=1;var e=je(),t=Kt(),r=cn(),n=ra(),i=Hh(),a=HX(),o=lo(),l=Array,u=t(a("Array","sort"));return e({target:"Array",proto:!0},{toSorted:function(d){d!==void 0&&r(d);var h=n(this),p=i(l,h);return u(p,d)}}),o("toSorted"),sF}var fF={},dF;function Yae(){if(dF)return fF;dF=1;var e=je(),t=lo(),r=gc(),n=Wn(),i=Su(),a=ra(),o=Ri(),l=Array,u=Math.max,f=Math.min;return e({target:"Array",proto:!0},{toSpliced:function(h,p){var y=a(this),_=n(y),E=i(h,_),S=arguments.length,w=0,T,C,x,R;for(S===0?T=C=0:S===1?(T=0,C=_-E):(T=S-2,C=f(u(o(p),0),_-E)),x=r(_+T-C),R=l(x);w<E;w++)R[w]=y[w];for(;w<E+T;w++)R[w]=arguments[w-E+2];for(;w<x;w++)R[w]=y[w+C-T];return R}}),t("toSpliced"),fF}var hF={},pF;function Xae(){if(pF)return hF;pF=1;var e=lo();return e("flat"),hF}var vF={},gF;function Qae(){if(gF)return vF;gF=1;var e=lo();return e("flatMap"),vF}var mF={},yF;function Jae(){if(yF)return mF;yF=1;var e=je(),t=wn(),r=Wn(),n=XC(),i=em(),a=gc(),o=[].unshift(0)!==1,l=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(f){return f instanceof TypeError}},u=o||!l();return e({target:"Array",proto:!0,arity:1,forced:u},{unshift:function(d){var h=t(this),p=r(h),y=arguments.length;if(y){a(p+y);for(var _=p;_--;){var E=_+y;_ in h?h[E]=h[_]:i(h,E)}for(var S=0;S<y;S++)h[S]=arguments[S]}return n(h,p+y)}}),mF}var _F={},hw,EF;function zX(){if(EF)return hw;EF=1;var e=Wn(),t=Ri(),r=RangeError;return hw=function(n,i,a,o){var l=e(n),u=t(a),f=u<0?l+u:u;if(f>=l||f<0)throw new r("Incorrect index");for(var d=new i(l),h=0;h<l;h++)d[h]=h===f?o:n[h];return d},hw}var SF;function Zae(){if(SF)return _F;SF=1;var e=je(),t=zX(),r=ra(),n=Array,i=(function(){try{[].with({valueOf:function(){throw 4}},null)}catch(a){return a!==4}})();return e({target:"Array",proto:!0,forced:i},{with:function(a,o){return t(r(this),n,a,o)}}),_F}var wF={},pw,bF;function om(){return bF||(bF=1,pw=typeof ArrayBuffer<"u"&&typeof DataView<"u"),pw}var vw,TF;function Tu(){if(TF)return vw;TF=1;var e=$n();return vw=function(t,r,n){for(var i in r)e(t,i,r[i],n);return t},vw}var gw,AF;function ko(){if(AF)return gw;AF=1;var e=Va(),t=TypeError;return gw=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")},gw}var mw,RF;function sm(){if(RF)return mw;RF=1;var e=Ri(),t=Co(),r=RangeError;return mw=function(n){if(n===void 0)return 0;var i=e(n),a=t(i);if(i!==a)throw new r("Wrong length or index");return a},mw}var yw,xF;function ZC(){return xF||(xF=1,yw=Math.sign||function(t){var r=+t;return r===0||r!==r?r:r<0?-1:1}),yw}var _w,CF;function WX(){if(CF)return _w;CF=1;var e=2220446049250313e-31,t=1/e;return _w=function(r){return r+t-t},_w}var Ew,OF;function GX(){if(OF)return Ew;OF=1;var e=ZC(),t=WX(),r=Math.abs,n=2220446049250313e-31;return Ew=function(i,a,o,l){var u=+i,f=r(u),d=e(u);if(f<l)return d*t(f/l/a)*l*a;var h=(1+a/n)*f,p=h-(h-f);return p>o||p!==p?d*(1/0):d*p},Ew}var Sw,IF;function KX(){if(IF)return Sw;IF=1;var e=GX(),t=11920928955078125e-23,r=34028234663852886e22,n=11754943508222875e-54;return Sw=Math.fround||function(a){return e(a,t,r,n)},Sw}var ww,PF;function eoe(){if(PF)return ww;PF=1;var e=Array,t=Math.abs,r=Math.pow,n=Math.floor,i=Math.log,a=Math.LN2,o=function(u,f,d){var h=e(d),p=d*8-f-1,y=(1<<p)-1,_=y>>1,E=f===23?r(2,-24)-r(2,-77):0,S=u<0||u===0&&1/u<0?1:0,w=0,T,C,x;for(u=t(u),u!==u||u===1/0?(C=u!==u?1:0,T=y):(T=n(i(u)/a),x=r(2,-T),u*x<1&&(T--,x*=2),T+_>=1?u+=E/x:u+=E*r(2,1-_),u*x>=2&&(T++,x/=2),T+_>=y?(C=0,T=y):T+_>=1?(C=(u*x-1)*r(2,f),T+=_):(C=u*r(2,_-1)*r(2,f),T=0));f>=8;)h[w++]=C&255,C/=256,f-=8;for(T=T<<f|C,p+=f;p>0;)h[w++]=T&255,T/=256,p-=8;return h[w-1]|=S*128,h},l=function(u,f){var d=u.length,h=d*8-f-1,p=(1<<h)-1,y=p>>1,_=h-7,E=d-1,S=u[E--],w=S&127,T;for(S>>=7;_>0;)w=w*256+u[E--],_-=8;for(T=w&(1<<-_)-1,w>>=-_,_+=f;_>0;)T=T*256+u[E--],_-=8;if(w===0)w=1-y;else{if(w===p)return T?NaN:S?-1/0:1/0;T+=r(2,f),w-=y}return(S?-1:1)*T*r(2,w-f)};return ww={pack:o,unpack:l},ww}var bw,kF;function um(){if(kF)return bw;kF=1;var e=Zt(),t=Kt(),r=Rr(),n=om(),i=Hf(),a=fa(),o=Di(),l=Tu(),u=Ht(),f=ko(),d=Ri(),h=Co(),p=sm(),y=KX(),_=eoe(),E=Ha(),S=_s(),w=WC(),T=ns(),C=pc(),x=zf(),R=uo(),O=Ei(),m=i.PROPER,D=i.CONFIGURABLE,U="ArrayBuffer",K="DataView",B="prototype",W="Wrong length",Y="Wrong index",Q=O.getterFor(U),ie=O.getterFor(K),ae=O.set,ve=e[U],H=ve,J=H&&H[B],z=e[K],ue=z&&z[B],we=Object.prototype,ke=e.Array,Be=e.RangeError,nt=t(w),rt=t([].reverse),q=_.pack,I=_.unpack,N=function(me){return[me&255]},M=function(me){return[me&255,me>>8&255]},Z=function(me){return[me&255,me>>8&255,me>>16&255,me>>24&255]},L=function(me){return me[3]<<24|me[2]<<16|me[1]<<8|me[0]},G=function(me){return q(y(me),23,4)},pe=function(me){return q(me,52,8)},ce=function(me,ge,Te){o(me[B],ge,{configurable:!0,get:function(){return Te(this)[ge]}})},be=function(me,ge,Te,Pe){var De=ie(me),qe=p(Te),_t=!!Pe;if(qe+ge>De.byteLength)throw new Be(Y);var qt=De.bytes,Mt=qe+De.byteOffset,Xe=T(qt,Mt,Mt+ge);return _t?Xe:rt(Xe)},_e=function(me,ge,Te,Pe,De,qe){var _t=ie(me),qt=p(Te),Mt=Pe(+De),Xe=!!qe;if(qt+ge>_t.byteLength)throw new Be(Y);for(var wt=_t.bytes,mt=qt+_t.byteOffset,Et=0;Et<ge;Et++)wt[mt+Et]=Mt[Xe?Et:ge-Et-1]};if(!n)H=function(ge){f(this,J);var Te=p(ge);ae(this,{type:U,bytes:nt(ke(Te),0),byteLength:Te}),r||(this.byteLength=Te,this.detached=!1)},J=H[B],z=function(ge,Te,Pe){f(this,ue),f(ge,J);var De=Q(ge),qe=De.byteLength,_t=d(Te);if(_t<0||_t>qe)throw new Be("Wrong offset");if(Pe=Pe===void 0?qe-_t:h(Pe),_t+Pe>qe)throw new Be(W);ae(this,{type:K,buffer:ge,byteLength:Pe,byteOffset:_t,bytes:De.bytes}),r||(this.buffer=ge,this.byteLength=Pe,this.byteOffset=_t)},ue=z[B],r&&(ce(H,"byteLength",Q),ce(z,"buffer",ie),ce(z,"byteLength",ie),ce(z,"byteOffset",ie)),l(ue,{getInt8:function(ge){return be(this,1,ge)[0]<<24>>24},getUint8:function(ge){return be(this,1,ge)[0]},getInt16:function(ge){var Te=be(this,2,ge,arguments.length>1?arguments[1]:!1);return(Te[1]<<8|Te[0])<<16>>16},getUint16:function(ge){var Te=be(this,2,ge,arguments.length>1?arguments[1]:!1);return Te[1]<<8|Te[0]},getInt32:function(ge){return L(be(this,4,ge,arguments.length>1?arguments[1]:!1))},getUint32:function(ge){return L(be(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(ge){return I(be(this,4,ge,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(ge){return I(be(this,8,ge,arguments.length>1?arguments[1]:!1),52)},setInt8:function(ge,Te){_e(this,1,ge,N,Te)},setUint8:function(ge,Te){_e(this,1,ge,N,Te)},setInt16:function(ge,Te){_e(this,2,ge,M,Te,arguments.length>2?arguments[2]:!1)},setUint16:function(ge,Te){_e(this,2,ge,M,Te,arguments.length>2?arguments[2]:!1)},setInt32:function(ge,Te){_e(this,4,ge,Z,Te,arguments.length>2?arguments[2]:!1)},setUint32:function(ge,Te){_e(this,4,ge,Z,Te,arguments.length>2?arguments[2]:!1)},setFloat32:function(ge,Te){_e(this,4,ge,G,Te,arguments.length>2?arguments[2]:!1)},setFloat64:function(ge,Te){_e(this,8,ge,pe,Te,arguments.length>2?arguments[2]:!1)}});else{var Ce=m&&ve.name!==U;!u(function(){ve(1)})||!u(function(){new ve(-1)})||u(function(){return new ve,new ve(1.5),new ve(NaN),ve.length!==1||Ce&&!D})?(H=function(ge){return f(this,J),C(new ve(p(ge)),this,H)},H[B]=J,J.constructor=H,x(H,ve)):Ce&&D&&a(ve,"name",U),S&&E(ue)!==we&&S(ue,we);var Me=new z(new H(2)),fe=t(ue.setInt8);Me.setInt8(0,2147483648),Me.setInt8(1,2147483649),(Me.getInt8(0)||!Me.getInt8(1))&&l(ue,{setInt8:function(ge,Te){fe(this,ge,Te<<24>>24)},setUint8:function(ge,Te){fe(this,ge,Te<<24>>24)}},{unsafe:!0})}return R(H,U),R(z,K),bw={ArrayBuffer:H,DataView:z},bw}var DF;function toe(){if(DF)return wF;DF=1;var e=je(),t=Zt(),r=um(),n=Xf(),i="ArrayBuffer",a=r[i],o=t[i];return e({global:!0,constructor:!0,forced:o!==a},{ArrayBuffer:a}),n(i),wF}var LF={},Tw,NF;function pn(){if(NF)return Tw;NF=1;var e=om(),t=Rr(),r=Zt(),n=hn(),i=qr(),a=fn(),o=Oo(),l=cc(),u=fa(),f=$n(),d=Di(),h=Va(),p=Ha(),y=_s(),_=Br(),E=Vf(),S=Ei(),w=S.enforce,T=S.get,C=r.Int8Array,x=C&&C.prototype,R=r.Uint8ClampedArray,O=R&&R.prototype,m=C&&p(C),D=x&&p(x),U=Object.prototype,K=r.TypeError,B=_("toStringTag"),W=E("TYPED_ARRAY_TAG"),Y="TypedArrayConstructor",Q=e&&!!y&&o(r.opera)!=="Opera",ie=!1,ae,ve,H,J={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},ue=function(N){if(!i(N))return!1;var M=o(N);return M==="DataView"||a(J,M)||a(z,M)},we=function(I){var N=p(I);if(i(N)){var M=T(N);return M&&a(M,Y)?M[Y]:we(N)}},ke=function(I){if(!i(I))return!1;var N=o(I);return a(J,N)||a(z,N)},Be=function(I){if(ke(I))return I;throw new K("Target is not a typed array")},nt=function(I){if(n(I)&&(!y||h(m,I)))return I;throw new K(l(I)+" is not a typed array constructor")},rt=function(I,N,M,Z){if(t){if(M)for(var L in J){var G=r[L];if(G&&a(G.prototype,I))try{delete G.prototype[I]}catch{try{G.prototype[I]=N}catch{}}}(!D[I]||M)&&f(D,I,M?N:Q&&x[I]||N,Z)}},q=function(I,N,M){var Z,L;if(t){if(y){if(M){for(Z in J)if(L=r[Z],L&&a(L,I))try{delete L[I]}catch{}}if(!m[I]||M)try{return f(m,I,M?N:Q&&m[I]||N)}catch{}else return}for(Z in J)L=r[Z],L&&(!L[I]||M)&&f(L,I,N)}};for(ae in J)ve=r[ae],H=ve&&ve.prototype,H?w(H)[Y]=ve:Q=!1;for(ae in z)ve=r[ae],H=ve&&ve.prototype,H&&(w(H)[Y]=ve);if((!Q||!n(m)||m===Function.prototype)&&(m=function(){throw new K("Incorrect invocation")},Q))for(ae in J)r[ae]&&y(r[ae],m);if((!Q||!D||D===U)&&(D=m.prototype,Q))for(ae in J)r[ae]&&y(r[ae].prototype,D);if(Q&&p(O)!==D&&y(O,D),t&&!a(D,B)){ie=!0,d(D,B,{configurable:!0,get:function(){return i(this)?this[W]:void 0}});for(ae in J)r[ae]&&u(r[ae],W,ae)}return Tw={NATIVE_ARRAY_BUFFER_VIEWS:Q,TYPED_ARRAY_TAG:ie&&W,aTypedArray:Be,aTypedArrayConstructor:nt,exportTypedArrayMethod:rt,exportTypedArrayStaticMethod:q,getTypedArrayConstructor:we,isView:ue,isTypedArray:ke,TypedArray:m,TypedArrayPrototype:D},Tw}var MF;function roe(){if(MF)return LF;MF=1;var e=je(),t=pn(),r=t.NATIVE_ARRAY_BUFFER_VIEWS;return e({target:"ArrayBuffer",stat:!0,forced:!r},{isView:t.isView}),LF}var $F={},FF;function noe(){if(FF)return $F;FF=1;var e=je(),t=dc(),r=Ht(),n=um(),i=Er(),a=Su(),o=Co(),l=n.ArrayBuffer,u=n.DataView,f=u.prototype,d=t(l.prototype.slice),h=t(f.getUint8),p=t(f.setUint8),y=r(function(){return!new l(2).slice(1,void 0).byteLength});return e({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:y},{slice:function(E,S){if(d&&S===void 0)return d(i(this),E);for(var w=i(this).byteLength,T=a(E,w),C=a(S===void 0?w:S,w),x=new l(o(C-T)),R=new u(this),O=new u(x),m=0;T<C;)p(O,m++,h(R,T++));return x}}),$F}var jF={},UF={},qF;function ioe(){if(qF)return UF;qF=1;var e=je(),t=um(),r=om();return e({global:!0,constructor:!0,forced:!r},{DataView:t.DataView}),UF}var BF;function aoe(){return BF||(BF=1,ioe()),jF}var VF={},HF;function ooe(){if(HF)return VF;HF=1;var e=je(),t=Kt(),r=Math.pow,n=31,i=1023,a=r(2,-24),o=.0009765625,l=function(f){var d=f>>>15,h=f>>>10&n,p=f&i;return h===n?p===0?d===0?1/0:-1/0:NaN:h===0?p*(d===0?a:-a):r(2,h-15)*(d===0?1+p*o:-1-p*o)},u=t(DataView.prototype.getUint16);return e({target:"DataView",proto:!0},{getFloat16:function(d){return l(u(this,d,arguments.length>1?arguments[1]:!1))}}),VF}var zF={},Aw,WF;function soe(){if(WF)return Aw;WF=1;var e=Oo(),t=TypeError;return Aw=function(r){if(e(r)==="DataView")return r;throw new t("Argument is not a DataView")},Aw}var Rw,GF;function YX(){if(GF)return Rw;GF=1;var e=Math.log,t=Math.LN2;return Rw=Math.log2||function(n){return e(n)/t},Rw}var KF;function uoe(){if(KF)return zF;KF=1;var e=je(),t=Kt(),r=soe(),n=sm(),i=YX(),a=WX(),o=Math.pow,l=65520,u=61005353927612305e-21,f=16777216,d=1024,h=function(y){if(y!==y)return 32256;if(y===0)return(1/y===-1/0)<<15;var _=y<0;if(_&&(y=-y),y>=l)return _<<15|31744;if(y<u)return _<<15|a(y*f);var E=i(y)|0;if(E===-15)return _<<15|d;var S=a((y*o(2,-E)-1)*d);return S===d?_<<15|E+16<<10:_<<15|E+15<<10|S},p=t(DataView.prototype.setUint16);return e({target:"DataView",proto:!0},{setFloat16:function(_,E){p(r(this),n(_),h(+E),arguments.length>2?arguments[2]:!1)}}),zF}var YF={},xw,XF;function XX(){if(XF)return xw;XF=1;var e=Zt(),t=Zg(),r=Ra(),n=e.ArrayBuffer,i=e.TypeError;return xw=n&&t(n.prototype,"byteLength","get")||function(a){if(r(a)!=="ArrayBuffer")throw new i("ArrayBuffer expected");return a.byteLength},xw}var Cw,QF;function QX(){if(QF)return Cw;QF=1;var e=Zt(),t=om(),r=XX(),n=e.DataView;return Cw=function(i){if(!t||r(i)!==0)return!1;try{return new n(i),!1}catch{return!0}},Cw}var JF;function loe(){if(JF)return YF;JF=1;var e=Rr(),t=Di(),r=QX(),n=ArrayBuffer.prototype;return e&&!("detached"in n)&&t(n,"detached",{configurable:!0,get:function(){return r(this)}}),YF}var ZF={},Ow,ej;function zh(){if(ej)return Ow;ej=1;var e=QX(),t=TypeError;return Ow=function(r){if(e(r))throw new t("ArrayBuffer is detached");return r},Ow}var Iw,tj;function JX(){if(tj)return Iw;tj=1;var e=Zt(),t=Yf();return Iw=function(r){if(t){try{return e.process.getBuiltinModule(r)}catch{}try{return Function('return require("'+r+'")')()}catch{}}},Iw}var Pw,rj;function eO(){if(rj)return Pw;rj=1;var e=Zt(),t=Ht(),r=Us(),n=am(),i=e.structuredClone;return Pw=!!i&&!t(function(){if(n==="DENO"&&r>92||n==="NODE"&&r>94||n==="BROWSER"&&r>97)return!1;var a=new ArrayBuffer(8),o=i(a,{transfer:[a]});return a.byteLength!==0||o.byteLength!==8}),Pw}var kw,nj;function ZX(){if(nj)return kw;nj=1;var e=Zt(),t=JX(),r=eO(),n=e.structuredClone,i=e.ArrayBuffer,a=e.MessageChannel,o=!1,l,u,f,d;if(r)o=function(h){n(h,{transfer:[h]})};else if(i)try{a||(l=t("worker_threads"),l&&(a=l.MessageChannel)),a&&(u=new a,f=new i(2),d=function(h){u.port1.postMessage(null,[h])},f.byteLength===2&&(d(f),f.byteLength===0&&(o=d)))}catch{}return kw=o,kw}var Dw,ij;function eQ(){if(ij)return Dw;ij=1;var e=Zt(),t=Kt(),r=Zg(),n=sm(),i=zh(),a=XX(),o=ZX(),l=eO(),u=e.structuredClone,f=e.ArrayBuffer,d=e.DataView,h=Math.min,p=f.prototype,y=d.prototype,_=t(p.slice),E=r(p,"resizable","get"),S=r(p,"maxByteLength","get"),w=t(y.getInt8),T=t(y.setInt8);return Dw=(l||o)&&function(C,x,R){var O=a(C),m=x===void 0?O:n(x),D=!E||!E(C),U;if(i(C),l&&(C=u(C,{transfer:[C]}),O===m&&(R||D)))return C;if(O>=m&&(!R||D))U=_(C,0,m);else{var K=R&&!D&&S?{maxByteLength:S(C)}:void 0;U=new f(m,K);for(var B=new d(C),W=new d(U),Y=h(m,O),Q=0;Q<Y;Q++)T(W,Q,w(B,Q))}return l||o(C),U},Dw}var aj;function coe(){if(aj)return ZF;aj=1;var e=je(),t=eQ();return t&&e({target:"ArrayBuffer",proto:!0},{transfer:function(){return t(this,arguments.length?arguments[0]:void 0,!0)}}),ZF}var oj={},sj;function foe(){if(sj)return oj;sj=1;var e=je(),t=eQ();return t&&e({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return t(this,arguments.length?arguments[0]:void 0,!1)}}),oj}var uj={},lj;function doe(){if(lj)return uj;lj=1;var e=je(),t=Kt(),r=Ht(),n=r(function(){return new Date(16e11).getYear()!==120}),i=t(Date.prototype.getFullYear);return e({target:"Date",proto:!0,forced:n},{getYear:function(){return i(this)-1900}}),uj}var cj={},fj;function hoe(){if(fj)return cj;fj=1;var e=je(),t=Kt(),r=Date,n=t(r.prototype.getTime);return e({target:"Date",stat:!0},{now:function(){return n(new r)}}),cj}var dj={},hj;function poe(){if(hj)return dj;hj=1;var e=je(),t=Kt(),r=Ri(),n=Date.prototype,i=t(n.getTime),a=t(n.setFullYear);return e({target:"Date",proto:!0},{setYear:function(l){i(this);var u=r(l),f=u>=0&&u<=99?u+1900:u;return a(this,f)}}),dj}var pj={},vj;function voe(){if(vj)return pj;vj=1;var e=je();return e({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString}),pj}var gj={},Lw,mj;function lm(){if(mj)return Lw;mj=1;var e=Ri(),t=Xr(),r=di(),n=RangeError;return Lw=function(a){var o=t(r(this)),l="",u=e(a);if(u<0||u===1/0)throw new n("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(o+=o))u&1&&(l+=o);return l},Lw}var Nw,yj;function cm(){if(yj)return Nw;yj=1;var e=Kt(),t=Co(),r=Xr(),n=lm(),i=di(),a=e(n),o=e("".slice),l=Math.ceil,u=function(f){return function(d,h,p){var y=r(i(d)),_=t(h),E=y.length,S=p===void 0?" ":r(p),w,T;return _<=E||S===""?y:(w=_-E,T=a(S,l(w/S.length)),T.length>w&&(T=o(T,0,w)),f?y+T:T+y)}};return Nw={start:u(!1),end:u(!0)},Nw}var Mw,_j;function goe(){if(_j)return Mw;_j=1;var e=Kt(),t=Ht(),r=cm().start,n=RangeError,i=isFinite,a=Math.abs,o=Date.prototype,l=o.toISOString,u=e(o.getTime),f=e(o.getUTCDate),d=e(o.getUTCFullYear),h=e(o.getUTCHours),p=e(o.getUTCMilliseconds),y=e(o.getUTCMinutes),_=e(o.getUTCMonth),E=e(o.getUTCSeconds);return Mw=t(function(){return l.call(new Date(-5e13-1))!=="0385-07-25T07:06:39.999Z"})||!t(function(){l.call(new Date(NaN))})?function(){if(!i(u(this)))throw new n("Invalid time value");var w=this,T=d(w),C=p(w),x=T<0?"-":T>9999?"+":"";return x+r(a(T),x?6:4,0)+"-"+r(_(w)+1,2,0)+"-"+r(f(w),2,0)+"T"+r(h(w),2,0)+":"+r(y(w),2,0)+":"+r(E(w),2,0)+"."+r(C,3,0)+"Z"}:l,Mw}var Ej;function moe(){if(Ej)return gj;Ej=1;var e=je(),t=goe();return e({target:"Date",proto:!0,forced:Date.prototype.toISOString!==t},{toISOString:t}),gj}var Sj={},wj;function yoe(){if(wj)return Sj;wj=1;var e=je(),t=Ht(),r=wn(),n=Kg(),i=t(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});return e({target:"Date",proto:!0,arity:1,forced:i},{toJSON:function(o){var l=r(this),u=n(l,"number");return typeof u=="number"&&!isFinite(u)?null:l.toISOString()}}),Sj}var bj={},$w,Tj;function _oe(){if(Tj)return $w;Tj=1;var e=Er(),t=yX(),r=TypeError;return $w=function(n){if(e(this),n==="string"||n==="default")n="string";else if(n!=="number")throw new r("Incorrect hint");return t(this,n)},$w}var Aj;function Eoe(){if(Aj)return bj;Aj=1;var e=fn(),t=$n(),r=_oe(),n=Br(),i=n("toPrimitive"),a=Date.prototype;return e(a,i)||t(a,i,r),bj}var Rj={},xj;function Soe(){if(xj)return Rj;xj=1;var e=Kt(),t=$n(),r=Date.prototype,n="Invalid Date",i="toString",a=e(r[i]),o=e(r.getTime);return String(new Date(NaN))!==n&&t(r,i,function(){var u=o(this);return u===u?a(this):n}),Rj}var Cj={},Fw,Oj;function tQ(){if(Oj)return Fw;Oj=1;var e=ln(),t=mr(),r=Kt(),n=Io(),i=Er(),a=cn(),o=Eu(),l=la(),u=Br(),f=u("asyncDispose"),d=u("dispose"),h=r([].push),p=function(_,E){if(E==="async-dispose"){var S=l(_,f);return S!==void 0||(S=l(_,d),S===void 0)?S:function(){var w=this,T=e("Promise");return new T(function(C){t(S,w),C(void 0)})}}return l(_,d)},y=function(_,E,S){return arguments.length<3&&!o(_)&&(S=a(p(i(_),E))),S===void 0?function(){}:n(S,_)};return Fw=function(_,E,S,w){var T;if(arguments.length<4){if(o(E)&&S==="sync-dispose")return;T=y(E,S)}else T=y(void 0,S,w);h(_.stack,T)},Fw}var Ij;function woe(){if(Ij)return Cj;Ij=1;var e=je(),t=Rr(),r=ln(),n=cn(),i=ko(),a=$n(),o=Tu(),l=Di(),u=Br(),f=Ei(),d=tQ(),h=r("SuppressedError"),p=ReferenceError,y=u("dispose"),_=u("toStringTag"),E="DisposableStack",S=f.set,w=f.getterFor(E),T="sync-dispose",C="disposed",x="pending",R=function(D){var U=w(D);if(U.state===C)throw new p(E+" already disposed");return U},O=function(){S(i(this,m),{type:E,state:x,stack:[]}),t||(this.disposed=!1)},m=O.prototype;return o(m,{dispose:function(){var U=w(this);if(U.state!==C){U.state=C,t||(this.disposed=!0);for(var K=U.stack,B=K.length,W=!1,Y;B;){var Q=K[--B];K[B]=null;try{Q()}catch(ie){W?Y=new h(ie,Y):(W=!0,Y=ie)}}if(U.stack=null,W)throw Y}},use:function(U){return d(R(this),U,T),U},adopt:function(U,K){var B=R(this);return n(K),d(B,void 0,T,function(){K(U)}),U},defer:function(U){var K=R(this);n(U),d(K,void 0,T,U)},move:function(){var U=R(this),K=new O;return w(K).stack=U.stack,U.stack=[],U.state=C,t||(this.disposed=!0),K}}),t&&l(m,"disposed",{configurable:!0,get:function(){return w(this).state===C}}),a(m,y,m.dispose,{name:"dispose"}),a(m,_,E,{nonWritable:!0}),e({global:!0,constructor:!0},{DisposableStack:O}),Cj}var Pj={},kj;function boe(){if(kj)return Pj;kj=1;var e=je(),t=Kt(),r=Xr(),n=t("".charAt),i=t("".charCodeAt),a=t(/./.exec),o=t(1.1.toString),l=t("".toUpperCase),u=/[\w*+\-./@]/,f=function(d,h){for(var p=o(d,16);p.length<h;)p="0"+p;return p};return e({global:!0},{escape:function(h){for(var p=r(h),y="",_=p.length,E=0,S,w;E<_;)S=n(p,E++),a(u,S)?y+=S:(w=i(S,0),w<256?y+="%"+f(w,2):y+="%u"+l(f(w,4)));return y}}),Pj}var Dj={},jw,Lj;function rQ(){if(Lj)return jw;Lj=1;var e=Kt(),t=cn(),r=qr(),n=fn(),i=ns(),a=Mh(),o=Function,l=e([].concat),u=e([].join),f={},d=function(h,p,y){if(!n(f,p)){for(var _=[],E=0;E<p;E++)_[E]="a["+E+"]";f[p]=o("C,a","return new C("+u(_,",")+")")}return f[p](h,y)};return jw=a?o.bind:function(p){var y=t(this),_=y.prototype,E=i(arguments,1),S=function(){var T=l(E,i(arguments));return this instanceof S?d(y,T.length,T):y.apply(p,T)};return r(_)&&(S.prototype=_),S},jw}var Nj;function Toe(){if(Nj)return Dj;Nj=1;var e=je(),t=rQ();return e({target:"Function",proto:!0,forced:Function.bind!==t},{bind:t}),Dj}var Mj={},$j;function Aoe(){if($j)return Mj;$j=1;var e=hn(),t=qr(),r=ui(),n=Va(),i=Br(),a=MC(),o=i("hasInstance"),l=Function.prototype;return o in l||r.f(l,o,{value:a(function(u){if(!e(this)||!t(u))return!1;var f=this.prototype;return t(f)?n(f,u):u instanceof this},o)}),Mj}var Fj={},jj;function Roe(){if(jj)return Fj;jj=1;var e=Rr(),t=Hf().EXISTS,r=Kt(),n=Di(),i=Function.prototype,a=r(i.toString),o=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=r(o.exec),u="name";return e&&!t&&n(i,u,{configurable:!0,get:function(){try{return l(o,a(this))[1]}catch{return""}}}),Fj}var Uj={},qj;function xoe(){if(qj)return Uj;qj=1;var e=je(),t=Zt();return e({global:!0,forced:t.globalThis!==t},{globalThis:t}),Uj}var Bj={},Vj;function Coe(){if(Vj)return Bj;Vj=1;var e=je(),t=Zt(),r=ko(),n=Er(),i=hn(),a=Ha(),o=Di(),l=wu(),u=Ht(),f=fn(),d=Br(),h=Kf().IteratorPrototype,p=Rr(),y=xn(),_="constructor",E="Iterator",S=d("toStringTag"),w=TypeError,T=t[E],C=y||!i(T)||T.prototype!==h||!u(function(){T({})}),x=function(){if(r(this,h),a(this)===h)throw new w("Abstract class Iterator not directly constructable")},R=function(O,m){p?o(h,O,{configurable:!0,get:function(){return m},set:function(D){if(n(this),this===h)throw new w("You can't redefine this property");f(this,O)?this[O]=D:l(this,O,D)}}):h[O]=m};return f(h,S)||R(S,E),(C||!f(h,_)||h[_]===Object)&&R(_,x),x.prototype=h,e({global:!0,constructor:!0,forced:C},{Iterator:x}),Bj}var Hj={},zj;function Ooe(){if(zj)return Hj;zj=1;var e=mr(),t=$n(),r=la(),n=fn(),i=Br(),a=Kf().IteratorPrototype,o=i("dispose");return n(a,o)||t(a,o,function(){var l=r(this,"return");l&&e(l,this)}),Hj}var Wj={},Uw,Gj;function Ca(){return Gj||(Gj=1,Uw=function(e){return{iterator:e,next:e.next,done:!1}}),Uw}var qw,Kj;function nQ(){if(Kj)return qw;Kj=1;var e=RangeError;return qw=function(t){if(t===t)return t;throw new e("NaN is not allowed")},qw}var Bw,Yj;function tO(){if(Yj)return Bw;Yj=1;var e=Ri(),t=RangeError;return Bw=function(r){var n=e(r);if(n<0)throw new t("The argument can't be less than 0");return n},Bw}var Vw,Xj;function Ioe(){if(Xj)return Vw;Xj=1;var e=pa();return Vw=function(t,r,n){for(var i=t.length-1;i>=0;i--)if(t[i]!==void 0)try{n=e(t[i].iterator,r,n)}catch(a){r="throw",n=a}if(r==="throw")throw n;return n},Vw}var Hw,Qj;function Qf(){if(Qj)return Hw;Qj=1;var e=mr(),t=da(),r=fa(),n=Tu(),i=Br(),a=Ei(),o=la(),l=Kf().IteratorPrototype,u=mc(),f=pa(),d=Ioe(),h=i("toStringTag"),p="IteratorHelper",y="WrapForValidIterator",_="normal",E="throw",S=a.set,w=function(x){var R=a.getterFor(x?y:p);return n(t(l),{next:function(){var m=R(this);if(x)return m.nextHandler();if(m.done)return u(void 0,!0);try{var D=m.nextHandler();return m.returnHandlerResult?D:u(D,m.done)}catch(U){throw m.done=!0,U}},return:function(){var O=R(this),m=O.iterator;if(O.done=!0,x){var D=o(m,"return");return D?e(D,m):u(void 0,!0)}if(O.inner)try{f(O.inner.iterator,_)}catch(U){return f(m,E,U)}if(O.openIters)try{d(O.openIters,_)}catch(U){return f(m,E,U)}return m&&f(m,_),u(void 0,!0)}})},T=w(!0),C=w(!1);return r(C,h,"Iterator Helper"),Hw=function(x,R,O){var m=function(U,K){K?(K.iterator=U.iterator,K.next=U.next):K=U,K.type=R?y:p,K.returnHandlerResult=!!O,K.nextHandler=x,K.counter=0,K.done=!1,S(this,K)};return m.prototype=R?T:C,m},Hw}var zw,Jj;function fm(){return Jj||(Jj=1,zw=function(e,t){var r=typeof Iterator=="function"&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch{return!0}}),zw}var Ww,Zj;function qs(){if(Zj)return Ww;Zj=1;var e=Zt();return Ww=function(t,r){var n=e.Iterator,i=n&&n.prototype,a=i&&i[t],o=!1;if(a)try{a.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(l){l instanceof r||(o=!1)}if(!o)return a},Ww}var eU;function Poe(){if(eU)return Wj;eU=1;var e=je(),t=mr(),r=Er(),n=Ca(),i=nQ(),a=tO(),o=pa(),l=Qf(),u=fm(),f=qs(),d=xn(),h=!d&&!u("drop",0),p=!d&&!h&&f("drop",RangeError),y=d||h||p,_=l(function(){for(var E=this.iterator,S=this.next,w,T;this.remaining;)if(this.remaining--,w=r(t(S,E)),T=this.done=!!w.done,T)return;if(w=r(t(S,E)),T=this.done=!!w.done,!T)return w.value});return e({target:"Iterator",proto:!0,real:!0,forced:y},{drop:function(S){r(this);var w;try{w=a(i(+S))}catch(T){o(this,"throw",T)}return p?t(p,this,w):new _(n(this),{remaining:w})}}),Wj}var tU={},rU;function koe(){if(rU)return tU;rU=1;var e=je(),t=mr(),r=zi(),n=cn(),i=Er(),a=Ca(),o=pa(),l=qs(),u=l("every",TypeError);return e({target:"Iterator",proto:!0,real:!0,forced:u},{every:function(d){i(this);try{n(d)}catch(y){o(this,"throw",y)}if(u)return t(u,this,d);var h=a(this),p=0;return!r(h,function(y,_){if(!d(y,p++))return _()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}}),tU}var nU={},iU;function Doe(){if(iU)return nU;iU=1;var e=je(),t=mr(),r=cn(),n=Er(),i=Ca(),a=Qf(),o=GC(),l=xn(),u=pa(),f=fm(),d=qs(),h=!l&&!f("filter",function(){}),p=!l&&!h&&d("filter",TypeError),y=l||h||p,_=a(function(){for(var E=this.iterator,S=this.predicate,w=this.next,T,C,x;;){if(T=n(t(w,E)),C=this.done=!!T.done,C)return;if(x=T.value,o(E,S,[x,this.counter++],!0))return x}});return e({target:"Iterator",proto:!0,real:!0,forced:y},{filter:function(S){n(this);try{r(S)}catch(w){u(this,"throw",w)}return p?t(p,this,S):new _(i(this),{predicate:S})}}),nU}var aU={},oU;function Loe(){if(oU)return aU;oU=1;var e=je(),t=mr(),r=zi(),n=cn(),i=Er(),a=Ca(),o=pa(),l=qs(),u=l("find",TypeError);return e({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(d){i(this);try{n(d)}catch(y){o(this,"throw",y)}if(u)return t(u,this,d);var h=a(this),p=0;return r(h,function(y,_){if(d(y,p++))return _(y)},{IS_RECORD:!0,INTERRUPTED:!0}).result}}),aU}var sU={},Gw,uU;function iQ(){if(uU)return Gw;uU=1;var e=mr(),t=Er(),r=Ca(),n=vc();return Gw=function(i,a){(!a||typeof i!="string")&&t(i);var o=n(i);return r(t(o!==void 0?e(o,i):i))},Gw}var lU;function Noe(){if(lU)return sU;lU=1;var e=je(),t=mr(),r=cn(),n=Er(),i=Ca(),a=iQ(),o=Qf(),l=pa(),u=xn(),f=fm(),d=qs(),h=!u&&!f("flatMap",function(){}),p=!u&&!h&&d("flatMap",TypeError),y=u||h||p,_=o(function(){for(var E=this.iterator,S=this.mapper,w,T;;){if(T=this.inner)try{if(w=n(t(T.next,T.iterator)),!w.done)return w.value;this.inner=null}catch(C){l(E,"throw",C)}if(w=n(t(this.next,E)),this.done=!!w.done)return;try{this.inner=a(S(w.value,this.counter++),!1)}catch(C){l(E,"throw",C)}}});return e({target:"Iterator",proto:!0,real:!0,forced:y},{flatMap:function(S){n(this);try{r(S)}catch(w){l(this,"throw",w)}return p?t(p,this,S):new _(i(this),{mapper:S,inner:null})}}),sU}var cU={},fU;function Moe(){if(fU)return cU;fU=1;var e=je(),t=mr(),r=zi(),n=cn(),i=Er(),a=Ca(),o=pa(),l=qs(),u=l("forEach",TypeError);return e({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(d){i(this);try{n(d)}catch(y){o(this,"throw",y)}if(u)return t(u,this,d);var h=a(this),p=0;r(h,function(y){d(y,p++)},{IS_RECORD:!0})}}),cU}var dU={},hU;function $oe(){if(hU)return dU;hU=1;var e=je(),t=mr(),r=wn(),n=Va(),i=Kf().IteratorPrototype,a=Qf(),o=iQ(),l=xn(),u=l||(function(){try{Iterator.from({return:null}).return()}catch{return!0}})(),f=a(function(){return t(this.next,this.iterator)},!0);return e({target:"Iterator",stat:!0,forced:u},{from:function(h){var p=o(typeof h=="string"?r(h):h,!0);return n(i,p.iterator)?p.iterator:new f(p)}}),dU}var pU={},vU;function Foe(){if(vU)return pU;vU=1;var e=je(),t=mr(),r=cn(),n=Er(),i=Ca(),a=Qf(),o=GC(),l=pa(),u=fm(),f=qs(),d=xn(),h=!d&&!u("map",function(){}),p=!d&&!h&&f("map",TypeError),y=d||h||p,_=a(function(){var E=this.iterator,S=n(t(this.next,E)),w=this.done=!!S.done;if(!w)return o(E,this.mapper,[S.value,this.counter++],!0)});return e({target:"Iterator",proto:!0,real:!0,forced:y},{map:function(S){n(this);try{r(S)}catch(w){l(this,"throw",w)}return p?t(p,this,S):new _(i(this),{mapper:S})}}),pU}var gU={},mU;function joe(){if(mU)return gU;mU=1;var e=je(),t=zi(),r=cn(),n=Er(),i=Ca(),a=pa(),o=qs(),l=Po(),u=Ht(),f=TypeError,d=u(function(){[].keys().reduce(function(){},void 0)}),h=!d&&o("reduce",f);return e({target:"Iterator",proto:!0,real:!0,forced:d||h},{reduce:function(y){n(this);try{r(y)}catch(T){a(this,"throw",T)}var _=arguments.length<2,E=_?void 0:arguments[1];if(h)return l(h,this,_?[y]:[y,E]);var S=i(this),w=0;if(t(S,function(T){_?(_=!1,E=T):E=y(E,T,w),w++},{IS_RECORD:!0}),_)throw new f("Reduce of empty iterator with no initial value");return E}}),gU}var yU={},_U;function Uoe(){if(_U)return yU;_U=1;var e=je(),t=mr(),r=zi(),n=cn(),i=Er(),a=Ca(),o=pa(),l=qs(),u=l("some",TypeError);return e({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(d){i(this);try{n(d)}catch(y){o(this,"throw",y)}if(u)return t(u,this,d);var h=a(this),p=0;return r(h,function(y,_){if(d(y,p++))return _()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}}),yU}var EU={},SU;function qoe(){if(SU)return EU;SU=1;var e=je(),t=mr(),r=Er(),n=Ca(),i=nQ(),a=tO(),o=Qf(),l=pa(),u=qs(),f=xn(),d=!f&&u("take",RangeError),h=o(function(){var p=this.iterator;if(!this.remaining--)return this.done=!0,l(p,"normal",void 0);var y=r(t(this.next,p)),_=this.done=!!y.done;if(!_)return y.value});return e({target:"Iterator",proto:!0,real:!0,forced:f||d},{take:function(y){r(this);var _;try{_=a(i(+y))}catch(E){l(this,"throw",E)}return d?t(d,this,_):new h(n(this),{remaining:_})}}),EU}var wU={},bU;function Boe(){if(bU)return wU;bU=1;var e=je(),t=Er(),r=zi(),n=Ca(),i=[].push;return e({target:"Iterator",proto:!0,real:!0},{toArray:function(){var o=[];return r(n(t(this)),i,{that:o,IS_RECORD:!0}),o}}),wU}var TU={},AU;function Voe(){if(AU)return TU;AU=1;var e=Zt(),t=uo();return t(e.JSON,"JSON",!0),TU}var RU={},xU={},Kw={exports:{}},Yw,CU;function rO(){if(CU)return Yw;CU=1;var e=Ht();return Yw=e(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Yw}var Xw,OU;function nO(){if(OU)return Xw;OU=1;var e=Ht(),t=qr(),r=Ra(),n=rO(),i=Object.isExtensible,a=e(function(){});return Xw=a||n?function(l){return!t(l)||n&&r(l)==="ArrayBuffer"?!1:i?i(l):!0}:i,Xw}var Qw,IU;function Jf(){if(IU)return Qw;IU=1;var e=Ht();return Qw=!e(function(){return Object.isExtensible(Object.preventExtensions({}))}),Qw}var PU;function yc(){if(PU)return Kw.exports;PU=1;var e=je(),t=Kt(),r=$h(),n=qr(),i=fn(),a=ui().f,o=fc(),l=qC(),u=nO(),f=Vf(),d=Jf(),h=!1,p=f("meta"),y=0,_=function(x){a(x,p,{value:{objectID:"O"+y++,weakData:{}}})},E=function(x,R){if(!n(x))return typeof x=="symbol"?x:(typeof x=="string"?"S":"P")+x;if(!i(x,p)){if(!u(x))return"F";if(!R)return"E";_(x)}return x[p].objectID},S=function(x,R){if(!i(x,p)){if(!u(x))return!0;if(!R)return!1;_(x)}return x[p].weakData},w=function(x){return d&&h&&u(x)&&!i(x,p)&&_(x),x},T=function(){C.enable=function(){},h=!0;var x=o.f,R=t([].splice),O={};O[p]=1,x(O).length&&(o.f=function(m){for(var D=x(m),U=0,K=D.length;U<K;U++)if(D[U]===p){R(D,U,1);break}return D},e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},C=Kw.exports={enable:T,fastKey:E,getWeakData:S,onFreeze:w};return r[p]=!0,Kw.exports}var Jw,kU;function dm(){if(kU)return Jw;kU=1;var e=je(),t=Zt(),r=Kt(),n=jh(),i=$n(),a=yc(),o=zi(),l=ko(),u=hn(),f=Eu(),d=qr(),h=Ht(),p=rm(),y=uo(),_=pc();return Jw=function(E,S,w){var T=E.indexOf("Map")!==-1,C=E.indexOf("Weak")!==-1,x=T?"set":"add",R=t[E],O=R&&R.prototype,m=R,D={},U=function(ae){var ve=r(O[ae]);i(O,ae,ae==="add"?function(J){return ve(this,J===0?0:J),this}:ae==="delete"?function(H){return C&&!d(H)?!1:ve(this,H===0?0:H)}:ae==="get"?function(J){return C&&!d(J)?void 0:ve(this,J===0?0:J)}:ae==="has"?function(J){return C&&!d(J)?!1:ve(this,J===0?0:J)}:function(J,z){return ve(this,J===0?0:J,z),this})},K=n(E,!u(R)||!(C||O.forEach&&!h(function(){new R().entries().next()})));if(K)m=w.getConstructor(S,E,T,x),a.enable();else if(n(E,!0)){var B=new m,W=B[x](C?{}:-0,1)!==B,Y=h(function(){B.has(1)}),Q=p(function(ae){new R(ae)}),ie=!C&&h(function(){for(var ae=new R,ve=5;ve--;)ae[x](ve,ve);return!ae.has(-0)});Q||(m=S(function(ae,ve){l(ae,O);var H=_(new R,ae,m);return f(ve)||o(ve,H[x],{that:H,AS_ENTRIES:T}),H}),m.prototype=O,O.constructor=m),(Y||ie)&&(U("delete"),U("has"),T&&U("get")),(ie||W)&&U(x),C&&O.clear&&delete O.clear}return D[E]=m,e({global:!0,constructor:!0,forced:m!==R},D),y(m,E),C||w.setStrong(m,E,T),m},Jw}var Zw,DU;function aQ(){if(DU)return Zw;DU=1;var e=da(),t=Di(),r=Tu(),n=Io(),i=ko(),a=Eu(),o=zi(),l=YC(),u=mc(),f=Xf(),d=Rr(),h=yc().fastKey,p=Ei(),y=p.set,_=p.getterFor;return Zw={getConstructor:function(E,S,w,T){var C=E(function(D,U){i(D,x),y(D,{type:S,index:e(null),first:null,last:null,size:0}),d||(D.size=0),a(U)||o(U,D[T],{that:D,AS_ENTRIES:w})}),x=C.prototype,R=_(S),O=function(D,U,K){var B=R(D),W=m(D,U),Y,Q;return W?W.value=K:(B.last=W={index:Q=h(U,!0),key:U,value:K,previous:Y=B.last,next:null,removed:!1},B.first||(B.first=W),Y&&(Y.next=W),d?B.size++:D.size++,Q!=="F"&&(B.index[Q]=W)),D},m=function(D,U){var K=R(D),B=h(U),W;if(B!=="F")return K.index[B];for(W=K.first;W;W=W.next)if(W.key===U)return W};return r(x,{clear:function(){for(var U=this,K=R(U),B=K.first;B;)B.removed=!0,B.previous&&(B.previous=B.previous.next=null),B=B.next;K.first=K.last=null,K.index=e(null),d?K.size=0:U.size=0},delete:function(D){var U=this,K=R(U),B=m(U,D);if(B){var W=B.next,Y=B.previous;delete K.index[B.index],B.removed=!0,Y&&(Y.next=W),W&&(W.previous=Y),K.first===B&&(K.first=W),K.last===B&&(K.last=Y),d?K.size--:U.size--}return!!B},forEach:function(U){for(var K=R(this),B=n(U,arguments.length>1?arguments[1]:void 0),W;W=W?W.next:K.first;)for(B(W.value,W.key,this);W&&W.removed;)W=W.previous},has:function(U){return!!m(this,U)}}),r(x,w?{get:function(U){var K=m(this,U);return K&&K.value},set:function(U,K){return O(this,U===0?0:U,K)}}:{add:function(U){return O(this,U=U===0?0:U,U)}}),d&&t(x,"size",{configurable:!0,get:function(){return R(this).size}}),C},setStrong:function(E,S,w){var T=S+" Iterator",C=_(S),x=_(T);l(E,S,function(R,O){y(this,{type:T,target:R,state:C(R),kind:O,last:null})},function(){for(var R=x(this),O=R.kind,m=R.last;m&&m.removed;)m=m.previous;return!R.target||!(R.last=m=m?m.next:R.state.first)?(R.target=null,u(void 0,!0)):u(O==="keys"?m.key:O==="values"?m.value:[m.key,m.value],!1)},w?"entries":"values",!w,!0),f(S)}},Zw}var LU;function Hoe(){if(LU)return xU;LU=1;var e=dm(),t=aQ();return e("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},t),xU}var NU;function zoe(){return NU||(NU=1,Hoe()),RU}var MU={},e0,$U;function oQ(){if($U)return e0;$U=1;var e=Kt(),t=Map.prototype;return e0={Map,set:e(t.set),get:e(t.get),has:e(t.has),remove:e(t.delete),proto:t},e0}var FU;function Woe(){if(FU)return MU;FU=1;var e=je(),t=Kt(),r=cn(),n=di(),i=zi(),a=oQ(),o=xn(),l=Ht(),u=a.Map,f=a.has,d=a.get,h=a.set,p=t([].push),y=o||l(function(){return u.groupBy("ab",function(_){return _}).get("a").length!==1});return e({target:"Map",stat:!0,forced:o||y},{groupBy:function(E,S){n(E),r(S);var w=new u,T=0;return i(E,function(C){var x=S(C,T++);f(w,x)?p(d(w,x),C):h(w,x,[C])}),w}}),MU}var jU={},t0,UU;function sQ(){if(UU)return t0;UU=1;var e=Math.log;return t0=Math.log1p||function(r){var n=+r;return n>-1e-8&&n<1e-8?n-n*n/2:e(1+n)},t0}var qU;function Goe(){if(qU)return jU;qU=1;var e=je(),t=sQ(),r=Math.acosh,n=Math.log,i=Math.sqrt,a=Math.LN2,o=!r||Math.floor(r(Number.MAX_VALUE))!==710||r(1/0)!==1/0;return e({target:"Math",stat:!0,forced:o},{acosh:function(u){var f=+u;return f<1?NaN:f>9490626562425156e-8?n(f)+a:t(f-1+i(f-1)*i(f+1))}}),jU}var BU={},VU;function Koe(){if(VU)return BU;VU=1;var e=je(),t=Math.asinh,r=Math.log,n=Math.sqrt;function i(o){var l=+o;return!isFinite(l)||l===0?l:l<0?-i(-l):r(l+n(l*l+1))}var a=!(t&&1/t(0)>0);return e({target:"Math",stat:!0,forced:a},{asinh:i}),BU}var HU={},zU;function Yoe(){if(zU)return HU;zU=1;var e=je(),t=Math.atanh,r=Math.log,n=!(t&&1/t(-0)<0);return e({target:"Math",stat:!0,forced:n},{atanh:function(a){var o=+a;return o===0?o:r((1+o)/(1-o))/2}}),HU}var WU={},GU;function Xoe(){if(GU)return WU;GU=1;var e=je(),t=ZC(),r=Math.abs,n=Math.pow;return e({target:"Math",stat:!0},{cbrt:function(a){var o=+a;return t(o)*n(r(o),1/3)}}),WU}var KU={},YU;function Qoe(){if(YU)return KU;YU=1;var e=je(),t=Math.floor,r=Math.log,n=Math.LOG2E;return e({target:"Math",stat:!0},{clz32:function(a){var o=a>>>0;return o?31-t(r(o+.5)*n):32}}),KU}var XU={},r0,QU;function hm(){if(QU)return r0;QU=1;var e=Math.expm1,t=Math.exp;return r0=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||e(-2e-17)!==-2e-17?function(n){var i=+n;return i===0?i:i>-1e-6&&i<1e-6?i+i*i/2:t(i)-1}:e,r0}var JU;function Joe(){if(JU)return XU;JU=1;var e=je(),t=hm(),r=Math.cosh,n=Math.abs,i=Math.E,a=!r||r(710)===1/0;return e({target:"Math",stat:!0,forced:a},{cosh:function(l){var u=t(n(l)-1)+1;return(u+1/(u*i*i))*(i/2)}}),XU}var ZU={},eq;function Zoe(){if(eq)return ZU;eq=1;var e=je(),t=hm();return e({target:"Math",stat:!0,forced:t!==Math.expm1},{expm1:t}),ZU}var tq={},rq;function ese(){if(rq)return tq;rq=1;var e=je(),t=KX();return e({target:"Math",stat:!0},{fround:t}),tq}var nq={},iq;function tse(){if(iq)return nq;iq=1;var e=je(),t=GX(),r=.0009765625,n=65504,i=6103515625e-14;return e({target:"Math",stat:!0},{f16round:function(o){return t(o,r,n,i)}}),nq}var aq={},oq;function rse(){if(oq)return aq;oq=1;var e=je(),t=Math.hypot,r=Math.abs,n=Math.sqrt,i=!!t&&t(1/0,NaN)!==1/0;return e({target:"Math",stat:!0,arity:2,forced:i},{hypot:function(o,l){for(var u=0,f=0,d=arguments.length,h=0,p,y;f<d;)p=r(arguments[f++]),h<p?(y=h/p,u=u*y*y+1,h=p):p>0?(y=p/h,u+=y*y):u+=p;return h===1/0?1/0:h*n(u)}}),aq}var sq={},uq;function nse(){if(uq)return sq;uq=1;var e=je(),t=Ht(),r=Math.imul,n=t(function(){return r(4294967295,5)!==-5||r.length!==2});return e({target:"Math",stat:!0,forced:n},{imul:function(a,o){var l=65535,u=+a,f=+o,d=l&u,h=l&f;return 0|d*h+((l&u>>>16)*h+d*(l&f>>>16)<<16>>>0)}}),sq}var lq={},n0,cq;function uQ(){if(cq)return n0;cq=1;var e=Math.log,t=Math.LOG10E;return n0=Math.log10||function(n){return e(n)*t},n0}var fq;function ise(){if(fq)return lq;fq=1;var e=je(),t=uQ();return e({target:"Math",stat:!0},{log10:t}),lq}var dq={},hq;function ase(){if(hq)return dq;hq=1;var e=je(),t=sQ();return e({target:"Math",stat:!0},{log1p:t}),dq}var pq={},vq;function ose(){if(vq)return pq;vq=1;var e=je(),t=YX();return e({target:"Math",stat:!0},{log2:t}),pq}var gq={},mq;function sse(){if(mq)return gq;mq=1;var e=je(),t=ZC();return e({target:"Math",stat:!0},{sign:t}),gq}var yq={},_q;function use(){if(_q)return yq;_q=1;var e=je(),t=Ht(),r=hm(),n=Math.abs,i=Math.exp,a=Math.E,o=t(function(){return Math.sinh(-2e-17)!==-2e-17});return e({target:"Math",stat:!0,forced:o},{sinh:function(u){var f=+u;return n(f)<1?(r(f)-r(-f))/2:(i(f-1)-i(-f-1))*(a/2)}}),yq}var Eq={},Sq;function lse(){if(Sq)return Eq;Sq=1;var e=je(),t=Kt(),r=zi(),n=RangeError,i=TypeError,a=1/0,o=NaN,l=Math.abs,u=Math.pow,f=t([].push),d=u(2,1023),h=u(2,53)-1,p=Number.MAX_VALUE,y=u(2,971),_={},E={},S={},w={},T={},C=function(x,R){var O=x+R,m=R-(O-x);return{hi:O,lo:m}};return e({target:"Math",stat:!0},{sumPrecise:function(R){var O=[],m=0,D=w;switch(r(R,function(ke){if(++m>=h)throw new n("Maximum allowed index exceeded");if(typeof ke!="number")throw new i("Value is not a number");D!==_&&(ke!==ke?D=_:ke===a?D=D===E?_:S:ke===-a?D=D===S?_:E:(ke!==0||1/ke===a)&&(D===w||D===T)&&(D=T,f(O,ke)))}),D){case _:return o;case E:return-a;case S:return a;case w:return-0}for(var U=[],K=0,B,W,Y,Q,ie,ae,ve=0;ve<O.length;ve++){B=O[ve];for(var H=0,J=0;J<U.length;J++){if(W=U[J],l(B)<l(W)&&(ae=B,B=W,W=ae),Y=C(B,W),Q=Y.hi,ie=Y.lo,l(Q)===a){var z=Q===a?1:-1;K+=z,B=B-z*d-z*d,l(B)<l(W)&&(ae=B,B=W,W=ae),Y=C(B,W),Q=Y.hi,ie=Y.lo}ie!==0&&(U[H++]=ie),B=Q}U.length=H,B!==0&&f(U,B)}var ue=U.length-1;if(Q=0,ie=0,K!==0){var we=ue>=0?U[ue]:0;if(ue--,l(K)>1||K>0&&we>0||K<0&&we<0)return K>0?a:-a;if(Y=C(K*d,we/2),Q=Y.hi,ie=Y.lo,ie*=2,l(2*Q)===a)return Q>0?Q===d&&ie===-(y/2)&&ue>=0&&U[ue]<0?p:a:Q===-d&&ie===y/2&&ue>=0&&U[ue]>0?-p:-a;ie!==0&&(U[++ue]=ie,ie=0),Q*=2}for(;ue>=0&&(Y=C(Q,U[ue--]),Q=Y.hi,ie=Y.lo,ie===0););return ue>=0&&(ie<0&&U[ue]<0||ie>0&&U[ue]>0)&&(W=ie*2,B=Q+W,W===B-Q&&(Q=B)),Q}}),Eq}var wq={},bq;function cse(){if(bq)return wq;bq=1;var e=je(),t=hm(),r=Math.exp;return e({target:"Math",stat:!0},{tanh:function(i){var a=+i,o=t(a),l=t(-a);return o===1/0?1:l===1/0?-1:(o-l)/(r(a)+r(-a))}}),wq}var Tq={},Aq;function fse(){if(Aq)return Tq;Aq=1;var e=uo();return e(Math,"Math",!0),Tq}var Rq={},xq;function dse(){if(xq)return Rq;xq=1;var e=je(),t=wX();return e({target:"Math",stat:!0},{trunc:t}),Rq}var Cq={},i0,Oq;function pm(){if(Oq)return i0;Oq=1;var e=Kt();return i0=e(1.1.valueOf),i0}var a0,Iq;function Wh(){return Iq||(Iq=1,a0=`
|
|
3
3
|
\v\f\r \u2028\u2029\uFEFF`),a0}var o0,Pq;function Zf(){if(Pq)return o0;Pq=1;var e=Kt(),t=di(),r=Xr(),n=Wh(),i=e("".replace),a=RegExp("^["+n+"]+"),o=RegExp("(^|[^"+n+"])["+n+"]+$"),l=function(u){return function(f){var d=r(t(f));return u&1&&(d=i(d,a,"")),u&2&&(d=i(d,o,"$1")),d}};return o0={start:l(1),end:l(2),trim:l(3)},o0}var kq;function hse(){if(kq)return Cq;kq=1;var e=je(),t=xn(),r=Rr(),n=Zt(),i=Jg(),a=Kt(),o=jh(),l=fn(),u=pc(),f=Va(),d=lc(),h=Kg(),p=Ht(),y=fc().f,_=ca().f,E=ui().f,S=pm(),w=Zf().trim,T="Number",C=n[T],x=i[T],R=C.prototype,O=n.TypeError,m=a("".slice),D=a("".charCodeAt),U=function(ie){var ae=h(ie,"number");return typeof ae=="bigint"?ae:K(ae)},K=function(ie){var ae=h(ie,"number"),ve,H,J,z,ue,we,ke,Be;if(d(ae))throw new O("Cannot convert a Symbol value to a number");if(typeof ae=="string"&&ae.length>2){if(ae=w(ae),ve=D(ae,0),ve===43||ve===45){if(H=D(ae,2),H===88||H===120)return NaN}else if(ve===48){switch(D(ae,1)){case 66:case 98:J=2,z=49;break;case 79:case 111:J=8,z=55;break;default:return+ae}for(ue=m(ae,2),we=ue.length,ke=0;ke<we;ke++)if(Be=D(ue,ke),Be<48||Be>z)return NaN;return parseInt(ue,J)}}return+ae},B=o(T,!C(" 0o1")||!C("0b1")||C("+0x1")),W=function(ie){return f(R,ie)&&p(function(){S(ie)})},Y=function(ae){var ve=arguments.length<1?0:C(U(ae));return W(this)?u(Object(ve),this,Y):ve};Y.prototype=R,B&&!t&&(R.constructor=Y),e({global:!0,constructor:!0,wrap:!0,forced:B},{Number:Y});var Q=function(ie,ae){for(var ve=r?y(ae):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),H=0,J;ve.length>H;H++)l(ae,J=ve[H])&&!l(ie,J)&&E(ie,J,_(ae,J))};return t&&x&&Q(i[T],x),(B||t)&&Q(i[T],C),Cq}var Dq={},Lq;function pse(){if(Lq)return Dq;Lq=1;var e=je();return e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)}),Dq}var Nq={},s0,Mq;function vse(){if(Mq)return s0;Mq=1;var e=Zt(),t=e.isFinite;return s0=Number.isFinite||function(n){return typeof n=="number"&&t(n)},s0}var $q;function gse(){if($q)return Nq;$q=1;var e=je(),t=vse();return e({target:"Number",stat:!0},{isFinite:t}),Nq}var Fq={},u0,jq;function iO(){if(jq)return u0;jq=1;var e=qr(),t=Math.floor;return u0=Number.isInteger||function(n){return!e(n)&&isFinite(n)&&t(n)===n},u0}var Uq;function mse(){if(Uq)return Fq;Uq=1;var e=je(),t=iO();return e({target:"Number",stat:!0},{isInteger:t}),Fq}var qq={},Bq;function yse(){if(Bq)return qq;Bq=1;var e=je();return e({target:"Number",stat:!0},{isNaN:function(r){return r!==r}}),qq}var Vq={},Hq;function _se(){if(Hq)return Vq;Hq=1;var e=je(),t=iO(),r=Math.abs;return e({target:"Number",stat:!0},{isSafeInteger:function(i){return t(i)&&r(i)<=9007199254740991}}),Vq}var zq={},Wq;function Ese(){if(Wq)return zq;Wq=1;var e=je();return e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),zq}var Gq={},Kq;function Sse(){if(Kq)return Gq;Kq=1;var e=je();return e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991}),Gq}var Yq={},l0,Xq;function lQ(){if(Xq)return l0;Xq=1;var e=Zt(),t=Ht(),r=Kt(),n=Xr(),i=Zf().trim,a=Wh(),o=r("".charAt),l=e.parseFloat,u=e.Symbol,f=u&&u.iterator,d=1/l(a+"-0")!==-1/0||f&&!t(function(){l(Object(f))});return l0=d?function(p){var y=i(n(p)),_=l(y);return _===0&&o(y,0)==="-"?-0:_}:l,l0}var Qq;function wse(){if(Qq)return Yq;Qq=1;var e=je(),t=lQ();return e({target:"Number",stat:!0,forced:Number.parseFloat!==t},{parseFloat:t}),Yq}var Jq={},c0,Zq;function cQ(){if(Zq)return c0;Zq=1;var e=Zt(),t=Ht(),r=Kt(),n=Xr(),i=Zf().trim,a=Wh(),o=e.parseInt,l=e.Symbol,u=l&&l.iterator,f=/^[+-]?0x/i,d=r(f.exec),h=o(a+"08")!==8||o(a+"0x16")!==22||u&&!t(function(){o(Object(u))});return c0=h?function(y,_){var E=i(n(y));return o(E,_>>>0||(d(f,E)?16:10))}:o,c0}var e3;function bse(){if(e3)return Jq;e3=1;var e=je(),t=cQ();return e({target:"Number",stat:!0,forced:Number.parseInt!==t},{parseInt:t}),Jq}var t3={},r3;function Tse(){if(r3)return t3;r3=1;var e=je(),t=Kt(),r=Ri(),n=pm(),i=lm(),a=uQ(),o=Ht(),l=RangeError,u=String,f=isFinite,d=Math.abs,h=Math.floor,p=Math.pow,y=Math.round,_=t(1.1.toExponential),E=t(i),S=t("".slice),w=_(-69e-12,4)==="-6.9000e-11"&&_(1.255,2)==="1.25e+0"&&_(12345,3)==="1.235e+4"&&_(25,0)==="3e+1",T=function(){return o(function(){_(1,1/0)})&&o(function(){_(1,-1/0)})},C=function(){return!o(function(){_(1/0,1/0),_(NaN,1/0)})},x=!w||!T()||!C();return e({target:"Number",proto:!0,forced:x},{toExponential:function(O){var m=n(this);if(O===void 0)return _(m);var D=r(O);if(!f(m))return String(m);if(D<0||D>20)throw new l("Incorrect fraction digits");if(w)return _(m,D);var U="",K,B,W,Y;if(m<0&&(U="-",m=-m),m===0)B=0,K=E("0",D+1);else{var Q=a(m);B=h(Q);var ie=p(10,B-D),ae=y(m/ie);2*m>=(2*ae+1)*ie&&(ae+=1),ae>=p(10,D+1)&&(ae/=10,B+=1),K=u(ae)}return D!==0&&(K=S(K,0,1)+"."+S(K,1)),B===0?(W="+",Y="0"):(W=B>0?"+":"-",Y=u(d(B))),K+="e"+W+Y,U+K}}),t3}var n3={},i3;function Ase(){if(i3)return n3;i3=1;var e=je(),t=Kt(),r=Ri(),n=pm(),i=lm(),a=Ht(),o=RangeError,l=String,u=Math.floor,f=t(i),d=t("".slice),h=t(1.1.toFixed),p=function(T,C,x){return C===0?x:C%2===1?p(T,C-1,x*T):p(T*T,C/2,x)},y=function(T){for(var C=0,x=T;x>=4096;)C+=12,x/=4096;for(;x>=2;)C+=1,x/=2;return C},_=function(T,C,x){for(var R=-1,O=x;++R<6;)O+=C*T[R],T[R]=O%1e7,O=u(O/1e7)},E=function(T,C){for(var x=6,R=0;--x>=0;)R+=T[x],T[x]=u(R/C),R=R%C*1e7},S=function(T){for(var C=6,x="";--C>=0;)if(x!==""||C===0||T[C]!==0){var R=l(T[C]);x=x===""?R:x+f("0",7-R.length)+R}return x},w=a(function(){return h(8e-5,3)!=="0.000"||h(.9,0)!=="1"||h(1.255,2)!=="1.25"||h(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!a(function(){h({})});return e({target:"Number",proto:!0,forced:w},{toFixed:function(C){var x=n(this),R=r(C),O=[0,0,0,0,0,0],m="",D="0",U,K,B,W;if(R<0||R>20)throw new o("Incorrect fraction digits");if(x!==x)return"NaN";if(x<=-1e21||x>=1e21)return l(x);if(x<0&&(m="-",x=-x),x>1e-21)if(U=y(x*p(2,69,1))-69,K=U<0?x*p(2,-U,1):x/p(2,U,1),K*=4503599627370496,U=52-U,U>0){for(_(O,0,K),B=R;B>=7;)_(O,1e7,0),B-=7;for(_(O,p(10,B,1),0),B=U-1;B>=23;)E(O,1<<23),B-=23;E(O,1<<B),_(O,1,1),E(O,2),D=S(O)}else _(O,0,K),_(O,1<<-U,0),D=S(O)+f("0",R);return R>0?(W=D.length,D=m+(W<=R?"0."+f("0",R-W)+D:d(D,0,W-R)+"."+d(D,W-R))):D=m+D,D}}),n3}var a3={},o3;function Rse(){if(o3)return a3;o3=1;var e=je(),t=Kt(),r=Ht(),n=pm(),i=t(1.1.toPrecision),a=r(function(){return i(1,void 0)!=="1"})||!r(function(){i({})});return e({target:"Number",proto:!0,forced:a},{toPrecision:function(l){return l===void 0?i(n(this)):i(n(this),l)}}),a3}var s3={},f0,u3;function fQ(){if(u3)return f0;u3=1;var e=Rr(),t=Kt(),r=mr(),n=Ht(),i=Uh(),a=Qg(),o=Wg(),l=wn(),u=Uf(),f=Object.assign,d=Object.defineProperty,h=t([].concat);return f0=!f||n(function(){if(e&&f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var p={},y={},_=Symbol("assign detection"),E="abcdefghijklmnopqrst";return p[_]=7,E.split("").forEach(function(S){y[S]=S}),f({},p)[_]!==7||i(f({},y)).join("")!==E})?function(y,_){for(var E=l(y),S=arguments.length,w=1,T=a.f,C=o.f;S>w;)for(var x=u(arguments[w++]),R=T?h(i(x),T(x)):i(x),O=R.length,m=0,D;O>m;)D=R[m++],(!e||r(C,x,D))&&(E[D]=x[D]);return E}:f,f0}var l3;function xse(){if(l3)return s3;l3=1;var e=je(),t=fQ();return e({target:"Object",stat:!0,arity:2,forced:Object.assign!==t},{assign:t}),s3}var c3={},f3;function Cse(){if(f3)return c3;f3=1;var e=je(),t=Rr(),r=da();return e({target:"Object",stat:!0,sham:!t},{create:r}),c3}var d3={},d0,h3;function vm(){if(h3)return d0;h3=1;var e=xn(),t=Zt(),r=Ht(),n=JC();return d0=e||!r(function(){if(!(n&&n<535)){var i=Math.random();__defineSetter__.call(null,i,function(){}),delete t[i]}}),d0}var p3;function Ose(){if(p3)return d3;p3=1;var e=je(),t=Rr(),r=vm(),n=cn(),i=wn(),a=ui();return t&&e({target:"Object",proto:!0,forced:r},{__defineGetter__:function(l,u){a.f(i(this),l,{get:n(u),enumerable:!0,configurable:!0})}}),d3}var v3={},g3;function Ise(){if(g3)return v3;g3=1;var e=je(),t=Rr(),r=UC().f;return e({target:"Object",stat:!0,forced:Object.defineProperties!==r,sham:!t},{defineProperties:r}),v3}var m3={},y3;function Pse(){if(y3)return m3;y3=1;var e=je(),t=Rr(),r=ui().f;return e({target:"Object",stat:!0,forced:Object.defineProperty!==r,sham:!t},{defineProperty:r}),m3}var _3={},E3;function kse(){if(E3)return _3;E3=1;var e=je(),t=Rr(),r=vm(),n=cn(),i=wn(),a=ui();return t&&e({target:"Object",proto:!0,forced:r},{__defineSetter__:function(l,u){a.f(i(this),l,{set:n(u),enumerable:!0,configurable:!0})}}),_3}var S3={},h0,w3;function dQ(){if(w3)return h0;w3=1;var e=Rr(),t=Ht(),r=Kt(),n=Ha(),i=Uh(),a=ra(),o=Wg().f,l=r(o),u=r([].push),f=e&&t(function(){var h=Object.create(null);return h[2]=2,!l(h,2)}),d=function(h){return function(p){for(var y=a(p),_=i(y),E=f&&n(y)===null,S=_.length,w=0,T=[],C;S>w;)C=_[w++],(!e||(E?C in y:l(y,C)))&&u(T,h?[C,y[C]]:y[C]);return T}};return h0={entries:d(!0),values:d(!1)},h0}var b3;function Dse(){if(b3)return S3;b3=1;var e=je(),t=dQ().entries;return e({target:"Object",stat:!0},{entries:function(n){return t(n)}}),S3}var T3={},A3;function Lse(){if(A3)return T3;A3=1;var e=je(),t=Jf(),r=Ht(),n=qr(),i=yc().onFreeze,a=Object.freeze,o=r(function(){a(1)});return e({target:"Object",stat:!0,forced:o,sham:!t},{freeze:function(u){return a&&n(u)?a(i(u)):u}}),T3}var R3={},x3;function Nse(){if(x3)return R3;x3=1;var e=je(),t=zi(),r=wu();return e({target:"Object",stat:!0},{fromEntries:function(i){var a={};return t(i,function(o,l){r(a,o,l)},{AS_ENTRIES:!0}),a}}),R3}var C3={},O3;function Mse(){if(O3)return C3;O3=1;var e=je(),t=Ht(),r=ra(),n=ca().f,i=Rr(),a=!i||t(function(){n(1)});return e({target:"Object",stat:!0,forced:a,sham:!i},{getOwnPropertyDescriptor:function(l,u){return n(r(l),u)}}),C3}var I3={},P3;function $se(){if(P3)return I3;P3=1;var e=je(),t=Rr(),r=FC(),n=ra(),i=ca(),a=wu();return e({target:"Object",stat:!0,sham:!t},{getOwnPropertyDescriptors:function(l){for(var u=n(l),f=i.f,d=r(u),h={},p=0,y,_;d.length>p;)_=f(u,y=d[p++]),_!==void 0&&a(h,y,_);return h}}),I3}var k3={},D3;function Fse(){if(D3)return k3;D3=1;var e=je(),t=Ht(),r=qC().f,n=t(function(){return!Object.getOwnPropertyNames(1)});return e({target:"Object",stat:!0,forced:n},{getOwnPropertyNames:r}),k3}var L3={},N3;function jse(){if(N3)return L3;N3=1;var e=je(),t=Ht(),r=wn(),n=Ha(),i=HC(),a=t(function(){n(1)});return e({target:"Object",stat:!0,forced:a,sham:!i},{getPrototypeOf:function(l){return n(r(l))}}),L3}var M3={},$3;function Use(){if($3)return M3;$3=1;var e=je(),t=ln(),r=Kt(),n=cn(),i=di(),a=sl(),o=zi(),l=Ht(),u=Object.groupBy,f=t("Object","create"),d=r([].push),h=!u||l(function(){return u("ab",function(p){return p}).a.length!==1});return e({target:"Object",stat:!0,forced:h},{groupBy:function(y,_){i(y),n(_);var E=f(null),S=0;return o(y,function(w){var T=a(_(w,S++));T in E?d(E[T],w):E[T]=[w]}),E}}),M3}var F3={},j3;function qse(){if(j3)return F3;j3=1;var e=je(),t=fn();return e({target:"Object",stat:!0},{hasOwn:t}),F3}var U3={},p0,q3;function hQ(){return q3||(q3=1,p0=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r}),p0}var B3;function Bse(){if(B3)return U3;B3=1;var e=je(),t=hQ();return e({target:"Object",stat:!0},{is:t}),U3}var V3={},H3;function Vse(){if(H3)return V3;H3=1;var e=je(),t=nO();return e({target:"Object",stat:!0,forced:Object.isExtensible!==t},{isExtensible:t}),V3}var z3={},W3;function Hse(){if(W3)return z3;W3=1;var e=je(),t=Ht(),r=qr(),n=Ra(),i=rO(),a=Object.isFrozen,o=i||t(function(){});return e({target:"Object",stat:!0,forced:o},{isFrozen:function(u){return!r(u)||i&&n(u)==="ArrayBuffer"?!0:a?a(u):!1}}),z3}var G3={},K3;function zse(){if(K3)return G3;K3=1;var e=je(),t=Ht(),r=qr(),n=Ra(),i=rO(),a=Object.isSealed,o=i||t(function(){});return e({target:"Object",stat:!0,forced:o},{isSealed:function(u){return!r(u)||i&&n(u)==="ArrayBuffer"?!0:a?a(u):!1}}),G3}var Y3={},X3;function Wse(){if(X3)return Y3;X3=1;var e=je(),t=wn(),r=Uh(),n=Ht(),i=n(function(){r(1)});return e({target:"Object",stat:!0,forced:i},{keys:function(o){return r(t(o))}}),Y3}var Q3={},J3;function Gse(){if(J3)return Q3;J3=1;var e=je(),t=Rr(),r=vm(),n=wn(),i=sl(),a=Ha(),o=ca().f;return t&&e({target:"Object",proto:!0,forced:r},{__lookupGetter__:function(u){var f=n(this),d=i(u),h;do if(h=o(f,d))return h.get;while(f=a(f))}}),Q3}var Z3={},eB;function Kse(){if(eB)return Z3;eB=1;var e=je(),t=Rr(),r=vm(),n=wn(),i=sl(),a=Ha(),o=ca().f;return t&&e({target:"Object",proto:!0,forced:r},{__lookupSetter__:function(u){var f=n(this),d=i(u),h;do if(h=o(f,d))return h.set;while(f=a(f))}}),Z3}var tB={},rB;function Yse(){if(rB)return tB;rB=1;var e=je(),t=qr(),r=yc().onFreeze,n=Jf(),i=Ht(),a=Object.preventExtensions,o=i(function(){a(1)});return e({target:"Object",stat:!0,forced:o,sham:!n},{preventExtensions:function(u){return a&&t(u)?a(r(u)):u}}),tB}var nB={},iB;function Xse(){if(iB)return nB;iB=1;var e=Rr(),t=Di(),r=qr(),n=OX(),i=wn(),a=di(),o=Object.getPrototypeOf,l=Object.setPrototypeOf,u=Object.prototype,f="__proto__";if(e&&o&&l&&!(f in u))try{t(u,f,{configurable:!0,get:function(){return o(i(this))},set:function(h){var p=a(this);n(h)&&r(p)&&l(p,h)}})}catch{}return nB}var aB={},oB;function Qse(){if(oB)return aB;oB=1;var e=je(),t=qr(),r=yc().onFreeze,n=Jf(),i=Ht(),a=Object.seal,o=i(function(){a(1)});return e({target:"Object",stat:!0,forced:o,sham:!n},{seal:function(u){return a&&t(u)?a(r(u)):u}}),aB}var sB={},uB;function Jse(){if(uB)return sB;uB=1;var e=je(),t=_s();return e({target:"Object",stat:!0},{setPrototypeOf:t}),sB}var lB={},v0,cB;function Zse(){if(cB)return v0;cB=1;var e=jC(),t=Oo();return v0=e?{}.toString:function(){return"[object "+t(this)+"]"},v0}var fB;function eue(){if(fB)return lB;fB=1;var e=jC(),t=$n(),r=Zse();return e||t(Object.prototype,"toString",r,{unsafe:!0}),lB}var dB={},hB;function tue(){if(hB)return dB;hB=1;var e=je(),t=dQ().values;return e({target:"Object",stat:!0},{values:function(n){return t(n)}}),dB}var pB={},vB;function rue(){if(vB)return pB;vB=1;var e=je(),t=lQ();return e({global:!0,forced:parseFloat!==t},{parseFloat:t}),pB}var gB={},mB;function nue(){if(mB)return gB;mB=1;var e=je(),t=cQ();return e({global:!0,forced:parseInt!==t},{parseInt:t}),gB}var yB={},_B={},g0,EB;function aO(){if(EB)return g0;EB=1;var e=hc(),t=cc(),r=TypeError;return g0=function(n){if(e(n))return n;throw new r(t(n)+" is not a constructor")},g0}var m0,SB;function gm(){if(SB)return m0;SB=1;var e=Er(),t=aO(),r=Eu(),n=Br(),i=n("species");return m0=function(a,o){var l=e(a).constructor,u;return l===void 0||r(u=e(l)[i])?o:t(u)},m0}var y0,wB;function is(){if(wB)return y0;wB=1;var e=TypeError;return y0=function(t,r){if(t<r)throw new e("Not enough arguments");return t},y0}var _0,bB;function pQ(){if(bB)return _0;bB=1;var e=js();return _0=/(?:ipad|iphone|ipod).*applewebkit/i.test(e),_0}var E0,TB;function mm(){if(TB)return E0;TB=1;var e=Zt(),t=Po(),r=Io(),n=hn(),i=fn(),a=Ht(),o=TX(),l=ns(),u=Yg(),f=is(),d=pQ(),h=Yf(),p=e.setImmediate,y=e.clearImmediate,_=e.process,E=e.Dispatch,S=e.Function,w=e.MessageChannel,T=e.String,C=0,x={},R="onreadystatechange",O,m,D,U;a(function(){O=e.location});var K=function(Q){if(i(x,Q)){var ie=x[Q];delete x[Q],ie()}},B=function(Q){return function(){K(Q)}},W=function(Q){K(Q.data)},Y=function(Q){e.postMessage(T(Q),O.protocol+"//"+O.host)};return(!p||!y)&&(p=function(ie){f(arguments.length,1);var ae=n(ie)?ie:S(ie),ve=l(arguments,1);return x[++C]=function(){t(ae,void 0,ve)},m(C),C},y=function(ie){delete x[ie]},h?m=function(Q){_.nextTick(B(Q))}:E&&E.now?m=function(Q){E.now(B(Q))}:w&&!d?(D=new w,U=D.port2,D.port1.onmessage=W,m=r(U.postMessage,U)):e.addEventListener&&n(e.postMessage)&&!e.importScripts&&O&&O.protocol!=="file:"&&!a(Y)?(m=Y,e.addEventListener("message",W,!1)):R in u("script")?m=function(Q){o.appendChild(u("script"))[R]=function(){o.removeChild(this),K(Q)}}:m=function(Q){setTimeout(B(Q),0)}),E0={set:p,clear:y},E0}var S0,AB;function vQ(){if(AB)return S0;AB=1;var e=Zt(),t=Rr(),r=Object.getOwnPropertyDescriptor;return S0=function(n){if(!t)return e[n];var i=r(e,n);return i&&i.value},S0}var w0,RB;function gQ(){if(RB)return w0;RB=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(t){var r={item:t,next:null},n=this.tail;n?n.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t){var r=this.head=t.next;return r===null&&(this.tail=null),t.item}}},w0=e,w0}var b0,xB;function iue(){if(xB)return b0;xB=1;var e=js();return b0=/ipad|iphone|ipod/i.test(e)&&typeof Pebble<"u",b0}var T0,CB;function aue(){if(CB)return T0;CB=1;var e=js();return T0=/web0s(?!.*chrome)/i.test(e),T0}var A0,OB;function mQ(){if(OB)return A0;OB=1;var e=Zt(),t=vQ(),r=Io(),n=mm().set,i=gQ(),a=pQ(),o=iue(),l=aue(),u=Yf(),f=e.MutationObserver||e.WebKitMutationObserver,d=e.document,h=e.process,p=e.Promise,y=t("queueMicrotask"),_,E,S,w,T;if(!y){var C=new i,x=function(){var R,O;for(u&&(R=h.domain)&&R.exit();O=C.get();)try{O()}catch(m){throw C.head&&_(),m}R&&R.enter()};!a&&!u&&!l&&f&&d?(E=!0,S=d.createTextNode(""),new f(x).observe(S,{characterData:!0}),_=function(){S.data=E=!E}):!o&&p&&p.resolve?(w=p.resolve(void 0),w.constructor=p,T=r(w.then,w),_=function(){T(x)}):u?_=function(){h.nextTick(x)}:(n=r(n,e),_=function(){n(x)}),y=function(R){C.head||_(),C.add(R)}}return A0=y,A0}var R0,IB;function oue(){return IB||(IB=1,R0=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}}),R0}var x0,PB;function ed(){return PB||(PB=1,x0=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}),x0}var C0,kB;function td(){if(kB)return C0;kB=1;var e=Zt();return C0=e.Promise,C0}var O0,DB;function Gh(){if(DB)return O0;DB=1;var e=Zt(),t=td(),r=hn(),n=jh(),i=NC(),a=Br(),o=am(),l=xn(),u=Us(),f=t&&t.prototype,d=a("species"),h=!1,p=r(e.PromiseRejectionEvent),y=n("Promise",function(){var _=i(t),E=_!==String(t);if(!E&&u===66||l&&!(f.catch&&f.finally))return!0;if(!u||u<51||!/native code/.test(_)){var S=new t(function(C){C(1)}),w=function(C){C(function(){},function(){})},T=S.constructor={};if(T[d]=w,h=S.then(function(){})instanceof w,!h)return!0}return!E&&(o==="BROWSER"||o==="DENO")&&!p});return O0={CONSTRUCTOR:y,REJECTION_EVENT:p,SUBCLASSING:h},O0}var I0={},LB;function Au(){if(LB)return I0;LB=1;var e=cn(),t=TypeError,r=function(n){var i,a;this.promise=new n(function(o,l){if(i!==void 0||a!==void 0)throw new t("Bad Promise constructor");i=o,a=l}),this.resolve=e(i),this.reject=e(a)};return I0.f=function(n){return new r(n)},I0}var NB;function sue(){if(NB)return _B;NB=1;var e=je(),t=xn(),r=Yf(),n=Zt(),i=Jg(),a=mr(),o=$n(),l=_s(),u=uo(),f=Xf(),d=cn(),h=hn(),p=qr(),y=ko(),_=gm(),E=mm().set,S=mQ(),w=oue(),T=ed(),C=gQ(),x=Ei(),R=td(),O=Gh(),m=Au(),D="Promise",U=O.CONSTRUCTOR,K=O.REJECTION_EVENT,B=O.SUBCLASSING,W=x.getterFor(D),Y=x.set,Q=R&&R.prototype,ie=R,ae=Q,ve=n.TypeError,H=n.document,J=n.process,z=m.f,ue=z,we=!!(H&&H.createEvent&&n.dispatchEvent),ke="unhandledrejection",Be="rejectionhandled",nt=0,rt=1,q=2,I=1,N=2,M,Z,L,G,pe=function(Pe){var De;return p(Pe)&&h(De=Pe.then)?De:!1},ce=function(Pe,De){var qe=De.value,_t=De.state===rt,qt=_t?Pe.ok:Pe.fail,Mt=Pe.resolve,Xe=Pe.reject,wt=Pe.domain,mt,Et,At;try{qt?(_t||(De.rejection===N&&fe(De),De.rejection=I),qt===!0?mt=qe:(wt&&wt.enter(),mt=qt(qe),wt&&(wt.exit(),At=!0)),mt===Pe.promise?Xe(new ve("Promise-chain cycle")):(Et=pe(mt))?a(Et,mt,Mt,Xe):Mt(mt)):Xe(qe)}catch(ft){wt&&!At&&wt.exit(),Xe(ft)}},be=function(Pe,De){Pe.notified||(Pe.notified=!0,S(function(){for(var qe=Pe.reactions,_t;_t=qe.get();)ce(_t,Pe);Pe.notified=!1,De&&!Pe.rejection&&Ce(Pe)}))},_e=function(Pe,De,qe){var _t,qt;we?(_t=H.createEvent("Event"),_t.promise=De,_t.reason=qe,_t.initEvent(Pe,!1,!0),n.dispatchEvent(_t)):_t={promise:De,reason:qe},!K&&(qt=n["on"+Pe])?qt(_t):Pe===ke&&w("Unhandled promise rejection",qe)},Ce=function(Pe){a(E,n,function(){var De=Pe.facade,qe=Pe.value,_t=Me(Pe),qt;if(_t&&(qt=T(function(){r?J.emit("unhandledRejection",qe,De):_e(ke,De,qe)}),Pe.rejection=r||Me(Pe)?N:I,qt.error))throw qt.value})},Me=function(Pe){return Pe.rejection!==I&&!Pe.parent},fe=function(Pe){a(E,n,function(){var De=Pe.facade;r?J.emit("rejectionHandled",De):_e(Be,De,Pe.value)})},me=function(Pe,De,qe){return function(_t){Pe(De,_t,qe)}},ge=function(Pe,De,qe){Pe.done||(Pe.done=!0,qe&&(Pe=qe),Pe.value=De,Pe.state=q,be(Pe,!0))},Te=function(Pe,De,qe){if(!Pe.done){Pe.done=!0,qe&&(Pe=qe);try{if(Pe.facade===De)throw new ve("Promise can't be resolved itself");var _t=pe(De);_t?S(function(){var qt={done:!1};try{a(_t,De,me(Te,qt,Pe),me(ge,qt,Pe))}catch(Mt){ge(qt,Mt,Pe)}}):(Pe.value=De,Pe.state=rt,be(Pe,!1))}catch(qt){ge({done:!1},qt,Pe)}}};if(U&&(ie=function(De){y(this,ae),d(De),a(M,this);var qe=W(this);try{De(me(Te,qe),me(ge,qe))}catch(_t){ge(qe,_t)}},ae=ie.prototype,M=function(De){Y(this,{type:D,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:nt,value:null})},M.prototype=o(ae,"then",function(De,qe){var _t=W(this),qt=z(_(this,ie));return _t.parent=!0,qt.ok=h(De)?De:!0,qt.fail=h(qe)&&qe,qt.domain=r?J.domain:void 0,_t.state===nt?_t.reactions.add(qt):S(function(){ce(qt,_t)}),qt.promise}),Z=function(){var Pe=new M,De=W(Pe);this.promise=Pe,this.resolve=me(Te,De),this.reject=me(ge,De)},m.f=z=function(Pe){return Pe===ie||Pe===L?new Z(Pe):ue(Pe)},!t&&h(R)&&Q!==Object.prototype)){G=Q.then,B||o(Q,"then",function(De,qe){var _t=this;return new ie(function(qt,Mt){a(G,_t,qt,Mt)}).then(De,qe)},{unsafe:!0});try{delete Q.constructor}catch{}l&&l(Q,ae)}return e({global:!0,constructor:!0,wrap:!0,forced:U},{Promise:ie}),L=i.Promise,u(ie,D,!1,!0),f(D),_B}var MB={},P0,$B;function ym(){if($B)return P0;$B=1;var e=td(),t=rm(),r=Gh().CONSTRUCTOR;return P0=r||!t(function(n){e.all(n).then(void 0,function(){})}),P0}var FB;function uue(){if(FB)return MB;FB=1;var e=je(),t=mr(),r=cn(),n=Au(),i=ed(),a=zi(),o=ym();return e({target:"Promise",stat:!0,forced:o},{all:function(u){var f=this,d=n.f(f),h=d.resolve,p=d.reject,y=i(function(){var _=r(f.resolve),E=[],S=0,w=1;a(u,function(T){var C=S++,x=!1;w++,t(_,f,T).then(function(R){x||(x=!0,E[C]=R,--w||h(E))},p)}),--w||h(E)});return y.error&&p(y.value),d.promise}}),MB}var jB={},UB;function lue(){if(UB)return jB;UB=1;var e=je(),t=xn(),r=Gh().CONSTRUCTOR,n=td(),i=ln(),a=hn(),o=$n(),l=n&&n.prototype;if(e({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(f){return this.then(void 0,f)}}),!t&&a(n)){var u=i("Promise").prototype.catch;l.catch!==u&&o(l,"catch",u,{unsafe:!0})}return jB}var qB={},BB;function cue(){if(BB)return qB;BB=1;var e=je(),t=mr(),r=cn(),n=Au(),i=ed(),a=zi(),o=ym();return e({target:"Promise",stat:!0,forced:o},{race:function(u){var f=this,d=n.f(f),h=d.reject,p=i(function(){var y=r(f.resolve);a(u,function(_){t(y,f,_).then(d.resolve,h)})});return p.error&&h(p.value),d.promise}}),qB}var VB={},HB;function fue(){if(HB)return VB;HB=1;var e=je(),t=Au(),r=Gh().CONSTRUCTOR;return e({target:"Promise",stat:!0,forced:r},{reject:function(i){var a=t.f(this),o=a.reject;return o(i),a.promise}}),VB}var zB={},k0,WB;function yQ(){if(WB)return k0;WB=1;var e=Er(),t=qr(),r=Au();return k0=function(n,i){if(e(n),t(i)&&i.constructor===n)return i;var a=r.f(n),o=a.resolve;return o(i),a.promise},k0}var GB;function due(){if(GB)return zB;GB=1;var e=je(),t=ln(),r=xn(),n=td(),i=Gh().CONSTRUCTOR,a=yQ(),o=t("Promise"),l=r&&!i;return e({target:"Promise",stat:!0,forced:r||i},{resolve:function(f){return a(l&&this===o?n:this,f)}}),zB}var KB;function hue(){return KB||(KB=1,sue(),uue(),lue(),cue(),fue(),due()),yB}var YB={},XB;function pue(){if(XB)return YB;XB=1;var e=je(),t=mr(),r=cn(),n=Au(),i=ed(),a=zi(),o=ym();return e({target:"Promise",stat:!0,forced:o},{allSettled:function(u){var f=this,d=n.f(f),h=d.resolve,p=d.reject,y=i(function(){var _=r(f.resolve),E=[],S=0,w=1;a(u,function(T){var C=S++,x=!1;w++,t(_,f,T).then(function(R){x||(x=!0,E[C]={status:"fulfilled",value:R},--w||h(E))},function(R){x||(x=!0,E[C]={status:"rejected",reason:R},--w||h(E))})}),--w||h(E)});return y.error&&p(y.value),d.promise}}),YB}var QB={},JB;function vue(){if(JB)return QB;JB=1;var e=je(),t=mr(),r=cn(),n=ln(),i=Au(),a=ed(),o=zi(),l=ym(),u="No one promise resolved";return e({target:"Promise",stat:!0,forced:l},{any:function(d){var h=this,p=n("AggregateError"),y=i.f(h),_=y.resolve,E=y.reject,S=a(function(){var w=r(h.resolve),T=[],C=0,x=1,R=!1;o(d,function(O){var m=C++,D=!1;x++,t(w,h,O).then(function(U){D||R||(R=!0,_(U))},function(U){D||R||(D=!0,T[m]=U,--x||E(new p(T,u)))})}),--x||E(new p(T,u))});return S.error&&E(S.value),y.promise}}),QB}var ZB={},e6;function gue(){if(e6)return ZB;e6=1;var e=je(),t=xn(),r=td(),n=Ht(),i=ln(),a=hn(),o=gm(),l=yQ(),u=$n(),f=r&&r.prototype,d=!!r&&n(function(){f.finally.call({then:function(){}},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(p){var y=o(this,i("Promise")),_=a(p);return this.then(_?function(E){return l(y,p()).then(function(){return E})}:p,_?function(E){return l(y,p()).then(function(){throw E})}:p)}}),!t&&a(r)){var h=i("Promise").prototype.finally;f.finally!==h&&u(f,"finally",h,{unsafe:!0})}return ZB}var t6={},r6;function mue(){if(r6)return t6;r6=1;var e=je(),t=Zt(),r=Po(),n=ns(),i=Au(),a=cn(),o=ed(),l=t.Promise,u=!1,f=!l||!l.try||o(function(){l.try(function(d){u=d===8},8)}).error||!u;return e({target:"Promise",stat:!0,forced:f},{try:function(d){var h=arguments.length>1?n(arguments,1):[],p=i.f(this),y=o(function(){return r(a(d),void 0,h)});return(y.error?p.reject:p.resolve)(y.value),p.promise}}),t6}var n6={},i6;function yue(){if(i6)return n6;i6=1;var e=je(),t=Au();return e({target:"Promise",stat:!0},{withResolvers:function(){var n=t.f(this);return{promise:n.promise,resolve:n.resolve,reject:n.reject}}}),n6}var a6={},D0,o6;function _Q(){if(o6)return D0;o6=1;var e=Zt(),t=Gg(),r=hn(),n=da(),i=Ha(),a=$n(),o=Br(),l=xn(),u="USE_FUNCTION_CONSTRUCTOR",f=o("asyncIterator"),d=e.AsyncIterator,h=t.AsyncIteratorPrototype,p,y;if(h)p=h;else if(r(d))p=d.prototype;else if(t[u]||e[u])try{y=i(i(i(Function("return async function*(){}()")()))),i(y)===Object.prototype&&(p=y)}catch{}return p?l&&(p=n(p)):p={},r(p[f])||a(p,f,function(){return this}),D0=p,D0}var L0,s6;function EQ(){if(s6)return L0;s6=1;var e=mr(),t=Er(),r=da(),n=la(),i=Tu(),a=Ei(),o=pa(),l=ln(),u=_Q(),f=mc(),d=l("Promise"),h="AsyncFromSyncIterator",p=a.set,y=a.getterFor(h),_=function(S,w,T,C,x){var R=S.done;d.resolve(S.value).then(function(O){w(f(O,R))},function(O){if(!R&&x)try{o(C,"throw",O)}catch(m){O=m}T(O)})},E=function(w){w.type=h,p(this,w)};return E.prototype=i(r(u),{next:function(){var w=y(this);return new d(function(T,C){var x=t(e(w.next,w.iterator));_(x,T,C,w.iterator,!0)})},return:function(){var S=y(this).iterator;return new d(function(w,T){var C=n(S,"return");if(C===void 0)return w(f(void 0,!0));var x=t(e(C,S));_(x,w,T,S)})}}),L0=E,L0}var N0,u6;function _ue(){if(u6)return N0;u6=1;var e=mr(),t=EQ(),r=Er(),n=Gf(),i=Ca(),a=la(),o=Br(),l=o("asyncIterator");return N0=function(u,f){var d=arguments.length<2?a(u,l):f;return d?r(e(d,u)):new t(i(n(u)))},N0}var M0,l6;function Eue(){if(l6)return M0;l6=1;var e=mr(),t=ln(),r=la();return M0=function(n,i,a,o){try{var l=r(n,"return");if(l)return t("Promise").resolve(e(l,n)).then(function(){i(a)},function(u){o(u)})}catch(u){return o(u)}i(a)},M0}var $0,c6;function Sue(){if(c6)return $0;c6=1;var e=mr(),t=cn(),r=Er(),n=qr(),i=gc(),a=ln(),o=Ca(),l=Eue(),u=function(f){var d=f===0,h=f===1,p=f===2,y=f===3;return function(_,E,S){r(_);var w=E!==void 0;(w||!d)&&t(E);var T=o(_),C=a("Promise"),x=T.iterator,R=T.next,O=0;return new C(function(m,D){var U=function(B){l(x,D,B,D)},K=function(){try{if(w)try{i(O)}catch(B){U(B)}C.resolve(r(e(R,x))).then(function(B){try{if(r(B).done)d?(S.length=O,m(S)):m(y?!1:p||void 0);else{var W=B.value;try{if(w){var Y=E(W,O),Q=function(ie){if(h)K();else if(p)ie?K():l(x,m,!1,D);else if(d)try{S[O++]=ie,K()}catch(ae){U(ae)}else ie?l(x,m,y||W,D):K()};n(Y)?C.resolve(Y).then(Q,U):Q(Y)}else S[O++]=W,K()}catch(ie){U(ie)}}}catch(ie){D(ie)}},D)}catch(B){D(B)}};K()})}};return $0={toArray:u(0),forEach:u(1),every:u(2),some:u(3),find:u(4)},$0}var F0,f6;function wue(){if(f6)return F0;f6=1;var e=Io(),t=Kt(),r=wn(),n=hc(),i=_ue(),a=Gf(),o=Ca(),l=vc(),u=la(),f=ln(),d=HX(),h=Br(),p=EQ(),y=Sue().toArray,_=h("asyncIterator"),E=t(d("Array","values")),S=t(E([]).next),w=function(){return new T(this)},T=function(C){this.iterator=E(C)};return T.prototype.next=function(){return S(this.iterator)},F0=function(x){var R=this,O=arguments.length,m=O>1?arguments[1]:void 0,D=O>2?arguments[2]:void 0;return new(f("Promise"))(function(U){var K=r(x);m!==void 0&&(m=e(m,D));var B=u(K,_),W=B?void 0:l(K)||w,Y=n(R)?new R:[],Q=B?i(K,B):new p(o(a(K,W)));U(y(Q,m,Y))})},F0}var d6;function bue(){if(d6)return a6;d6=1;var e=je(),t=wue(),r=Ht(),n=Array.fromAsync,i=!n||r(function(){var a=0;return n.call(function(){return a++,[]},{length:0}),a!==1});return e({target:"Array",stat:!0,forced:i},{fromAsync:t}),a6}var h6={},p6;function Tue(){if(p6)return h6;p6=1;var e=je(),t=Rr(),r=ln(),n=cn(),i=ko(),a=$n(),o=Tu(),l=Di(),u=Br(),f=Ei(),d=tQ(),h=Us(),p=r("Promise"),y=r("SuppressedError"),_=ReferenceError,E=u("asyncDispose"),S=u("toStringTag"),w="AsyncDisposableStack",T=f.set,C=f.getterFor(w),x="async-dispose",R="disposed",O="pending",m=function(B){var W=C(B);if(W.state===R)throw new _(w+" already disposed");return W},D=function(){T(i(this,U),{type:w,state:O,stack:[]}),t||(this.disposed=!1)},U=D.prototype;o(U,{disposeAsync:function(){var W=this;return new p(function(Y,Q){var ie=C(W);if(ie.state===R)return Y(void 0);ie.state=R,t||(W.disposed=!0);var ae=ie.stack,ve=ae.length,H=!1,J,z=function(we){H?J=new y(we,J):(H=!0,J=we),ue()},ue=function(){if(ve){var we=ae[--ve];ae[ve]=null;try{p.resolve(we()).then(ue,z)}catch(ke){z(ke)}}else ie.stack=null,H?Q(J):Y(void 0)};ue()})},use:function(W){return d(m(this),W,x),W},adopt:function(W,Y){var Q=m(this);return n(Y),d(Q,void 0,x,function(){return Y(W)}),W},defer:function(W){var Y=m(this);n(W),d(Y,void 0,x,W)},move:function(){var W=m(this),Y=new D;return C(Y).stack=W.stack,W.stack=[],W.state=R,t||(this.disposed=!0),Y}}),t&&l(U,"disposed",{configurable:!0,get:function(){return C(this).state===R}}),a(U,E,U.disposeAsync,{name:"disposeAsync"}),a(U,S,w,{nonWritable:!0});var K=h&&h<136;return e({global:!0,constructor:!0,forced:K},{AsyncDisposableStack:D}),h6}var v6={},g6;function Aue(){if(g6)return v6;g6=1;var e=mr(),t=$n(),r=ln(),n=la(),i=fn(),a=Br(),o=_Q(),l=a("asyncDispose"),u=r("Promise");return i(o,l)||t(o,l,function(){var f=this;return new u(function(d,h){var p=n(f,"return");p?u.resolve(e(p,f)).then(function(){d(void 0)},h):d(void 0)})}),v6}var m6={},y6;function Rue(){if(y6)return m6;y6=1;var e=je(),t=Po(),r=cn(),n=Er(),i=Ht(),a=!i(function(){Reflect.apply(function(){})});return e({target:"Reflect",stat:!0,forced:a},{apply:function(l,u,f){return t(r(l),u,n(f))}}),m6}var _6={},E6;function xue(){if(E6)return _6;E6=1;var e=je(),t=ln(),r=Po(),n=rQ(),i=aO(),a=Er(),o=qr(),l=da(),u=Ht(),f=t("Reflect","construct"),d=Object.prototype,h=[].push,p=u(function(){function E(){}return!(f(function(){},[],E)instanceof E)}),y=!u(function(){f(function(){})}),_=p||y;return e({target:"Reflect",stat:!0,forced:_,sham:_},{construct:function(S,w){i(S),a(w);var T=arguments.length<3?S:i(arguments[2]);if(y&&!p)return f(S,w,T);if(S===T){switch(w.length){case 0:return new S;case 1:return new S(w[0]);case 2:return new S(w[0],w[1]);case 3:return new S(w[0],w[1],w[2]);case 4:return new S(w[0],w[1],w[2],w[3])}var C=[null];return r(h,C,w),new(r(n,S,C))}var x=T.prototype,R=l(o(x)?x:d),O=r(S,R,w);return o(O)?O:R}}),_6}var S6={},w6;function Cue(){if(w6)return S6;w6=1;var e=je(),t=Rr(),r=Er(),n=sl(),i=ui(),a=Ht(),o=a(function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})});return e({target:"Reflect",stat:!0,forced:o,sham:!t},{defineProperty:function(u,f,d){r(u);var h=n(f);r(d);try{return i.f(u,h,d),!0}catch{return!1}}}),S6}var b6={},T6;function Oue(){if(T6)return b6;T6=1;var e=je(),t=Er(),r=ca().f;return e({target:"Reflect",stat:!0},{deleteProperty:function(i,a){var o=r(t(i),a);return o&&!o.configurable?!1:delete i[a]}}),b6}var A6={},j0,R6;function SQ(){if(R6)return j0;R6=1;var e=fn();return j0=function(t){return t!==void 0&&(e(t,"value")||e(t,"writable"))},j0}var x6;function Iue(){if(x6)return A6;x6=1;var e=je(),t=mr(),r=qr(),n=Er(),i=SQ(),a=ca(),o=Ha();function l(u,f){var d=arguments.length<3?u:arguments[2],h,p;if(n(u)===d)return u[f];if(h=a.f(u,f),h)return i(h)?h.value:h.get===void 0?void 0:t(h.get,d);if(r(p=o(u)))return l(p,f,d)}return e({target:"Reflect",stat:!0},{get:l}),A6}var C6={},O6;function Pue(){if(O6)return C6;O6=1;var e=je(),t=Rr(),r=Er(),n=ca();return e({target:"Reflect",stat:!0,sham:!t},{getOwnPropertyDescriptor:function(a,o){return n.f(r(a),o)}}),C6}var I6={},P6;function kue(){if(P6)return I6;P6=1;var e=je(),t=Er(),r=Ha(),n=HC();return e({target:"Reflect",stat:!0,sham:!n},{getPrototypeOf:function(a){return r(t(a))}}),I6}var k6={},D6;function Due(){if(D6)return k6;D6=1;var e=je();return e({target:"Reflect",stat:!0},{has:function(r,n){return n in r}}),k6}var L6={},N6;function Lue(){if(N6)return L6;N6=1;var e=je(),t=Er(),r=nO();return e({target:"Reflect",stat:!0},{isExtensible:function(i){return t(i),r(i)}}),L6}var M6={},$6;function Nue(){if($6)return M6;$6=1;var e=je(),t=FC();return e({target:"Reflect",stat:!0},{ownKeys:t}),M6}var F6={},j6;function Mue(){if(j6)return F6;j6=1;var e=je(),t=ln(),r=Er(),n=Jf();return e({target:"Reflect",stat:!0,sham:!n},{preventExtensions:function(a){r(a);try{var o=t("Object","preventExtensions");return o&&o(a),!0}catch{return!1}}}),F6}var U6={},q6;function $ue(){if(q6)return U6;q6=1;var e=je(),t=mr(),r=Er(),n=qr(),i=SQ(),a=Ht(),o=ui(),l=ca(),u=Ha(),f=xo();function d(p,y,_){var E=arguments.length<4?p:arguments[3],S=l.f(r(p),y),w,T,C;if(!S){if(n(T=u(p)))return d(T,y,_,E);S=f(0)}if(i(S)){if(S.writable===!1||!n(E))return!1;if(w=l.f(E,y)){if(w.get||w.set||w.writable===!1)return!1;w.value=_,o.f(E,y,w)}else o.f(E,y,f(0,_))}else{if(C=S.set,C===void 0)return!1;t(C,E,_)}return!0}var h=a(function(){var p=function(){},y=o.f(new p,"a",{configurable:!0});return Reflect.set(p.prototype,"a",1,y)!==!1});return e({target:"Reflect",stat:!0,forced:h},{set:d}),U6}var B6={},V6;function Fue(){if(V6)return B6;V6=1;var e=je(),t=Er(),r=IX(),n=_s();return n&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(a,o){t(a),r(o);try{return n(a,o),!0}catch{return!1}}}),B6}var H6={},z6;function jue(){if(z6)return H6;z6=1;var e=je(),t=Zt(),r=uo();return e({global:!0},{Reflect:{}}),r(t.Reflect,"Reflect",!0),H6}var W6={},U0,G6;function _m(){if(G6)return U0;G6=1;var e=qr(),t=Ra(),r=Br(),n=r("match");return U0=function(i){var a;return e(i)&&((a=i[n])!==void 0?!!a:t(i)==="RegExp")},U0}var q0,K6;function wQ(){if(K6)return q0;K6=1;var e=Zt(),t=Ht(),r=e.RegExp,n=!t(function(){var i=!0;try{r(".","d")}catch{i=!1}var a={},o="",l=i?"dgimsy":"gimsy",u=function(p,y){Object.defineProperty(a,p,{get:function(){return o+=y,!0}})},f={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};i&&(f.hasIndices="d");for(var d in f)u(d,f[d]);var h=Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(a);return h!==l||o!==l});return q0={correct:n},q0}var B0,Y6;function oO(){if(Y6)return B0;Y6=1;var e=Er();return B0=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},B0}var V0,X6;function _c(){if(X6)return V0;X6=1;var e=mr(),t=fn(),r=Va(),n=wQ(),i=oO(),a=RegExp.prototype;return V0=n.correct?function(o){return o.flags}:function(o){return!n.correct&&r(a,o)&&!t(o,"flags")?e(i,o):o.flags},V0}var H0,Q6;function Em(){if(Q6)return H0;Q6=1;var e=Ht(),t=Zt(),r=t.RegExp,n=e(function(){var o=r("a","y");return o.lastIndex=2,o.exec("abcd")!==null}),i=n||e(function(){return!r("a","y").sticky}),a=n||e(function(){var o=r("^r","gy");return o.lastIndex=2,o.exec("str")!==null});return H0={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:n},H0}var z0,J6;function sO(){if(J6)return z0;J6=1;var e=Ht(),t=Zt(),r=t.RegExp;return z0=e(function(){var n=r(".","s");return!(n.dotAll&&n.test(`
|
|
4
4
|
`)&&n.flags==="s")}),z0}var W0,Z6;function bQ(){if(Z6)return W0;Z6=1;var e=Ht(),t=Zt(),r=t.RegExp;return W0=e(function(){var n=r("(?<a>b)","g");return n.exec("b").groups.a!=="b"||"b".replace(n,"$<a>c")!=="bc"}),W0}var e4;function Uue(){if(e4)return W6;e4=1;var e=Rr(),t=Zt(),r=Kt(),n=jh(),i=pc(),a=fa(),o=da(),l=fc().f,u=Va(),f=_m(),d=Xr(),h=_c(),p=Em(),y=PX(),_=$n(),E=Ht(),S=fn(),w=Ei().enforce,T=Xf(),C=Br(),x=sO(),R=bQ(),O=C("match"),m=t.RegExp,D=m.prototype,U=t.SyntaxError,K=r(D.exec),B=r("".charAt),W=r("".replace),Y=r("".indexOf),Q=r("".slice),ie=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ae=/a/g,ve=/a/g,H=new m(ae)!==ae,J=p.MISSED_STICKY,z=p.UNSUPPORTED_Y,ue=e&&(!H||J||x||R||E(function(){return ve[O]=!1,m(ae)!==ae||m(ve)===ve||String(m(ae,"i"))!=="/a/i"})),we=function(q){for(var I=q.length,N=0,M="",Z=!1,L;N<=I;N++){if(L=B(q,N),L==="\\"){M+=L+B(q,++N);continue}!Z&&L==="."?M+="[\\s\\S]":(L==="["?Z=!0:L==="]"&&(Z=!1),M+=L)}return M},ke=function(q){for(var I=q.length,N=0,M="",Z=[],L=o(null),G=!1,pe=!1,ce=0,be="",_e;N<=I;N++){if(_e=B(q,N),_e==="\\")_e+=B(q,++N);else if(_e==="]")G=!1;else if(!G)switch(!0){case _e==="[":G=!0;break;case _e==="(":if(M+=_e,Q(q,N+1,N+3)==="?:")continue;K(ie,Q(q,N+1))&&(N+=2,pe=!0),ce++;continue;case(_e===">"&&pe):if(be===""||S(L,be))throw new U("Invalid capture group name");L[be]=!0,Z[Z.length]=[be,ce],pe=!1,be="";continue}pe?be+=_e:M+=_e}return[M,Z]};if(n("RegExp",ue)){for(var Be=function(I,N){var M=u(D,this),Z=f(I),L=N===void 0,G=[],pe=I,ce,be,_e,Ce,Me,fe;if(!M&&Z&&L&&I.constructor===Be)return I;if((Z||u(D,I))&&(I=I.source,L&&(N=h(pe))),I=I===void 0?"":d(I),N=N===void 0?"":d(N),pe=I,x&&"dotAll"in ae&&(be=!!N&&Y(N,"s")>-1,be&&(N=W(N,/s/g,""))),ce=N,J&&"sticky"in ae&&(_e=!!N&&Y(N,"y")>-1,_e&&z&&(N=W(N,/y/g,""))),R&&(Ce=ke(I),I=Ce[0],G=Ce[1]),Me=i(m(I,N),M?this:D,Be),(be||_e||G.length)&&(fe=w(Me),be&&(fe.dotAll=!0,fe.raw=Be(we(I),ce)),_e&&(fe.sticky=!0),G.length&&(fe.groups=G)),I!==pe)try{a(Me,"source",pe===""?"(?:)":pe)}catch{}return Me},nt=l(m),rt=0;nt.length>rt;)y(Be,m,nt[rt++]);D.constructor=Be,Be.prototype=D,_(t,"RegExp",Be,{constructor:!0})}return T("RegExp"),W6}var t4={},G0,r4;function Sm(){if(r4)return G0;r4=1;var e=TypeError;return G0=function(t){if(typeof t=="string")return t;throw new e("Argument is not a string")},G0}var n4;function que(){if(n4)return t4;n4=1;var e=je(),t=Kt(),r=Sm(),n=fn(),i=cm().start,a=Wh(),o=Array,l=RegExp.escape,u=t("".charAt),f=t("".charCodeAt),d=t(1.1.toString),h=t([].join),p=/^[0-9a-z]/i,y=/^[$()*+./?[\\\]^{|}]/,_=RegExp("^[!\"#%&',\\-:;<=>@`~"+a+"]"),E=t(p.exec),S={" ":"t","\n":"n","\v":"v","\f":"f","\r":"r"},w=function(C){var x=d(f(C,0),16);return x.length<3?"\\x"+i(x,2,"0"):"\\u"+i(x,4,"0")},T=!l||l("ab")!=="\\x61b";return e({target:"RegExp",stat:!0,forced:T},{escape:function(x){r(x);for(var R=x.length,O=o(R),m=0;m<R;m++){var D=u(x,m);if(m===0&&E(p,D))O[m]=w(D);else if(n(S,D))O[m]="\\"+S[D];else if(E(y,D))O[m]="\\"+D;else if(E(_,D))O[m]=w(D);else{var U=f(D,0);(U&63488)!==55296?O[m]=D:U>=56320||m+1>=R||(f(x,m+1)&64512)!==56320?O[m]=w(D):(O[m]=D,O[++m]=u(x,m))}}return h(O,"")}}),t4}var i4={},a4;function Bue(){if(a4)return i4;a4=1;var e=Rr(),t=sO(),r=Ra(),n=Di(),i=Ei().get,a=RegExp.prototype,o=TypeError;return e&&t&&n(a,"dotAll",{configurable:!0,get:function(){if(this!==a){if(r(this)==="RegExp")return!!i(this).dotAll;throw new o("Incompatible receiver, RegExp required")}}}),i4}var o4={},K0,s4;function uO(){if(s4)return K0;s4=1;var e=mr(),t=Kt(),r=Xr(),n=oO(),i=Em(),a=Bf(),o=da(),l=Ei().get,u=sO(),f=bQ(),d=a("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,p=h,y=t("".charAt),_=t("".indexOf),E=t("".replace),S=t("".slice),w=(function(){var R=/a/,O=/b*/g;return e(h,R,"a"),e(h,O,"a"),R.lastIndex!==0||O.lastIndex!==0})(),T=i.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0,x=w||C||T||u||f;return x&&(p=function(O){var m=this,D=l(m),U=r(O),K=D.raw,B,W,Y,Q,ie,ae,ve;if(K)return K.lastIndex=m.lastIndex,B=e(p,K,U),m.lastIndex=K.lastIndex,B;var H=D.groups,J=T&&m.sticky,z=e(n,m),ue=m.source,we=0,ke=U;if(J&&(z=E(z,"y",""),_(z,"g")===-1&&(z+="g"),ke=S(U,m.lastIndex),m.lastIndex>0&&(!m.multiline||m.multiline&&y(U,m.lastIndex-1)!==`
|
|
@@ -123,7 +123,7 @@ Error generating stack: `+V.message+`
|
|
|
123
123
|
*
|
|
124
124
|
* This source code is licensed under the MIT license found in the
|
|
125
125
|
* LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/var NG;function gwe(){if(NG)return zd;NG=1;var e=Ic(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(l,u,f){var d,h={},p=null,y=null;f!==void 0&&(p=""+f),u.key!==void 0&&(p=""+u.key),u.ref!==void 0&&(y=u.ref);for(d in u)n.call(u,d)&&!a.hasOwnProperty(d)&&(h[d]=u[d]);if(l&&l.defaultProps)for(d in u=l.defaultProps,u)h[d]===void 0&&(h[d]=u[d]);return{$$typeof:t,type:l,key:p,ref:y,props:h,_owner:i.current}}return zd.Fragment=r,zd.jsx=o,zd.jsxs=o,zd}var MG;function mwe(){return MG||(MG=1,FR.exports=gwe()),FR.exports}var de=mwe();class TI extends Aye{onShowAlert(t){if(!this.layoutOptions.options.alertRegion)return super.onShowAlert(t);const{ctor:r,collection:n}=t,i=n?n.toJSON():[],a=o=>Mr.Radio.channel(mn.ALERT).trigger("remove:alert",o);this.layout.showChildView(this.layoutOptions.options.alertRegion,de.jsx(r,{alerts:i,removeAlert:a}))}}var Yo=(e=>(e.Analytics="analytics",e.LibraryEditor="manage",e.Online="online",e.Primary="lite",e.Exchange="exchange_tv",e.StreamableLearning="streamable_learning",e))(Yo||{});const jR="shared.notFoundError";class pte extends iy{constructor(){super(Gr.getPhrase(jR,"title"))}get name(){return"NotFoundError"}get heading(){return Gr.getPhrase(jR,"heading")}get description(){return Gr.getPhrase(jR,"description")}}const un={CONTENT:"content",POPUP:"popup",ALERT:"alert",HIDDEN:"hidden"},hp={DEFAULT_LAYOUT:"DefaultLayout"},ki={DEFAULT:"default:application",EXCHANGE:"exchange:application",TV:"tv:application"},vte={getRandomInt(e=1e4){return Math.floor(Math.random()*Math.floor(e))}},Ao={debounce(e,t,r){return IZ(e,t,r)},throttle(e,t,r){return OZ(e,t,r)},isFunction(e){return rn(e)},useIdentity(){return Fm},memoize(e,t){return xZ(e,t)}};var jt=(e=>(e.Stream="cv_product_stream",e.WebPlayerStream="cv_product_webplayer_stream",e.StreamProgress="cv_product_stream_progress",e.PreviewStreamProgress="cv_product_preview_stream_progress",e.StreamBuffering="cv_product_stream_buffering",e.Login="cv_product_login",e.LoginSsoRedirect="cv_product_login_sso_redirect",e.LoginFailed="cv_product_login_failed",e.Search="cv_product_search",e.InstantSearch="cv_product_instant_search",e.SearchEmptyResult="cv_product_search_empty_result",e.Filter="cv_product_search_filter",e.SearchLanding="cv_product_search_landing",e.Share="cv_product_share",e.Unshare="cv_product_unshare",e.WorkspaceAdd="cv_product_tv_add",e.Rename="cv_product_rename",e.Move="cv_product_move",e.Sort="cv_product_sort",e.Create="cv_product_create",e.Delete="cv_product_delete",e.Associate="cv_product_associate",e.Dissociate="cv_product_dissociate",e.Edit="cv_product_edit",e.Approve="cv_product_approve",e.Reject="cv_product_reject",e.Disable="cv_product_disable",e.Upload="cv_product_upload",e.Download="cv_product_download",e.Navigate="cv_product_navigate",e.Click="cv_product_click",e.Suggest="cv_product_suggest",e.EditAssoc="cv_product_edit_assoc",e.Play="cv_product_play",e.Favourite="cv_product_favourite",e.Follow="cv_product_follow",e.Prefer="cv_product_prefer",e.Print="cv_product_print",e.Copy="cv_product_copy",e.Activate="cv_product_activate",e.VerifyEmail="cv_product_verify_email",e.ChangePassword="cv_product_change_password",e.ManageGroup="cv_product_manage_group",e.Export="cv_product_export",e.SendEmail="cv_product_send_email",e.Publish="cv_product_publish",e.Submit="cv_product_submit",e.Complete="cv_product_complete",e.Archive="cv_product_archive",e.Promote="cv_product_promote",e.Demote="cv_product_demote",e.BulkAction="cv_product_bulk_action",e.Remove="cv_product_remove",e.Dismiss="cv_product_dismiss",e.Open="cv_product_open",e.Hide="cv_product_hide",e.PageView="cv_product_page_view",e.Select="cv_product_select",e.SwitchCustomer="cv_product_switch_customer",e.Focus="cv_product_focus",e.Blur="cv_product_blur",e.Hover="cv_product_hover",e.Unhover="cv_product_unhover",e.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning",e))(jt||{}),kn=(e=>(e.Folder="folder",e.Video="video",e.Rating="rating",e.Series="series",e.Library="library",e.Resource="resource",e.Tag="tag",e.Subtitle="subtitle",e.Chapter="chapter",e.Resolution="resolution",e.PlaybackSpeed="playback_speed",e.Device="device",e.Restriction="restriction",e.Interactive="interactive",e.Interaction="interaction",e.PDF="pdf",e.CustomerSetting="customer_setting",e.UserSetting="user_setting",e.LibraryRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",e.Playlists="playlists",e.Person="person",e.Company="company",e.Classroom="classroom",e.ClassroomGroup="classroom_group",e.Classification="classification",e.ShareLink="share_link",e.DirectShare="direct_share",e.Upload="upload",e.SearchResults="search_results",e.SearchSuggestion="search_suggestion",e.Audience="audience",e.User="user",e.Clip="clip",e.UserChannel="user_channel",e.Widget="widget",e.Url="url",e.SocialShare="social_share",e.Presentation="presentation",e.BatchJob="batch_job",e.DeepLink="deep_link",e.Feedback="feedback",e.AppLink="app_link",e.SignUp="sign_up",e.FileGeneratorJob="file_generator_job",e.ExportLibraries="export_libraries",e.Product="product",e.Customer="customer",e.SpecialEvent="special_event",e.Region="region",e.ProductTip="product_tip",e.Livestream="livestream",e.DevicesCta="devices_cta",e.Integration="integration",e.Faq="faq",e.MixedMedia="mixed_media",e.TableOfContents="table_of_contents",e.Author="author",e.Glance="glance",e.Filter="filter",e.NotificationSetting="notification_setting",e.Transcript="transcript",e.CurriculumCode="curriculum_code",e.Assign="assign",e.PartnerProfile="partner_profile",e))(kn||{}),Ta=(e=>(e.TopNav="top_nav",e.LeftNav="left_nav",e.Footer="footer",e.Popup="popup",e.Banner="banner",e.VideoList="video_list",e.VideoListItem="video_list_item",e.VideoListHeader="video_header",e.VideoThumbnail="video_thumbnail",e.ExpandableVideoThumbnail="expandable_video_thumbnail",e.VideoItemPreview="video_item_preview",e.InteractiveItemPreview="interactive_item_preview",e.ClipItemPreview="clip_item_preview",e.VideoDetails="video_details",e.InteractiveDetails="interactive_details",e.ClipDetails="clip_details",e.VideoDetailsHeader="video_details_header",e.EditVideoDetails="edit_video_details",e.EditInteractiveVideoDetails="edit_interactive_video_details",e.EditClipDetails="edit_clip_details",e.EditVideoChapters="edit_video_chapters",e.EditVideoResources="edit_video_resources",e.PreviewVideoResources="preview_video_resources",e.VideoUpload="video_upload",e.VideoRequest="video_request",e.Pagination="pagination",e.LibraryHeader="library_header",e.LibraryTiles="library_tiles",e.LibraryRequestDetails="staff_request_details",e.Libraries="libraries",e.SubFolderList="sub_folder_list",e.AwaitingReviewVideoListHeader="awaiting_review_video_list_header",e.AwaitingReviewVideoItem="awaiting_review_video_item",e.PastReleasesHeader="past_releases_header",e.MigrationWarnings="migration_warnings",e.PlaylistListHeader="playlist_list_header",e.PlaylistListItem="playlist_list_item",e.SeriesListItem="series_list_item",e.SeriesWithVideos="series_with_videos",e.PlaylistWithVideos="playlist_with_videos",e.Dropdown="dropdown",e.ViewCurriculumLinks="view_curriculum_links",e.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",e.FeaturedSeriesSearchResult="featured_series_search_result",e.ExchangeSearchGroupItem="exchange_search_group_item",e.StaffManager="staff_manager",e.StaffManagerListItem="staff_manager_list_item",e.StudentManager="student_manager",e.ViewStudentVideos="view_student_videos",e.StudentManagerListItem="student_manager_list_item",e.EditUser="edit_user",e.UserAuditLog="user_audit_log",e.BulkUserActionsWizard="bulk_user_actions_wizard",e.BulkUserUploadWizard="bulk_user_upload_wizard",e.Classroom="classroom",e.ClassroomsList="classrooms_list",e.ClassroomsListItem="classrooms_list_item",e.ManageClassroomStudents="manage_classroom_students",e.ManageClassroomStudentListItem="manage_classroom_student_list_item",e.ManageClassroomGroups="manage_classroom_groups",e.ManageClassroomGroupListItem="manage_classroom_group_list_item",e.ManageClassroomTeachers="manage_classroom_teachers",e.ManageClassroomTeacherListItem="manage_classroom_teachers_list_item",e.ArchivedClassrooms="archived_classrooms",e.PreviewInteractive="preview_interactive",e.PreviewSharedInteractive="preview_shared_interactive",e.PreviewInteractiveQuestions="preview_interactive_questions",e.EditInteractive="edit_interactive",e.EditInteractiveDetails="edit_interactive_details",e.PlaySharedInteractive="play_shared_interactive",e.PlayInteractive="play_interactive",e.InteractiveListItem="interactive_list_item",e.DeleteInteractive="delete_interactive",e.NewInteractive="new_interactive",e.CopyInteractive="copy_interactive",e.UnpublishInteractive="unpublish_interactive",e.ShareInteractive="share_interactive",e.PlayPage="play_page",e.Player="player",e.FloatingPlayer="floating_player",e.InteractivePlayer="interactive_player",e.EmbeddedPlayer="embedded_player",e.CreateClipPlayer="create_clip_player",e.PlayClip="play_clip",e.PlaySharedClip="play_shared_clip",e.ClipListItem="clip_list_item",e.ContentUpdatesBanner="content_updates_banner",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.NotificationSettings="notification_settings",e.TopicsOnboarding="topics_onboarding",e.MyUploads="my_uploads",e.MyVideos="my_videos",e.SlidingList="sliding_list",e.HeroBannerItem="hero_banner_item",e.SlidingListItem="sliding_list_item",e.ClassificationListItem="classification_list_item",e.ClassificationComingSoon="classification_coming_soon",e.ClassificationHero="classification_hero",e.ClassificationFooter="classification_footer",e.Classification="classification",e.PresentationClassifications="presentation_classifications",e.Dashboard="dashboard",e.DiscoverFooter="discover_footer",e.ProductBanner="product_banner",e.UserOptions="user_options",e.MagicTabs="magic_tabs",e.Settings="settings",e.StudentFeed="student_feed",e.MyShares="my_shares",e.SharedByMe="shared_by_me",e.SharedWithMe="shared_with_me",e.Insights="insights",e.Error="error_view",e.UpgradeForm="upgrade_form",e.ClassroomGuide="classroom_guide",e.TeachingResources="teaching_resources",e.ResourcesGuidancePopup="resources_guidance_popup",e.InteractivesGuidancePopup="interactives_guidance_popup",e.CurriculumGuidancePopup="curriculum_guidance_popup",e.TopVideos="top_videos",e.VideoViewsList="video_views_list",e.VideoOverview="video_overview",e.StudentReachPopup="student_reach_popup",e.GiveFeedbackPopup="give_feedback_popup",e.LibraryRequestSettings="library_request_settings",e.OpenInAppPrompt="open_in_app_prompt",e.UseAppButton="use_app_button",e.Launchpad="launchpad",e.EditableSubjectPreferencesWidget="editable_subject_preferences_widget",e.ThumbnailHeroMediaWidget="thumbnail_hero_media_widget",e.ThumbnailFixedListMediaLargeWidget="thumbnail_fixed_list_media_large",e.FilterSlidingPillListSmallWidget="filter_sliding_pill_list_small",e.CircleLogoSlidingListWidget="circle_logo_sliding_list_widget",e.RectangularLogoSlidingListWidget="rectangular_logo_sliding_list_widget",e.HeroBannerSmallWidget="hero_banner_small",e.EventIconSlidingListWidget="event_icon_sliding_list_widget",e.OnboardingStepsWidget="onboarding_steps_widget",e.FaqQuestionWidget="faq_question_widget",e.FaqQuestionAccordionWidget="faq_question_accordion_widget",e.SubjectStatsWidgetItem="subject_stats_widget_item",e.AuthorReviewerWidget="author_reviewer_widget",e.ThumbnailFixedListMediaSmallWidget="thumbnail_fixed_list_media_small_widget",e.ThumbnailFixedListFolderSmallWidget="thumbnail_fixed_list_folder_small_widget",e.ThumbnailVerticalListWidget="thumbnail_vertical_list_widget",e.ThumbnailFixedListSmallWidget="thumbnail_fixed_list_small_widget",e.PosterFixedListLargeWidget="poster_fixed_list_large_widget",e.CurriculumResourcesAccordionWidget="curriculum_resources_accordion_widget",e.SearchCurriculumCodeWidget="search_curriculum_code_widget",e.ExchangeLinksWidget="exchange_links_widget",e.TableOfContents="table_of_contents",e.SignUpPopup="sign_up_popup",e.SignUpPage="sign_up_page",e.TrialBanner="trial_banner",e.InviteColleaguePopup="invite_colleague_popup",e.AuthProspectSelect="auth_prospect_select",e.GatedBanner="gated_banner",e.GatedEmptyState="gated_empty_state",e.GatedPopup="gated_popup",e.WelcomePopup="welcome_popup",e.WatchHistoryLanding="watch_history_landing",e.MyFavouritesLanding="my_favourites_landing",e.MyVideoLanding="my_videos_landing",e.PlaylistsLanding="playlists_landing",e.MySharesLanding="myshares_landing",e.PremiumFeatures="premium_features",e.NotificationsDropdown="notifications_dropdown",e.CalendarNav="calendar_nav",e.CalendarDay="calendar_day",e.CalendarPopup="calendar_popup",e.RegionMap="region_map",e.OnboardingWelcomeVideoScreen="onboarding_welcome_video_screen",e.OnboardingSelectRoleScreen="onboarding_select_role_screen",e.OnboardingUsageIntentionScreen="onboarding_usage_intention_screen",e.OnboardingSchoolLevelScreen="onboarding_school_level_screen",e.OnboardingSelectCurriculumScreen="onboarding_select_curriculum_screen",e.OnboardingSubjectsScreen="onboarding_subjects_screen",e.OnboardingSelectVideosScreen="onboarding_select_videos_screen",e.OnboardingCreatePlaylistScreen="onboarding_create_playlist_screen",e.OnboardingSubjectsSummaryScreen="onboarding_subjects_summary_screen",e.ProductTips="product_tips",e.LivestreamBookingForm="booking_form",e.DateRangeFilter="date_range_selector",e.AudienceFilter="audience_filter",e.AssignFlowView="assign_flow_view",e.Global="global",e))(Ta||{}),el=(e=>(e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard",e.Next="next",e.Back="back",e))(el||{}),Qx=(e=>(e.Single="single",e.Bulk="bulk",e.All="all",e))(Qx||{}),ywe=(e=>(e.Content="content",e.Quality="quality",e.Duration="duration",e.Reset="reset",e.DateRange="date_range",e.Audience="audience",e))(ywe||{}),_we=(e=>(e.Start="start",e.Finish="finish",e.Terminate="terminate",e.Play="play",e.Pause="pause",e.Playback="playback",e.NextChapter="next_chapter",e.PreviousChapter="previous_chapter",e.FullScreenEnter="full_screen_enter",e.FullScreenExit="full_screen_exit",e.ChangeResolution="change_resolution",e.ChangeSpeed="change_speed",e.ChangeDevice="change_device",e.EnableTheatreMode="enable_theatre_mode",e.DisableTheatreMode="disable_theatre_mode",e.ShowTranscript="show_transcript",e.HideTranscript="hide_transcript",e))(_we||{}),Ewe=(e=>(e.Embedded="embedded",e))(Ewe||{}),Yl=(e=>(e.TogglePreview="toggle_preview",e.NavigateHome="navigate_home",e.OpenInStaffView="open_in_staff_view",e.Title="title",e.ToggleHideValidListings="toggle_hide_valid_listings",e.LaunchImmersiveReader="launch_immersive_reader",e.CopyEmbedHtml="copy_embed_html",e.CopyRecommendationEmail="copy_recommendation_email",e.OpenRecommendationMailTo="open_recommendation_mail_to",e.Close="close",e.Open="open",e.Button="button",e.Link="link",e.Tile="tile",e.Thumbnail="thumbnail",e.Cover="cover",e.TallPoster="tall_poster",e.Banner="banner",e.Slide="slide",e.ExternalLink="external_link",e.ViewStudentWorkspace="view_student_workspace",e.Card="card",e.SelectAllUsers="select_all_users",e.ClickViewLogo="clickview_logo",e.Clear="clear",e.SeeMore="see_more",e.Settings="settings",e.Expand="expand",e.Collapse="collapse",e.Search="search",e))(Yl||{}),Swe=(e=>(e.FeatureUserChannelVideo="feature_user_channel_video",e.RemoveFromUserChannelPlaylist="remove_from_user_channel_playlist",e.ShareClip="share_clip",e.ViewOriginalVideo="view_original_video",e.ShareInteractive="share_interactive",e.DeleteInteractiveVideo="delete_interactive_video",e.CopyInteractiveVideo="copy_interactive_video",e.EditInteractiveVideo="edit_interactive_video",e.PrintAsWorksheet="print_as_worksheet",e.PreviewInteractiveVideo="preview_interactive_video",e.ViewResults="view_results",e.ViewInsights="view_insights",e.ViewUsage="view_usage",e.MoveToAnotherFolder="move_to_another_folder",e.CreateInteractiveVideo="create_interactive_video",e.ShareVideo="share_video",e.EditVideo="edit_video",e.DownloadVideo="download_video",e.AddToExchange="add_to_exchange",e.AddToUserChannel="add_to_user_channel",e.CreateClip="create_clip",e.FlagVideo="flag_video",e.AddToLibrary="add_to_library",e.AddToWorkspace="add_to_workspace",e.AddToPlaylist="add_to_playlist",e.RemoveFromPlaylist="remove_from_playlist",e.AddCurriculumLink="add_curriculum_link",e.ViewCurriculumLinks="view_curriculum_links",e.OpenInCurator="open_in_curator",e.ManageVideoAccess="manage_video_access",e.Approve="approve",e.AddToLocalCache="add_to_local_cache",e.OpenInLibraryEditor="open_in_library_editor",e.OpenInClickView="open_in_clickview",e.PlayClip="play_clip",e.EditClip="edit_clip",e.DeleteClip="delete_clip",e.EditVideoDetails="edit_video_details",e.DeleteVideo="delete_video",e.ManageAccess="manage_access",e.SuggestEdit="suggest_edit",e.RemoveFromWatchHistory="remove_from_watch_history",e.ShowTranscript="show_transcript",e.HideTranscript="hide_transcript",e.TranscriptTimepoint="transcript_timepoint",e))(Swe||{}),Jx=(e=>(e.FileSelect="file_select",e.DragDrop="drag_drop",e))(Jx||{}),wwe=(e=>(e.On="on",e.Off="off",e))(wwe||{}),Ch=(e=>(e.SignIn="sign_in",e.SignUp="sign_up",e.SignOut="sign_out",e.SwitchAccount="switch_account",e.TopNavButton="top_nav_button",e.Educator="educator",e.Student="student",e.TermsAndConditions="terms_and_conditions",e.PrivacyPolicy="privacy_policy",e.EnterEmail="enter_email",e.ClosePopup="close_popup",e.Back="back",e.UseMyLocation="use_my_location",e.TrialCreated="trial_created",e.TrialRequested="trial_requested",e.DeadEnd="dead_end",e.CantFindSchool="cant_find_school",e.ResendEmail="resend_email",e.ContactUs="contact_us",e.InviteColleague="invite_colleague",e.PremiumFeatures="premium_features",e.Upgrade="upgrade",e.FindSchool="find_school",e.AddToBraze="add_to_braze",e.RequestAccess="request_access",e.AutoJoin="auto_join",e.WrongEmail="wrong_email",e.RequestBdmTrial="request_bdm_trial",e.SkipIdpSelect="skip_idp_select",e))(Ch||{}),bwe=(e=>(e.RequestProgram="tv_request_program",e.AdFreeRequest="tv_ad_free_request",e.AddAdFreeVideo="tv_add_ad_free_video",e.AddFullVideo="tv_add_full_video",e.RegionSelect="tv_region_select",e))(bwe||{}),Twe=(e=>(e.MyVideos="search_source_my_videos",e.School="search_source_school",e.ExchangeArchive="search_source_exchange_archive",e.ClickView="search_source_clickview",e))(Twe||{}),Awe=(e=>(e.SearchTranscript="search_transcript",e.NextResult="next_result",e.PreviousResult="previous_result",e.ResetResults="reset_results",e))(Awe||{}),Zx=(e=>(e.FileSelect="file-select",e.DragDrop="drag-drop",e))(Zx||{}),Ku=(e=>(e.Video="videos",e.Clip="clips",e.Interactive="interactives",e.Folder="categories",e.Series="series",e.Tags="tags",e.Subjects="subjects",e))(Ku||{}),gte=(e=>(e[e.V1=1]="V1",e[e.V2=2]="V2",e[e.V3=3]="V3",e[e.V4=4]="V4",e[e.V5=5]="V5",e))(gte||{}),mte=(e=>(e.Staff="Staff",e.Learner="Learner",e.Unknown="Unknown",e.System="System",e))(mte||{}),AI=(e=>(e.Analytics="AnalyticsService",e.Context="ContextService",e.PageView="PageViewService",e.ProfileApiClient="ProfileApiClient",e))(AI||{});const Rwe=5;let xwe=class extends za{constructor(){super(...arguments),this.contextHistory=[]}get name(){return AI.Context}static get Instance(){return this.instance||(this.instance=new this)}initialize(){this.listenTo(mn.SHELL,En.ROUTE,this.setContext)}setContext(t){this.contextHistory.length>=Rwe&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:t})}getCurrentContext(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}fromPageLoad(){return this.contextHistory.length===1}};const yte=new xwe;var Cf=(e=>(e.Inlet="event:inlet",e.Outlet="event:outlet",e))(Cf||{});const _te={ANALYTICS:"global:analytics"},Cwe=gte.V2;class Owe{constructor(t,r,n,i){this.type=t,this.data=r,this.actionContext=n,this.eventVersion=i||Cwe}isType(t){return t===this.type}enrich(t,r){this.validateKey(t),this[t]=r}get(t){if(t&&this[t])return this[t]}validateKey(t){(t==="type"||t==="data")&&dr.throw(new Sn(`${t} is not a valid key`)),this[t]&&dr.throw(new Sn(`Event already contains an enrichment named ${t}`))}}const Iwe={log(e,t,r,n){Mr.Radio.channel(_te.ANALYTICS).trigger(Cf.Inlet,new Owe(e,t,r,n))}};function Pwe(){const{appLink:e}=yte.getCurrentContext();return rs(e)||dr.throw(new Sn("Applink does not exist. Check current context.")),Lwe(e.application)}function wv(e={}){const{location:t,entity:r,workflowPhase:n=null,descriptor:i=null}=e;return t||dr.throw(new Sn("location must be set.")),r||dr.throw(new Sn("entity must be set.")),{productArea:e.productArea??Pwe(),location:t,entity:r,descriptor:i,workflowPhase:n}}function kwe(e){return!!(dl(e)&&Ux(e,t=>rs(t))||rs(e))}function Dwe(){return Dn.GetCurrentPath()+Dn.GetCurrentQueryString()}function Lwe(e){return e.replace(":","-")}const Ba={logUserAction(e,t){if(!kwe(e)||!rs(t))return;const{userAction:r,action:n,eventVersion:i}=Ba.buildUserActionEvent(t);Iwe.log(r,e,n,i)},mergeOptions(e,t){return Array.isArray(t)||(t=[t]),io({},e,...t)},buildActionContext(e={}){return wv(e)},buildUserActionEvent(e={}){const{actionType:t,eventVersion:r}=e,n=t,i=wv(e);return{userAction:n,action:i,eventVersion:r}},buildCurrentLocation(){return Dwe()},buildSearchEvent(e,t){return{data:{query:e},action:wv({entity:kn.Video,location:Ta.SearchBar,descriptor:t})}},buildInstantSearchEvent(e,t,r){let n;r===Ku.Series&&(n=kn.Series),r===Ku.Folder&&(n=kn.Folder),r===Ku.Tags&&(n=kn.Tag),r===Ku.Video&&(n=kn.Video),r===Ku.Clip&&(n=kn.Clip),r===Ku.Interactive&&(n=kn.Interactive),r===Ku.Subjects&&(n=kn.Classification);const i={instant:{},query:e};return t.id&&(i.instant.selectedId=t.id),t.name&&(i.instant.selectedName=t.name),{data:i,action:wv({entity:n,location:Ta.SearchBar})}},mapInteractionType(e){switch(e){case Zx.DragDrop:return Jx.DragDrop;case Zx.FileSelect:return Jx.FileSelect;default:return}}},eC=Dr.forwardRef((e,t)=>{function r(i){if(e.onKeyDown)return e.onKeyDown(i);if(i.key===" "&&i.preventDefault(),i.key==="Enter"||i.key===" "){if(e.disabled||!e.onClick)return;n(i)}}function n(...i){if(!(e.disabled||!e.onClick))return e.onClick(...i)}return de.jsx("div",{...e,ref:t,role:"button",tabIndex:e.tabIndex||0,className:`${e.className?e.className:""} ${e.disabled?"":"cursor-pointer"}`,onKeyDown:r,onClick:n,style:e.style?e.style:{},children:e.children})}),Nwe="_appLink_1d1n3_1",Mwe={appLink:Nwe},Ro=Se.forwardRef((e,t)=>{const{appLink:r,appLinkOptions:n={},className:i,style:a,children:o,disabled:l,tag:u="a",preventFocus:f}=e;if(!r)return de.jsx("div",{ref:t,className:`${Mwe.appLink} ${i||""}`,style:a,children:o});const d=Ai.getHref(r,n)||void 0,p={onClick:y=>{var E;const _=y.metaKey||y.ctrlKey;_||y.preventDefault(),!l&&((E=e.onClick)==null||E.call(e,y),e.analyticsData&&e.analyticsOptions&&Ba.logUserAction({href:d,...e.analyticsData},e.analyticsOptions),!_&&(e.openInNewTab?Dn.PageLoad(d,!0):e.forcePageLoad?Dn.PageLoad(d):Ai.trigger(r,n)))},...u==="a"&&{href:d},...e.title?{title:e.title}:{},className:i,style:a,disabled:l,tabIndex:f?-1:0,id:e.id,"aria-label":e.ariaLabel,"aria-labelledby":e.labelledBy,ref:t,role:e.role};return u==="button"||!d?de.jsx(eC,{...p,children:o}):de.jsx(u,{...p,children:o})});function $we(...e){if(!e.length)return"";const t=e.filter(r=>!!r);return t.length?t.join(" "):""}var UR={exports:{}};/*!
|
|
126
|
+
*/var NG;function gwe(){if(NG)return zd;NG=1;var e=Ic(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(l,u,f){var d,h={},p=null,y=null;f!==void 0&&(p=""+f),u.key!==void 0&&(p=""+u.key),u.ref!==void 0&&(y=u.ref);for(d in u)n.call(u,d)&&!a.hasOwnProperty(d)&&(h[d]=u[d]);if(l&&l.defaultProps)for(d in u=l.defaultProps,u)h[d]===void 0&&(h[d]=u[d]);return{$$typeof:t,type:l,key:p,ref:y,props:h,_owner:i.current}}return zd.Fragment=r,zd.jsx=o,zd.jsxs=o,zd}var MG;function mwe(){return MG||(MG=1,FR.exports=gwe()),FR.exports}var de=mwe();class TI extends Aye{onShowAlert(t){if(!this.layoutOptions.options.alertRegion)return super.onShowAlert(t);const{ctor:r,collection:n}=t,i=n?n.toJSON():[],a=o=>Mr.Radio.channel(mn.ALERT).trigger("remove:alert",o);this.layout.showChildView(this.layoutOptions.options.alertRegion,de.jsx(r,{alerts:i,removeAlert:a}))}}var Yo=(e=>(e.Analytics="analytics",e.LibraryEditor="manage",e.Online="online",e.Primary="lite",e.Exchange="exchange_tv",e.StreamableLearning="streamable_learning",e))(Yo||{});const jR="shared.notFoundError";class pte extends iy{constructor(){super(Gr.getPhrase(jR,"title"))}get name(){return"NotFoundError"}get heading(){return Gr.getPhrase(jR,"heading")}get description(){return Gr.getPhrase(jR,"description")}}const un={CONTENT:"content",POPUP:"popup",ALERT:"alert",HIDDEN:"hidden"},hp={DEFAULT_LAYOUT:"DefaultLayout"},ki={DEFAULT:"default:application",EXCHANGE:"exchange:application",TV:"tv:application"},vte={getRandomInt(e=1e4){return Math.floor(Math.random()*Math.floor(e))}},Ao={debounce(e,t,r){return IZ(e,t,r)},throttle(e,t,r){return OZ(e,t,r)},isFunction(e){return rn(e)},useIdentity(){return Fm},memoize(e,t){return xZ(e,t)}};var jt=(e=>(e.Stream="cv_product_stream",e.WebPlayerStream="cv_product_webplayer_stream",e.StreamProgress="cv_product_stream_progress",e.PreviewStreamProgress="cv_product_preview_stream_progress",e.StreamBuffering="cv_product_stream_buffering",e.Login="cv_product_login",e.LoginSsoRedirect="cv_product_login_sso_redirect",e.LoginFailed="cv_product_login_failed",e.Search="cv_product_search",e.InstantSearch="cv_product_instant_search",e.SearchEmptyResult="cv_product_search_empty_result",e.Filter="cv_product_search_filter",e.SearchLanding="cv_product_search_landing",e.Share="cv_product_share",e.Unshare="cv_product_unshare",e.WorkspaceAdd="cv_product_tv_add",e.Rename="cv_product_rename",e.Move="cv_product_move",e.Sort="cv_product_sort",e.Create="cv_product_create",e.Delete="cv_product_delete",e.Associate="cv_product_associate",e.Dissociate="cv_product_dissociate",e.Edit="cv_product_edit",e.Approve="cv_product_approve",e.Reject="cv_product_reject",e.Disable="cv_product_disable",e.Upload="cv_product_upload",e.Download="cv_product_download",e.Navigate="cv_product_navigate",e.Click="cv_product_click",e.Suggest="cv_product_suggest",e.EditAssoc="cv_product_edit_assoc",e.Play="cv_product_play",e.Favourite="cv_product_favourite",e.Follow="cv_product_follow",e.Prefer="cv_product_prefer",e.Print="cv_product_print",e.Copy="cv_product_copy",e.Activate="cv_product_activate",e.VerifyEmail="cv_product_verify_email",e.ChangePassword="cv_product_change_password",e.ManageGroup="cv_product_manage_group",e.Export="cv_product_export",e.SendEmail="cv_product_send_email",e.Publish="cv_product_publish",e.Submit="cv_product_submit",e.Complete="cv_product_complete",e.Archive="cv_product_archive",e.Promote="cv_product_promote",e.Demote="cv_product_demote",e.BulkAction="cv_product_bulk_action",e.Remove="cv_product_remove",e.Dismiss="cv_product_dismiss",e.Open="cv_product_open",e.Hide="cv_product_hide",e.PageView="cv_product_page_view",e.Select="cv_product_select",e.SwitchCustomer="cv_product_switch_customer",e.Focus="cv_product_focus",e.Blur="cv_product_blur",e.Hover="cv_product_hover",e.Unhover="cv_product_unhover",e.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning",e))(jt||{}),kn=(e=>(e.Folder="folder",e.Video="video",e.Rating="rating",e.Series="series",e.Library="library",e.Resource="resource",e.Tag="tag",e.Subtitle="subtitle",e.Chapter="chapter",e.Resolution="resolution",e.PlaybackSpeed="playback_speed",e.Device="device",e.Restriction="restriction",e.Interactive="interactive",e.Interaction="interaction",e.PDF="pdf",e.CustomerSetting="customer_setting",e.UserSetting="user_setting",e.LibraryRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",e.Playlists="playlists",e.Person="person",e.Company="company",e.Classroom="classroom",e.ClassroomGroup="classroom_group",e.Classification="classification",e.ShareLink="share_link",e.DirectShare="direct_share",e.Upload="upload",e.SearchResults="search_results",e.SearchSuggestion="search_suggestion",e.Audience="audience",e.User="user",e.Clip="clip",e.UserChannel="user_channel",e.Widget="widget",e.Url="url",e.SocialShare="social_share",e.Presentation="presentation",e.BatchJob="batch_job",e.DeepLink="deep_link",e.Feedback="feedback",e.AppLink="app_link",e.SignUp="sign_up",e.FileGeneratorJob="file_generator_job",e.ExportLibraries="export_libraries",e.Product="product",e.Customer="customer",e.SpecialEvent="special_event",e.Region="region",e.ProductTip="product_tip",e.Livestream="livestream",e.DevicesCta="devices_cta",e.Integration="integration",e.Faq="faq",e.MixedMedia="mixed_media",e.TableOfContents="table_of_contents",e.Author="author",e.Glance="glance",e.Filter="filter",e.NotificationSetting="notification_setting",e.Transcript="transcript",e.CurriculumCode="curriculum_code",e.Assign="assign",e.PartnerProfile="partner_profile",e))(kn||{}),Ta=(e=>(e.TopNav="top_nav",e.LeftNav="left_nav",e.Footer="footer",e.Popup="popup",e.Banner="banner",e.VideoList="video_list",e.VideoListItem="video_list_item",e.VideoListHeader="video_header",e.VideoThumbnail="video_thumbnail",e.ExpandableVideoThumbnail="expandable_video_thumbnail",e.VideoItemPreview="video_item_preview",e.InteractiveItemPreview="interactive_item_preview",e.ClipItemPreview="clip_item_preview",e.VideoDetails="video_details",e.InteractiveDetails="interactive_details",e.ClipDetails="clip_details",e.VideoDetailsHeader="video_details_header",e.EditVideoDetails="edit_video_details",e.EditInteractiveVideoDetails="edit_interactive_video_details",e.EditClipDetails="edit_clip_details",e.EditVideoChapters="edit_video_chapters",e.EditVideoResources="edit_video_resources",e.PreviewVideoResources="preview_video_resources",e.VideoUpload="video_upload",e.VideoRequest="video_request",e.Pagination="pagination",e.LibraryHeader="library_header",e.LibraryTiles="library_tiles",e.LibraryRequestDetails="staff_request_details",e.Libraries="libraries",e.SubFolderList="sub_folder_list",e.AwaitingReviewVideoListHeader="awaiting_review_video_list_header",e.AwaitingReviewVideoItem="awaiting_review_video_item",e.PastReleasesHeader="past_releases_header",e.MigrationWarnings="migration_warnings",e.PlaylistListHeader="playlist_list_header",e.PlaylistListItem="playlist_list_item",e.SeriesListItem="series_list_item",e.SeriesWithVideos="series_with_videos",e.PlaylistWithVideos="playlist_with_videos",e.Dropdown="dropdown",e.ViewCurriculumLinks="view_curriculum_links",e.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",e.FeaturedSeriesSearchResult="featured_series_search_result",e.ExchangeSearchGroupItem="exchange_search_group_item",e.StaffManager="staff_manager",e.StaffManagerListItem="staff_manager_list_item",e.StudentManager="student_manager",e.ViewStudentVideos="view_student_videos",e.StudentManagerListItem="student_manager_list_item",e.EditUser="edit_user",e.UserAuditLog="user_audit_log",e.BulkUserActionsWizard="bulk_user_actions_wizard",e.BulkUserUploadWizard="bulk_user_upload_wizard",e.Classroom="classroom",e.ClassroomsList="classrooms_list",e.ClassroomsListItem="classrooms_list_item",e.ManageClassroomStudents="manage_classroom_students",e.ManageClassroomStudentListItem="manage_classroom_student_list_item",e.ManageClassroomGroups="manage_classroom_groups",e.ManageClassroomGroupListItem="manage_classroom_group_list_item",e.ManageClassroomTeachers="manage_classroom_teachers",e.ManageClassroomTeacherListItem="manage_classroom_teachers_list_item",e.ArchivedClassrooms="archived_classrooms",e.PreviewInteractive="preview_interactive",e.PreviewSharedInteractive="preview_shared_interactive",e.PreviewInteractiveQuestions="preview_interactive_questions",e.EditInteractive="edit_interactive",e.EditInteractiveDetails="edit_interactive_details",e.PlaySharedInteractive="play_shared_interactive",e.PlayInteractive="play_interactive",e.InteractiveListItem="interactive_list_item",e.DeleteInteractive="delete_interactive",e.NewInteractive="new_interactive",e.CopyInteractive="copy_interactive",e.UnpublishInteractive="unpublish_interactive",e.ShareInteractive="share_interactive",e.PlayPage="play_page",e.Player="player",e.FloatingPlayer="floating_player",e.InteractivePlayer="interactive_player",e.EmbeddedPlayer="embedded_player",e.CreateClipPlayer="create_clip_player",e.PlayClip="play_clip",e.PlaySharedClip="play_shared_clip",e.ClipListItem="clip_list_item",e.ContentUpdatesBanner="content_updates_banner",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.NotificationSettings="notification_settings",e.TopicsOnboarding="topics_onboarding",e.MyUploads="my_uploads",e.MyVideos="my_videos",e.SlidingList="sliding_list",e.HeroBannerItem="hero_banner_item",e.SlidingListItem="sliding_list_item",e.ClassificationListItem="classification_list_item",e.ClassificationComingSoon="classification_coming_soon",e.ClassificationHero="classification_hero",e.ClassificationFooter="classification_footer",e.Classification="classification",e.PresentationClassifications="presentation_classifications",e.Dashboard="dashboard",e.DiscoverFooter="discover_footer",e.ProductBanner="product_banner",e.UserOptions="user_options",e.MagicTabs="magic_tabs",e.Settings="settings",e.StudentFeed="student_feed",e.MyShares="my_shares",e.SharedByMe="shared_by_me",e.SharedWithMe="shared_with_me",e.Insights="insights",e.Error="error_view",e.UpgradeForm="upgrade_form",e.ClassroomGuide="classroom_guide",e.TeachingResources="teaching_resources",e.ResourcesGuidancePopup="resources_guidance_popup",e.InteractivesGuidancePopup="interactives_guidance_popup",e.CurriculumGuidancePopup="curriculum_guidance_popup",e.TopVideos="top_videos",e.VideoViewsList="video_views_list",e.VideoOverview="video_overview",e.StudentReachPopup="student_reach_popup",e.GiveFeedbackPopup="give_feedback_popup",e.LibraryRequestSettings="library_request_settings",e.OpenInAppPrompt="open_in_app_prompt",e.UseAppButton="use_app_button",e.Launchpad="launchpad",e.EditableSubjectPreferencesWidget="editable_subject_preferences_widget",e.ThumbnailHeroMediaWidget="thumbnail_hero_media_widget",e.ThumbnailFixedListMediaLargeWidget="thumbnail_fixed_list_media_large",e.FilterSlidingPillListSmallWidget="filter_sliding_pill_list_small",e.CircleLogoSlidingListWidget="circle_logo_sliding_list_widget",e.RectangularLogoSlidingListWidget="rectangular_logo_sliding_list_widget",e.HeroBannerSmallWidget="hero_banner_small",e.EventIconSlidingListWidget="event_icon_sliding_list_widget",e.OnboardingStepsWidget="onboarding_steps_widget",e.FaqQuestionWidget="faq_question_widget",e.FaqQuestionAccordionWidget="faq_question_accordion_widget",e.SubjectStatsWidgetItem="subject_stats_widget_item",e.AuthorReviewerWidget="author_reviewer_widget",e.ThumbnailFixedListMediaSmallWidget="thumbnail_fixed_list_media_small_widget",e.ThumbnailFixedListFolderSmallWidget="thumbnail_fixed_list_folder_small_widget",e.ThumbnailVerticalListWidget="thumbnail_vertical_list_widget",e.ThumbnailFixedListSmallWidget="thumbnail_fixed_list_small_widget",e.PosterFixedListLargeWidget="poster_fixed_list_large_widget",e.CurriculumResourcesAccordionWidget="curriculum_resources_accordion_widget",e.SearchCurriculumCodeWidget="search_curriculum_code_widget",e.ExchangeLinksWidget="exchange_links_widget",e.TableOfContents="table_of_contents",e.SignUpPopup="sign_up_popup",e.SignUpPage="sign_up_page",e.TrialBanner="trial_banner",e.InviteColleaguePopup="invite_colleague_popup",e.AuthProspectSelect="auth_prospect_select",e.GatedBanner="gated_banner",e.GatedEmptyState="gated_empty_state",e.GatedPopup="gated_popup",e.WelcomePopup="welcome_popup",e.WatchHistoryLanding="watch_history_landing",e.MyFavouritesLanding="my_favourites_landing",e.MyVideoLanding="my_videos_landing",e.PlaylistsLanding="playlists_landing",e.MySharesLanding="myshares_landing",e.PremiumFeatures="premium_features",e.NotificationsDropdown="notifications_dropdown",e.CalendarNav="calendar_nav",e.CalendarDay="calendar_day",e.CalendarPopup="calendar_popup",e.RegionMap="region_map",e.OnboardingWelcomeVideoScreen="onboarding_welcome_video_screen",e.OnboardingSelectRoleScreen="onboarding_select_role_screen",e.OnboardingUsageIntentionScreen="onboarding_usage_intention_screen",e.OnboardingSchoolLevelScreen="onboarding_school_level_screen",e.OnboardingSelectCurriculumScreen="onboarding_select_curriculum_screen",e.OnboardingSubjectsScreen="onboarding_subjects_screen",e.OnboardingSelectVideosScreen="onboarding_select_videos_screen",e.OnboardingCreatePlaylistScreen="onboarding_create_playlist_screen",e.OnboardingSubjectsSummaryScreen="onboarding_subjects_summary_screen",e.ProductTips="product_tips",e.LivestreamBookingForm="booking_form",e.DateRangeFilter="date_range_selector",e.AudienceFilter="audience_filter",e.AssignFlowView="assign_flow_view",e.ContentPartnerDashboard="content_partner_dashboard",e.ContentPartnerDashboardVideoBanner="content_partner_dashboard_video_banner",e.Global="global",e))(Ta||{}),el=(e=>(e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard",e.Next="next",e.Back="back",e))(el||{}),Qx=(e=>(e.Single="single",e.Bulk="bulk",e.All="all",e))(Qx||{}),ywe=(e=>(e.Content="content",e.Quality="quality",e.Duration="duration",e.Reset="reset",e.DateRange="date_range",e.Audience="audience",e))(ywe||{}),_we=(e=>(e.Start="start",e.Finish="finish",e.Terminate="terminate",e.Play="play",e.Pause="pause",e.Playback="playback",e.NextChapter="next_chapter",e.PreviousChapter="previous_chapter",e.FullScreenEnter="full_screen_enter",e.FullScreenExit="full_screen_exit",e.ChangeResolution="change_resolution",e.ChangeSpeed="change_speed",e.ChangeDevice="change_device",e.EnableTheatreMode="enable_theatre_mode",e.DisableTheatreMode="disable_theatre_mode",e.ShowTranscript="show_transcript",e.HideTranscript="hide_transcript",e))(_we||{}),Ewe=(e=>(e.Embedded="embedded",e))(Ewe||{}),Yl=(e=>(e.TogglePreview="toggle_preview",e.NavigateHome="navigate_home",e.OpenInStaffView="open_in_staff_view",e.Title="title",e.ToggleHideValidListings="toggle_hide_valid_listings",e.LaunchImmersiveReader="launch_immersive_reader",e.CopyEmbedHtml="copy_embed_html",e.CopyRecommendationEmail="copy_recommendation_email",e.OpenRecommendationMailTo="open_recommendation_mail_to",e.Close="close",e.Open="open",e.Button="button",e.Link="link",e.Tile="tile",e.Thumbnail="thumbnail",e.Cover="cover",e.TallPoster="tall_poster",e.Banner="banner",e.Slide="slide",e.ExternalLink="external_link",e.ViewStudentWorkspace="view_student_workspace",e.Card="card",e.SelectAllUsers="select_all_users",e.ClickViewLogo="clickview_logo",e.Clear="clear",e.SeeMore="see_more",e.Settings="settings",e.Expand="expand",e.Collapse="collapse",e.Search="search",e))(Yl||{}),Swe=(e=>(e.FeatureUserChannelVideo="feature_user_channel_video",e.RemoveFromUserChannelPlaylist="remove_from_user_channel_playlist",e.ShareClip="share_clip",e.ViewOriginalVideo="view_original_video",e.ShareInteractive="share_interactive",e.DeleteInteractiveVideo="delete_interactive_video",e.CopyInteractiveVideo="copy_interactive_video",e.EditInteractiveVideo="edit_interactive_video",e.PrintAsWorksheet="print_as_worksheet",e.PreviewInteractiveVideo="preview_interactive_video",e.ViewResults="view_results",e.ViewInsights="view_insights",e.ViewUsage="view_usage",e.MoveToAnotherFolder="move_to_another_folder",e.CreateInteractiveVideo="create_interactive_video",e.ShareVideo="share_video",e.EditVideo="edit_video",e.DownloadVideo="download_video",e.AddToExchange="add_to_exchange",e.AddToUserChannel="add_to_user_channel",e.CreateClip="create_clip",e.FlagVideo="flag_video",e.AddToLibrary="add_to_library",e.AddToWorkspace="add_to_workspace",e.AddToPlaylist="add_to_playlist",e.RemoveFromPlaylist="remove_from_playlist",e.AddCurriculumLink="add_curriculum_link",e.ViewCurriculumLinks="view_curriculum_links",e.OpenInCurator="open_in_curator",e.ManageVideoAccess="manage_video_access",e.Approve="approve",e.AddToLocalCache="add_to_local_cache",e.OpenInLibraryEditor="open_in_library_editor",e.OpenInClickView="open_in_clickview",e.PlayClip="play_clip",e.EditClip="edit_clip",e.DeleteClip="delete_clip",e.EditVideoDetails="edit_video_details",e.DeleteVideo="delete_video",e.ManageAccess="manage_access",e.SuggestEdit="suggest_edit",e.RemoveFromWatchHistory="remove_from_watch_history",e.ShowTranscript="show_transcript",e.HideTranscript="hide_transcript",e.TranscriptTimepoint="transcript_timepoint",e))(Swe||{}),Jx=(e=>(e.FileSelect="file_select",e.DragDrop="drag_drop",e))(Jx||{}),wwe=(e=>(e.On="on",e.Off="off",e))(wwe||{}),Ch=(e=>(e.SignIn="sign_in",e.SignUp="sign_up",e.SignOut="sign_out",e.SwitchAccount="switch_account",e.TopNavButton="top_nav_button",e.Educator="educator",e.Student="student",e.TermsAndConditions="terms_and_conditions",e.PrivacyPolicy="privacy_policy",e.EnterEmail="enter_email",e.ClosePopup="close_popup",e.Back="back",e.UseMyLocation="use_my_location",e.TrialCreated="trial_created",e.TrialRequested="trial_requested",e.DeadEnd="dead_end",e.CantFindSchool="cant_find_school",e.ResendEmail="resend_email",e.ContactUs="contact_us",e.InviteColleague="invite_colleague",e.PremiumFeatures="premium_features",e.Upgrade="upgrade",e.FindSchool="find_school",e.AddToBraze="add_to_braze",e.RequestAccess="request_access",e.AutoJoin="auto_join",e.WrongEmail="wrong_email",e.RequestBdmTrial="request_bdm_trial",e.SkipIdpSelect="skip_idp_select",e))(Ch||{}),bwe=(e=>(e.RequestProgram="tv_request_program",e.AdFreeRequest="tv_ad_free_request",e.AddAdFreeVideo="tv_add_ad_free_video",e.AddFullVideo="tv_add_full_video",e.RegionSelect="tv_region_select",e))(bwe||{}),Twe=(e=>(e.MyVideos="search_source_my_videos",e.School="search_source_school",e.ExchangeArchive="search_source_exchange_archive",e.ClickView="search_source_clickview",e))(Twe||{}),Awe=(e=>(e.SearchTranscript="search_transcript",e.NextResult="next_result",e.PreviousResult="previous_result",e.ResetResults="reset_results",e))(Awe||{}),Zx=(e=>(e.FileSelect="file-select",e.DragDrop="drag-drop",e))(Zx||{}),Ku=(e=>(e.Video="videos",e.Clip="clips",e.Interactive="interactives",e.Folder="categories",e.Series="series",e.Tags="tags",e.Subjects="subjects",e))(Ku||{}),gte=(e=>(e[e.V1=1]="V1",e[e.V2=2]="V2",e[e.V3=3]="V3",e[e.V4=4]="V4",e[e.V5=5]="V5",e))(gte||{}),mte=(e=>(e.Staff="Staff",e.Learner="Learner",e.Unknown="Unknown",e.System="System",e))(mte||{}),AI=(e=>(e.Analytics="AnalyticsService",e.Context="ContextService",e.PageView="PageViewService",e.ProfileApiClient="ProfileApiClient",e))(AI||{});const Rwe=5;let xwe=class extends za{constructor(){super(...arguments),this.contextHistory=[]}get name(){return AI.Context}static get Instance(){return this.instance||(this.instance=new this)}initialize(){this.listenTo(mn.SHELL,En.ROUTE,this.setContext)}setContext(t){this.contextHistory.length>=Rwe&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:t})}getCurrentContext(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}fromPageLoad(){return this.contextHistory.length===1}};const yte=new xwe;var Cf=(e=>(e.Inlet="event:inlet",e.Outlet="event:outlet",e))(Cf||{});const _te={ANALYTICS:"global:analytics"},Cwe=gte.V2;class Owe{constructor(t,r,n,i){this.type=t,this.data=r,this.actionContext=n,this.eventVersion=i||Cwe}isType(t){return t===this.type}enrich(t,r){this.validateKey(t),this[t]=r}get(t){if(t&&this[t])return this[t]}validateKey(t){(t==="type"||t==="data")&&dr.throw(new Sn(`${t} is not a valid key`)),this[t]&&dr.throw(new Sn(`Event already contains an enrichment named ${t}`))}}const Iwe={log(e,t,r,n){Mr.Radio.channel(_te.ANALYTICS).trigger(Cf.Inlet,new Owe(e,t,r,n))}};function Pwe(){const{appLink:e}=yte.getCurrentContext();return rs(e)||dr.throw(new Sn("Applink does not exist. Check current context.")),Lwe(e.application)}function wv(e={}){const{location:t,entity:r,workflowPhase:n=null,descriptor:i=null}=e;return t||dr.throw(new Sn("location must be set.")),r||dr.throw(new Sn("entity must be set.")),{productArea:e.productArea??Pwe(),location:t,entity:r,descriptor:i,workflowPhase:n}}function kwe(e){return!!(dl(e)&&Ux(e,t=>rs(t))||rs(e))}function Dwe(){return Dn.GetCurrentPath()+Dn.GetCurrentQueryString()}function Lwe(e){return e.replace(":","-")}const Ba={logUserAction(e,t){if(!kwe(e)||!rs(t))return;const{userAction:r,action:n,eventVersion:i}=Ba.buildUserActionEvent(t);Iwe.log(r,e,n,i)},mergeOptions(e,t){return Array.isArray(t)||(t=[t]),io({},e,...t)},buildActionContext(e={}){return wv(e)},buildUserActionEvent(e={}){const{actionType:t,eventVersion:r}=e,n=t,i=wv(e);return{userAction:n,action:i,eventVersion:r}},buildCurrentLocation(){return Dwe()},buildSearchEvent(e,t){return{data:{query:e},action:wv({entity:kn.Video,location:Ta.SearchBar,descriptor:t})}},buildInstantSearchEvent(e,t,r){let n;r===Ku.Series&&(n=kn.Series),r===Ku.Folder&&(n=kn.Folder),r===Ku.Tags&&(n=kn.Tag),r===Ku.Video&&(n=kn.Video),r===Ku.Clip&&(n=kn.Clip),r===Ku.Interactive&&(n=kn.Interactive),r===Ku.Subjects&&(n=kn.Classification);const i={instant:{},query:e};return t.id&&(i.instant.selectedId=t.id),t.name&&(i.instant.selectedName=t.name),{data:i,action:wv({entity:n,location:Ta.SearchBar})}},mapInteractionType(e){switch(e){case Zx.DragDrop:return Jx.DragDrop;case Zx.FileSelect:return Jx.FileSelect;default:return}}},eC=Dr.forwardRef((e,t)=>{function r(i){if(e.onKeyDown)return e.onKeyDown(i);if(i.key===" "&&i.preventDefault(),i.key==="Enter"||i.key===" "){if(e.disabled||!e.onClick)return;n(i)}}function n(...i){if(!(e.disabled||!e.onClick))return e.onClick(...i)}return de.jsx("div",{...e,ref:t,role:"button",tabIndex:e.tabIndex||0,className:`${e.className?e.className:""} ${e.disabled?"":"cursor-pointer"}`,onKeyDown:r,onClick:n,style:e.style?e.style:{},children:e.children})}),Nwe="_appLink_1d1n3_1",Mwe={appLink:Nwe},Ro=Se.forwardRef((e,t)=>{const{appLink:r,appLinkOptions:n={},className:i,style:a,children:o,disabled:l,tag:u="a",preventFocus:f}=e;if(!r)return de.jsx("div",{ref:t,className:`${Mwe.appLink} ${i||""}`,style:a,children:o});const d=Ai.getHref(r,n)||void 0,p={onClick:y=>{var E;const _=y.metaKey||y.ctrlKey;_||y.preventDefault(),!l&&((E=e.onClick)==null||E.call(e,y),e.analyticsData&&e.analyticsOptions&&Ba.logUserAction({href:d,...e.analyticsData},e.analyticsOptions),!_&&(e.openInNewTab?Dn.PageLoad(d,!0):e.forcePageLoad?Dn.PageLoad(d):Ai.trigger(r,n)))},...u==="a"&&{href:d},...e.title?{title:e.title}:{},className:i,style:a,disabled:l,tabIndex:f?-1:0,id:e.id,"aria-label":e.ariaLabel,"aria-labelledby":e.labelledBy,ref:t,role:e.role};return u==="button"||!d?de.jsx(eC,{...p,children:o}):de.jsx(u,{...p,children:o})});function $we(...e){if(!e.length)return"";const t=e.filter(r=>!!r);return t.length?t.join(" "):""}var UR={exports:{}};/*!
|
|
127
127
|
Copyright (c) 2018 Jed Watson.
|
|
128
128
|
Licensed under the MIT License (MIT), see
|
|
129
129
|
http://jedwatson.github.io/classnames
|
|
@@ -208,12 +208,12 @@ ${t}</tr>
|
|
|
208
208
|
`}tablecell(t){const r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
|
|
209
209
|
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Ps(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:n}){const i=this.parser.parseInline(n),a=LK(t);if(a===null)return i;t=a;let o='<a href="'+t+'"';return r&&(o+=' title="'+Ps(r)+'"'),o+=">"+i+"</a>",o}image({href:t,title:r,text:n}){const i=LK(t);if(i===null)return Ps(n);t=i;let a=`<img src="${t}" alt="${n}"`;return r&&(a+=` title="${Ps(r)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Ps(t.text)}}class YI{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class Jo{constructor(t){Rn(this,"options");Rn(this,"renderer");Rn(this,"textRenderer");this.options=t||kc,this.options.renderer=this.options.renderer||new $g,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new YI}static parse(t,r){return new Jo(r).parse(t)}static parseInline(t,r){return new Jo(r).parseInline(t)}parse(t,r=!0){var i,a;let n="";for(let o=0;o<t.length;o++){const l=t[o];if((a=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&a[l.type]){const f=l,d=this.options.extensions.renderers[f.type].call({parser:this},f);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(f.type)){n+=d||"";continue}}const u=l;switch(u.type){case"space":{n+=this.renderer.space(u);continue}case"hr":{n+=this.renderer.hr(u);continue}case"heading":{n+=this.renderer.heading(u);continue}case"code":{n+=this.renderer.code(u);continue}case"table":{n+=this.renderer.table(u);continue}case"blockquote":{n+=this.renderer.blockquote(u);continue}case"list":{n+=this.renderer.list(u);continue}case"html":{n+=this.renderer.html(u);continue}case"paragraph":{n+=this.renderer.paragraph(u);continue}case"text":{let f=u,d=this.renderer.text(f);for(;o+1<t.length&&t[o+1].type==="text";)f=t[++o],d+=`
|
|
210
210
|
`+this.renderer.text(f);r?n+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):n+=d;continue}default:{const f='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}parseInline(t,r=this.renderer){var i,a;let n="";for(let o=0;o<t.length;o++){const l=t[o];if((a=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&a[l.type]){const f=this.options.extensions.renderers[l.type].call({parser:this},l);if(f!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){n+=f||"";continue}}const u=l;switch(u.type){case"escape":{n+=r.text(u);break}case"html":{n+=r.html(u);break}case"link":{n+=r.link(u);break}case"image":{n+=r.image(u);break}case"strong":{n+=r.strong(u);break}case"em":{n+=r.em(u);break}case"codespan":{n+=r.codespan(u);break}case"br":{n+=r.br(u);break}case"del":{n+=r.del(u);break}case"text":{n+=r.text(u);break}default:{const f='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}}class hh{constructor(t){Rn(this,"options");Rn(this,"block");this.options=t||kc}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Qo.lex:Qo.lexInline}provideParser(){return this.block?Jo.parse:Jo.parseInline}}Rn(hh,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Vre{constructor(...t){Rn(this,"defaults",BI());Rn(this,"options",this.setOptions);Rn(this,"parse",this.parseMarkdown(!0));Rn(this,"parseInline",this.parseMarkdown(!1));Rn(this,"Parser",Jo);Rn(this,"Renderer",$g);Rn(this,"TextRenderer",YI);Rn(this,"Lexer",Qo);Rn(this,"Tokenizer",Mg);Rn(this,"Hooks",hh);this.use(...t)}walkTokens(t,r){var i,a;let n=[];for(const o of t)switch(n=n.concat(r.call(this,o)),o.type){case"table":{const l=o;for(const u of l.header)n=n.concat(this.walkTokens(u.tokens,r));for(const u of l.rows)for(const f of u)n=n.concat(this.walkTokens(f.tokens,r));break}case"list":{const l=o;n=n.concat(this.walkTokens(l.items,r));break}default:{const l=o;(a=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&a[l.type]?this.defaults.extensions.childTokens[l.type].forEach(u=>{const f=l[u].flat(1/0);n=n.concat(this.walkTokens(f,r))}):l.tokens&&(n=n.concat(this.walkTokens(l.tokens,r)))}}return n}use(...t){const r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{const i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){const o=r.renderers[a.name];o?r.renderers[a.name]=function(...l){let u=a.renderer.apply(this,l);return u===!1&&(u=o.apply(this,l)),u}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=r[a.level];o?o.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){const a=this.defaults.renderer||new $g(this.defaults);for(const o in n.renderer){if(!(o in a))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const l=o,u=n.renderer[l],f=a[l];a[l]=(...d)=>{let h=u.apply(a,d);return h===!1&&(h=f.apply(a,d)),h||""}}i.renderer=a}if(n.tokenizer){const a=this.defaults.tokenizer||new Mg(this.defaults);for(const o in n.tokenizer){if(!(o in a))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const l=o,u=n.tokenizer[l],f=a[l];a[l]=(...d)=>{let h=u.apply(a,d);return h===!1&&(h=f.apply(a,d)),h}}i.tokenizer=a}if(n.hooks){const a=this.defaults.hooks||new hh;for(const o in n.hooks){if(!(o in a))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const l=o,u=n.hooks[l],f=a[l];hh.passThroughHooks.has(o)?a[l]=d=>{if(this.defaults.async)return Promise.resolve(u.call(a,d)).then(p=>f.call(a,p));const h=u.call(a,d);return f.call(a,h)}:a[l]=(...d)=>{let h=u.apply(a,d);return h===!1&&(h=f.apply(a,d)),h}}i.hooks=a}if(n.walkTokens){const a=this.defaults.walkTokens,o=n.walkTokens;i.walkTokens=function(l){let u=[];return u.push(o.call(this,l)),a&&(u=u.concat(a.call(this,l))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Qo.lex(t,r??this.defaults)}parser(t,r){return Jo.parse(t,r??this.defaults)}parseMarkdown(t){return(n,i)=>{const a={...i},o={...this.defaults,...a},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&a.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=t);const u=o.hooks?o.hooks.provideLexer():t?Qo.lex:Qo.lexInline,f=o.hooks?o.hooks.provideParser():t?Jo.parse:Jo.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then(d=>u(d,o)).then(d=>o.hooks?o.hooks.processAllTokens(d):d).then(d=>o.walkTokens?Promise.all(this.walkTokens(d,o.walkTokens)).then(()=>d):d).then(d=>f(d,o)).then(d=>o.hooks?o.hooks.postprocess(d):d).catch(l);try{o.hooks&&(n=o.hooks.preprocess(n));let d=u(n,o);o.hooks&&(d=o.hooks.processAllTokens(d)),o.walkTokens&&this.walkTokens(d,o.walkTokens);let h=f(d,o);return o.hooks&&(h=o.hooks.postprocess(h)),h}catch(d){return l(d)}}}onError(t,r){return n=>{if(n.message+=`
|
|
211
|
-
Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+Ps(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}}const sc=new Vre;function zn(e,t){return sc.parse(e,t)}zn.options=zn.setOptions=function(e){return sc.setOptions(e),zn.defaults=sc.defaults,kre(zn.defaults),zn};zn.getDefaults=BI;zn.defaults=kc;zn.use=function(...e){return sc.use(...e),zn.defaults=sc.defaults,kre(zn.defaults),zn};zn.walkTokens=function(e,t){return sc.walkTokens(e,t)};zn.parseInline=sc.parseInline;zn.Parser=Jo;zn.parser=Jo.parse;zn.Renderer=$g;zn.TextRenderer=YI;zn.Lexer=Qo;zn.lexer=Qo.lex;zn.Tokenizer=Mg;zn.Hooks=hh;zn.parse=zn;zn.options;zn.setOptions;zn.use;zn.walkTokens;zn.parseInline;Jo.parse;Qo.lex;const pAe="_container_1hbtl_1",vAe={container:pAe},$K="markdown-link",yC=new Vre;let Qd;const FK=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,gAe=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;yC.use({breaks:!0,async:!0,extensions:[{name:"inlineKatex",level:"inline",start:e=>{let t,r=e;for(;r;){if(t=r.indexOf("$"),t===-1)return;if((t===0||r.charAt(t-1)===" ")&&r.substring(t).match(FK))return t;r=r.substring(t+1).replace(/^\$+/,"")}},tokenizer:e=>{const t=e.match(FK);if(t)return{type:"inlineKatex",raw:t[0],text:t[2].trim(),displayMode:t[1].length===2}},renderer:e=>Qd?Qd.renderToString(e.text,{displayMode:e.displayMode}):e.text},{name:"blockKatex",level:"block",tokenizer:e=>{const t=e.match(gAe);if(t)return{type:"blockKatex",raw:t[0],text:t[2].trim(),displayMode:t[1].length===2}},renderer:e=>Qd?Qd.renderToString(e.text,{displayMode:e.displayMode}):e.text},{start:e=>e.indexOf("^"),name:"superscript",level:"inline",tokenizer:e=>{const t=e.match(/^\^([^\^]+?)\^/);if(t)return{type:"superscript",raw:t[0],text:t[1]}},renderer:e=>`<sup>${e.text}</sup>`},{name:"subscript",level:"inline",start:e=>e.indexOf("~"),tokenizer:e=>{const t=e.match(/^\~([^\~]+?)\~/);if(t)return{type:"subscript",raw:t[0],text:t[1]}},renderer:e=>`<sub>${e.text}</sub>`}],walkTokens:async e=>{if(e.type==="inlineKatex"||e.type==="blockKatex"){const{katex:t}=await Hn(async()=>{const{katex:r}=await import("./Cmu1J2M7.chunk.js");return{katex:r}},__vite__mapDeps([0,1]));Qd=t}}});const Hre={isLink(e){return e.classList.contains($K)},async parse(e,t){if(!e)return"";const r=await yC.parse(e,{renderer:Hre.getRenderer(t)});return Xx.sanitize(r)},async toPlainText(e){if(!e)return"";const t=await this.parse(e,{focusableLinks:!1});return Xx.sanitize(t,{ALLOWED_TAGS:[],KEEP_CONTENT:!0}).replace(/\s+/g," ").trim()},getRenderer(e){const t=new yC.Renderer;return t.heading=({text:r,depth:n})=>`<h${n} class="${{1:"h1",2:"h2",3:"h6",4:"h6",5:"h6",6:"h6"}[n]}">${r}</h${n}>`,t.link=({href:r,text:n})=>{const i=e.focusableLinks?'tabIndex="0"':'tabIndex="-1"';return`<a href="${r}" target="_blank" class="info-link ${$K}" ${i}>${n}</a>`},t},getContainerClass(){return vAe.container}},mAe="shared.shared-utils",Fg=Gr.encloseNamespace(mAe),yAe=70,ax=160,_Ae=/^(.*)\s/,jK="pageTitle",UK="pageDescription",ox="YYYY-MM-DD",df={AU:"au",ENGLAND:"gb",US:"us"},EAe={[df.AU]:Ml.AU,[df.ENGLAND]:Ml.UK,[df.US]:Ml.US,[Ml.AU]:df.AU,[Ml.UK]:df.ENGLAND,[Ml.US]:df.US};function qK(e){return e?e.substring(0,e.length-3)+"...":""}function SAe(e,t){return e?e.substring(0,t):""}function wAe(e,t,r){if(!e)return"";const n=t-r;if(e.length<=n)return e;const i=e.slice(0,n),a=i.match(_Ae);return a?a[1]:i}function Wu({title:e,phraseContext:t,product:r}){var a;if(!e)return"";if(!t)return Fg(jK,{title:e,product:r});const n=((a=t.phraseHandler(t.titlePhrase,{value:""}))==null?void 0:a.length)??0,i=yAe-n;return e.length>=i?Fg(jK,{title:e,product:r}):t.phraseHandler(t.titlePhrase,{title:e})}function Gu({title:e,description:t,phraseContext:r}){var u,f;const n=qK(SAe(t||e,ax));if(!r)return Fg(UK,{description:n});const i=((u=r.phraseHandler(r.descriptionPhrase,{title:"",description:""}))==null?void 0:u.length)??0,a=ax-i;if((e==null?void 0:e.length)>=a)return Fg(UK,{description:n});const o=((f=r.phraseHandler(r.descriptionPhrase,{title:e,description:""}))==null?void 0:f.length)??0,l=qK(wAe(t,ax,o));return r.phraseHandler(r.descriptionPhrase,{title:e,description:l})}function bAe(e,t){return(e==null?void 0:e.reduce((r,n)=>{var a,o;const i=(a=EAe[n.contentRegion])==null?void 0:a.toUpperCase();return((o=n.id)==null?void 0:o.toString())!==(t==null?void 0:t.toString())||!i?r:[...r,{"@type":"Place",name:i}]},[]))??[]}function TAe(e,t){const r=e!=null&&e.datePublished?Jl.format(e==null?void 0:e.datePublished,ox):Jl.format(e==null?void 0:e.dateCreated,ox),n=t!=null&&t.dateModified?Jl.format(t==null?void 0:t.dateModified,ox):"";return{"@context":"https://schema.org","@type":"WebPage",name:e==null?void 0:e.name,description:e==null?void 0:e.description,url:DTe.getCanonicalLink(),publisher:{"@type":"Organization",name:"ClickView"},datePublished:r,dateModified:n}}function AAe(e,t,r){var n;return{"@context":"https://schema.org","@type":"VideoObject",mainEntityOfPage:{"@type":"WebPage","@id":t},name:e==null?void 0:e.name,description:e==null?void 0:e.description,thumbnailUrl:(n=e==null?void 0:e.thumbnail)==null?void 0:n.url,uploadDate:e==null?void 0:e.dateCreated,duration:Jl.getDurationISOString(e==null?void 0:e.duration,"milliseconds"),hasPart:[{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:`.${ix.GLOBAL_PLAYER_SELECTOR}`},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:`.${ix.RESOURCE_ITEM_SELECTOR}`},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:`.${ix.WELCOME_POPUP_SELECTOR}`}],requiresSubscription:!0,isAccessibleForFree:!1,regionsAllowed:bAe(r,e==null?void 0:e.id),potentialAction:{"@type":"WatchAction",actionAccessibilityRequirement:{"@type":"ActionAccessSpecification",requiresSubscription:!0}}}}async function RAe(e,t){const r=[];for(const i of e){const a=await Hre.toPlainText(i.answer);r.push({"@type":"Question",name:i.question,acceptedAnswer:{"@type":"Answer",text:a}})}const n={"@context":"https://schema.org","@type":"FAQPage",mainEntity:r};return t&&(n.name=t),n}let Is="ClickView";const xAe={setProduct(e){Is=e},getDefaultMetadata(e){const{title:t,description:r,canonicalLink:n,phraseContext:i,allowIndexing:a,hrefLang:o,product:l,preload:u}=e;return{title:Wu({title:t,phraseContext:i,product:l||Is}),description:Gu({title:t,description:r,phraseContext:i}),canonicalLink:n,allowIndexing:a,hrefLang:o,preload:u,_helperUsed:!0}},getVideoMetadata(e){const{content:t,canonicalLink:r,phraseContext:n,allowIndexing:i,hrefLang:a,regionAlternatives:o,product:l}=e;return{title:Wu({title:t==null?void 0:t.name,phraseContext:n,product:l||Is}),description:Gu({title:t==null?void 0:t.name,description:t==null?void 0:t.description,phraseContext:n}),jsonLd:AAe(t,r,o),canonicalLink:r,allowIndexing:i,hrefLang:a,_helperUsed:!0}},getClipMetadata(e){var o;const{content:t,canonicalLink:r,phraseContext:n,allowIndexing:i,product:a}=e;return{title:Wu({title:t==null?void 0:t.name,phraseContext:n,product:a||Is}),description:Gu({title:t==null?void 0:t.name,description:(t==null?void 0:t.description)||((o=t==null?void 0:t._parentVideo)==null?void 0:o.description),phraseContext:n}),canonicalLink:r,allowIndexing:i}},getInteractiveMetadata(e){var o;const{content:t,canonicalLink:r,phraseContext:n,allowIndexing:i,product:a}=e;return{title:Wu({title:t==null?void 0:t.name,phraseContext:n,product:a||Is}),description:Gu({title:t==null?void 0:t.name,description:(t==null?void 0:t.description)||((o=t==null?void 0:t._parentVideo)==null?void 0:o.description),phraseContext:n}),canonicalLink:r,allowIndexing:i,_helperUsed:!0}},getPlaylistMetadata(e){const{content:t,canonicalLink:r,phraseContext:n,allowIndexing:i,product:a}=e;return{title:Wu({title:t==null?void 0:t.name,phraseContext:n,product:a||Is}),description:Gu({title:t==null?void 0:t.name,phraseContext:n}),canonicalLink:r,allowIndexing:i,_helperUsed:!0}},getSeriesMetadata(e){const{content:t,canonicalLink:r,phraseContext:n,allowIndexing:i,product:a}=e;return{title:Wu({title:t==null?void 0:t.name,phraseContext:n,product:a||Is}),description:Gu({title:t==null?void 0:t.name,description:t==null?void 0:t.description,phraseContext:n}),canonicalLink:r,allowIndexing:i,_helperUsed:!0}},getClassificationMetadata(e){const{content:{classification:t,dashboard:r},canonicalLink:n,phraseContext:i,allowIndexing:a,hrefLang:o,product:l}=e;function u(){var d,h,p,y;return(h=(d=t==null?void 0:t.externalMetadata)==null?void 0:d.seo)!=null&&h.title?`${(y=(p=t.externalMetadata)==null?void 0:p.seo)==null?void 0:y.title} | ${l||Is}`:Wu({title:t==null?void 0:t.name,phraseContext:i,product:l||Is})}function f(){var d,h,p,y;return(h=(d=t==null?void 0:t.externalMetadata)==null?void 0:d.seo)!=null&&h.description?(y=(p=t.externalMetadata)==null?void 0:p.seo)==null?void 0:y.description:Gu({title:t==null?void 0:t.name,phraseContext:i})}return{title:u(),description:f(),canonicalLink:n,allowIndexing:a,jsonLd:r&&TAe(t,r),hrefLang:o,_helperUsed:!0}},getDiscoverMetadata(e){const{content:t,canonicalLink:r,phraseContext:n,allowIndexing:i,hrefLang:a,product:o}=e;return{title:Wu({title:t==null?void 0:t.name,phraseContext:n,product:o||Is}),description:Gu({title:t==null?void 0:t.name,phraseContext:n}),canonicalLink:r,allowIndexing:i,hrefLang:a,_helperUsed:!0}},async buildFaqJsonLd(e,t){return await RAe(e,t)}};function CAe(e){let t=e;t._helperUsed||(t=xAe.getDefaultMetadata(t)),Ire(t.title);const r=Dbe();if(!r.hasProvider)throw dr.throw(new Sn("PageMetadataContext must exist in your application to use this hook"));Se.useEffect(()=>{!t||e._isPopupUp||r.hasPageMetadataChanged(t)&&r.setPageMetadata(t)})}const So={Default:{LOG_OUT:"log:out",LOG_IN:"log:in",ERROR:"error",NOT_FOUND:"not:found",DEV_ERROR:"dev:error",DIALOG_ERROR:"dialog:error",INDEX:"index",GIVE_FEEDBACK:"give:feedback"},Exchange:{INDEX:"index",FOLDER:"folder",MOST_RECENT:"most:recent",SERIES:"series",SEARCH:"search",PREVIEW:"preview",ADD:"add",SUGGEST_EDIT:"suggest:edit",DOWNLOAD_VIDEO:"download:video",ADD_TO_LIBRARY:"add:to:library"},Tv:{INDEX:"index",CHANNELS:"channels",CHANNEL:"channel",PROGRAMS:"programs",SEARCH:"search",PREVIEW:"preview",ADD:"add",AD_FREE_REQUEST:"ad:free:request",BROADCAST_CONTENT:"broadcast:content",ALREADY_ADDED:"already:added",REQUEST_PROGRAM:"request:program",RADIO_DOWNLOAD:"radio:download"}},OAe={ErrorViews:{SMALL:"/images/error-avatars/small/error-{number}.png"},EmptyStates:{SEARCH:"/images/empty-states/results-v2.png",FOLDER:"/images/empty-states/empty-folder-v2.png"},General:{ANNOUNCEMENT_FRAMED:"/images/general/announcement-framed-v2.png",MOUNTAINS_FRAMED:"/images/general/mountains-framed-v2.png",CONFETTI:"/images/general/confetti-v2.png",PAPER_PLANE:"/images/general/paper-plane-v2.png"},ProgramLogos:{FOXTEL:"/images/logos/foxtel.png",BBC:"/images/logos/bbc.png"}},BK="default.error",IAe=33;function zre({error:e}){var n,i;CAe({title:(e==null?void 0:e.heading)||Gr.getPhrase(BK,"defaultPageTitle")});const[t]=Se.useState(vte.getRandomInt(IAe)+1),r=OAe.ErrorViews.SMALL.replace("{number}",t.toString());return e?de.jsxs(ks,{children:[de.jsx(ks.Image,{src:r}),de.jsx(ks.Heading,{children:e.heading}),!!e.description&&de.jsx(ks.Info,{injectHtml:e.injectDescriptionHtml,children:e.description}),e.cta!==!1&&de.jsx(ks.Cta,{text:((n=e.cta)==null?void 0:n.text)??Gr.getPhrase(BK,"discoverVideos"),className:`info-link ${e.description?"mt-n2":""}`,appLink:((i=e.cta)==null?void 0:i.appLink)??{application:ki.EXCHANGE,action:So.Exchange.INDEX}})]}):de.jsx(de.Fragment,{})}class PAe extends nI{get channelName(){return ki.DEFAULT}get appRoutes(){return{"(/)":"index","*path":"catchAllRoutes"}}get externalRoutes(){return{"logout(/)":"logOut","login(/)":"logIn"}}get appLinks(){return["devError","dialogError","error","notFound","giveFeedback"]}}class kAe extends TI{get name(){return"Default Application"}get layoutOptions(){return{name:hp.DEFAULT_LAYOUT,options:{alertRegion:un.ALERT}}}get channelName(){return ki.DEFAULT}static get router(){return PAe}async index(){const{RedirectView:t}=await Hn(async()=>{const{RedirectView:r}=await import("./BHQ-iEoW.chunk.js");return{RedirectView:r}},[]);this.layout.showChildView(un.CONTENT,de.jsx(t,{}))}catchAllRoutes(){dr.throw(new pte)}notFound(){const t=Mr.Radio.channel("error:view").request("current:error");Hn(async()=>{const{NotFoundView:r}=await import("./D8bdW5jN.chunk.js");return{NotFoundView:r}},[]).then(({NotFoundView:r})=>{this.layout.showChildView(un.CONTENT,de.jsx(r,{error:t}))})}error(){const t=Mr.Radio.channel("error:view").request("current:error");this.layout.showChildView(un.CONTENT,de.jsx(zre,{error:t}))}dialogError(){const t=Mr.Radio.channel("error:view").request("current:error");if(!t)return;const{dialogOptions:r}=t;Hn(async()=>{const{DialogView:n}=await import("./CWAi8BHf.chunk.js");return{DialogView:n}},[]).then(({DialogView:n})=>{this.layout.showChildView(un.POPUP,de.jsx(n,{title:r.title,text:r.text,buttons:r.buttons,onDone:t.onDone,onFail:t.onFail,closePopup:()=>this.layout.closePopup()}))})}devError(){const t=Mr.Radio.channel("error:view").request("current:error");Hn(async()=>{const{DevErrorView:r}=await import("./CssHbHjG.chunk.js");return{DevErrorView:r}},[]).then(({DevErrorView:r})=>{this.layout.showChildView(un.CONTENT,de.jsx(r,{error:t}))})}giveFeedback(){Hn(async()=>{const{GiveFeedbackView:t}=await import("./CiOp7PM4.chunk.js");return{GiveFeedbackView:t}},__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])).then(({GiveFeedbackView:t})=>{this.layout.showChildView(un.POPUP,de.jsx(t,{product:Yo.Exchange,closePopup:()=>this.layout.closePopup()}))})}}var Wre=(e=>(e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience",e[e.TallPoster=60]="TallPoster",e[e.Classroom=67]="Classroom",e[e.ClassroomGroup=68]="ClassroomGroup",e[e.UserProfile=74]="UserProfile",e[e.PartnerProfile=78]="PartnerProfile",e))(Wre||{});const XI={MixedMediaUpload:"MixedMediaUploadService",Context:"ContextService",OldVersion:"OldVersionService"},DAe=5,LAe=3;class NAe extends za{constructor(){super(...arguments),this.routeHistory=[],this.contextHistory=[]}get name(){return XI.Context}static get Instance(){return this.instance||(this.instance=new this)}initialize(){this.listenTo(mn.SHELL,En.ROUTE,this.setContext),this.listenTo(mn.SHELL,En.ROUTE,this.updateRouteHistory)}setContext(t){var r;Ai.isEqual(t,(r=this.getCurrentContext())==null?void 0:r.appLink)||(this.contextHistory.length>=DAe&&this.contextHistory.shift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:t}))}getCurrentContext(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}getPreviousContext(){if(!(!this.contextHistory.length||this.contextHistory.length-2<0))return this.contextHistory[this.contextHistory.length-2]}updateRouteHistory(t){var n;Ai.getHref(t)&&(Ai.isEqual(t,(n=this.getCurrentRoute())==null?void 0:n.appLink)||(this.routeHistory.length>=LAe&&this.routeHistory.shift(),this.routeHistory.push({pageLoad:!this.routeHistory.length,appLink:t})))}getCurrentRoute(){if(this.routeHistory.length)return this.routeHistory[this.routeHistory.length-1]}getPreviousRoute(){if(!(!this.routeHistory.length||this.routeHistory.length-2<0))return this.routeHistory[this.routeHistory.length-2]}fromPageLoad(){return this.contextHistory.length===1}_forcePushContext(t){this.setContext(t),this.updateRouteHistory(t)}}const QI=new NAe,Gre={getStorage(){return window.localStorage?window.localStorage:window.sessionStorage?window.sessionStorage:Gre.getMemoryStorage()},getMemoryStorage(){const e=new Map;return{setItem(t,r){e.set(t,r)},getItem(t){return e.get(t)},removeItem(t){e.delete(t)},clear(){e.clear()},get length(){return e.size},key(t){return Array.from(e.values())[t]}}}};var Ls=(e=>(e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.MemoryStorage="memoryStorage",e))(Ls||{});class JI{constructor(t){if(this.cachePrefix="_cv:",this.expireTime=3600,this.type=t.type,this.hasSupport=this.hasBrowserSupport(),!!this.hasSupport)try{this.type==="memoryStorage"?this.storage=Gre.getMemoryStorage():this.storage=window[this.type]}catch{}}isAvailable(){return this.hasSupport}get(t){if(!this.hasSupport)return;const r=this.storage.getItem(t);try{return JSON.parse(r)}catch{return r}}set(t,r){if(this.hasSupport)try{return this.storage.removeItem(t),typeof r!="string"?(this.storage.setItem(t,JSON.stringify(r)),!0):(this.storage.setItem(t,r),!0)}catch{return!1}}remove(t){if(this.hasSupport)return this.storage.removeItem(t)}length(){if(this.hasSupport)return this.storage.length}clear(){if(this.hasSupport)return this.storage.clear()}cacheSet(t,r,n=this.expireTime){this.cacheClean();const i={time:this.getCurrentTime()+n*1e3,data:typeof r<"u"&&r!==null&&r};return this.set(`${this.cachePrefix}${t}`,i)}cacheGet(t){const r=`${this.cachePrefix}${t}`,n=this.get(r);return n?this.isExpired(n)?(this.remove(r),null):n.data:null}cacheExists(t){const r=`${this.cachePrefix}${t}`,n=this.get(r);return n?this.isExpired(n)?(this.remove(r),!1):!0:!1}cacheRemove(t){return this.remove(`${this.cachePrefix}${t}`)}cacheFlush(){this.cacheClean()}cacheClean(){if(this.hasSupport)for(let t=0;t<this.storage.length;t++){const r=this.storage.key(t);if(r.indexOf(this.cachePrefix)===0){const n=this.get(r);n&&n.time&&this.isExpired(n)&&this.remove(r)}}}isExpired(t){return t.time<this.getCurrentTime()}getCurrentTime(){return new Date().getTime()}hasBrowserSupport(){if(this.type==="memoryStorage")return!0;try{return this.type in window&&window[this.type]!==null}catch{return!1}}}class MAe extends JI{static get Instance(){return this.instance||(this.instance=new this({type:"localStorage"}))}}class $Ae extends JI{static get Instance(){return this.instance||(this.instance=new this({type:"sessionStorage"}))}}class FAe extends JI{static get Instance(){return this.instance||(this.instance=new this({type:"memoryStorage"}))}}const Hi=MAe.Instance,jg=$Ae.Instance,VK=FAe.Instance;var vs=(e=>(e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series",e.ProductionYear="production_year",e))(vs||{});const jAe=(e,t)=>`${t?`${t}:`:""}video:sort:${e}`,UAe=vs.RecentlyAdded,HK={getValidSortTypeFromParam(e){return Object.values(vs).includes(e)?e:vs.Newest},getOrSetSortType(e,t,r,n){const i=jAe(e,n);return(t||!Hi.cacheExists(i))&&Hi.cacheSet(i,t||r||UAe),t||(t=Hi.cacheGet(i)),t},getVideoSortParam(e){switch(e){case vs.AtoZ:return"orderby:name";case vs.ZtoA:return"orderbydesc:name";case vs.Newest:return"orderbydesc:datecreated";case vs.Oldest:return"orderby:datecreated";case vs.RecentlyAdded:return"orderbydesc:timestamp";case vs.Series:return"orderby:seriessort";case vs.ProductionYear:return"orderbydesc:productionyear";default:return}}},al={config(e,t){return{url:"/api/config",key:"config",bootstrapName:"config",success:e,error:t}},version(e,t){return{url:"/api/version",key:"version",bootstrapName:"version",normalize:!1,success:e,error:t}},geoLocation(){return{url:"/api/geolocation",key:"geolocation",normalize:!1,bootstrapName:"geolocation"}}},Zl={LOCALE:"locale",PHRASES:"phrases",TOKEN:"token",PERMISSIONS:"permissions",USER:"currentUser",PRODUCTS:"products"},ZI={userProducts(e,t){return{url:"{gateway}/v1/users/me/products",key:"user:products",normalizeOptions:{namespace:"product"},success:e,error:t,bootstrapName:Zl.PRODUCTS}}};let sx=!1,ux=!1,lx=!1,cx=!0,fx=!0;class qAe extends za{get name(){return"LayoutHelper"}shouldHideNav(){return sx}disableNav(){sx=!0}enableNav(){sx=!1}shouldHideHeader(){return ux}disableHeader(){ux=!0}enableHeader(){ux=!1}lockContentWidth(){lx=!0,this.trigger("change:lockContentWidth")}unlockContentWidth(){lx=!1,this.trigger("change:lockContentWidth")}shouldLockContentWidth(){return!!lx}shouldShowSearch(){return fx}enableSearch(){fx=!0}disableSearch(){fx=!1}enableLogoClick(){cx=!0}disableLogoClick(){cx=!1}shouldAllowLogoClick(){return cx}}const Kre=new qAe,zK="exchangeShared.noAccess";class BAe extends iy{constructor(r){super("Current user's school does not have access to Exchange");Rn(this,"config");this.config=r}get name(){return"NoAccessError"}get heading(){return Gr.getPhrase(zK,"heading")}get description(){return Gr.getPhrase(zK,"body")}get cta(){return!1}get injectDescriptionHtml(){return!0}}const VAe=[{application:ki.DEFAULT,action:So.Default.ERROR},{application:ki.DEFAULT,action:So.Default.DEV_ERROR},{application:ki.DEFAULT,action:So.Default.LOG_IN},{application:ki.DEFAULT,action:So.Default.LOG_OUT}],HAe=VAe.reduce((e,t)=>(e[Yre(t)]=!0,e),{});function Yre(e){return e.application+e.action}function WK(e,t){QI._forcePushContext(e),Kre.disableNav(),gs.routingEnded(),dr.throw(t??new $f)}async function Xre(e,t){const{appLink:r,shell:n}=e;try{if((await SW(n.store,ZI.userProducts())).find(o=>o.id===Yo.Exchange)){t(e);return}if(HAe[Yre(e.appLink)]){Kre.disableNav(),t(e);return}const a=await SW(n.store,al.config());WK(r,new BAe(a))}catch{WK(r)}}class zAe extends nI{get channelName(){return ki.EXCHANGE}get appRoutes(){return{"exchange(/)":"index","exchange/folders/:id(/:slug)":"folder","exchange/series/:id(/:slug)":"series","exchange/search(/)":"search","exchange/most-recent(/)":"mostRecent","exchange/videos/:id(/)":"preview"}}get appLinks(){return["add","suggestEdit","downloadVideo","addToLibrary"]}get filters(){return[Xre]}}class GK extends TI{get name(){return"Exchange Application"}get layoutOptions(){return{name:hp.DEFAULT_LAYOUT,options:{alertRegion:un.ALERT}}}get channelName(){return ki.EXCHANGE}static get router(){return zAe}async index(){const{ExchangeView:t}=await Hn(async()=>{const{ExchangeView:r}=await import("./COkVtt29.chunk.js");return{ExchangeView:r}},__vite__mapDeps([21,22,23,24,25,26,27,28,29,30,31,32,14,33,34,35,36,37,38,17,39,40,41,42,43,44,45,46,47,48,4,49]));this.layout.showChildView(un.CONTENT,de.jsx(t,{}))}async folder(t,r,n){const i=typeof r=="string"?n==null?void 0:n.sort:r==null?void 0:r.sort,a=i&&HK.getValidSortTypeFromParam(i),{ExchangeFolderView:o}=await Hn(async()=>{const{ExchangeFolderView:l}=await import("./B9372wBc.chunk.js");return{ExchangeFolderView:l}},__vite__mapDeps([50,25,26,22,23,24,27,28,29,30,31,32,14,33,34,51,49,35,52,53,18,54,55,56,43,44,45,4,57,42,58,3,59,60,7,13,61,62,37,63,36,38,17,39,40,41,46,47,48,64,65]));this.layout.showChildView(un.CONTENT,de.jsx(o,{folderId:t,sort:a}))}async series(t,r,n){const i=typeof r=="string"?n==null?void 0:n.sort:r==null?void 0:r.sort,a=i&&HK.getValidSortTypeFromParam(i),{ExchangeSeriesView:o}=await Hn(async()=>{const{ExchangeSeriesView:l}=await import("./zFY--sWD.chunk.js");return{ExchangeSeriesView:l}},__vite__mapDeps([66,64,18,65,52,32,14,33,29,30,53,54,51,49,35,27,55,56,43,44,45,4,57,42,58,3,28,31,59,60,7,13,25,26,61,62,37,36,47,48,63]));this.layout.showChildView(un.CONTENT,de.jsx(o,{seriesId:t,sort:a}))}async search(t){const{ExchangeSearchResultsView:r}=await Hn(async()=>{const{ExchangeSearchResultsView:n}=await import("./DbIiwJi6.chunk.js");return{ExchangeSearchResultsView:n}},__vite__mapDeps([67,56,43,44,45,4,57,5,6,32,14,33,15,68,61,42,69,51,49,35,27,52,29,30,53,18,54,55,58,3,28,31,59,60,7,13,25,26,62,70,71,11,48,65,72,38,17,39,63,73,47,37,74]));this.layout.showChildView(un.CONTENT,de.jsx(r,{queryParams:t||{}}))}async mostRecent(){const{ExchangeMostRecentView:t}=await Hn(async()=>{const{ExchangeMostRecentView:r}=await import("./B6wIglzt.chunk.js");return{ExchangeMostRecentView:r}},__vite__mapDeps([75,52,32,14,33,29,30,53,18,54,51,49,35,27,55,56,43,44,45,4,57,42,58,3,28,31,59,60,7,13,25,26,61,62,37,38,17,39,40,41,46,47,48,63]));this.layout.showChildView(un.CONTENT,de.jsx(t,{}))}async preview(t,r){const{pageLoad:n}=QI.getCurrentRoute();n&&this.index();const{ExchangePreviewView:i}=await Hn(async()=>{const{ExchangePreviewView:a}=await import("./CtsGHZp3.chunk.js");return{ExchangePreviewView:a}},__vite__mapDeps([76,55,57,43,4,77,78,9,16,59,56,44,45,60,13,17,53,68,61,42,14,15,69,7,3,79,28,29,30,31,25,26,58,19,49,35,80,81,82,83,84,85,86,87,63,88]));this.layout.showChildView(un.POPUP,de.jsx(i,{videoId:t,currentTime:r,closePopup:()=>this.layout.closePopup()}))}async add(t){const{ExchangeAddView:r}=await Hn(async()=>{const{ExchangeAddView:n}=await import("./SmYpiCQA.chunk.js");return{ExchangeAddView:n}},__vite__mapDeps([89,55,57,43,4,3,47,48,88]));this.layout.showChildView(un.POPUP,de.jsx(r,{id:t,closePopup:()=>this.layout.closePopup()}))}async suggestEdit(t){const{ExchangeSuggestEditView:r}=await Hn(async()=>{const{ExchangeSuggestEditView:n}=await import("./DEFuGMsd.chunk.js");return{ExchangeSuggestEditView:n}},__vite__mapDeps([90,55,91,8,9,10,12,71,73,57,43,4,3,92,47,48,88]));this.layout.showChildView(un.POPUP,de.jsx(r,{videoId:t,closePopup:()=>this.layout.closePopup()}))}downloadVideo(t){Hn(async()=>{const{DownloadVideoView:r}=await import("./BImNArot.chunk.js");return{DownloadVideoView:r}},__vite__mapDeps([93,79])).then(({DownloadVideoView:r})=>{this.layout.showChildView(un.HIDDEN,de.jsx(r,{id:t}))})}addToLibrary(t){Hn(async()=>{const{AddToLibraryView:r}=await import("./Bj4aS_x2.chunk.js");return{AddToLibraryView:r}},__vite__mapDeps([94,16,8,9,10,25,26,23,24,61,35,57,43,4,3,92,56,44,45,95])).then(({AddToLibraryView:r})=>{this.layout.showChildView(un.POPUP,de.jsx(r,{id:t,typeId:Wre.Video,closePopup:()=>this.layout.closePopup()}))})}}class WAe extends nI{get channelName(){return ki.TV}get appRoutes(){return{"tv(/)":"index","tv/:region/channels(/)":"channels","tv/:region/channels/:channelId(/)":"channel","tv/:region/programs(/)":"programs","tv/:region/search(/)":"search"}}get appLinks(){return["preview","add","adFreeRequest","broadcastContent","alreadyAdded","requestProgram","radioDownload"]}get filters(){return[Xre]}}class KK extends TI{get name(){return"Tv Application"}get layoutOptions(){return{name:hp.DEFAULT_LAYOUT,options:{alertRegion:un.ALERT}}}get channelName(){return ki.TV}static get router(){return WAe}async index(t){const{TvHomeView:r}=await Hn(async()=>{const{TvHomeView:n}=await import("./Ux2KpCQK.chunk.js");return{TvHomeView:n}},__vite__mapDeps([96,97,36,37,98]));this.layout.showChildView(un.CONTENT,de.jsx(r,{requestVideo:t.requestVideo==="true"}))}async channels(t,r){const{TvChannelsView:n}=await Hn(async()=>{const{TvChannelsView:i}=await import("./Dkw1yxVb.chunk.js");return{TvChannelsView:i}},__vite__mapDeps([99,36,37,100,85,98,41,42,43,44,45,14,46,101,53,17,102,103,97,104,105]));this.layout.showChildView(un.CONTENT,de.jsx(n,{region:t})),r.requestVideo==="true"&&this.requestProgram(t)}async channel(t,r,n){const{TvChannelView:i}=await Hn(async()=>{const{TvChannelView:a}=await import("./k5oLm6N7.chunk.js");return{TvChannelView:a}},__vite__mapDeps([106,37,36,107,23,24,108,29,30,80,81,84,85,86,100,98,41,42,43,44,45,14,46,101,53,17,102,103,97,109]));this.layout.showChildView(un.CONTENT,de.jsx(i,{region:t,channelId:r,selectedRegion:n.region}))}async programs(t,r){const{TvProgramsView:n}=await Hn(async()=>{const{TvProgramsView:i}=await import("./ByM31Op_.chunk.js");return{TvProgramsView:i}},__vite__mapDeps([110,41,42,43,44,45,14,46,37,36,107,23,24,108,100,85,98,101,53,17,102,103,97,29,30,84,86,111]));this.layout.showChildView(un.CONTENT,de.jsx(n,{region:t,startsWith:r.startsWith}))}async search(t,r){const{TvSearchResultsView:n}=await Hn(async()=>{const{TvSearchResultsView:i}=await import("./C-LZ1Pnr.chunk.js");return{TvSearchResultsView:i}},__vite__mapDeps([112,70,52,32,14,33,29,30,53,18,54,7,71,68,61,42,43,44,45,15,69,3,11,48,65,72,37,36,101,17,102,98,113,58,103,97,25,26,28,31,80,81,82,83,84,85,86,114]));this.layout.showChildView(un.CONTENT,de.jsx(n,{region:t,queryParams:r}))}async preview(t,r,n){const{TvPreviewView:i}=await Hn(async()=>{const{TvPreviewView:a}=await import("./BYTm1HdJ.chunk.js");return{TvPreviewView:a}},__vite__mapDeps([115,77,78,9,16,59,56,43,44,45,4,57,60,13,17,53,68,61,42,14,15,69,7,3,79,28,29,30,31,25,26,58,19,49,35,80,81,82,83,84,85,86,87,98,113,103,37]));this.layout.showChildView(un.POPUP,de.jsx(i,{region:t,id:r,currentTime:n.currentTime,closePopup:()=>this.layout.closePopup()}))}async add(t,r,n){const{TvAddView:i}=await Hn(async()=>{const{TvAddView:a}=await import("./DZ9Qr412.chunk.js");return{TvAddView:a}},__vite__mapDeps([116,77,98,3,117]));this.layout.showChildView(un.POPUP,de.jsx(i,{region:t,id:r,currentTime:n.currentTime,closePopup:()=>this.layout.closePopup()}))}async adFreeRequest(t,r){const{TvAdFreeRequestView:n}=await Hn(async()=>{const{TvAdFreeRequestView:i}=await import("./EypiXS_y.chunk.js");return{TvAdFreeRequestView:i}},__vite__mapDeps([118,77,98,103,37]));this.layout.showChildView(un.POPUP,de.jsx(n,{region:t,id:r,closePopup:()=>this.layout.closePopup()}))}async broadcastContent(t){const{TvBroadcastContentView:r}=await Hn(async()=>{const{TvBroadcastContentView:n}=await import("./D-lhN8Br.chunk.js");return{TvBroadcastContentView:n}},__vite__mapDeps([119,98,85,120]));this.layout.showChildView(un.POPUP,de.jsx(r,{region:t,closePopup:()=>this.layout.closePopup()}))}async alreadyAdded(t){const{TvAlreadyAddedView:r}=await Hn(async()=>{const{TvAlreadyAddedView:n}=await import("./CoZqjJhl.chunk.js");return{TvAlreadyAddedView:n}},__vite__mapDeps([121,122]));this.layout.showChildView(un.POPUP,de.jsx(r,{params:t,closePopup:()=>this.layout.closePopup()}))}async requestProgram(t){const{TvRequestProgramView:r}=await Hn(async()=>{const{TvRequestProgramView:n}=await import("./WuuAAnHZ.chunk.js");return{TvRequestProgramView:n}},__vite__mapDeps([123,8,9,10,3,92,98,104,91]));this.layout.showChildView(un.POPUP,de.jsx(r,{region:t,closePopup:()=>this.layout.closePopup()}))}async radioDownload(t,r){const{TvRadioDownloadView:n}=await Hn(async()=>{const{TvRadioDownloadView:i}=await import("./BZhnbXlC.chunk.js");return{TvRadioDownloadView:i}},__vite__mapDeps([124,84,85,86,98]));this.layout.showChildView(un.POPUP,de.jsx(n,{region:t,id:r,closePopup:()=>this.layout.closePopup()}))}}async function GAe(e,t){var r;try{const i=(r=(await qa(e.store,Hl.customerSettings()))[yr.ExchangeTvProductOption])==null?void 0:r.value;switch(e.registerApplication(kAe),i){case"exchange":{e.registerApplication(GK),t(e);return}case"tv":{e.registerApplication(KK),t(e);return}case"exchange_and_tv":{e.registerApplication(GK).registerApplication(KK),t(e);return}}}catch{dr.throw(new $f)}}var ms=(e=>(e.Success="success",e.Warning="warning",e.Fail="danger",e.Info="info",e.Pending="pending",e))(ms||{}),KAe=(e=>(e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI",e))(KAe||{});class YAe extends za{constructor(t){super(t)}initialize(){this.alertCollection=new Hm,this.listenTo(mn.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}get name(){return ry.ALERT}get defaults(){return{maxAlerts:3}}showAlerts(){const t=Mr.Radio.channel(mn.ALERT);let r={collection:this.alertCollection};this.options.alertViewCtor&&(r=io({},r,{ctor:this.options.alertViewCtor})),t.trigger("show:alert",r)}removeAlert(t){this.alertCollection.remove(t),this.showAlerts()}createAlert(t){this.alertCollection.length===this.options.maxAlerts&&this.alertCollection.shift(),t.id||(t=io({},t,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new mu(t)),this.showAlerts()}clearAllAlerts(){this.alertCollection.reset(null)}success(t){return typeof t=="string"?au(()=>this.createAlert(io({},this.options.defaultSuccessAlert,{message:t})),this):t.useXHR?au((r,n)=>this.createAlert(io({},this.options.defaultSuccessAlert,{message:n})),this):au(()=>this.createAlert(io({},this.options.defaultSuccessAlert,t)),this)}error(t){return typeof t=="string"?au(()=>this.createAlert(io({},this.options.defaultErrorAlert,{message:t})),this):t.useXHR?au(r=>this.createAlert(io({},this.options.defaultErrorAlert,{message:r.message})),this):au(()=>this.createAlert(io({},this.options.defaultErrorAlertIL_DEFAULT,t)),this)}generateUniqueAlertId(){return AZ("alert_")}}class XAe extends za{constructor(){super(),this.constructors={},this.destructors={},this.instances={},this.singletonInstances={},this.referenceCounts={}}get name(){return"InstanceManager"}static get Instance(){return this.instance||(this.instance=new this)}registerDataService(t,r){this.validateConstructor(t);const n=t.prototype.name;return this.referenceCounts[n]=0,this.constructors[n]=()=>new t({dataProvider:this.getInstance(r.dataProvider),cache:this.getInstance(r.cache),bootstrapData:r.bootstrapData,defaultErrorHandler:r.defaultErrorHandler,alertService:r.alertService}),this.destructors[n]=()=>{this.instances[n]?this.instances[n].destroy():dr.throw(new Sn(`Trying to destroy a ${n} instance that has already been destroyed`)),this.releaseInstance(r.dataProvider),this.releaseInstance(r.cache)},this}registerInstance(t,r){this.validateConstructor(t);const n=t.prototype.name;return this.referenceCounts[n]=0,this.constructors[n]=()=>new t(r),this.destructors[n]=()=>rn(this.instances[n].destroy)&&this.instances[n].destroy(),this}registerSingleton(t){const r=t.name;return this.singletonInstances[r]=t,this}getInstance(t,r){return this.singletonInstances[t]?this.singletonInstances[t]:(this.constructors[t]||dr.throw(new Sn(`${t} was not registered with ${this.name}`)),this.referenceCounts[t]++,r&&this.listenTo(r,"destroy",()=>this.releaseInstance(t)),this.instances[t]||(this.instances[t]=this.constructors[t]()),this.instances[t])}releaseInstance(t){if(this.instances[t])return window.setTimeout(()=>{this.referenceCounts[t]--,this.referenceCounts[t]<1&&(this.destructors[t](),delete this.instances[t])},0),this}validateConstructor(t){const r=t.prototype.name;r||dr.throw(new Sn(`Classes registered with ${this.name} must have a unique name property.`)),this.constructors[r]&&dr.throw(new Sn(`A class with the name: ${r} has already been registered with ${this.name}`))}}const cu=XAe.Instance;class Dc extends sp{constructor(t){super(t),this.dialogOptions||dr.throw(new Sn("Please provide DialogOptions for your implementation of DialogError"))}get name(){return"DialogError"}onDone(){}onFail(){}}const Pv="shared.chunkLoadError",QAe=/\/([^\s/]+\.css)/,JAe=/\/([^\s/]+\.js)/;class YK extends Dc{constructor(t,r,n){super(Gr.getPhrase(Pv,"title",{chunkName:r})),this.product="ClickView",this.btnVariant=t,n&&(this.product=n)}get name(){return"ChunkLoadError"}get dialogOptions(){return{title:Gr.getPhrase(Pv,"heading",{product:this.product}),text:Gr.getPhrase(Pv,"body"),buttons:[{text:Gr.getPhrase(Pv,"reload"),className:`btn btn-${this.btnVariant}`,success:!0}]}}onDone(){Dn.Reload()}}function ZAe(e,t){window.addEventListener("error",r=>{var l,u;const n=((l=r==null?void 0:r.target)==null?void 0:l.src)||((u=r==null?void 0:r.target)==null?void 0:u.href);if(!n)return;const i=f=>(f==null?void 0:f[1])??"Unknown Chunk",a=n.match(JAe);if(a&&n.includes("/scripts/")&&n.includes(".chunk.js")){dr.throw(new YK(e,i(a),t));return}const o=n.match(QAe);if(o&&n.includes("/css/")&&n.includes(".chunk.css")){dr.throw(new YK(e,i(o),t));return}},!0)}class Qre extends sp{constructor(t,r){super(`User is using old version of the code. Old: ${t}. New: ${r}`)}get name(){return"OldVersionError"}}class Jre extends sp{get name(){return"AlertError"}}const fu={UPLOAD_COMPLETE:"upload:complete",UPLOAD_SUCCESS:"upload:success",FILES_ADDED:"files:added",UPLOAD_CANCELLED:"upload:cancelled",UNLOCK_NAV:"upload:unlock:nav"},ah={VIDEO_UPLOAD:"video:upload:service",SUBTITLE_UPLOAD:"subtitle:upload:service",RESOURCE_UPLOAD:"resource:upload:service",MIXED_MEDIA_UPLOAD:"media:upload:service"};function eRe(e){const t=e.showSpinner?de.jsx(fy,{as:"span",animation:"border",role:"status",size:"sm"}):e.children;if(e.tooltip&&e.svg){let n=e.className??"";return e.disabled&&!e.appLink&&(n+=" pointer-events-none"),de.jsx(Ql,{title:e.tooltip,spanHack:!0,children:de.jsx(hC,{appLink:e.appLink,href:e.href,svg:e.svg,svgSize:e.svgSize,onClick:e.onClick,className:n,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled,ariaLabel:e.tooltip,children:t})})}if(e.svg)return de.jsx(hC,{onClick:e.onClick,appLink:e.appLink,href:e.href,svg:e.svg,svgSize:e.svgSize,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled,ariaLabel:e.ariaLabel,children:t});if(e.tooltip&&e.appLink)return de.jsx(Ql,{title:e.tooltip,spanHack:!0,children:de.jsx(Ro,{onClick:e.onClick,appLink:e.appLink,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled,ariaLabel:e.tooltip,children:t})});if(e.appLink)return de.jsx(Ro,{onClick:e.onClick,appLink:e.appLink,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled,ariaLabel:e.ariaLabel,children:t});function r(n){e.analyticsData&&e.analyticsOptions&&Ba.logUserAction(e.analyticsData,e.analyticsOptions),Ao.isFunction(e.onClick)&&e.onClick(n)}return e.tooltip?de.jsx(Ql,{title:e.tooltip,spanHack:!0,children:de.jsx("button",{onClick:r,className:`${e.className??""}${e.disabled?" pointer-events-none":""}`,disabled:e.disabled,"aria-label":typeof t=="string"?t:e.ariaLabel,children:t})}):de.jsx("button",{onClick:r,className:e.className,disabled:e.disabled,"aria-label":typeof t=="string"?t:e.ariaLabel,children:t})}const tRe=(e,t,r,n=[])=>{const i=typeof e=="string"?Mr.Radio.channel(e):e;Se.useEffect(()=>{if(e)return i.on(t,r),()=>{e&&i.off(t,r)}},n)};function rRe(){return de.jsx("div",{className:"text-center p-5",children:de.jsx(fy,{as:"div",animation:"border",role:"status"})})}Zre.defaultProps={closeButton:!0,bodyClassName:"",dialogClassName:"",size:"md",closeOnNavigate:!0};function Zre(e){var n;Ire(e.title);const t=(i,a)=>{!e.closeOnNavigate||!a.isAppRoute||e.closePopup()};tRe(mn.SHELL,En.ROUTE,t,[e.closePopup]);const r=(n=e.headerButtons)!=null&&n.length?e.headerButtons.map((i,a)=>de.jsx(eRe,{...i},a)):de.jsx(de.Fragment,{});return de.jsxs(Av,{show:!0,onHide:e.closePopup,onEntered:e.onEntered,size:e.size==="md"?null:e.size,contentClassName:e.contentClassName,dialogClassName:e.dialogClassName,centered:e.centered,backdrop:e.backdrop,container:document.getElementById("dialog-region"),restoreFocus:!0,animation:e.animation,children:[!!e.title&&!e.hideTitle&&de.jsxs(Av.Header,{className:"d-flex align-items-center bg-white",closeButton:e.closeButton,children:[de.jsx(Av.Title,{as:"h2",className:"h4 flex-grow-1 text-truncate",children:e.title}),r]}),e.showLoadingSpinner?de.jsx(rRe,{}):de.jsx(Av.Body,{className:e.bodyClassName,children:e.children})]})}var dx,XK;function nRe(){if(XK)return dx;XK=1;var e=Array.isArray,t=Object.keys,r=Object.prototype.hasOwnProperty,n=typeof Element<"u";function i(a,o){if(a===o)return!0;if(a&&o&&typeof a=="object"&&typeof o=="object"){var l=e(a),u=e(o),f,d,h;if(l&&u){if(d=a.length,d!=o.length)return!1;for(f=d;f--!==0;)if(!i(a[f],o[f]))return!1;return!0}if(l!=u)return!1;var p=a instanceof Date,y=o instanceof Date;if(p!=y)return!1;if(p&&y)return a.getTime()==o.getTime();var _=a instanceof RegExp,E=o instanceof RegExp;if(_!=E)return!1;if(_&&E)return a.toString()==o.toString();var S=t(a);if(d=S.length,d!==t(o).length)return!1;for(f=d;f--!==0;)if(!r.call(o,S[f]))return!1;if(n&&a instanceof Element&&o instanceof Element)return a===o;for(f=d;f--!==0;)if(h=S[f],!(h==="_owner"&&a.$$typeof)&&!i(a[h],o[h]))return!1;return!0}return a!==a&&o!==o}return dx=function(o,l){try{return i(o,l)}catch(u){if(u.message&&u.message.match(/stack|recursion/i)||u.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",u.name,u.message),!1;throw u}},dx}var iRe=nRe();const Qu=Mn(iRe);var aRe=function(t){return oRe(t)&&!sRe(t)};function oRe(e){return!!e&&typeof e=="object"}function sRe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||cRe(e)}var uRe=typeof Symbol=="function"&&Symbol.for,lRe=uRe?Symbol.for("react.element"):60103;function cRe(e){return e.$$typeof===lRe}function fRe(e){return Array.isArray(e)?[]:{}}function Ug(e,t){return t.clone!==!1&&t.isMergeableObject(e)?kh(fRe(e),e,t):e}function dRe(e,t,r){return e.concat(t).map(function(n){return Ug(n,r)})}function hRe(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(i){n[i]=Ug(e[i],r)}),Object.keys(t).forEach(function(i){!r.isMergeableObject(t[i])||!e[i]?n[i]=Ug(t[i],r):n[i]=kh(e[i],t[i],r)}),n}function kh(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||dRe,r.isMergeableObject=r.isMergeableObject||aRe;var n=Array.isArray(t),i=Array.isArray(e),a=n===i;return a?n?r.arrayMerge(e,t,r):hRe(e,t,r):Ug(t,r)}kh.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return kh(n,i,r)},{})};var _C=kh,ene=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,pRe=typeof self=="object"&&self&&self.Object===Object&&self,Hs=ene||pRe||Function("return this")(),ol=Hs.Symbol,tne=Object.prototype,vRe=tne.hasOwnProperty,gRe=tne.toString,Jd=ol?ol.toStringTag:void 0;function mRe(e){var t=vRe.call(e,Jd),r=e[Jd];try{e[Jd]=void 0;var n=!0}catch{}var i=gRe.call(e);return n&&(t?e[Jd]=r:delete e[Jd]),i}var yRe=Object.prototype,_Re=yRe.toString;function ERe(e){return _Re.call(e)}var SRe="[object Null]",wRe="[object Undefined]",QK=ol?ol.toStringTag:void 0;function Lc(e){return e==null?e===void 0?wRe:SRe:QK&&QK in Object(e)?mRe(e):ERe(e)}function rne(e,t){return function(r){return e(t(r))}}var eP=rne(Object.getPrototypeOf,Object);function Nc(e){return e!=null&&typeof e=="object"}var bRe="[object Object]",TRe=Function.prototype,ARe=Object.prototype,nne=TRe.toString,RRe=ARe.hasOwnProperty,xRe=nne.call(Object);function JK(e){if(!Nc(e)||Lc(e)!=bRe)return!1;var t=eP(e);if(t===null)return!0;var r=RRe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&nne.call(r)==xRe}function CRe(){this.__data__=[],this.size=0}function ine(e,t){return e===t||e!==e&&t!==t}function py(e,t){for(var r=e.length;r--;)if(ine(e[r][0],t))return r;return-1}var ORe=Array.prototype,IRe=ORe.splice;function PRe(e){var t=this.__data__,r=py(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():IRe.call(t,r,1),--this.size,!0}function kRe(e){var t=this.__data__,r=py(t,e);return r<0?void 0:t[r][1]}function DRe(e){return py(this.__data__,e)>-1}function LRe(e,t){var r=this.__data__,n=py(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Cu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Cu.prototype.clear=CRe;Cu.prototype.delete=PRe;Cu.prototype.get=kRe;Cu.prototype.has=DRe;Cu.prototype.set=LRe;function NRe(){this.__data__=new Cu,this.size=0}function MRe(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function $Re(e){return this.__data__.get(e)}function FRe(e){return this.__data__.has(e)}function yp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var jRe="[object AsyncFunction]",URe="[object Function]",qRe="[object GeneratorFunction]",BRe="[object Proxy]";function ane(e){if(!yp(e))return!1;var t=Lc(e);return t==URe||t==qRe||t==jRe||t==BRe}var hx=Hs["__core-js_shared__"],ZK=(function(){var e=/[^.]+$/.exec(hx&&hx.keys&&hx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function VRe(e){return!!ZK&&ZK in e}var HRe=Function.prototype,zRe=HRe.toString;function Mc(e){if(e!=null){try{return zRe.call(e)}catch{}try{return e+""}catch{}}return""}var WRe=/[\\^$.*+?()[\]{}|]/g,GRe=/^\[object .+?Constructor\]$/,KRe=Function.prototype,YRe=Object.prototype,XRe=KRe.toString,QRe=YRe.hasOwnProperty,JRe=RegExp("^"+XRe.call(QRe).replace(WRe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ZRe(e){if(!yp(e)||VRe(e))return!1;var t=ane(e)?JRe:GRe;return t.test(Mc(e))}function exe(e,t){return e==null?void 0:e[t]}function $c(e,t){var r=exe(e,t);return ZRe(r)?r:void 0}var Dh=$c(Hs,"Map"),Lh=$c(Object,"create");function txe(){this.__data__=Lh?Lh(null):{},this.size=0}function rxe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var nxe="__lodash_hash_undefined__",ixe=Object.prototype,axe=ixe.hasOwnProperty;function oxe(e){var t=this.__data__;if(Lh){var r=t[e];return r===nxe?void 0:r}return axe.call(t,e)?t[e]:void 0}var sxe=Object.prototype,uxe=sxe.hasOwnProperty;function lxe(e){var t=this.__data__;return Lh?t[e]!==void 0:uxe.call(t,e)}var cxe="__lodash_hash_undefined__";function fxe(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Lh&&t===void 0?cxe:t,this}function uc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}uc.prototype.clear=txe;uc.prototype.delete=rxe;uc.prototype.get=oxe;uc.prototype.has=lxe;uc.prototype.set=fxe;function dxe(){this.size=0,this.__data__={hash:new uc,map:new(Dh||Cu),string:new uc}}function hxe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vy(e,t){var r=e.__data__;return hxe(t)?r[typeof t=="string"?"string":"hash"]:r.map}function pxe(e){var t=vy(this,e).delete(e);return this.size-=t?1:0,t}function vxe(e){return vy(this,e).get(e)}function gxe(e){return vy(this,e).has(e)}function mxe(e,t){var r=vy(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function gl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}gl.prototype.clear=dxe;gl.prototype.delete=pxe;gl.prototype.get=vxe;gl.prototype.has=gxe;gl.prototype.set=mxe;var yxe=200;function _xe(e,t){var r=this.__data__;if(r instanceof Cu){var n=r.__data__;if(!Dh||n.length<yxe-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new gl(n)}return r.set(e,t),this.size=r.size,this}function gd(e){var t=this.__data__=new Cu(e);this.size=t.size}gd.prototype.clear=NRe;gd.prototype.delete=MRe;gd.prototype.get=$Re;gd.prototype.has=FRe;gd.prototype.set=_xe;function Exe(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var eY=(function(){try{var e=$c(Object,"defineProperty");return e({},"",{}),e}catch{}})();function one(e,t,r){t=="__proto__"&&eY?eY(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Sxe=Object.prototype,wxe=Sxe.hasOwnProperty;function sne(e,t,r){var n=e[t];(!(wxe.call(e,t)&&ine(n,r))||r===void 0&&!(t in e))&&one(e,t,r)}function gy(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var l=t[a],u=void 0;u===void 0&&(u=e[l]),i?one(r,l,u):sne(r,l,u)}return r}function bxe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Txe="[object Arguments]";function tY(e){return Nc(e)&&Lc(e)==Txe}var une=Object.prototype,Axe=une.hasOwnProperty,Rxe=une.propertyIsEnumerable,xxe=tY((function(){return arguments})())?tY:function(e){return Nc(e)&&Axe.call(e,"callee")&&!Rxe.call(e,"callee")},_p=Array.isArray;function Cxe(){return!1}var lne=typeof exports=="object"&&exports&&!exports.nodeType&&exports,rY=lne&&typeof module=="object"&&module&&!module.nodeType&&module,Oxe=rY&&rY.exports===lne,nY=Oxe?Hs.Buffer:void 0,Ixe=nY?nY.isBuffer:void 0,cne=Ixe||Cxe,Pxe=9007199254740991,kxe=/^(?:0|[1-9]\d*)$/;function Dxe(e,t){var r=typeof e;return t=t??Pxe,!!t&&(r=="number"||r!="symbol"&&kxe.test(e))&&e>-1&&e%1==0&&e<t}var Lxe=9007199254740991;function fne(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Lxe}var Nxe="[object Arguments]",Mxe="[object Array]",$xe="[object Boolean]",Fxe="[object Date]",jxe="[object Error]",Uxe="[object Function]",qxe="[object Map]",Bxe="[object Number]",Vxe="[object Object]",Hxe="[object RegExp]",zxe="[object Set]",Wxe="[object String]",Gxe="[object WeakMap]",Kxe="[object ArrayBuffer]",Yxe="[object DataView]",Xxe="[object Float32Array]",Qxe="[object Float64Array]",Jxe="[object Int8Array]",Zxe="[object Int16Array]",eCe="[object Int32Array]",tCe="[object Uint8Array]",rCe="[object Uint8ClampedArray]",nCe="[object Uint16Array]",iCe="[object Uint32Array]",si={};si[Xxe]=si[Qxe]=si[Jxe]=si[Zxe]=si[eCe]=si[tCe]=si[rCe]=si[nCe]=si[iCe]=!0;si[Nxe]=si[Mxe]=si[Kxe]=si[$xe]=si[Yxe]=si[Fxe]=si[jxe]=si[Uxe]=si[qxe]=si[Bxe]=si[Vxe]=si[Hxe]=si[zxe]=si[Wxe]=si[Gxe]=!1;function aCe(e){return Nc(e)&&fne(e.length)&&!!si[Lc(e)]}function tP(e){return function(t){return e(t)}}var dne=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ph=dne&&typeof module=="object"&&module&&!module.nodeType&&module,oCe=ph&&ph.exports===dne,px=oCe&&ene.process,Ff=(function(){try{var e=ph&&ph.require&&ph.require("util").types;return e||px&&px.binding&&px.binding("util")}catch{}})(),iY=Ff&&Ff.isTypedArray,sCe=iY?tP(iY):aCe,uCe=Object.prototype,lCe=uCe.hasOwnProperty;function hne(e,t){var r=_p(e),n=!r&&xxe(e),i=!r&&!n&&cne(e),a=!r&&!n&&!i&&sCe(e),o=r||n||i||a,l=o?bxe(e.length,String):[],u=l.length;for(var f in e)(t||lCe.call(e,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Dxe(f,u)))&&l.push(f);return l}var cCe=Object.prototype;function rP(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||cCe;return e===r}var fCe=rne(Object.keys,Object),dCe=Object.prototype,hCe=dCe.hasOwnProperty;function pCe(e){if(!rP(e))return fCe(e);var t=[];for(var r in Object(e))hCe.call(e,r)&&r!="constructor"&&t.push(r);return t}function pne(e){return e!=null&&fne(e.length)&&!ane(e)}function nP(e){return pne(e)?hne(e):pCe(e)}function vCe(e,t){return e&&gy(t,nP(t),e)}function gCe(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var mCe=Object.prototype,yCe=mCe.hasOwnProperty;function _Ce(e){if(!yp(e))return gCe(e);var t=rP(e),r=[];for(var n in e)n=="constructor"&&(t||!yCe.call(e,n))||r.push(n);return r}function iP(e){return pne(e)?hne(e,!0):_Ce(e)}function ECe(e,t){return e&&gy(t,iP(t),e)}var vne=typeof exports=="object"&&exports&&!exports.nodeType&&exports,aY=vne&&typeof module=="object"&&module&&!module.nodeType&&module,SCe=aY&&aY.exports===vne,oY=SCe?Hs.Buffer:void 0,sY=oY?oY.allocUnsafe:void 0;function wCe(e,t){if(t)return e.slice();var r=e.length,n=sY?sY(r):new e.constructor(r);return e.copy(n),n}function gne(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function bCe(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function mne(){return[]}var TCe=Object.prototype,ACe=TCe.propertyIsEnumerable,uY=Object.getOwnPropertySymbols,aP=uY?function(e){return e==null?[]:(e=Object(e),bCe(uY(e),function(t){return ACe.call(e,t)}))}:mne;function RCe(e,t){return gy(e,aP(e),t)}function yne(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var xCe=Object.getOwnPropertySymbols,_ne=xCe?function(e){for(var t=[];e;)yne(t,aP(e)),e=eP(e);return t}:mne;function CCe(e,t){return gy(e,_ne(e),t)}function Ene(e,t,r){var n=t(e);return _p(e)?n:yne(n,r(e))}function OCe(e){return Ene(e,nP,aP)}function ICe(e){return Ene(e,iP,_ne)}var EC=$c(Hs,"DataView"),SC=$c(Hs,"Promise"),wC=$c(Hs,"Set"),bC=$c(Hs,"WeakMap"),lY="[object Map]",PCe="[object Object]",cY="[object Promise]",fY="[object Set]",dY="[object WeakMap]",hY="[object DataView]",kCe=Mc(EC),DCe=Mc(Dh),LCe=Mc(SC),NCe=Mc(wC),MCe=Mc(bC),ou=Lc;(EC&&ou(new EC(new ArrayBuffer(1)))!=hY||Dh&&ou(new Dh)!=lY||SC&&ou(SC.resolve())!=cY||wC&&ou(new wC)!=fY||bC&&ou(new bC)!=dY)&&(ou=function(e){var t=Lc(e),r=t==PCe?e.constructor:void 0,n=r?Mc(r):"";if(n)switch(n){case kCe:return hY;case DCe:return lY;case LCe:return cY;case NCe:return fY;case MCe:return dY}return t});var $Ce=Object.prototype,FCe=$Ce.hasOwnProperty;function jCe(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&FCe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var pY=Hs.Uint8Array;function oP(e){var t=new e.constructor(e.byteLength);return new pY(t).set(new pY(e)),t}function UCe(e,t){var r=t?oP(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var qCe=/\w*$/;function BCe(e){var t=new e.constructor(e.source,qCe.exec(e));return t.lastIndex=e.lastIndex,t}var vY=ol?ol.prototype:void 0,gY=vY?vY.valueOf:void 0;function VCe(e){return gY?Object(gY.call(e)):{}}function HCe(e,t){var r=t?oP(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var zCe="[object Boolean]",WCe="[object Date]",GCe="[object Map]",KCe="[object Number]",YCe="[object RegExp]",XCe="[object Set]",QCe="[object String]",JCe="[object Symbol]",ZCe="[object ArrayBuffer]",eOe="[object DataView]",tOe="[object Float32Array]",rOe="[object Float64Array]",nOe="[object Int8Array]",iOe="[object Int16Array]",aOe="[object Int32Array]",oOe="[object Uint8Array]",sOe="[object Uint8ClampedArray]",uOe="[object Uint16Array]",lOe="[object Uint32Array]";function cOe(e,t,r){var n=e.constructor;switch(t){case ZCe:return oP(e);case zCe:case WCe:return new n(+e);case eOe:return UCe(e,r);case tOe:case rOe:case nOe:case iOe:case aOe:case oOe:case sOe:case uOe:case lOe:return HCe(e,r);case GCe:return new n;case KCe:case QCe:return new n(e);case YCe:return BCe(e);case XCe:return new n;case JCe:return VCe(e)}}var mY=Object.create,fOe=(function(){function e(){}return function(t){if(!yp(t))return{};if(mY)return mY(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function dOe(e){return typeof e.constructor=="function"&&!rP(e)?fOe(eP(e)):{}}var hOe="[object Map]";function pOe(e){return Nc(e)&&ou(e)==hOe}var yY=Ff&&Ff.isMap,vOe=yY?tP(yY):pOe,gOe="[object Set]";function mOe(e){return Nc(e)&&ou(e)==gOe}var _Y=Ff&&Ff.isSet,yOe=_Y?tP(_Y):mOe,_Oe=1,EOe=2,SOe=4,Sne="[object Arguments]",wOe="[object Array]",bOe="[object Boolean]",TOe="[object Date]",AOe="[object Error]",wne="[object Function]",ROe="[object GeneratorFunction]",xOe="[object Map]",COe="[object Number]",bne="[object Object]",OOe="[object RegExp]",IOe="[object Set]",POe="[object String]",kOe="[object Symbol]",DOe="[object WeakMap]",LOe="[object ArrayBuffer]",NOe="[object DataView]",MOe="[object Float32Array]",$Oe="[object Float64Array]",FOe="[object Int8Array]",jOe="[object Int16Array]",UOe="[object Int32Array]",qOe="[object Uint8Array]",BOe="[object Uint8ClampedArray]",VOe="[object Uint16Array]",HOe="[object Uint32Array]",ei={};ei[Sne]=ei[wOe]=ei[LOe]=ei[NOe]=ei[bOe]=ei[TOe]=ei[MOe]=ei[$Oe]=ei[FOe]=ei[jOe]=ei[UOe]=ei[xOe]=ei[COe]=ei[bne]=ei[OOe]=ei[IOe]=ei[POe]=ei[kOe]=ei[qOe]=ei[BOe]=ei[VOe]=ei[HOe]=!0;ei[AOe]=ei[wne]=ei[DOe]=!1;function vh(e,t,r,n,i,a){var o,l=t&_Oe,u=t&EOe,f=t&SOe;if(o!==void 0)return o;if(!yp(e))return e;var d=_p(e);if(d){if(o=jCe(e),!l)return gne(e,o)}else{var h=ou(e),p=h==wne||h==ROe;if(cne(e))return wCe(e,l);if(h==bne||h==Sne||p&&!i){if(o=u||p?{}:dOe(e),!l)return u?CCe(e,ECe(o,e)):RCe(e,vCe(o,e))}else{if(!ei[h])return i?e:{};o=cOe(e,h,l)}}a||(a=new gd);var y=a.get(e);if(y)return y;a.set(e,o),yOe(e)?e.forEach(function(S){o.add(vh(S,t,r,S,e,a))}):vOe(e)&&e.forEach(function(S,w){o.set(w,vh(S,t,r,w,e,a))});var _=f?u?ICe:OCe:u?iP:nP,E=d?void 0:_(e);return Exe(E||e,function(S,w){E&&(w=S,S=e[w]),sne(o,w,vh(S,t,r,w,e,a))}),o}var zOe=4;function EY(e){return vh(e,zOe)}function Tne(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var WOe="[object Symbol]";function sP(e){return typeof e=="symbol"||Nc(e)&&Lc(e)==WOe}var GOe="Expected a function";function uP(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(GOe);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(uP.Cache||gl),r}uP.Cache=gl;var KOe=500;function YOe(e){var t=uP(e,function(n){return r.size===KOe&&r.clear(),n}),r=t.cache;return t}var XOe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,QOe=/\\(\\)?/g,JOe=YOe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(XOe,function(r,n,i,a){t.push(i?a.replace(QOe,"$1"):n||r)}),t});function ZOe(e){if(typeof e=="string"||sP(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var SY=ol?ol.prototype:void 0,wY=SY?SY.toString:void 0;function Ane(e){if(typeof e=="string")return e;if(_p(e))return Tne(e,Ane)+"";if(sP(e))return wY?wY.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function eIe(e){return e==null?"":Ane(e)}function Rne(e){return _p(e)?Tne(e,ZOe):sP(e)?[e]:gne(JOe(eIe(e)))}var tIe=1,rIe=4;function nIe(e){return vh(e,tIe|rIe)}function Xn(){return Xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xn.apply(this,arguments)}function xne(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Zu(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function bY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var TY=function(t){return Array.isArray(t)&&t.length===0},Sa=function(t){return typeof t=="function"},my=function(t){return t!==null&&typeof t=="object"},iIe=function(t){return String(Math.floor(Number(t)))===t},vx=function(t){return Object.prototype.toString.call(t)==="[object String]"},Cne=function(t){return Se.Children.count(t)===0},gx=function(t){return my(t)&&Sa(t.then)};function _i(e,t,r,n){n===void 0&&(n=0);for(var i=Rne(t);e&&n<i.length;)e=e[i[n++]];return e===void 0?r:e}function $s(e,t,r){for(var n=EY(e),i=n,a=0,o=Rne(t);a<o.length-1;a++){var l=o[a],u=_i(e,o.slice(0,a+1));if(u&&(my(u)||Array.isArray(u)))i=i[l]=EY(u);else{var f=o[a+1];i=i[l]=iIe(f)&&Number(f)>=0?[]:{}}}return(a===0?e:i)[o[a]]===r?e:(r===void 0?delete i[o[a]]:i[o[a]]=r,a===0&&r===void 0&&delete n[o[a]],n)}function One(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var i=0,a=Object.keys(e);i<a.length;i++){var o=a[i],l=e[o];my(l)?r.get(l)||(r.set(l,!0),n[o]=Array.isArray(l)?[]:{},One(l,t,r,n[o])):n[o]=t}return n}var Ep=Se.createContext(void 0);Ep.displayName="FormikContext";var aIe=Ep.Provider,oIe=Ep.Consumer;function lP(){var e=Se.useContext(Ep);return e}function sIe(e,t){switch(t.type){case"SET_VALUES":return Xn({},e,{values:t.payload});case"SET_TOUCHED":return Xn({},e,{touched:t.payload});case"SET_ERRORS":return Qu(e.errors,t.payload)?e:Xn({},e,{errors:t.payload});case"SET_STATUS":return Xn({},e,{status:t.payload});case"SET_ISSUBMITTING":return Xn({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Xn({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Xn({},e,{values:$s(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Xn({},e,{touched:$s(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Xn({},e,{errors:$s(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Xn({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Xn({},e,{touched:One(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Xn({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Xn({},e,{isSubmitting:!1});default:return e}}var kl={},kv={};function uIe(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,i=n===void 0?!0:n,a=e.validateOnMount,o=a===void 0?!1:a,l=e.isInitialValid,u=e.enableReinitialize,f=u===void 0?!1:u,d=e.onSubmit,h=Zu(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=Xn({validateOnChange:r,validateOnBlur:i,validateOnMount:o,onSubmit:d},h),y=Se.useRef(p.initialValues),_=Se.useRef(p.initialErrors||kl),E=Se.useRef(p.initialTouched||kv),S=Se.useRef(p.initialStatus),w=Se.useRef(!1),T=Se.useRef({});Se.useEffect(function(){return w.current=!0,function(){w.current=!1}},[]);var C=Se.useReducer(sIe,{values:p.initialValues,errors:p.initialErrors||kl,touched:p.initialTouched||kv,status:p.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),x=C[0],R=C[1],O=Se.useCallback(function(fe,me){return new Promise(function(ge,Te){var Pe=p.validate(fe,me);Pe==null?ge(kl):gx(Pe)?Pe.then(function(De){ge(De||kl)},function(De){Te(De)}):ge(Pe)})},[p.validate]),m=Se.useCallback(function(fe,me){var ge=p.validationSchema,Te=Sa(ge)?ge(me):ge,Pe=me&&Te.validateAt?Te.validateAt(me,fe):cIe(fe,Te);return new Promise(function(De,qe){Pe.then(function(){De(kl)},function(_t){_t.name==="ValidationError"?De(lIe(_t)):qe(_t)})})},[p.validationSchema]),D=Se.useCallback(function(fe,me){return new Promise(function(ge){return ge(T.current[fe].validate(me))})},[]),U=Se.useCallback(function(fe){var me=Object.keys(T.current).filter(function(Te){return Sa(T.current[Te].validate)}),ge=me.length>0?me.map(function(Te){return D(Te,_i(fe,Te))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ge).then(function(Te){return Te.reduce(function(Pe,De,qe){return De==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||De&&(Pe=$s(Pe,me[qe],De)),Pe},{})})},[D]),K=Se.useCallback(function(fe){return Promise.all([U(fe),p.validationSchema?m(fe):{},p.validate?O(fe):{}]).then(function(me){var ge=me[0],Te=me[1],Pe=me[2],De=_C.all([ge,Te,Pe],{arrayMerge:fIe});return De})},[p.validate,p.validationSchema,U,O,m]),B=Go(function(fe){return fe===void 0&&(fe=x.values),R({type:"SET_ISVALIDATING",payload:!0}),K(fe).then(function(me){return w.current&&(R({type:"SET_ISVALIDATING",payload:!1}),R({type:"SET_ERRORS",payload:me})),me})});Se.useEffect(function(){o&&w.current===!0&&Qu(y.current,p.initialValues)&&B(y.current)},[o,B]);var W=Se.useCallback(function(fe){var me=fe&&fe.values?fe.values:y.current,ge=fe&&fe.errors?fe.errors:_.current?_.current:p.initialErrors||{},Te=fe&&fe.touched?fe.touched:E.current?E.current:p.initialTouched||{},Pe=fe&&fe.status?fe.status:S.current?S.current:p.initialStatus;y.current=me,_.current=ge,E.current=Te,S.current=Pe;var De=function(){R({type:"RESET_FORM",payload:{isSubmitting:!!fe&&!!fe.isSubmitting,errors:ge,touched:Te,status:Pe,values:me,isValidating:!!fe&&!!fe.isValidating,submitCount:fe&&fe.submitCount&&typeof fe.submitCount=="number"?fe.submitCount:0}})};if(p.onReset){var qe=p.onReset(x.values,Z);gx(qe)?qe.then(De):De()}else De()},[p.initialErrors,p.initialStatus,p.initialTouched]);Se.useEffect(function(){w.current===!0&&!Qu(y.current,p.initialValues)&&(f&&(y.current=p.initialValues,W()),o&&B(y.current))},[f,p.initialValues,W,o,B]),Se.useEffect(function(){f&&w.current===!0&&!Qu(_.current,p.initialErrors)&&(_.current=p.initialErrors||kl,R({type:"SET_ERRORS",payload:p.initialErrors||kl}))},[f,p.initialErrors]),Se.useEffect(function(){f&&w.current===!0&&!Qu(E.current,p.initialTouched)&&(E.current=p.initialTouched||kv,R({type:"SET_TOUCHED",payload:p.initialTouched||kv}))},[f,p.initialTouched]),Se.useEffect(function(){f&&w.current===!0&&!Qu(S.current,p.initialStatus)&&(S.current=p.initialStatus,R({type:"SET_STATUS",payload:p.initialStatus}))},[f,p.initialStatus,p.initialTouched]);var Y=Go(function(fe){if(T.current[fe]&&Sa(T.current[fe].validate)){var me=_i(x.values,fe),ge=T.current[fe].validate(me);return gx(ge)?(R({type:"SET_ISVALIDATING",payload:!0}),ge.then(function(Te){return Te}).then(function(Te){R({type:"SET_FIELD_ERROR",payload:{field:fe,value:Te}}),R({type:"SET_ISVALIDATING",payload:!1})})):(R({type:"SET_FIELD_ERROR",payload:{field:fe,value:ge}}),Promise.resolve(ge))}else if(p.validationSchema)return R({type:"SET_ISVALIDATING",payload:!0}),m(x.values,fe).then(function(Te){return Te}).then(function(Te){R({type:"SET_FIELD_ERROR",payload:{field:fe,value:Te[fe]}}),R({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),Q=Se.useCallback(function(fe,me){var ge=me.validate;T.current[fe]={validate:ge}},[]),ie=Se.useCallback(function(fe){delete T.current[fe]},[]),ae=Go(function(fe,me){R({type:"SET_TOUCHED",payload:fe});var ge=me===void 0?i:me;return ge?B(x.values):Promise.resolve()}),ve=Se.useCallback(function(fe){R({type:"SET_ERRORS",payload:fe})},[]),H=Go(function(fe,me){var ge=Sa(fe)?fe(x.values):fe;R({type:"SET_VALUES",payload:ge});var Te=me===void 0?r:me;return Te?B(ge):Promise.resolve()}),J=Se.useCallback(function(fe,me){R({type:"SET_FIELD_ERROR",payload:{field:fe,value:me}})},[]),z=Go(function(fe,me,ge){R({type:"SET_FIELD_VALUE",payload:{field:fe,value:me}});var Te=ge===void 0?r:ge;return Te?B($s(x.values,fe,me)):Promise.resolve()}),ue=Se.useCallback(function(fe,me){var ge=me,Te=fe,Pe;if(!vx(fe)){fe.persist&&fe.persist();var De=fe.target?fe.target:fe.currentTarget,qe=De.type,_t=De.name,qt=De.id,Mt=De.value,Xe=De.checked;De.outerHTML;var wt=De.options,mt=De.multiple;ge=me||_t||qt,Te=/number|range/.test(qe)?(Pe=parseFloat(Mt),isNaN(Pe)?"":Pe):/checkbox/.test(qe)?hIe(_i(x.values,ge),Xe,Mt):wt&&mt?dIe(wt):Mt}ge&&z(ge,Te)},[z,x.values]),we=Go(function(fe){if(vx(fe))return function(me){return ue(me,fe)};ue(fe)}),ke=Go(function(fe,me,ge){me===void 0&&(me=!0),R({type:"SET_FIELD_TOUCHED",payload:{field:fe,value:me}});var Te=ge===void 0?i:ge;return Te?B(x.values):Promise.resolve()}),Be=Se.useCallback(function(fe,me){fe.persist&&fe.persist();var ge=fe.target,Te=ge.name,Pe=ge.id;ge.outerHTML;var De=me||Te||Pe;ke(De,!0)},[ke]),nt=Go(function(fe){if(vx(fe))return function(me){return Be(me,fe)};Be(fe)}),rt=Se.useCallback(function(fe){Sa(fe)?R({type:"SET_FORMIK_STATE",payload:fe}):R({type:"SET_FORMIK_STATE",payload:function(){return fe}})},[]),q=Se.useCallback(function(fe){R({type:"SET_STATUS",payload:fe})},[]),I=Se.useCallback(function(fe){R({type:"SET_ISSUBMITTING",payload:fe})},[]),N=Go(function(){return R({type:"SUBMIT_ATTEMPT"}),B().then(function(fe){var me=fe instanceof Error,ge=!me&&Object.keys(fe).length===0;if(ge){var Te;try{if(Te=L(),Te===void 0)return}catch(Pe){throw Pe}return Promise.resolve(Te).then(function(Pe){return w.current&&R({type:"SUBMIT_SUCCESS"}),Pe}).catch(function(Pe){if(w.current)throw R({type:"SUBMIT_FAILURE"}),Pe})}else if(w.current&&(R({type:"SUBMIT_FAILURE"}),me))throw fe})}),M=Go(function(fe){fe&&fe.preventDefault&&Sa(fe.preventDefault)&&fe.preventDefault(),fe&&fe.stopPropagation&&Sa(fe.stopPropagation)&&fe.stopPropagation(),N().catch(function(me){console.warn("Warning: An unhandled error was caught from submitForm()",me)})}),Z={resetForm:W,validateForm:B,validateField:Y,setErrors:ve,setFieldError:J,setFieldTouched:ke,setFieldValue:z,setStatus:q,setSubmitting:I,setTouched:ae,setValues:H,setFormikState:rt,submitForm:N},L=Go(function(){return d(x.values,Z)}),G=Go(function(fe){fe&&fe.preventDefault&&Sa(fe.preventDefault)&&fe.preventDefault(),fe&&fe.stopPropagation&&Sa(fe.stopPropagation)&&fe.stopPropagation(),W()}),pe=Se.useCallback(function(fe){return{value:_i(x.values,fe),error:_i(x.errors,fe),touched:!!_i(x.touched,fe),initialValue:_i(y.current,fe),initialTouched:!!_i(E.current,fe),initialError:_i(_.current,fe)}},[x.errors,x.touched,x.values]),ce=Se.useCallback(function(fe){return{setValue:function(ge,Te){return z(fe,ge,Te)},setTouched:function(ge,Te){return ke(fe,ge,Te)},setError:function(ge){return J(fe,ge)}}},[z,ke,J]),be=Se.useCallback(function(fe){var me=my(fe),ge=me?fe.name:fe,Te=_i(x.values,ge),Pe={name:ge,value:Te,onChange:we,onBlur:nt};if(me){var De=fe.type,qe=fe.value,_t=fe.as,qt=fe.multiple;De==="checkbox"?qe===void 0?Pe.checked=!!Te:(Pe.checked=!!(Array.isArray(Te)&&~Te.indexOf(qe)),Pe.value=qe):De==="radio"?(Pe.checked=Te===qe,Pe.value=qe):_t==="select"&&qt&&(Pe.value=Pe.value||[],Pe.multiple=!0)}return Pe},[nt,we,x.values]),_e=Se.useMemo(function(){return!Qu(y.current,x.values)},[y.current,x.values]),Ce=Se.useMemo(function(){return typeof l<"u"?_e?x.errors&&Object.keys(x.errors).length===0:l!==!1&&Sa(l)?l(p):l:x.errors&&Object.keys(x.errors).length===0},[l,_e,x.errors,p]),Me=Xn({},x,{initialValues:y.current,initialErrors:_.current,initialTouched:E.current,initialStatus:S.current,handleBlur:nt,handleChange:we,handleReset:G,handleSubmit:M,resetForm:W,setErrors:ve,setFormikState:rt,setFieldTouched:ke,setFieldValue:z,setFieldError:J,setStatus:q,setSubmitting:I,setTouched:ae,setValues:H,submitForm:N,validateForm:B,validateField:Y,isValid:Ce,dirty:_e,unregisterField:ie,registerField:Q,getFieldProps:be,getFieldMeta:pe,getFieldHelpers:ce,validateOnBlur:i,validateOnChange:r,validateOnMount:o});return Me}function ULe(e){var t=uIe(e),r=e.component,n=e.children,i=e.render,a=e.innerRef;return Se.useImperativeHandle(a,function(){return t}),Se.createElement(aIe,{value:t},r?Se.createElement(r,t):i?i(t):n?Sa(n)?n(t):Cne(n)?null:Se.Children.only(n):null)}function lIe(e){var t={};if(e.inner){if(e.inner.length===0)return $s(t,e.path,e.message);for(var i=e.inner,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var a;if(r){if(n>=i.length)break;a=i[n++]}else{if(n=i.next(),n.done)break;a=n.value}var o=a;_i(t,o.path)||(t=$s(t,o.path,o.message))}}return t}function cIe(e,t,r,n){r===void 0&&(r=!1),n===void 0&&(n={});var i=TC(e);return t[r?"validateSync":"validate"](i,{abortEarly:!1,context:n})}function TC(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(i){return Array.isArray(i)===!0||JK(i)?TC(i):i!==""?i:void 0}):JK(e[n])?t[n]=TC(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function fIe(e,t,r){var n=e.slice();return t.forEach(function(a,o){if(typeof n[o]>"u"){var l=r.clone!==!1,u=l&&r.isMergeableObject(a);n[o]=u?_C(Array.isArray(a)?[]:{},a,r):a}else r.isMergeableObject(a)?n[o]=_C(e[o],a,r):e.indexOf(a)===-1&&n.push(a)}),n}function dIe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function hIe(e,t,r){if(typeof e=="boolean")return!!t;var n=[],i=!1,a=-1;if(Array.isArray(e))n=e,a=e.indexOf(r),i=a>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!i?n.concat(r):i?n.slice(0,a).concat(n.slice(a+1)):n}var pIe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Se.useLayoutEffect:Se.useEffect;function Go(e){var t=Se.useRef(e);return pIe(function(){t.current=e}),Se.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.current.apply(void 0,n)},[])}function qLe(e){var t=e.validate,r=e.name,n=e.render,i=e.children,a=e.as,o=e.component,l=Zu(e,["validate","name","render","children","as","component"]),u=lP(),f=Zu(u,["validate","validationSchema"]),d=f.registerField,h=f.unregisterField;Se.useEffect(function(){return d(r,{validate:t}),function(){h(r)}},[d,h,r,t]);var p=f.getFieldProps(Xn({name:r},l)),y=f.getFieldMeta(r),_={field:p,form:f};if(n)return n(Xn({},_,{meta:y}));if(Sa(i))return i(Xn({},_,{meta:y}));if(o){if(typeof o=="string"){var E=l.innerRef,S=Zu(l,["innerRef"]);return Se.createElement(o,Xn({ref:E},p,S),i)}return Se.createElement(o,Xn({field:p,form:f},l),i)}var w=a||"input";if(typeof w=="string"){var T=l.innerRef,C=Zu(l,["innerRef"]);return Se.createElement(w,Xn({ref:T},p,C),i)}return Se.createElement(w,Xn({},p,l),i)}var vIe=Se.forwardRef(function(e,t){var r=e.action,n=Zu(e,["action"]),i=r??"#",a=lP(),o=a.handleReset,l=a.handleSubmit;return Se.createElement("form",Object.assign({onSubmit:l,ref:t,onReset:o,action:i},n))});vIe.displayName="Form";function gIe(e){var t=function(i){return Se.createElement(oIe,null,function(a){return Se.createElement(e,Object.assign({},i,{formik:a}))})},r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+r+")",FEe(t,e)}var mIe=function(t,r,n){var i=jf(t),a=i[r];return i.splice(r,1),i.splice(n,0,a),i},yIe=function(t,r,n){var i=jf(t),a=i[r];return i[r]=i[n],i[n]=a,i},mx=function(t,r,n){var i=jf(t);return i.splice(r,0,n),i},_Ie=function(t,r,n){var i=jf(t);return i[r]=n,i},jf=function(t){if(t){if(Array.isArray(t))return[].concat(t);var r=Object.keys(t).map(function(n){return parseInt(n)}).reduce(function(n,i){return i>n?i:n},0);return Array.from(Xn({},t,{length:r+1}))}else return[]},EIe=(function(e){xne(t,e);function t(n){var i;return i=e.call(this,n)||this,i.updateArrayField=function(a,o,l){var u=i.props,f=u.name,d=u.formik.setFormikState;d(function(h){var p=typeof l=="function"?l:a,y=typeof o=="function"?o:a,_=$s(h.values,f,a(_i(h.values,f))),E=l?p(_i(h.errors,f)):void 0,S=o?y(_i(h.touched,f)):void 0;return TY(E)&&(E=void 0),TY(S)&&(S=void 0),Xn({},h,{values:_,errors:l?$s(h.errors,f,E):h.errors,touched:o?$s(h.touched,f,S):h.touched})})},i.push=function(a){return i.updateArrayField(function(o){return[].concat(jf(o),[nIe(a)])},!1,!1)},i.handlePush=function(a){return function(){return i.push(a)}},i.swap=function(a,o){return i.updateArrayField(function(l){return yIe(l,a,o)},!0,!0)},i.handleSwap=function(a,o){return function(){return i.swap(a,o)}},i.move=function(a,o){return i.updateArrayField(function(l){return mIe(l,a,o)},!0,!0)},i.handleMove=function(a,o){return function(){return i.move(a,o)}},i.insert=function(a,o){return i.updateArrayField(function(l){return mx(l,a,o)},function(l){return mx(l,a,null)},function(l){return mx(l,a,null)})},i.handleInsert=function(a,o){return function(){return i.insert(a,o)}},i.replace=function(a,o){return i.updateArrayField(function(l){return _Ie(l,a,o)},!1,!1)},i.handleReplace=function(a,o){return function(){return i.replace(a,o)}},i.unshift=function(a){var o=-1;return i.updateArrayField(function(l){var u=l?[a].concat(l):[a];return o<0&&(o=u.length),u},function(l){var u=l?[null].concat(l):[null];return o<0&&(o=u.length),u},function(l){var u=l?[null].concat(l):[null];return o<0&&(o=u.length),u}),o},i.handleUnshift=function(a){return function(){return i.unshift(a)}},i.handleRemove=function(a){return function(){return i.remove(a)}},i.handlePop=function(){return function(){return i.pop()}},i.remove=i.remove.bind(bY(i)),i.pop=i.pop.bind(bY(i)),i}var r=t.prototype;return r.componentDidUpdate=function(i){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Qu(_i(i.formik.values,i.name),_i(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(i){var a;return this.updateArrayField(function(o){var l=o?jf(o):[];return a||(a=l[i]),Sa(l.splice)&&l.splice(i,1),l},!0,!0),a},r.pop=function(){var i;return this.updateArrayField(function(a){var o=a;return i||(i=o&&o.pop&&o.pop()),o},!0,!0),i},r.render=function(){var i={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},a=this.props,o=a.component,l=a.render,u=a.children,f=a.name,d=a.formik,h=Zu(d,["validate","validationSchema"]),p=Xn({},i,{form:h,name:f});return o?Se.createElement(o,p):l?l(p):u?typeof u=="function"?u(p):Cne(u)?null:Se.Children.only(u):null},t})(Se.Component);EIe.defaultProps={validateOnChange:!0};var SIe=(function(e){xne(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.shouldComponentUpdate=function(i){return _i(this.props.formik.errors,this.props.name)!==_i(i.formik.errors,this.props.name)||_i(this.props.formik.touched,this.props.name)!==_i(i.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(i).length},r.render=function(){var i=this.props,a=i.component,o=i.formik,l=i.render,u=i.children,f=i.name,d=Zu(i,["component","formik","render","children","name"]),h=_i(o.touched,f),p=_i(o.errors,f);return h&&p?l?Sa(l)?l(p):null:u?Sa(u)?u(p):null:a?Se.createElement(a,d,p):p:null},t})(Se.Component),BLe=gIe(SIe);const wIe=Se.createContext(""),Nh=Se.memo(function(e){const{phrase:t,namespace:r,options:n}=e,i=Se.useContext(wIe),a=r||i,o=Object.assign({escapeText:!0},n),l=Gr.getPhrase(a,t,o);return de.jsx("span",{dangerouslySetInnerHTML:{__html:l}})},(e,t)=>e.namespace===t.namespace&&e.phrase===t.phrase&&ys.isEqual(e.options,t.options));function bIe(e){var n;const[t,r]=Se.useState(!1);return Se.useEffect(()=>{var i;if(!e.isValid){r(!1);return}e.dirty||(i=e.initialStatus)!=null&&i.allowInitialSubmit?r(!0):r(!1)},[e.isValid,(n=e.initialStatus)==null?void 0:n.allowInitialSubmit,e.dirty,e.values]),Se.useEffect(()=>{e.isSubmitting&&r(!1)},[e.isSubmitting]),t}function TIe(e){const{showSpinner:t,children:r,style:n,spinnerText:i,...a}=e,o=Se.useRef(null),[{width:l,height:u},f]=Se.useState({}),[d,h]=Se.useState(t);Se.useEffect(()=>{if(!t){f({});return}const y=o.current,_=y.offsetHeight,E=y.offsetWidth;!_||!E||f({width:E,height:_})},[t]),Se.useLayoutEffect(()=>{h(t)},[t]);const p={...n};return l&&(p.width=`${l+1}px`),u&&(p.height=`${u+1}px`),de.jsx(oy,{ref:o,disabled:t,style:p,...a,children:d?de.jsxs(de.Fragment,{children:[de.jsx(fy,{as:"span",animation:"border",role:"status",size:"sm"}),!!i&&de.jsx("span",{className:"ps-1",children:i})]}):r})}const AIe={info:"custom-toggle-info"};Ine.defaults={floatEnd:!0};function Ine(e){const{on:t,showStateWhenDisabled:r,tooltipText:n,variant:i,floatEnd:a,hideOutline:o,...l}=e;function u(...S){e.disabled||e.onClick(...S)}const f="d-inline-block align-top custom-toggle toggle-option",d=e.disabled?"disabled":"",h=o?"outline-none":"",p=AIe[i]??"",y=a?"float-end":"";let _=t?"on":"";e.disabled&&!r&&(_="");const E=`${f} ${p} ${_} ${d} ${h} ${y}`;return e.tooltipText?de.jsx(Ql,{title:n,spanHack:!0,children:de.jsx(eC,{...l,role:"switch","aria-checked":`${t}`,onClick:u,className:E,children:de.jsx("span",{className:"handle"})})}):de.jsx(eC,{...l,role:"switch","aria-checked":t,onClick:u,className:E,children:de.jsx("span",{className:"handle"})})}const Pne="shared.popup",ec=e=>de.jsx("div",{className:`d-flex justify-content-end align-items-center border-top pt-3 px-3 mx-n3 undo-changes-btn ${e.className??""}`,children:e.children});function kne(e){return de.jsx(TIe,{variant:e.variant||"primary",type:e.type||"submit",disabled:e.disabled||e.showSpinner,size:e.size,className:e.className?e.className:"",onClick:()=>{var t;return(t=e.onClick)==null?void 0:t.call(e)},showSpinner:e.showSpinner,spinnerText:e.spinnerText,children:e.text?de.jsx(de.Fragment,{children:e.text}):de.jsx(Nh,{namespace:Pne,phrase:e.isNew?"create":"save"})})}function RIe(e){const t=lP(),r=bIe(t??{}),n=(t==null?void 0:t.isSubmitting)||e.showSpinner;function i(){return typeof e.disabled=="boolean"?e.disabled:!!t&&!r||n}return de.jsx(kne,{...e,disabled:i(),showSpinner:n})}const xIe=e=>Dr.useContext(Ep)?de.jsx(RIe,{...e}):de.jsx(kne,{...e}),CIe=e=>de.jsx(oy,{onClick:e.onClick,variant:e.variant||"link",size:e.size,className:e.className?e.className:"me-2",children:e.text?e.text:de.jsx(Nh,{namespace:Pne,phrase:"cancel"})}),OIe=e=>de.jsx(g1e.Check,{type:"checkbox",className:e.className??"me-auto",label:e.label,id:e.id,onChange:e.onToggle,checked:e.checked}),IIe=e=>de.jsxs("div",{className:"d-flex align-items-center me-auto",children:[de.jsx(Ine,{on:e.on,onClick:e.onClick,disabled:e.disabled,tooltipText:e.tooltip}),!!e.label&&de.jsx("span",{className:"fw-semibold ms-2",children:e.label})]});ec.Submit=xIe;ec.Cancel=CIe;ec.Checkbox=OIe;ec.Toggle=IIe;const AY="shared.shared-utils";let nu=null;const PIe={render:(e,t={})=>{let r=document.getElementById("dialog-region");r||(r=document.createElement("div"),r.id="dialog-region",document.appendChild(r)),nu||(nu=UI.createRoot(r));function n(){var l;if(Ao.isFunction((l=t.submitButtonProps)==null?void 0:l.onClick)){const u=t.submitButtonProps.onClick();if(u instanceof Promise){u.then(()=>{nu.unmount(),nu=null});return}}nu.unmount(),nu=null}function i(){var l;Ao.isFunction((l=t.cancelButtonProps)==null?void 0:l.onClick)&&t.cancelButtonProps.onClick(),nu.unmount(),nu=null}const a={...t.submitButtonProps?t.submitButtonProps:{},onClick:()=>{n()}},o={...t.cancelButtonProps?t.cancelButtonProps:{},onClick:()=>{i()}};nu.render(de.jsxs(Zre,{title:t.title,closePopup:i,size:t.size,centered:t.centered,bodyClassName:"overflow-hidden",dialogClassName:t.dialogClassName,children:[e,!t.hideButtons&&de.jsxs(ec,{className:t.buttonContainerClassName,children:[t.cancelButtonProps&&de.jsx(ec.Cancel,{...o}),t.submitButtonProps&&de.jsx(ec.Submit,{...a})]})]}))},getDefaultSubmitButton(){return{variant:"dark",text:Gr.getPhrase(AY,"confirm")}},getDefaultCancelButton(){return{variant:"light",text:Gr.getPhrase(AY,"cancel")}}},Dv=Gr.encloseNamespace("shared.hooks");let AC=!1;const RY={isLocked:()=>AC},kIe=()=>{const[e,t]=Dr.useState([]),r=Mr.Radio.channel(mn.SHELL);Dr.useEffect(()=>(e.find(u=>!u.allowAppLinks)&&r.on(En.NAV_IS_LOCKED,a),e.length&&window.addEventListener("beforeunload",o),()=>{r.off(En.NAV_IS_LOCKED,a),window.removeEventListener("beforeunload",o)}),[e]),Dr.useEffect(()=>{function u(){n({id:"upload",title:Dv("navLockTitle"),text:Dv("navLockBody"),allowAppLinks:!0})}const f=Mr.Radio.channel(ah.VIDEO_UPLOAD);return f.on(fu.FILES_ADDED,u),f.on(fu.UNLOCK_NAV,i),()=>{f.off(fu.FILES_ADDED,u),f.off(fu.UNLOCK_NAV,i)}},[]);function n(u={}){e.find(f=>f.id===u.id)||(u.allowAppLinks||r.trigger(En.LOCK_NAV),t([...e,u]),AC=!0)}function i(u){const f=e.filter(d=>d.id!==u);(f.length===0||!f.find(d=>!d.allowAppLinks))&&r.trigger(En.UNLOCK_NAV),t(f),f.length||(AC=!1)}function a(u){var d;if(!e.length)return;const f=e.find(h=>!h.allowAppLinks);if((d=f.appLinkWhitelist)!=null&&d.find(h=>h.action===u.action&&h.application===u.application)){r.trigger(En.UNLOCK_NAV),window.setTimeout(()=>{Ai.trigger(u),r.trigger(En.LOCK_NAV)},0);return}if(Ao.isFunction(f.renderCustomDialog)){f.renderCustomDialog();return}PIe.render(de.jsx("p",{children:f.text}),{title:f.title,submitButtonProps:{onClick:()=>{f.onConfirmUnlock&&f.onConfirmUnlock(),l(u)},variant:"danger",text:Dv("discard")},cancelButtonProps:{text:Dv("cancel"),variant:"link"}})}function o(u){let f=e.find(d=>d.allowAppLinks);return f||(f=ac.first(e)),u.returnValue=f.text,f.text}function l(u){r.trigger(En.NAV_UNLOCKED_BY_USER),e.forEach(f=>{f.allowAppLinks||i(f.id)}),window.removeEventListener("beforeunload",o),Ai.trigger(u)}return{lock:n,unlock:i}},DIe=9e5;class LIe extends za{constructor(){super(...arguments),this.canReload=!0}get name(){return XI.OldVersion}initialize(){this.onVisibilityChange=this.onVisibilityChange.bind(this),this.onInactivityTimeout=this.onInactivityTimeout.bind(this)}handleOldVersion(){document.addEventListener("visibilitychange",this.onVisibilityChange),this.onVisibilityChange()}onVisibilityChange(){if(!document.hidden){window.clearTimeout(this.timeout);return}this.setInactivityTimeout()}setInactivityTimeout(){this.timeout=window.setTimeout(this.onInactivityTimeout,DIe)}onInactivityTimeout(){if(RY.isLocked()){this.setInactivityTimeout();return}this.onInactive()}onInactive(){if(!this.canReload||RY.isLocked()){this.setInactivityTimeout();return}Dn.Reload()}setCanReload(t){this.canReload=t}}const NIe=new LIe,RC={Success:"Success! 🙌",Warning:"Whoops...",Fail:"Oops...",Info:"FYI"};function MIe(e){cu.getInstance(ry.ALERT).createAlert({heading:RC.Fail,type:ms.Fail,message:e.message})}function $Ie(e){Mr.Radio.channel("error:view").reply("current:error",()=>e),Ai.trigger({application:ki.DEFAULT,action:So.Default.NOT_FOUND})}function xY(e){Mr.Radio.channel("error:view").reply("current:error",()=>e),Ai.trigger({application:ki.DEFAULT,action:So.Default.ERROR})}function FIe(e){Mr.Radio.channel("error:view").reply("current:error",()=>e),Ai.trigger({application:ki.DEFAULT,action:So.Default.DIALOG_ERROR})}function jIe(){NIe.handleOldVersion()}function UIe(e,t){e.registerErrorHandler(iy,xY).registerErrorHandler(Dc,FIe).registerErrorHandler(Jre,MIe).registerErrorHandler(pte,$Ie).registerErrorHandler($f,xY).registerErrorHandler(Qre,jIe),ZAe("dark"),t(e)}class qIe extends Lye{constructor(){super(...arguments),this.regionRoots={},this.isReactComponentRendered={}}isReactComponent(t){return Dr&&Dr.isValidElement(t)}showChildView(t,r,n){if(this.isReactComponent(r)){this.showChildReactComponent(t,r),this.isReactComponentRendered[t]=!0;return}this.isReactComponentRendered[t]&&this.unmountRoot(t),super.showChildView(t,r,n),this.isReactComponentRendered[t]=!1}showChildReactComponent(t,r){if(this.isAttached()){this.renderChildReactComponent(t,r);return}this.listenToOnce(this,"attach",()=>this.renderChildReactComponent(t,r))}renderChildReactComponent(t,r){const n=this.getRegion(t),i=this.$el.find(n.el);!i||!i.length||(n.trigger("before:show"),this.regionRoots[t]||(this.regionRoots[t]=UI.createRoot(i[0])),this.regionRoots[t].render(r),window.setTimeout(()=>n.trigger("show"),0),this.listenToOnce(this,`unmount:${t}`,()=>this.unmountRoot(t)),this.listenToOnce(this,"before:destroy",()=>this.unmountRoot(t)))}unmountRoot(t){this.regionRoots[t]&&(this.regionRoots[t].unmount(),delete this.regionRoots[t])}wrapWithStore(t){return de.jsx(Kee,{store:this.options.store,children:t})}}class yx extends Dr.Component{constructor(t){super(t),this.currentErrorHandled=!1,this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){this.currentErrorHandled||(this.currentErrorHandled=!0,window.trackJs&&window.trackJs.console.error(t.message,{errorInfo:r}),this.props.throwError&&(dr.throw(new this.props.throwError(t.message)),window.setTimeout(()=>{this.currentErrorHandled=!1,this.setState({error:null})},500)))}render(){const{error:t}=this.state;if(t&&this.props.renderError){const r=this.props.renderError;return de.jsx(r,{})}return t||!this.props.children?de.jsx(de.Fragment,{}):this.props.children}}function BIe(e){return document.querySelector(`.${e}`)}const VIe=Dr.createContext(null);function HIe(e){const[t,r]=Dr.useState();return Dr.useEffect(()=>{r(BIe(e.containerClassName))},[]),de.jsx(VIe.Provider,{value:{container:t},children:e.children})}function hf(e){const[t,r]=Se.useState(window.matchMedia(e).matches);return Se.useEffect(()=>{const n=window.matchMedia(e);n.matches!==t&&r(n.matches);const i=()=>r(n.matches);return n.addListener(i),()=>n.removeListener(i)},[e]),t}const Dne=Dr.createContext({}),zIe=e=>{const t=hf("(max-width: 575.98px)"),r=hf("(min-width: 576px) and (max-width: 767.98px)"),n=hf("(min-width: 768px) and (max-width: 991.98px)"),i=hf("(min-width: 992px) and (max-width: 1199.98px)"),a=hf("(min-width: 1200px) and (max-width: 1439.98px)"),o=hf("(min-width: 1440px)"),l=Dr.useMemo(()=>({xs:t,sm:r,md:n,lg:i,xl:a,xxl:o}),[t,r,n,i,a,o]);return de.jsx(Dne.Provider,{value:l,children:e.children})},_x="shared.unspecifiedDialogError";class WIe extends Dc{constructor(){super("Unspecified dialog error"),this.btnVariant="dark"}get name(){return"UnspecifiedDialogError"}get dialogOptions(){return{title:Gr.getPhrase(_x,"title"),text:Gr.getPhrase(_x,"body"),buttons:[{text:Gr.getPhrase(_x,"close"),className:`btn btn-${this.btnVariant}`,success:!0}]}}}function GIe(){function e(r){r.key==="Tab"&&(document.body.classList.add("user-is-tabbing"),window.removeEventListener("keydown",e),window.addEventListener("mousedown",t))}function t(){document.body.classList.remove("user-is-tabbing"),window.removeEventListener("mousedown",t),window.addEventListener("keydown",e)}Se.useEffect(()=>(window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)),[])}function KIe(){const e=ea(al.version());return e.data?de.jsx("footer",{className:"text-center text-secondary my-2",children:de.jsxs("small",{children:["2003 - ",new Date().getFullYear()," © ClickView | Version: ",e.data]})}):de.jsx(de.Fragment,{})}function YIe(){return de.jsx("svg",{viewBox:"0 0 434 71",children:de.jsxs("g",{children:[de.jsx("path",{fill:"#000000",d:"M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z"}),de.jsx("path",{fill:"#F8981D",d:"M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z"})]})})}function VLe(){return de.jsx("svg",{viewBox:"0 0 41 70",children:de.jsx("g",{children:de.jsx("path",{fill:"#F8981D",d:"M 0 0 41 35 0 70z"})})})}const ta={currentUser(e,t){return{url:"/api/currentuser",key:"currentuser",normalizeOptions:{namespace:"currentuser"},bootstrapName:Zl.USER,success:e,error:t}},user(e,t,r){return{url:`{gateway}/v1/users/${e}`,key:`users:${e}`,success:t,error:r}},groups(e){return{url:`{gateway}/v1/objects/${e}/members?query=groups`,key:`users:${e}:groups`}},usersById(e,t,r){return{url:Xo.urlBuilder("{gateway}/v1/users",{id:e}),key:`users:list:${e.join(",")}`,success:t,error:r,formatData:n=>{const i=n.reduce((a,o)=>(a[o.id.toString()]=o,a),{});return e.map(a=>i[a.toString()])}}},getUserIdByQuery(e,t){return{url:`{gateway}/v1/users/ids?${e}`,key:`users:ids:${e}`,success:t}},workspace(e,t){return{url:"/api/domain/v2/me/workspace?query=categorytree",key:"workspace",success:e,error:t}},sendVerificationEmail(e,t,r,n){return{url:"/api/account/email",key:"verify:email",type:Vi.POST,data:{emailAddress:e},success:t,error:r,always:n,invalidationKeys:["verify:email:status"]}},token(e,t){return{url:"/api/token",key:"token",bootstrapName:Zl.TOKEN,formatData:r=>typeof r.expiry!="number"||r.expiry<=0||isNaN(r.expiry)?r:{value:r.value,localTTL:new Date().getTime()+r.expiry*1e3},success:e,error:t}},permissions(e,t){return{url:"{gateway}/v1/users/me/permissions",publicUrl:"/api/permissions",key:"permissions",success:e,error:t,normalize:!1,formatData:r=>r.reduce((n,i)=>(n[i]=!0,n),{}),bootstrapName:Zl.PERMISSIONS}},customers(e){return{url:`{gateway}/v1/objects/${e}/customers`,key:"customers"}},accessPolicy(){return{url:"{gateway}/v1/users/me/access-policy",key:"access:policy"}},updateJobTitle(e,t,r){return{url:`{gateway}/v1/customers/${t}/users/job-titles`,key:`update:${e}:job:title:${r}`,type:Vi.PUT,data:{customerId:t,users:[{userId:e,jobTitle:r}]},updateState:{keys:`users:${e}`,updateData:n=>{const i=n[`users:${e}`];return{...n,[`users:${e}`]:{...i,userProfile:{...i.userProfile,metadata:{...i.userProfile.metadata||{},jobTitle:r}}}}}}}},getById(e,t){const r=ac.uniq(e);return r.sort(),{url:`{gateway}/v1/objects?query=${`avatar&${r.map(i=>`id=${i}`).join("&")}`}`,key:`users:by:id:${r.join(",")}`,error:t}},updateCurrentUser(e,t,r,n){return{url:"{gateway}/v1/users/me/info",key:"edit:current:user",type:Vi.PUT,data:e,invalidationKeys:["search:aggregation","currentuser"],success:t,error:r,always:n}},updateUserJobTitle(e){return{url:"{gateway}/v1/users/me/profile",key:"edit:current:user:role",type:Vi.PUT,data:{jobTitle:e},invalidationKeys:["search:aggregation","currentuser"]}}},XIe=e=>{const t=ea(ta.currentUser()),r=ea(t.hasCompleted&&ch.getCustomerSettingsRequest(t.data)),n=ea(t.hasCompleted&&ch.getUserSettingsRequest(t.data)),i=cp(),a=!!r.hasCompleted&&!!n.hasCompleted,o=E=>{var T,C;if(!a||r.hasError||n.hasError)return null;const S=(T=r.data)==null?void 0:T[E];if(S)return S==null?void 0:S.value;const w=(C=n.data)==null?void 0:C[E];return w?w==null?void 0:w.value:null};function l(E,S,w,T,C){return E==="user"?Hl.updateUserSetting(S,w,T,C):Hl.updateCustomerSetting(S,w,T,C)}const u=(E,S,w,T,C)=>{function x(){Ba.logUserAction({name:S.name,value:S.value},{location:e,entity:kn.UserSetting,actionType:jt.Edit}),w==null||w()}fd(i,l(E,S,x,T,C))},f=(E,S)=>new Promise((w,T)=>{u(E,S,w,T)}),d=(E,S,w,T)=>u("user",E,S,w,T),h=(E,S,w,T)=>u("customer",E,S,w,T),p=E=>f("user",E),y=E=>f("customer",E);function _(){var E;return(E=t.data)!=null&&E.isAuthenticated?o(yr.HasTopicDirectories):!0}return{isLoadingSettings:!a,updateUserSetting:d,updateUserSettingAsync:p,updateCustomerSetting:h,updateCustomerSettingAsync:y,userSettings:n,shareToGoogleClassroom:o(yr.ShareToGoogleClassroom),shareToMicrosoftTeams:o(yr.ShareToMicrosoftTeams),hasLti:o(yr.LTI),defaultPlaybackQuality:o(yr.DefaultPlaybackQuality),defaultLocalCachePlaybackQuality:o(yr.DefaultLocalCachePlaybackQuality),enableSubtitlesDefault:o(yr.EnableSubtitlesDefault),hasCompletedOnboardingV1:o(yr.HasCompletedOnboardingV1),hasCompletedOnboardingV2:o(yr.HasCompletedOnboardingV2),hasOnboardingV2:o(yr.HasNewOnboarding),hasCompletedOnboardingStepCreatePlaylist:o(yr.HasCompletedOnboardingStepCreatePlaylist),hasCompletedOnboardingProductTips:o(yr.HasCompletedOnboardingProductTips),liteUpgradeTypeCustomer:o(yr.LiteUpgradeTypeCustomer),hasNewClassificationView:o(yr.HasNewClassificationView),hasCuratedDiscoverDashboards:o(yr.HasCuratedDiscoverDashboards),hasSpecialEventCalendar:o(yr.HasSpecialEventCalendar),hasLiteSearchDropdown:o(yr.HasLiteSearchDropdown),policyEndTime:o(yr.PolicyEndTime),bulkOnboardingPreferencesState:o(yr.BulkOnboardingPreferencesState),hasOnlineTopics:o(yr.Topics),hasPreviewVideos:o(yr.PreviewVideos),hasUserEnabledPreviewVideos:o(yr.UserEnabledPreviewVideos),domainSettings:o(yr.DomainSettings),inviteColleague:o(yr.InviteColleague),myVideosFolders:o(yr.MyVideosFolders),exchangeTvProductOption:o(yr.ExchangeTvProductOption),messageFrequencyOption:o(yr.MessageFrequencyOption),tvRegion:o(yr.TvRegion),preferredTheme:o(yr.PreferredTheme),hasEnabledViviStudentCasting:o(yr.HasEnabledViviStudentCasting),hasEnabledViviPlayback:o(yr.HasEnabledViviPlayback),hasEnabledAppleTvPlayback:o(yr.HasEnabledAppleTvPlayback),hasDisplayedPresentationSwitcherProductTip:o(yr.HasDisplayedPresentationSwitcherProductTip),hasDisplayedTopicsDirectoryTabProductTip:o(yr.HasDisplayedTopicsDirectoryTabProductTip),hasDisplayedGiveFeedbackFormProductTip:o(yr.HasDisplayedGiveFeedbackFormProductTip),hasDisplayedWhatsNewLinkProductTip:o(yr.HasDisplayedWhatsNewLinkProductTip),showExchangeSearchResults:o(yr.ShowExchangeSearchResultsUser),shareOverrideRestrictions:o(yr.ShareOverrideRestrictions),hasTopicDirectories:_(),hasTopicVideoListFeature:o(yr.HasTopicVideoListFeature),hasManageGroupPermissions:o(yr.HasManageGrouPermissions),experimentalInteractiveQuestions:o(yr.ExperimentalInteractiveQuestions),hasClassrooms:o(yr.HasClassrooms),hasNewSearch:o(yr.HasNewSearch),hasPlayPageTranscript:o(yr.HasPlayPageTranscript),hasShareFlowV2:o(yr.HasShareFlowV2),referralCount:o(yr.ReferralCount),hasPartnerProfiles:o(yr.HasPartnerProfiles),defaultCitationStyle:o(yr.DefaultCitationStyle),hasStudentReach:o(yr.HasStudentReach),studentReachClassroomSize:o(yr.StudentReachClassroomSize),schoolStartTime:o(yr.SchoolStartTime),schoolEndTime:o(yr.SchoolEndTime),timezone:o(yr.Timezone)}};var yy=(e=>(e.Small="small",e.Medium="medium",e.Large="large",e))(yy||{}),Ju=(e=>(e[e.Thumbnails=0]="Thumbnails",e[e.Banners=1]="Banners",e[e.Avatars=2]="Avatars",e[e.Logos=3]="Logos",e[e.Covers=4]="Covers",e[e.Posters=5]="Posters",e[e.TallPosters=6]="TallPosters",e[e.HeroBanners=7]="HeroBanners",e[e.Pdf=8]="Pdf",e[e.Link=9]="Link",e[e.None=99999]="None",e))(Ju||{}),QIe=(e=>(e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover",e))(QIe||{});const JIe={[Ju.Banners]:"banner",[Ju.Thumbnails]:"thumbnail"},CY={[Ju.Banners]:"banners",[Ju.Thumbnails]:"thumbnails",[Ju.TallPosters]:"tallPosters",[Ju.Covers]:"covers",[Ju.Avatars]:"avatars"},ZIe={categoryMapper:e=>`/v1/category-map/${e}`},iu={createUrl(e,t){return iu._createUrl(e,t)},createBannerUrl(e,t,r){return e&&e.url?iu._createUrl(e.url,r):iu._createCategoryMappedUrl(t,r)},createResourceImage(e,t,r){return iu._createUrl(e,{url:t,...r})},Rfc3986EncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape)},_createCategoryMappedUrl(e,t){const{fallbackBaseUrl:r,fallbackCategoryName:n,type:i}=e,a=Xo.safeUrlConcat(r,`${ZIe.categoryMapper(JIe[i])}`),o={name:iu.Rfc3986EncodeURIComponent(n),...t};return iu._createUrl(a,o)},_createUrl(e,t){if(!e)return;if(ys.isEmpty(t))return e;const r=Ah.param(t),n=e.indexOf("?")===-1?"?":"&";let i=e;return i.endsWith("/")&&(i=i.slice(0,-1)),i+`${n}${r}`},legacyCreateThumbnailUrl(e,t){if(!e)return"";let r;if(!e||(e instanceof mu?r=e.get("url"):typeof e=="string"?r=e:r=e.url,!r))return;const n={size:yy.Small,bgColor:"000",...t};return iu._createUrl(r,n)},getDisplayImageFromObject(e){var t,r,n,i,a;return"tallPoster"in e&&((t=e.tallPoster)!=null&&t.url)?e.tallPoster:"cover"in e&&((r=e.cover)!=null&&r.url)?e.cover:"thumbnail"in e&&((n=e.thumbnail)!=null&&n.url)?e.thumbnail:"_parentVideo"in e&&((a=(i=e._parentVideo)==null?void 0:i.thumbnail)!=null&&a.url)?e._parentVideo.thumbnail:null},getUrlById(e,t,r,n){CY[t]||dr.throw(new Sn(`ImageType:${t} not supported, please add it to 'ImageApiImageTypes'`));const i=Xo.safeUrlConcat(e,`v2/${CY[t]}/${r}`);return Xo.urlBuilder(i,{size:n})}},ePe="_avatar_xiggt_1",tPe="_dot_xiggt_11",OY={avatar:ePe,dot:tPe};function rPe(e,t){return t?iu.createUrl(Xo.safeUrlConcat(e,`/v1/profile-images?initials=${t}`),{size:yy.Small}):""}function nPe(e){const t=!e.anonymiseUsers&&e.imageUrl||rPe(e.imageCdnUrl,e.initials);return de.jsxs("div",{className:"position-relative h-100 w-100",children:[de.jsx("div",{className:`${OY.avatar} ${(e==null?void 0:e.extraClasses)||""}`,style:{backgroundImage:`url('${t}')`},children:" "}),e.showDot&&de.jsx("div",{className:`${OY.dot} rounded-circle bg-danger`})]})}var Sp=(e=>(e.ManageSubjectPreferences="subjects.preferences.manage",e.FollowSubjects="subjects.follow",e.ViewClassrooms="classrooms.view",e.ManageAllClassrooms="classrooms.manage.all",e.JoinClassroom="classroom.join",e.ShareToUsers="share.direct.users",e.ShareToClassrooms="share.direct.classrooms",e.ShareToClassroomGroups="share.direct.classroomgroups",e.ShareToOpenClassrooms="share.direct.openclassrooms",e.CreateClassrooms="classrooms.create",e.DeleteClassrooms="classrooms.delete",e.StudentExperience="studentexperience",e.ManageUsers="users.manage",e.ManageIntegrations="integrations.manage",e.EditProfileDetails="profile.edit",e.ManageCustomerSettings="customersettings.manage",e.ManageLocalCache="localcache.manage",e.ManageVideoAccess="video.access.manage",e.ViewCustomerAnalytics="analytics.customeranalytics.view",e.ViewAnalyticsProduct="analytics.view",e.ManageShareLinkSettings="sharelink.settings.edit",e.ViewProductBoard="productboard.view",e.CanSubmitFeedback="feedback.submit",e.ViewTrialDuration="trial.duration.view",e.ViewTrialBanner="trial.banner.view",e.ViewTrialUpgrade="trial.upgrade.view",e.ViewInviteColleague="invitecolleague.view",e.UploadVideo="video.upload",e.FavouriteVideo="video.favourite",e.ViewVideoPointsOfInterest="video.pointsofinterest.view",e.ViewVideoGlance="video.glance.view",e.ViewVideoInteractives="video.interactives.view",e.ViewVideoClips="video.clips.view",e.ViewCurriculums="curriculums.view",e.ViewLibraries="libraries.view",e.ContributeVideo="video.contribute",e.ViewOnboarding="onboarding.view",e.Exchange="exchangetv.manage",e.Rostering="rostering.manage",e.ViewMoviesTv="moviestv.view",e.ViewDiscover="discover.view",e.ViewSearch="search.view",e.ViewMyShares="myshares.view",e.ViewInsights="insights.view",e.ViewRestrictedMode="restrictedmode.view",e.GuestExperience="guestexperience",e.CreatePlaylist="playlist.create",e))(Sp||{});function iPe(){return Dr.useContext(Dne)}var cP=(e=>(e.UPDATE="UPDATE_VIEW_MODEL",e))(cP||{});function aPe(e){return e?e===Ls.SessionStorage?jg:Hi:null}const oPe=(e,t,r)=>{const n=aPe(r==null?void 0:r.storage);let i=n==null?void 0:n.get(e);const a=cp(),o=Gee(h=>h.viewModelData[e]);(i==="undefined"||i==="null")&&(i=null);function l(){return i!=null}const u=(t!==void 0||l())&&o===void 0;Dr.useEffect(()=>{if(u){if(l()){f(i);return}f(t);return}},[]);function f(h,p){n&&d(h,p),a({type:cP.UPDATE,payload:{viewModelKey:e,dataOrKey:h,keyData:p}})}function d(h,p){if(!n)return;const y=n.get(e);if(typeof h=="string"&&p!==void 0){n.set(e,{...y,[h]:p});return}n.set(e,h)}return u?l()?[i,f]:[t,f]:[o??void 0,f]},sPe=new Set(["system_cv_trial_freemium_v1","system_cv_trial_freemium_v2"]);function uPe(){var i;const e=ea(ta.currentUser()),t=ea(e.hasCompleted&&((i=e.data)==null?void 0:i.isAuthenticated)&&ta.accessPolicy());function r(a){var l,u;return t.data?(((u=(l=t.data)==null?void 0:l.permissions)==null?void 0:u.additional)??[]).includes(a):!1}function n(){const a=new Set;return t.data&&sPe.has(t.data.id)&&a.add(Sp.ViewInsights),a}return{isLoaded:e.hasCompleted&&t.hasCompleted,accessPolicy:t.data,policyHasOption:r,gatedPermissions:n()}}const lPe={LOCAL_PERMISSIONS:"local:permissions",BULK_USER_ACTIONS:"bulk:user:actions"},fP=()=>{const e=ea(ta.currentUser()),t=ea(e.hasCompleted&&ta.permissions()),{gatedPermissions:r}=uPe(),[n]=oPe(lPe.LOCAL_PERMISSIONS),i=l=>!t.hasCompleted||t.hasError?!1:!l||!(l!=null&&l.length)?!0:Array.isArray(l)?!l.find(u=>!t.data[u]):!!t.data[l],a=l=>(n||dr.throw(new Sn("Local Permissions should be registered during start up.")),!l||!(l!=null&&l.length)?!0:Array.isArray(l)?!l.find(u=>!n[u]):!!n[l]),o=l=>!t.hasCompleted||t.hasError?"hidden":r.has(l)?t.data[l]?"soft-gate":"hard-gate":t.data[l]?"visible":"hidden";return{permissions:t.data,hasPermissions:i,hasLocalPermissions:a,getGatedPermission:o,isLoaded:t.hasCompleted}};function IY(e){return de.jsx("svg",{...e,children:de.jsx("path",{fill:"currentColor",d:"M13.5 4.5A.5.5 0 0 1 14 4h5.5a.5.5 0 0 1 .5.5V10a.5.5 0 0 1-1 0V5.707l-6.146 6.147a.5.5 0 0 1-.708-.708L18.293 5H14a.5.5 0 0 1-.5-.5M5 7.5A1.5 1.5 0 0 1 6.5 6H9a.5.5 0 0 1 0 1H6.5a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5V15a.5.5 0 0 1 1 0v3.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 5 18.5z"})})}const Ex={"Academic Coach":"teacher","Assistant Head Teacher":"kdm","Consortium Leadership":"kdm","Curriculum Coordinator":"teacher","Curriculum Leader":"teacher","Deputy Head Teacher":"kdm","Deputy Principal":"kdm","Digital Technology Coordinator":"teacher","District Leadership":"kdm","e-Learning/ICT Coordinator":"teacher","Head of Department":"teacher","Head of Faculty":"teacher","Head of Key Stage":"teacher","Head of Subject":"teacher","Head Teacher":"kdm",IT:"kdm","IT/LRC":"kdm","e-Learning Coordinator":"kdm","Instructional Technology Specialist":"teacher","Librarian / Teacher Librarian":"teacher",Principal:"kdm","School Leadership":"kdm","Subject Lead":"teacher",Teacher:"teacher","SSO / SLSO":"teacher","Assistant Principal":"kdm","IT / IT Specialist":"kdm","Learning Support":"teacher","Learning Assistant":"teacher","Educational Assistant (EA)":"teacher","Learning Support Teacher / Resource Teacher":"teacher","Department Head / Manager":"teacher","Curriculum Coordinator / Consultant":"teacher","School Counsellor / Guidance Counsellor":"teacher","Vice-Principal":"kdm",Superintendent:"kdm","Director of Education":"kdm","Business Manager":"kdm",Professor:"kdm",Lecturer:"teacher","Course Coordinator / Administrator":"teacher","Digital Learning Manager":"teacher",Tutor:"teacher","Teaching Fellow":"teacher",Librarian:"teacher",Researcher:"teacher","Learning Technologist":"teacher","Teaching Assistant":"teacher"};var $l=(e=>(e.Disabled="Disabled",e.Active="Active",e.Inactive="Inactive",e))($l||{}),Tf=(e=>(e.Unknown="Unknown",e.Staff="Staff",e.Learner="Learner",e.System="System",e))(Tf||{}),Ko=(e=>(e.Guest="Guest",e.User="User",e.Admin="Admin",e.SuperAdmin="SuperAdmin",e))(Ko||{});const cPe=["rm unify glow","glow","rm unify"],jl={getInitials(e,t){let r="";return e!=null&&e.length&&(r=e[0]),t!=null&&t.length&&(r+=t[0]),r.toUpperCase()},getInitialsFromFullName(e){const t=(e==null?void 0:e.split(" "))??[];if(!t.length)return"";const r=t[0],n=t.length>1?t[1]:"";return jl.getInitials(r,n)},getFullName(e){return e!=null&&e.name?`${(e==null?void 0:e.name)??""} ${(e==null?void 0:e.surname)??""}`.trim():""},getCommunityName(e){var t;return e!=null&&e.name?`${e.name} ${(t=e.surname)==null?void 0:t.slice(0,1)}`:""},getUserType(e){let t=e.userType;if(typeof t=="number")switch(t){case 0:t=Tf.Unknown;break;case 1:t=Tf.Staff;break;case 2:t=Tf.Learner;break;case 255:t=Tf.System;break}return t},getUserStatus(e){let t=e.status;if(typeof t=="number")switch(t){case 0:t=$l.Disabled;break;case 1:t=$l.Active;break;case 2:t=$l.Inactive;break}return t},getUserStatusFromValue(e){if(typeof e=="number")switch(e){case 0:e=$l.Disabled;break;case 1:e=$l.Active;break;case 2:e=$l.Inactive;break}return e},getUserRole(e){var r,n;let t;if("userProfiles"in e&&((n=(r=e.userProfiles)==null?void 0:r.data)!=null&&n[0])&&(t=e.userProfiles.data[0].role),"userProfile"in e&&e.userProfile&&(t=e.userProfile.role),!t)return Ko.User;if(typeof t=="number")switch(t){case 16:t=Ko.Guest;break;case 32:t=Ko.User;break;case 48:t=Ko.Admin;break;case 64:t=Ko.SuperAdmin;break}return t},getUserRoleFromValue(e){if(!e&&e!==0)return Ko.User;if(typeof e=="number")switch(e){case 16:return Ko.Guest;case 32:return Ko.User;case 48:return Ko.Admin;case 64:return Ko.SuperAdmin;default:return Ko.User}return e},getDisplayName(e){var t,r;return(t=e.metadata)!=null&&t.displayName?(r=e.metadata)==null?void 0:r.displayName:jl.getFullName(e)},getYearGroup(e){var t,r,n;return(t=e.masterYearGroup)!=null&&t.id?e.masterYearGroup:(n=(r=e.yearGroups)==null?void 0:r.data)!=null&&n.length?ac.first(e.yearGroups.data):null},hasLegacySso(e){var t;return(t=e==null?void 0:e.authenticationMethods)!=null&&t.length?e.authenticationMethods.some(r=>!r.local&&r.isLegacy):!1},hasNonLegacySso(e){var t;return(t=e==null?void 0:e.authenticationMethods)!=null&&t.length?e.authenticationMethods.some(r=>!r.local&&!r.isLegacy):!1},hasSso(e){return jl.hasLegacySso(e)||jl.hasNonLegacySso(e)},hasRmUnifySso(e){var t;return(t=e==null?void 0:e.authenticationMethods)!=null&&t.length?e.authenticationMethods.some(r=>{var n;return cPe.includes((n=r.displayName)==null?void 0:n.toLowerCase())}):!1},getPersonaFromJobTitle(e){if(!e)return"teacher";const t={};for(const n in Ex)Ex.hasOwnProperty(n)&&(t[n.toLowerCase()]=Ex[n]);const r=t[e.toLowerCase()];return r||"teacher"},isKDM(e){return e?jl.getPersonaFromJobTitle(e)==="kdm":!1},getValidYearGroups(e){return e?e.filter(t=>t.value!==0):[]}};function PY(e){return de.jsx("svg",{...e,children:de.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.378 5.167a.62.62 0 0 1 .873 0l7.535 7.507a.494.494 0 1 0 .697-.7l-7.536-7.506a1.605 1.605 0 0 0-2.266 0l-7.536 7.506a.494.494 0 1 0 .697.7zM6.206 13.43a.494.494 0 0 0-.987 0v6.077c0 .273.22.494.494.494h4.437a.494.494 0 0 0 .494-.494v-4.42c0-.335.274-.611.616-.611h1.109c.342 0 .616.276.616.611v4.42c0 .273.22.494.493.494h4.438a.494.494 0 0 0 .494-.494V13.43a.494.494 0 0 0-.988 0v5.583h-3.45v-3.926c0-.885-.72-1.599-1.603-1.599h-1.11c-.883 0-1.603.714-1.603 1.6v3.925h-3.45z",clipRule:"evenodd"})})}const fPe="_toggle_1f3ot_1",dPe={toggle:fPe},hPe=4,kY="shared.customerSelectorItem";function pPe(e){var n;function t(i,a=null){a!==e.currentCustomerId&&(Ba.logUserAction({id:e.currentCustomerId,newCustomerId:a},{actionType:jt.SwitchCustomer,entity:kn.Customer,location:Ta.UserOptions}),Dn.PageLoad(r(a)))}function r(i){return i?`/change-customer?customerId=${i}`:"/change-customer"}return!((n=e.customers)!=null&&n.length)||!e.currentCustomerId?de.jsx(de.Fragment,{}):e.customers.length<=1?de.jsx(de.Fragment,{}):e.customers.length>hPe?de.jsx(Eo.Item,{as:"li",onClick:i=>t(),className:"cursor-pointer",children:de.jsxs("div",{className:"d-flex justify-content-between",children:[de.jsx(Nh,{namespace:kY,phrase:"title"}),de.jsx(oc,{svg:PY,className:"svg-container text-secondary"})]})}):de.jsxs("li",{className:"dropdown-item dropstart cursor-pointer",children:[de.jsxs("div",{className:`dropdown-toggle d-flex justify-content-between ${dPe.toggle}`,"data-bs-toggle":"dropdown","aria-expanded":"false",children:[de.jsx(Nh,{namespace:kY,phrase:"title"}),de.jsx(oc,{svg:PY,className:"svg-container text-secondary"})]}),de.jsx("ul",{className:"dropdown-menu",children:e.customers.map((i,a)=>{const o=i.id===e.currentCustomerId;return de.jsx(Eo.Item,{as:"li",onClick:l=>t(l,i.id),disabled:o,children:i.name},a)})})]})}var du=(e=>(e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1",e))(du||{});const Lv={1:"/integrations/share-integrations/enable-share-integrations",2:"/using-clickview/classrooms/classrooms",3:"/using-clickview/interactive-videos/interactive-videos",4:"/administration/user-permissions/create-staff-student-accounts",5:"/using-clickview/create-manage/how-to-upload-videos",6:"/using-clickview/share/add-videos-school-library",7:"/administration/user-permissions/sso-grade-level-mappings",8:"/administration/content-permissions/content-review-restrictions",9:"/administration/content-permissions/grade-level",10:"/administration/user-permissions/create-staff-student-accounts",11:"/integrations/casting/vivi",12:"/integrations/casting/enable-apple-tv",13:"/integrations/learning-management-systems/school-id-rss-feed",14:"/administration/content-permissions/marc-record-formats",15:"/administration/content-permissions/export-libraries",16:"/using-clickview/student-view/video-sharing-students",17:"/using-clickview/share/share-videos",18:"/using-clickview/analytics/student-reach",19:"/using-clickview/create-manage/playlists",20:"/using-clickview/create-manage/how-to-upload-videos",21:"/integrations/learning-management-systems"},vPe={[du.US]:Lv,[du.AU]:{...Lv,4:"/administration/user-permissions/manage-sso-user-accounts",7:"/administration/user-permissions/sso-year-level-mappings",9:"/administration/content-permissions/year-level"},[du.UK]:{...Lv,4:"/administration/user-permissions/manage-sso-user-accounts",7:"/administration/user-permissions/sso-year-level-mappings",9:"/administration/content-permissions/year-level"},[du.NZ]:{...Lv,4:"/administration/user-permissions/manage-sso-user-accounts",7:"/administration/user-permissions/sso-year-level-mappings",9:"/administration/content-permissions/year-level"}},gPe={[du.US]:"/help",[du.AU]:"/en-au/help",[du.UK]:"/en-gb/help",[du.NZ]:"/en-au/help"};class mPe{constructor(){this.name="LocalizedArticleHelper"}static get Instance(){return this.instance||(this.instance=new this)}initialize(t){this.initializeUrl(t),this.initializeInstanceRegion(t)}initializeUrl(t){if(!t.product){dr.throw(new Sn(`${this.name} requires a product name`));return}if(this.product=t.product,this.marketingSiteUrl=t.marketingSiteUrl,t.product===Yo.Online){if(!t.onlineSupportSiteUrl){dr.throw(new Sn("ArticleHelper requires a online support site url"));return}this.supportSiteUrl=t.onlineSupportSiteUrl;return}if(!t.liteSupportSiteUrl){dr.throw(new Sn("ArticleHelper requires a lite support site url"));return}this.supportSiteUrl=t.liteSupportSiteUrl}initializeInstanceRegion(t){if(!t.instanceRegion){dr.throw(new Sn(`${this.name} requires an instance region`));return}this.instanceRegion=t.instanceRegion,this.product===Yo.Primary&&(this.liteArticleUrlMapping=vPe[this.instanceRegion])}validate(){return this.supportSiteUrl&&this.instanceRegion?!0:this.product===Yo.Primary&&!this.liteArticleUrlMapping?(dr.throw(new Sn(`${this.name} requires a lite article url mapping`)),!1):(dr.throw(new Sn(`${this.name} was not initialized`)),!1)}getArticle(t){return this.validate()?t?Xo.safeUrlConcat(this.getSupportSiteUrl(),this.liteArticleUrlMapping[t]):this.getSupportSiteUrl():""}getSupportSiteUrl(){return this.validate()?Xo.safeUrlConcat(this.supportSiteUrl,gPe[this.instanceRegion]):""}getLiteArticle(t){return this.product===Yo.Online&&dr.throw(new Sn("ArticleHelper.getLiteArticle() should not be used in Online")),this.getArticle(t)}getSupportRequestUrl(){return this.validate()?Xo.safeUrlConcat(this.marketingSiteUrl,"/contact-us/support"):""}getAuthorBlogUrl(t){return!this.marketingSiteUrl||!t?"":Xo.safeUrlConcat(this.marketingSiteUrl,`blog/author/${t}`)}getHybridArticle(t,r){return this.product===Yo.Online?this.getSupportSiteUrl():this.getLiteArticle(r)}}const xC=mPe.Instance,yPe="shared.userOptions",DY=Gr.encloseNamespace(yPe);function _Pe(e,t,r){const{hasPermissions:n}=fP(),i=ac.sortBy(t,"order");if(e&&(i.push({label:DY("helpCentre"),order:0,url:xC.getSupportSiteUrl(),analyticsData:{url:xC.getSupportSiteUrl()},analyticsOptions:{actionType:jt.Click,entity:kn.Url,descriptor:Yl.ExternalLink,location:Ta.UserOptions}}),n(Sp.ViewProductBoard)&&!r)){const o=Xo.safeUrlConcat(e.productBoardUrl,"tabs/23-what-s-new");i.push({label:DY("whatsNew"),order:0,url:o,analyticsData:{url:o},analyticsOptions:{actionType:jt.Click,entity:kn.Url,descriptor:Yl.ExternalLink,location:Ta.UserOptions}})}const a={main:[],logOut:[]};return i.forEach(o=>{o.section==="logOut"?a.logOut.push(o):a.main.push(o)}),a}function EPe(e,t,r){var u;const n=ea(ta.currentUser()),i=ea(((u=n.data)==null?void 0:u.isAuthenticated)&&ZI.userProducts());if(t||!i.data)return;const a=[...i.data],o=Array.isArray(e)?e:[e];let l=a.filter(f=>!o.includes(f.id),"order");return typeof r=="function"&&(l=r(l)),ac.sortBy(l)}const SPe="_avatarContainer_1z0er_1",wPe="_productLogo_1z0er_5",bPe="_counter_1z0er_9",qg={avatarContainer:SPe,productLogo:wPe,counter:bPe},TPe="shared.userOptions",gh=Gr.encloseNamespace(TPe);function LY({item:e}){if(e.appLink)return de.jsxs(Eo.Item,{as:Ro,appLink:e.appLink,openInNewTab:e.openInNewTab,onClick:e.onClick,className:"d-flex align-items-center",analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,children:[e.counter>0&&de.jsx("div",{className:`${qg.counter} badge bg-danger rounded-pill fw-semibold me-1`,children:e.counter}),de.jsxs("div",{className:"d-flex justify-content-between",children:[e.label,!!e.openInNewTab&&de.jsx(oc,{svg:IY,className:"svg-container text-secondary"})]})]});if(e.url){let t=function(r){var n;r.preventDefault(),(n=e.onClick)==null||n.call(e),e.analyticsData&&e.analyticsOptions&&Ba.logUserAction({href:e.url,...e.analyticsData},e.analyticsOptions),Dn.PageLoad(e.url,!0)};return de.jsxs(Eo.Item,{as:"a",href:e.url,target:e.openInNewTab===!1?null:"_blank",className:"d-flex align-items-center",onClick:r=>t(r),children:[e.counter>0&&de.jsx("div",{className:`${qg.counter} badge bg-danger rounded-pill fw-semibold me-1`,children:e.counter}),de.jsxs("div",{className:"d-flex justify-content-between",children:[e.label,e.openInNewTab!==!1&&de.jsx(oc,{svg:IY,className:"svg-container text-secondary"})]})]})}return de.jsx(de.Fragment,{})}const APe=({appLinks:e})=>{const t=iPe(),r=t.xs||t.sm;return de.jsxs(de.Fragment,{children:[de.jsx(Ro,{appLink:e.signIn,className:"btn btn-link ps-0",analyticsOptions:{actionType:jt.Click,location:Ta.TopNav,entity:kn.Url,descriptor:Ch.SignIn},analyticsData:{},children:gh("signIn")}),de.jsx(Ro,{appLink:e.signUp,className:"btn btn-dark ms-2",analyticsOptions:{actionType:jt.Click,location:Ta.TopNav,entity:kn.AppLink,workflowPhase:el.Start,descriptor:Ch.SignUp},analyticsData:{},tag:"button",children:gh(r?"signUpForMobile":"signUp")})]})},RPe=({appLinks:e})=>de.jsx(Ro,{appLink:e.signIn,className:"btn btn-dark d-inline-block",analyticsOptions:{actionType:jt.Click,location:Ta.TopNav,entity:kn.AppLink,workflowPhase:el.Start,descriptor:Ch.SignIn},analyticsData:{},children:gh("signIn")});function xPe(e){var _,E,S,w,T,C;const[t,r]=Se.useState(!1),{hasPermissions:n}=fP(),i=ea(ta.currentUser()),a=ea(((_=i.data)==null?void 0:_.id)&&ta.user(i.data.id)),o=ea(al.config()),l=ea(((E=i.data)==null?void 0:E.isAuthenticated)&&ta.customers(i.data.id)),u=_Pe(o.data,e.additionalItems,e.hideWhatsNew),f=n(Sp.GuestExperience),d=e.hideProductList||f,h=EPe(e.productId,d,e.transform);function p(x){r(x),Ba.logUserAction({},{actionType:jt.Click,entity:kn.AppLink,location:Ta.UserOptions,descriptor:x?Yl.Open:Yl.Close})}function y(x){Ba.logUserAction({id:x.id,name:x.name},{actionType:jt.Click,entity:kn.Product,location:Ta.UserOptions,descriptor:Yl.ExternalLink})}return!i.hasCompleted||i.data.isAuthenticated&&!a.hasCompleted||!o.data?de.jsx(de.Fragment,{}):i.data.isAuthenticated?de.jsxs(Eo,{className:"position-relative",onToggle:p,children:[de.jsx(Eo.Toggle,{id:"userOptions",variant:"","aria-label":"Options menu",className:`${qg.avatarContainer} no-caret border-0 p-0`,children:de.jsx(nPe,{imageUrl:iu.createUrl(i.data.avatar,{size:yy.Small}),imageCdnUrl:o.data.imageCdnUrl,initials:jl.getInitials(i.data.givenName,i.data.familyName),showDot:u.main.some(x=>x.counter>0)})}),de.jsxs(Eo.Menu,{as:"ul",align:"end",children:[de.jsxs(Eo.Item,{as:"div",children:[de.jsxs("div",{className:"m-0 d-flex flex-wrap",children:[de.jsx("strong",{children:i.data.displayName})," ",!f&&de.jsxs("span",{className:"text-secondary",children:["(",i.data.username,")"]})]}),de.jsx("div",{className:"m-0 text-secondary",children:i.data.customerName}),!f&&((S=a.data)==null?void 0:S.masterYearGroup)&&de.jsx("p",{className:"m-0 text-secondary",children:a.data.masterYearGroup.name})]}),de.jsx(pPe,{isParentOpen:t,currentCustomerId:(w=i.data)==null?void 0:w.customerId,customers:(T=l.data)==null?void 0:T.data}),de.jsx(Eo.Divider,{}),u.main.map((x,R)=>de.jsx(LY,{item:x},R)),de.jsx(Eo.Divider,{}),h==null?void 0:h.map((x,R)=>de.jsxs(Eo.Item,{as:"a",href:x.url,target:"_blank",className:"d-flex align-items-center py-1",onClick:()=>y(x),children:[de.jsx("img",{src:x.imageUrl,className:`${qg.productLogo} me-2`}),x.name]},R)),!!(h!=null&&h.length)&&de.jsx(Eo.Divider,{}),u.logOut.map((x,R)=>de.jsx(LY,{item:x},R)),de.jsx(Eo.Item,{as:Ro,appLink:e.appLinks.signOut,analyticsData:{id:(C=i.data)==null?void 0:C.id},analyticsOptions:{actionType:jt.Click,location:Ta.UserOptions,entity:kn.AppLink,descriptor:Ch.SignOut},children:gh("signOut")})]})]}):e.displaySignUp?de.jsx(APe,{...e}):de.jsx(RPe,{...e})}function CPe(e){return de.jsx("svg",{...e,children:de.jsx("path",{fill:"currentColor",d:"M4.794 4c-.67 0-1.207.541-1.207 1.21v13.58c0 .669.538 1.21 1.207 1.21h14.499c.67 0 1.207-.541 1.207-1.21V5.21c0-.669-.538-1.21-1.207-1.21zm-.207 1.21c0-.12.093-.21.207-.21h14.499c.114 0 .207.09.207.21v13.58c0 .12-.093.21-.207.21h-.82c.09-.212.126-.451.09-.696l-.977-6.73a1.3 1.3 0 0 0-1.474-1.099l-.791.115a1.3 1.3 0 0 0-.628.273A1.3 1.3 0 0 0 13.4 9.7h-1.6c-.302 0-.58.103-.8.275a1.3 1.3 0 0 0-.8-.275H8.6A1.3 1.3 0 0 0 7.3 11v7.6q0 .21.063.4H4.794a.207.207 0 0 1-.207-.21zM14.7 15.36l.499 3.433q.015.107.047.207h-.609a1.3 1.3 0 0 0 .063-.4zM8.3 11a.3.3 0 0 1 .3-.3h1.6a.3.3 0 0 1 .3.3v7.6a.3.3 0 0 1-.3.3H8.6a.3.3 0 0 1-.3-.3zm3.5-.3h1.6a.3.3 0 0 1 .3.3v7.6a.3.3 0 0 1-.3.3h-1.6a.3.3 0 0 1-.3-.3V11a.3.3 0 0 1 .3-.3m3.41 1.22a.3.3 0 0 1 .254-.34l.792-.115a.3.3 0 0 1 .34.254l.978 6.729a.3.3 0 0 1-.254.34l-.792.115a.3.3 0 0 1-.34-.254z"})})}function OPe(e){return de.jsx("svg",{...e,children:de.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.893 7.5H5.6A1.6 1.6 0 0 0 4 9.1v9.3A1.6 1.6 0 0 0 5.6 20h12.8a1.6 1.6 0 0 0 1.6-1.6V9.1a1.6 1.6 0 0 0-1.6-1.6h-5.096l2.733-2.535a.55.55 0 0 0 0-.816.657.657 0 0 0-.88 0l-3.059 2.837L9.04 4.15a.657.657 0 0 0-.88 0 .55.55 0 0 0 0 .816zM5.6 8.7h12.8c.22 0 .4.18.4.4v9.3a.4.4 0 0 1-.4.4H5.6a.4.4 0 0 1-.4-.4V9.1c0-.22.18-.4.4-.4m11.407 3.413a.6.6 0 0 1-.24.814l-4.4 2.4a.6.6 0 0 1-.887-.527v-1.39l-3.513 1.917a.6.6 0 1 1-.574-1.054l4.4-2.4a.6.6 0 0 1 .887.527v1.39l3.513-1.917a.6.6 0 0 1 .814.24",clipRule:"evenodd"})})}const IPe="_navItem_7o62g_5",PPe="_active_7o62g_18",kPe="_svg_7o62g_21",DPe="_background_7o62g_24",LPe="_backgroundExchange_7o62g_33",NPe="_backgroundTv_7o62g_37",MPe="_iconContainer_7o62g_42",$Pe="_text_7o62g_57",FPe="_exchange_7o62g_66",jPe="_clickviewTv_7o62g_72",Ds={navItem:IPe,active:PPe,svg:kPe,background:DPe,backgroundExchange:LPe,backgroundTv:NPe,iconContainer:MPe,text:$Pe,exchange:FPe,clickviewTv:jPe};function UPe(e){return e==="exchange"?Ds.backgroundExchange:e==="tv"?Ds.backgroundTv:""}function NY(e){const{appLink:t,typeClass:r,active:n,text:i,svg:a}=e;return de.jsxs(Ro,{appLink:t,className:`${Ds.navItem} ${r} ${n?Ds.active:""}`,children:[de.jsx("div",{className:Ds.iconContainer,children:de.jsx(oc,{svg:a,className:Ds.svg})}),de.jsx("div",{className:Ds.text,children:i})]})}function qPe(e){return de.jsxs("div",{className:"position-relative",children:[de.jsx("div",{className:`${Ds.background} ${UPe(e.activeApp)}`}),de.jsx(NY,{appLink:{application:ki.EXCHANGE,action:So.Exchange.INDEX},typeClass:Ds.exchange,active:e.activeApp==="exchange",text:"Exchange Archive",svg:CPe}),de.jsx(NY,{appLink:{application:ki.TV,action:So.Tv.INDEX},typeClass:Ds.clickviewTv,active:e.activeApp==="tv",text:"ClickView TV",svg:OPe})]})}var Lne=(e=>(e[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other",e[e.ClickView=254]="ClickView",e[e.System=255]="System",e))(Lne||{}),BPe=(e=>(e.Unclassified="Unclassified",e.Primary="Primary",e.Secondary="Secondary",e.K12="K12",e.Tertiary="Tertiary",e.NonEducational="NonEducational",e.Partners="Partners",e.Internal="Internal",e.Other="Other",e.ClickView="ClickView",e.System="System",e))(BPe||{});const Nne={customer(e,t,r,n){return{url:Xo.urlBuilder(`{gateway}/v1/objects/${e}`,{query:n?"organisation":""}),key:`customers:${e}:${n?"with-organization":""}`,success:t,error:r}},yearGroups(e){return{url:`{gateway}/v1/customers/${e}/year-groups?query={orderby:value}rating`,key:"year:groups"}},updateYearGroupRatings(e,t,r,n){return{url:`{gateway}/v1/customers/${e}/year-groups`,key:"update:year:group:ratings",type:Vi.PUT,data:t,success:r,error:n,invalidationKeys:["year:groups"]}}},VPe="_nav_fxrnb_1",HPe="_logo_fxrnb_11",zPe="_navIconContainer_fxrnb_23",Nv={nav:VPe,logo:HPe,navIconContainer:zPe},WPe="exchange.header",MY={application:ki.DEFAULT,action:So.Default.INDEX};function GPe(e){var d,h,p;const t=ea(al.config()),r=ea(ZI.userProducts()),n=ea(ta.currentUser()),a=((h=ea(!!((d=n.data)!=null&&d.isAuthenticated)&&Nne.customer(n.data.customerId)).data)==null?void 0:h.customerType)===Lne.Tertiary,{exchangeTvProductOption:o}=XIe(null),{hasPermissions:l}=fP(),u=(p=r.data)==null?void 0:p.find(y=>y.id===Yo.Exchange);function f(y){return a&&!l(Sp.ViewCustomerAnalytics)?y.filter(_=>_.id!==Yo.Analytics):y}return de.jsx("nav",{className:`navbar navbar-expanded ps-3 w-100 ${Nv.nav}`,children:de.jsxs("div",{className:"container-fluid",children:[de.jsx("div",{className:`d-flex align-items-center justify-content-start ${Nv.headerLeft}`,children:de.jsx(Ro,{appLink:MY,className:`navbar-brand text-hide align-top ${Nv.logo} d-inline-block'`,analyticsData:{url:Ai.getHref(MY)},analyticsOptions:{actionType:jt.Click,entity:kn.Url,location:Ta.TopNav,descriptor:Yl.ClickViewLogo},children:de.jsx(YIe,{})})}),u&&o==="exchange_and_tv"&&de.jsx("div",{className:`${Nv.navIconContainer} position-absolute w-100 d-flex align-items-center justify-content-center`,children:de.jsx(qPe,{activeApp:e.activeApp})}),de.jsxs("div",{className:"d-flex align-items-center justify-content-end",children:[de.jsx(Ro,{appLink:{application:ki.DEFAULT,action:So.Default.GIVE_FEEDBACK},className:"btn btn-outline-dark me-3",children:de.jsx(Nh,{namespace:WPe,phrase:"giveFeedback"})}),!!t.data&&de.jsx("div",{className:"me-3",children:de.jsx(xPe,{productId:Yo.Exchange,appLinks:{signOut:{application:ki.DEFAULT,action:So.Default.LOG_OUT}},transform:f})})]})]})})}const KPe="_content_ulv6h_1",YPe="_container_ulv6h_6",XPe="_fixedBottomRightContainer_ulv6h_13",QPe="_lockedWidth_ulv6h_19",Mv={content:KPe,container:YPe,fixedBottomRightContainer:XPe,lockedWidth:QPe},Mne="banner-portal-container",JPe=e=>(kIe(),GIe(),Se.useEffect(()=>{document.body.style.overflowY="scroll"},[]),de.jsx(yx,{renderError:()=>zre({error:new $f}),children:de.jsxs("div",{className:Mv.lockedWidth,children:[de.jsx(GPe,{activeApp:e.activeApp}),de.jsxs("div",{className:Mv.content,children:[de.jsx("div",{className:`container-fluid ${Mne}`}),de.jsxs("div",{className:`container px-3 ${Mv.container}`,children:[de.jsx(yx,{throwError:$f,children:e.contentChild}),de.jsx(KIe,{})]})]}),de.jsx(yx,{throwError:WIe,children:e.popupChild}),de.jsx("div",{className:"d-flex flex-column align-items-end",children:!!e.alertChild&&de.jsx("div",{className:Mv.fixedBottomRightContainer,children:e.alertChild})}),de.jsx("div",{style:{display:"none"},children:e.hiddenChild})]})}));function ZPe(e){return de.jsx(Kee,{store:e.store,children:de.jsx(Lbe,{children:de.jsx(zIe,{children:de.jsx(HIe,{containerClassName:Mne,children:de.jsx(JPe,{...e})})})})})}class eke extends qIe{constructor(r){super(r);Rn(this,"childComponents",{});Rn(this,"preventScrollTop",!1);Rn(this,"activeApp")}initialize(){var n,i;this.listenTo(mn.SHELL,En.ROUTE,this.onRouteChange),this.listenTo(mn.SHELL,"prevent:scroll:top",()=>this.preventScrollTop=!0);const r=(i=(n=yte.getCurrentContext())==null?void 0:n.appLink)==null?void 0:i.application;this.setActiveApp(r)}get title(){return!1}get name(){return"DefaultLayoutView"}get template(){return()=>'<div id="dialog-region"></div><div class="layout-region position-relative"></div>'}static getCacheKey(){return`${hp.DEFAULT_LAYOUT}`}regions(){return{layout:{el:".layout-region",replaceEl:!0}}}getChildComponents(){return{contentChild:this.childComponents[un.CONTENT],popupChild:this.childComponents[un.POPUP],alertChild:this.childComponents[un.ALERT],hiddenChild:this.childComponents[un.HIDDEN],store:this.options.store,activeApp:this.activeApp}}unsetRegion(r){delete this.childComponents[r],this.renderLayout()}closePopup(){this.unsetRegion(un.POPUP)}showChildView(r,n,i={}){this.childComponents[r]=n,r===un.CONTENT&&(!this.preventScrollTop&&!i.preventScrollTop&&Ah(window).scrollTop(0),this.preventScrollTop=!1),this.renderLayout()}renderLayout(){const r={...this.getChildComponents()};super.showChildView("layout",de.jsx(ZPe,{...r}))}setActiveApp(r){if(r===ki.EXCHANGE){this.activeApp="exchange";return}if(r===ki.TV){this.activeApp="tv";return}this.activeApp=null}onRouteChange(r,n){n.isAppRoute&&this.setActiveApp(r.application)}}function tke(e,t){e.registerLayout(hp.DEFAULT_LAYOUT,eke),t(e)}function rke(e,t,r){zm.setUpVariables({isDevelopment:!1}),r(e,t)}var Bg=(e=>(e.Fifo="FifoMemoryCache",e))(Bg||{}),Vg=(e=>(e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider",e))(Vg||{});class nke extends za{get defaultProps(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}constructor(t){super(t),uh(this,"name")||dr.throw(new Sn("Must provide a name when extending BaseDataService")),uh(this,"channelName")||dr.throw(new Sn(`Must provide a channelName for ${uh(this,"name")}`));const r=[...this.defaultProps,...this.props||[]];this.dataRequestSignatures={},this.mergeOptions(t,r)}getCursors(t){const r=this.cache.get(t);return r?r.cursors:{next:"",previous:""}}clearCacheAndGet(t){const{callback:r,errorCallback:n,eventPrefix:i}=t,{syncEvent:a,errorEvent:o}=this.getEventNames(i),l=this.cache.get(i);if(l&&l.openRequest){const u=d=>{rn(n)&&this.stopListening(this.getChannel(),o,n),rn(r)&&r(d)},f=()=>{rn(r)&&this.stopListening(this.getChannel(),a,r),rn(n)&&n()};this.listenToOnce(this.getChannel(),a,u),this.listenToOnce(this.getChannel(),o,f);return}this.cache.remove(t.eventPrefix),this.get(t)}get(t){const{callback:r,errorCallback:n,eventPrefix:i,resource:a,formatData:o,expiryTime:l,successHandler:u,errorHandler:f,bootstrapName:d,invalidateFlight:h}=t,{syncEvent:p,requestEvent:y,successEvent:_,errorEvent:E}=this.getEventNames(i),S=this.getChannel(),w=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[d]&&(this.cacheData(i,this.bootstrapData[d],o,{openRequest:!1,timestamp:w}),delete this.bootstrapData[d]);const T=this.cache.get(i);let C;T&&(C=T.data);const x=T&&T.openRequest,R=this.isExpired(i,l);if(x){const O=D=>{rn(n)&&this.stopListening(this.getChannel(),E,n),rn(r)&&r(D)},m=()=>{rn(r)&&this.stopListening(this.getChannel(),p,r),rn(n)&&n()};this.listenToOnce(S,p,O),this.listenToOnce(S,E,m)}if((!this.cache.has(i)||R)&&(S.trigger(y),this.listenToResponse({eventPrefix:i,formatData:o,cacheOptions:{timestamp:w},callback:r,errorCallback:n,successHandler:u,errorHandler:f,invalidateFlight:h}),this.cacheData(i,null,null,{openRequest:!0,timestamp:w}),this.dataProvider.read(a,{channel:this.getTransportChannel(),successEvent:_,errorEvent:E})),C&&rn(r)&&!R&&r(C),C)return C}create(t){const{eventPrefix:r,resource:n,data:i,formatData:a,callback:o,errorCallback:l,invalidationKeys:u,successHandler:f,errorHandler:d,invalidateFlight:h}=t,{requestEvent:p,successEvent:y,errorEvent:_}=this.getEventNames(t.eventPrefix),E=this.getChannel(),S=this.getTransportChannel();E.trigger(p),this.listenToResponse({eventPrefix:r,formatData:a,invalidationKeys:u,callback:o,errorCallback:l,successHandler:f,errorHandler:d,invalidateFlight:h}),this.dataProvider.create(n,i,{channel:S,successEvent:y,errorEvent:_})}update(t){const{data:r,callback:n,errorCallback:i,resource:a,formatData:o,eventPrefix:l,invalidationKeys:u,errorHandler:f,successHandler:d,invalidateFlight:h}=t,{requestEvent:p,successEvent:y,errorEvent:_}=this.getEventNames(t.eventPrefix),E=this.getChannel(),S=this.getTransportChannel();E.trigger(p),this.listenToResponse({eventPrefix:l,formatData:o,invalidationKeys:u,callback:n,errorCallback:i,successHandler:d,errorHandler:f,invalidateFlight:h}),this.dataProvider.update(a,r,{channel:S,successEvent:y,errorEvent:_})}delete(t){const{eventPrefix:r,resource:n,callback:i,errorCallback:a,invalidationKeys:o,successHandler:l,errorHandler:u,invalidateFlight:f}=t,{successEvent:d,errorEvent:h}=this.getEventNames(r),p=this.getTransportChannel(),y={noCache:!0,clearCacheKey:!0};this.listenToResponse({eventPrefix:r,invalidationKeys:o,callback:i,errorCallback:a,cacheOptions:y,successHandler:l,errorHandler:u,invalidateFlight:f}),this.dataProvider.delete(n,{channel:p,successEvent:d,errorEvent:h})}listenToResponse(t){const{eventPrefix:r,formatData:n,callback:i,errorCallback:a,successHandler:o,errorHandler:l,invalidationKeys:u,cacheOptions:f={},invalidateFlight:d}=t,{syncEvent:h,successEvent:p,errorEvent:y,successAlertEvent:_,errorAlertEvent:E}=this.getEventNames(r),S=this.getChannel(),w=this.getTransportChannel(),T=this.getAlertChannel();if(rn(i)&&this.listenToOnce(S,h,i),rn(a)&&this.listenToOnce(S,y,a),this.stopListening(T,_),this.stopListening(T,E),rn(o)&&this.listenToOnce(T,_,o),rn(l)&&this.listenToOnce(T,E,l),!rn(l)&&l!==!1&&rn(this.defaultErrorHandler)&&this.listenToOnce(T,E,this.defaultErrorHandler),this.hasRequestSignature(r))return;this.setRequestSignature(r);const C=(R,...O)=>{this.stopListening(S,y,a),T.trigger(_,R,...O);const m=f.noCache?this.formatData(R,n):this.cacheData(r,R,n);f.clearCacheKey&&this.cache.remove(r),S.trigger(h,m),u&&u.length&&this.cache.invalidate(u,D=>S.trigger(`${D}:invalidate`),d)},x=(...R)=>{this.stopListening(S,h,i);const O=this.dataProvider.parseError(...R);T.trigger(E,O),S.trigger(y,O),!f.noCache&&this.cacheData(r,null,null)};this.listenTo(w,p,C),this.listenTo(w,y,x)}cacheData(t,r,n,i={}){const{openRequest:a=!1}=i;let{timestamp:o}=i;o||(o=this.currentTimestamp());const l=this.processPagination(r),u=this.formatData(r,n);return this.cache.set(t,{data:u,timestamp:o,cursors:l,openRequest:a}),u}processPagination(t){if(!t)return;const{pagination:r}=t;if(r){if(r.cursors)return r.cursors;if(!_g(r.offset)&&!_g(r.pageSize))return this.convertOffsetPaginationToCursors(r);if(r.page)return this.convertLegacyPaginationToCursors(r)}}formatData(t,r){return rn(r)?r(t):t}chain(){const t=[],r=(a,o)=>{rn(a)&&a(o)},n=(a,o)=>{const l=()=>{const u=a.callback;a.callback=f=>{r(u,f),r(t.shift())},this[o](a)};return t.push(l),i},i={func(a){return t.push(()=>{a(t.shift()||(()=>{}))}),i},get(a){return n(a,"get")},create(a){return n(a,"create")},update(a){return n(a,"update")},delete(a){return n(a,"delete")},run(){r(t.shift())}};return i}invalidateCache(t,r=!1){!t||!t.length||this.cache.invalidate(t,n=>this.getChannel().trigger(`${n}:invalidate`),r)}currentTimestamp(){return new Date().valueOf()}isExpired(t,r){if(!r)return!1;const n=this.cache.get(t);if(!n||!n.timestamp)return!0;const i=1e3,a=n.timestamp,o=r*i;return a<this.currentTimestamp()-o}getEventNames(t){return{syncEvent:`${t}:sync`,requestEvent:`${t}:request`,successEvent:`${t}:success`,errorEvent:`${t}:error`,successAlertEvent:`${t}:success:alert`,errorAlertEvent:`${t}:error:alert`}}getTransportChannel(){return Mr.Radio.channel(`${this.channelName}:transport`)}getAlertChannel(){return Mr.Radio.channel(`${this.channelName}:alert`)}setRequestSignature(t){this.dataRequestSignatures[t]=t}hasRequestSignature(t){return!!this.dataRequestSignatures[t]}convertOffsetPaginationToCursors(t){const{offset:r,pageSize:n,totalItems:i}=t,a=i>0&&r<i&&r+n,o=i>0&&r>0&&Math.max(r-n,0),l={};if(a&&a<i&&(l.next=a.toString()),Rf(o)&&(l.previous=o.toString()),!Sh(l))return l}convertLegacyPaginationToCursors(t){const{page:r,totalPages:n}=t,i=Rf(r)&&r>0&&r<n&&r+1,a=Rf(r)&&r>1&&r-1,o={};if(i&&i<=n&&(o.next=i.toString()),a&&(o.previous=a.toString()),!Sh(o))return o}}class ike extends za{constructor(){super(),this.viewObjects={}}static get Instance(){return this.instance||(this.instance=new this)}get name(){return"ViewModelService"}updateViewModel(t,r){const n=this.mergeData(r,t.toJSON());return t instanceof Vz&&t.set(n,{silent:!0}),t instanceof mu&&!(t instanceof Vz)&&t.set(n,{silent:!0}),t}get(t,r={},n={}){const{update:i=!1}=n,a=this.viewObjects[t];if(a&&i)return this.updateViewModel(a,r);if(a)return a;const o=this.getLocalData(t,n);return this.set(t,r,o,n)}set(t,r={},n,i){const{ctor:a,storage:o}=i,l=this.mergeData(r,n),u=a?new a(l):new mu(l);return this.viewObjects[t]=u,o&&!n?(this.setLocalData(t,u,null,i),this.setupChangeListeners(t,u,i)):o&&n&&this.setupChangeListeners(t,u,i),u}clear(t){const r=this.viewObjects[t];return r?(this.stopListening(r),r.trigger("destroy"),delete this.viewObjects[t],!0):!1}getLocalData(t,r){const{storage:n}=r;return n?this.getStorageHelper(n.type).get(t):void 0}setLocalData(t,r,n,i){const{storage:a}=i;if(!a||a&&!a.persistProps)return;typeof a.persistProps=="string"&&(a.persistProps=[a.persistProps]);let o;r instanceof mu&&(o=r.pick(a.persistProps)),this.getStorageHelper(a.type).set(t,o)}setupChangeListeners(t,r,n){const{storage:i}=n;!i||i&&!i.persistProps||(typeof i.persistProps=="string"&&(i.persistProps=[i.persistProps]),Je.each(i.persistProps,a=>{this.listenTo(r,`change:${a}`,Je.partial(this.setLocalData,t,Je,Je,n))}))}mergeData(t,r){if(!r)return t;if(Je.isObject(t)&&Je.isObject(r))return Je.extend(t,r);dr.throw(new Sn("defaultValues and existingData are not of the same datatype and cannot be merged"))}getStorageHelper(t){switch(t){case Ls.LocalStorage:return Hi;case Ls.SessionStorage:return jg}}}const $ne=ike.Instance;var dP=(e=>(e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary",e))(dP||{});class ake extends Dc{constructor(t){super(t)}get name(){return"FileTypeError"}get lang(){return"upload.fileType"}get dialogOptions(){return{title:Gr.getPhrase(this.lang,"heading"),text:Gr.getPhrase(this.lang,"body"),buttons:[{text:Gr.getPhrase(this.lang,"okay"),className:"btn btn-dark",success:!0},{text:Gr.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}const oke=["pdf"],ske=["doc","docx","dotx","dot","rtf","docm","odt"],uke=["csv","txt"],lke=["xlsx"],$Y=["jpg","jpeg","png","bmp","gif"],FY=["3gp","3gpp","asx","avi","divx","flv","m2t","m2ts","m2v","m4v","mkv","mod","mov","mp4","mpe","mpeg","mpg","mts","ogv","qt","ts","vob","webm","wmv"],cke=["zip"],fke=["ppt","pps","pptx"],dke=["srt"],$v={VIDEO:`.${FY.join(",.")}`,MIXED_MEDIA:`.${$Y.join(",.")},${FY.join(",.")}`,RESOURCES:`.${[...ske,...lke,...fke,...oke,...uke,...$Y,...cke].join(",.")}`,SUBTITLES:`.${dke.join(",.")}`},hke={requestUpload(e,t){const r=e.name.split("."),n=t===dP.Permanent?null:Jl.add(new Date,7,"days").toISOString(),i={name:r.join("."),extension:r.length>1?r.pop():"",size:e.size,lifestyle:t,dateExpires:n,contentType:e.type||"application/octet-stream",chunkUploadEnabled:!0};return{url:"{gateway}/v1/files/upload",key:"upload:file",type:Vi.POST,data:i}}};var Sx={exports:{}},jY;function pke(){return jY||(jY=1,(function(e,t){(function(n,i){e.exports=i()})(self,function(){return(function(){var r={3099:(function(o){o.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}}),6077:(function(o,l,u){var f=u(111);o.exports=function(d){if(!f(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}}),1223:(function(o,l,u){var f=u(5112),d=u(30),h=u(3070),p=f("unscopables"),y=Array.prototype;y[p]==null&&h.f(y,p,{configurable:!0,value:d(null)}),o.exports=function(_){y[p][_]=!0}}),1530:(function(o,l,u){var f=u(8710).charAt;o.exports=function(d,h,p){return h+(p?f(d,h).length:1)}}),5787:(function(o){o.exports=function(l,u,f){if(!(l instanceof u))throw TypeError("Incorrect "+(f?f+" ":"")+"invocation");return l}}),9670:(function(o,l,u){var f=u(111);o.exports=function(d){if(!f(d))throw TypeError(String(d)+" is not an object");return d}}),4019:(function(o){o.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"}),260:(function(o,l,u){var f=u(4019),d=u(9781),h=u(7854),p=u(111),y=u(6656),_=u(648),E=u(8880),S=u(1320),w=u(3070).f,T=u(9518),C=u(7674),x=u(5112),R=u(9711),O=h.Int8Array,m=O&&O.prototype,D=h.Uint8ClampedArray,U=D&&D.prototype,K=O&&T(O),B=m&&T(m),W=Object.prototype,Y=W.isPrototypeOf,Q=x("toStringTag"),ie=R("TYPED_ARRAY_TAG"),ae=f&&!!C&&_(h.opera)!=="Opera",ve=!1,H,J={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},ue=function(I){if(!p(I))return!1;var N=_(I);return N==="DataView"||y(J,N)||y(z,N)},we=function(q){if(!p(q))return!1;var I=_(q);return y(J,I)||y(z,I)},ke=function(q){if(we(q))return q;throw TypeError("Target is not a typed array")},Be=function(q){if(C){if(Y.call(K,q))return q}else for(var I in J)if(y(J,H)){var N=h[I];if(N&&(q===N||Y.call(N,q)))return q}throw TypeError("Target is not a typed array constructor")},nt=function(q,I,N){if(d){if(N)for(var M in J){var Z=h[M];Z&&y(Z.prototype,q)&&delete Z.prototype[q]}(!B[q]||N)&&S(B,q,N?I:ae&&m[q]||I)}},rt=function(q,I,N){var M,Z;if(d){if(C){if(N)for(M in J)Z=h[M],Z&&y(Z,q)&&delete Z[q];if(!K[q]||N)try{return S(K,q,N?I:ae&&O[q]||I)}catch{}else return}for(M in J)Z=h[M],Z&&(!Z[q]||N)&&S(Z,q,I)}};for(H in J)h[H]||(ae=!1);if((!ae||typeof K!="function"||K===Function.prototype)&&(K=function(){throw TypeError("Incorrect invocation")},ae))for(H in J)h[H]&&C(h[H],K);if((!ae||!B||B===W)&&(B=K.prototype,ae))for(H in J)h[H]&&C(h[H].prototype,B);if(ae&&T(U)!==B&&C(U,B),d&&!y(B,Q)){ve=!0,w(B,Q,{get:function(){return p(this)?this[ie]:void 0}});for(H in J)h[H]&&E(h[H],ie,H)}o.exports={NATIVE_ARRAY_BUFFER_VIEWS:ae,TYPED_ARRAY_TAG:ve&&ie,aTypedArray:ke,aTypedArrayConstructor:Be,exportTypedArrayMethod:nt,exportTypedArrayStaticMethod:rt,isView:ue,isTypedArray:we,TypedArray:K,TypedArrayPrototype:B}}),3331:(function(o,l,u){var f=u(7854),d=u(9781),h=u(4019),p=u(8880),y=u(2248),_=u(7293),E=u(5787),S=u(9958),w=u(7466),T=u(7067),C=u(1179),x=u(9518),R=u(7674),O=u(8006).f,m=u(3070).f,D=u(1285),U=u(8003),K=u(9909),B=K.get,W=K.set,Y="ArrayBuffer",Q="DataView",ie="prototype",ae="Wrong length",ve="Wrong index",H=f[Y],J=H,z=f[Q],ue=z&&z[ie],we=Object.prototype,ke=f.RangeError,Be=C.pack,nt=C.unpack,rt=function(me){return[me&255]},q=function(me){return[me&255,me>>8&255]},I=function(me){return[me&255,me>>8&255,me>>16&255,me>>24&255]},N=function(me){return me[3]<<24|me[2]<<16|me[1]<<8|me[0]},M=function(me){return Be(me,23,4)},Z=function(me){return Be(me,52,8)},L=function(me,ge){m(me[ie],ge,{get:function(){return B(this)[ge]}})},G=function(me,ge,Te,Pe){var De=T(Te),qe=B(me);if(De+ge>qe.byteLength)throw ke(ve);var _t=B(qe.buffer).bytes,qt=De+qe.byteOffset,Mt=_t.slice(qt,qt+ge);return Pe?Mt:Mt.reverse()},pe=function(me,ge,Te,Pe,De,qe){var _t=T(Te),qt=B(me);if(_t+ge>qt.byteLength)throw ke(ve);for(var Mt=B(qt.buffer).bytes,Xe=_t+qt.byteOffset,wt=Pe(+De),mt=0;mt<ge;mt++)Mt[Xe+mt]=wt[qe?mt:ge-mt-1]};if(!h)J=function(ge){E(this,J,Y);var Te=T(ge);W(this,{bytes:D.call(new Array(Te),0),byteLength:Te}),d||(this.byteLength=Te)},z=function(ge,Te,Pe){E(this,z,Q),E(ge,J,Q);var De=B(ge).byteLength,qe=S(Te);if(qe<0||qe>De)throw ke("Wrong offset");if(Pe=Pe===void 0?De-qe:w(Pe),qe+Pe>De)throw ke(ae);W(this,{buffer:ge,byteLength:Pe,byteOffset:qe}),d||(this.buffer=ge,this.byteLength=Pe,this.byteOffset=qe)},d&&(L(J,"byteLength"),L(z,"buffer"),L(z,"byteLength"),L(z,"byteOffset")),y(z[ie],{getInt8:function(ge){return G(this,1,ge)[0]<<24>>24},getUint8:function(ge){return G(this,1,ge)[0]},getInt16:function(ge){var Te=G(this,2,ge,arguments.length>1?arguments[1]:void 0);return(Te[1]<<8|Te[0])<<16>>16},getUint16:function(ge){var Te=G(this,2,ge,arguments.length>1?arguments[1]:void 0);return Te[1]<<8|Te[0]},getInt32:function(ge){return N(G(this,4,ge,arguments.length>1?arguments[1]:void 0))},getUint32:function(ge){return N(G(this,4,ge,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ge){return nt(G(this,4,ge,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ge){return nt(G(this,8,ge,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ge,Te){pe(this,1,ge,rt,Te)},setUint8:function(ge,Te){pe(this,1,ge,rt,Te)},setInt16:function(ge,Te){pe(this,2,ge,q,Te,arguments.length>2?arguments[2]:void 0)},setUint16:function(ge,Te){pe(this,2,ge,q,Te,arguments.length>2?arguments[2]:void 0)},setInt32:function(ge,Te){pe(this,4,ge,I,Te,arguments.length>2?arguments[2]:void 0)},setUint32:function(ge,Te){pe(this,4,ge,I,Te,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ge,Te){pe(this,4,ge,M,Te,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ge,Te){pe(this,8,ge,Z,Te,arguments.length>2?arguments[2]:void 0)}});else{if(!_(function(){H(1)})||!_(function(){new H(-1)})||_(function(){return new H,new H(1.5),new H(NaN),H.name!=Y})){J=function(ge){return E(this,J),new H(T(ge))};for(var ce=J[ie]=H[ie],be=O(H),_e=0,Ce;be.length>_e;)(Ce=be[_e++])in J||p(J,Ce,H[Ce]);ce.constructor=J}R&&x(ue)!==we&&R(ue,we);var Me=new z(new J(2)),fe=ue.setInt8;Me.setInt8(0,2147483648),Me.setInt8(1,2147483649),(Me.getInt8(0)||!Me.getInt8(1))&&y(ue,{setInt8:function(ge,Te){fe.call(this,ge,Te<<24>>24)},setUint8:function(ge,Te){fe.call(this,ge,Te<<24>>24)}},{unsafe:!0})}U(J,Y),U(z,Q),o.exports={ArrayBuffer:J,DataView:z}}),1048:(function(o,l,u){var f=u(7908),d=u(1400),h=u(7466),p=Math.min;o.exports=[].copyWithin||function(_,E){var S=f(this),w=h(S.length),T=d(_,w),C=d(E,w),x=arguments.length>2?arguments[2]:void 0,R=p((x===void 0?w:d(x,w))-C,w-T),O=1;for(C<T&&T<C+R&&(O=-1,C+=R-1,T+=R-1);R-- >0;)C in S?S[T]=S[C]:delete S[T],T+=O,C+=O;return S}}),1285:(function(o,l,u){var f=u(7908),d=u(1400),h=u(7466);o.exports=function(y){for(var _=f(this),E=h(_.length),S=arguments.length,w=d(S>1?arguments[1]:void 0,E),T=S>2?arguments[2]:void 0,C=T===void 0?E:d(T,E);C>w;)_[w++]=y;return _}}),8533:(function(o,l,u){var f=u(2092).forEach,d=u(9341),h=d("forEach");o.exports=h?[].forEach:function(y){return f(this,y,arguments.length>1?arguments[1]:void 0)}}),8457:(function(o,l,u){var f=u(9974),d=u(7908),h=u(3411),p=u(7659),y=u(7466),_=u(6135),E=u(1246);o.exports=function(w){var T=d(w),C=typeof this=="function"?this:Array,x=arguments.length,R=x>1?arguments[1]:void 0,O=R!==void 0,m=E(T),D=0,U,K,B,W,Y,Q;if(O&&(R=f(R,x>2?arguments[2]:void 0,2)),m!=null&&!(C==Array&&p(m)))for(W=m.call(T),Y=W.next,K=new C;!(B=Y.call(W)).done;D++)Q=O?h(W,R,[B.value,D],!0):B.value,_(K,D,Q);else for(U=y(T.length),K=new C(U);U>D;D++)Q=O?R(T[D],D):T[D],_(K,D,Q);return K.length=D,K}}),1318:(function(o,l,u){var f=u(5656),d=u(7466),h=u(1400),p=function(y){return function(_,E,S){var w=f(_),T=d(w.length),C=h(S,T),x;if(y&&E!=E){for(;T>C;)if(x=w[C++],x!=x)return!0}else for(;T>C;C++)if((y||C in w)&&w[C]===E)return y||C||0;return!y&&-1}};o.exports={includes:p(!0),indexOf:p(!1)}}),2092:(function(o,l,u){var f=u(9974),d=u(8361),h=u(7908),p=u(7466),y=u(5417),_=[].push,E=function(S){var w=S==1,T=S==2,C=S==3,x=S==4,R=S==6,O=S==7,m=S==5||R;return function(D,U,K,B){for(var W=h(D),Y=d(W),Q=f(U,K,3),ie=p(Y.length),ae=0,ve=B||y,H=w?ve(D,ie):T||O?ve(D,0):void 0,J,z;ie>ae;ae++)if((m||ae in Y)&&(J=Y[ae],z=Q(J,ae,W),S))if(w)H[ae]=z;else if(z)switch(S){case 3:return!0;case 5:return J;case 6:return ae;case 2:_.call(H,J)}else switch(S){case 4:return!1;case 7:_.call(H,J)}return R?-1:C||x?x:H}};o.exports={forEach:E(0),map:E(1),filter:E(2),some:E(3),every:E(4),find:E(5),findIndex:E(6),filterOut:E(7)}}),6583:(function(o,l,u){var f=u(5656),d=u(9958),h=u(7466),p=u(9341),y=Math.min,_=[].lastIndexOf,E=!!_&&1/[1].lastIndexOf(1,-0)<0,S=p("lastIndexOf"),w=E||!S;o.exports=w?function(C){if(E)return _.apply(this,arguments)||0;var x=f(this),R=h(x.length),O=R-1;for(arguments.length>1&&(O=y(O,d(arguments[1]))),O<0&&(O=R+O);O>=0;O--)if(O in x&&x[O]===C)return O||0;return-1}:_}),1194:(function(o,l,u){var f=u(7293),d=u(5112),h=u(7392),p=d("species");o.exports=function(y){return h>=51||!f(function(){var _=[],E=_.constructor={};return E[p]=function(){return{foo:1}},_[y](Boolean).foo!==1})}}),9341:(function(o,l,u){var f=u(7293);o.exports=function(d,h){var p=[][d];return!!p&&f(function(){p.call(null,h||function(){throw 1},1)})}}),3671:(function(o,l,u){var f=u(3099),d=u(7908),h=u(8361),p=u(7466),y=function(_){return function(E,S,w,T){f(S);var C=d(E),x=h(C),R=p(C.length),O=_?R-1:0,m=_?-1:1;if(w<2)for(;;){if(O in x){T=x[O],O+=m;break}if(O+=m,_?O<0:R<=O)throw TypeError("Reduce of empty array with no initial value")}for(;_?O>=0:R>O;O+=m)O in x&&(T=S(T,x[O],O,C));return T}};o.exports={left:y(!1),right:y(!0)}}),5417:(function(o,l,u){var f=u(111),d=u(3157),h=u(5112),p=h("species");o.exports=function(y,_){var E;return d(y)&&(E=y.constructor,typeof E=="function"&&(E===Array||d(E.prototype))?E=void 0:f(E)&&(E=E[p],E===null&&(E=void 0))),new(E===void 0?Array:E)(_===0?0:_)}}),3411:(function(o,l,u){var f=u(9670),d=u(9212);o.exports=function(h,p,y,_){try{return _?p(f(y)[0],y[1]):p(y)}catch(E){throw d(h),E}}}),7072:(function(o,l,u){var f=u(5112),d=f("iterator"),h=!1;try{var p=0,y={next:function(){return{done:!!p++}},return:function(){h=!0}};y[d]=function(){return this},Array.from(y,function(){throw 2})}catch{}o.exports=function(_,E){if(!E&&!h)return!1;var S=!1;try{var w={};w[d]=function(){return{next:function(){return{done:S=!0}}}},_(w)}catch{}return S}}),4326:(function(o){var l={}.toString;o.exports=function(u){return l.call(u).slice(8,-1)}}),648:(function(o,l,u){var f=u(1694),d=u(4326),h=u(5112),p=h("toStringTag"),y=d((function(){return arguments})())=="Arguments",_=function(E,S){try{return E[S]}catch{}};o.exports=f?d:function(E){var S,w,T;return E===void 0?"Undefined":E===null?"Null":typeof(w=_(S=Object(E),p))=="string"?w:y?d(S):(T=d(S))=="Object"&&typeof S.callee=="function"?"Arguments":T}}),9920:(function(o,l,u){var f=u(6656),d=u(3887),h=u(1236),p=u(3070);o.exports=function(y,_){for(var E=d(_),S=p.f,w=h.f,T=0;T<E.length;T++){var C=E[T];f(y,C)||S(y,C,w(_,C))}}}),8544:(function(o,l,u){var f=u(7293);o.exports=!f(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})}),4994:(function(o,l,u){var f=u(3383).IteratorPrototype,d=u(30),h=u(9114),p=u(8003),y=u(7497),_=function(){return this};o.exports=function(E,S,w){var T=S+" Iterator";return E.prototype=d(f,{next:h(1,w)}),p(E,T,!1,!0),y[T]=_,E}}),8880:(function(o,l,u){var f=u(9781),d=u(3070),h=u(9114);o.exports=f?function(p,y,_){return d.f(p,y,h(1,_))}:function(p,y,_){return p[y]=_,p}}),9114:(function(o){o.exports=function(l,u){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:u}}}),6135:(function(o,l,u){var f=u(7593),d=u(3070),h=u(9114);o.exports=function(p,y,_){var E=f(y);E in p?d.f(p,E,h(0,_)):p[E]=_}}),654:(function(o,l,u){var f=u(2109),d=u(4994),h=u(9518),p=u(7674),y=u(8003),_=u(8880),E=u(1320),S=u(5112),w=u(1913),T=u(7497),C=u(3383),x=C.IteratorPrototype,R=C.BUGGY_SAFARI_ITERATORS,O=S("iterator"),m="keys",D="values",U="entries",K=function(){return this};o.exports=function(B,W,Y,Q,ie,ae,ve){d(Y,W,Q);var H=function(I){if(I===ie&&ke)return ke;if(!R&&I in ue)return ue[I];switch(I){case m:return function(){return new Y(this,I)};case D:return function(){return new Y(this,I)};case U:return function(){return new Y(this,I)}}return function(){return new Y(this)}},J=W+" Iterator",z=!1,ue=B.prototype,we=ue[O]||ue["@@iterator"]||ie&&ue[ie],ke=!R&&we||H(ie),Be=W=="Array"&&ue.entries||we,nt,rt,q;if(Be&&(nt=h(Be.call(new B)),x!==Object.prototype&&nt.next&&(!w&&h(nt)!==x&&(p?p(nt,x):typeof nt[O]!="function"&&_(nt,O,K)),y(nt,J,!0,!0),w&&(T[J]=K))),ie==D&&we&&we.name!==D&&(z=!0,ke=function(){return we.call(this)}),(!w||ve)&&ue[O]!==ke&&_(ue,O,ke),T[W]=ke,ie)if(rt={values:H(D),keys:ae?ke:H(m),entries:H(U)},ve)for(q in rt)(R||z||!(q in ue))&&E(ue,q,rt[q]);else f({target:W,proto:!0,forced:R||z},rt);return rt}}),9781:(function(o,l,u){var f=u(7293);o.exports=!f(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),317:(function(o,l,u){var f=u(7854),d=u(111),h=f.document,p=d(h)&&d(h.createElement);o.exports=function(y){return p?h.createElement(y):{}}}),8324:(function(o){o.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),8113:(function(o,l,u){var f=u(5005);o.exports=f("navigator","userAgent")||""}),7392:(function(o,l,u){var f=u(7854),d=u(8113),h=f.process,p=h&&h.versions,y=p&&p.v8,_,E;y?(_=y.split("."),E=_[0]+_[1]):d&&(_=d.match(/Edge\/(\d+)/),(!_||_[1]>=74)&&(_=d.match(/Chrome\/(\d+)/),_&&(E=_[1]))),o.exports=E&&+E}),748:(function(o){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),2109:(function(o,l,u){var f=u(7854),d=u(1236).f,h=u(8880),p=u(1320),y=u(3505),_=u(9920),E=u(4705);o.exports=function(S,w){var T=S.target,C=S.global,x=S.stat,R,O,m,D,U,K;if(C?O=f:x?O=f[T]||y(T,{}):O=(f[T]||{}).prototype,O)for(m in w){if(U=w[m],S.noTargetGet?(K=d(O,m),D=K&&K.value):D=O[m],R=E(C?m:T+(x?".":"#")+m,S.forced),!R&&D!==void 0){if(typeof U==typeof D)continue;_(U,D)}(S.sham||D&&D.sham)&&h(U,"sham",!0),p(O,m,U,S)}}}),7293:(function(o){o.exports=function(l){try{return!!l()}catch{return!0}}}),7007:(function(o,l,u){u(4916);var f=u(1320),d=u(7293),h=u(5112),p=u(2261),y=u(8880),_=h("species"),E=!d(function(){var x=/./;return x.exec=function(){var R=[];return R.groups={a:"7"},R},"".replace(x,"$<a>")!=="7"}),S=(function(){return"a".replace(/./,"$0")==="$0"})(),w=h("replace"),T=(function(){return/./[w]?/./[w]("a","$0")==="":!1})(),C=!d(function(){var x=/(?:)/,R=x.exec;x.exec=function(){return R.apply(this,arguments)};var O="ab".split(x);return O.length!==2||O[0]!=="a"||O[1]!=="b"});o.exports=function(x,R,O,m){var D=h(x),U=!d(function(){var ie={};return ie[D]=function(){return 7},""[x](ie)!=7}),K=U&&!d(function(){var ie=!1,ae=/a/;return x==="split"&&(ae={},ae.constructor={},ae.constructor[_]=function(){return ae},ae.flags="",ae[D]=/./[D]),ae.exec=function(){return ie=!0,null},ae[D](""),!ie});if(!U||!K||x==="replace"&&!(E&&S&&!T)||x==="split"&&!C){var B=/./[D],W=O(D,""[x],function(ie,ae,ve,H,J){return ae.exec===p?U&&!J?{done:!0,value:B.call(ae,ve,H)}:{done:!0,value:ie.call(ve,ae,H)}:{done:!1}},{REPLACE_KEEPS_$0:S,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:T}),Y=W[0],Q=W[1];f(String.prototype,x,Y),f(RegExp.prototype,D,R==2?function(ie,ae){return Q.call(ie,this,ae)}:function(ie){return Q.call(ie,this)})}m&&y(RegExp.prototype[D],"sham",!0)}}),9974:(function(o,l,u){var f=u(3099);o.exports=function(d,h,p){if(f(d),h===void 0)return d;switch(p){case 0:return function(){return d.call(h)};case 1:return function(y){return d.call(h,y)};case 2:return function(y,_){return d.call(h,y,_)};case 3:return function(y,_,E){return d.call(h,y,_,E)}}return function(){return d.apply(h,arguments)}}}),5005:(function(o,l,u){var f=u(857),d=u(7854),h=function(p){return typeof p=="function"?p:void 0};o.exports=function(p,y){return arguments.length<2?h(f[p])||h(d[p]):f[p]&&f[p][y]||d[p]&&d[p][y]}}),1246:(function(o,l,u){var f=u(648),d=u(7497),h=u(5112),p=h("iterator");o.exports=function(y){if(y!=null)return y[p]||y["@@iterator"]||d[f(y)]}}),8554:(function(o,l,u){var f=u(9670),d=u(1246);o.exports=function(h){var p=d(h);if(typeof p!="function")throw TypeError(String(h)+" is not iterable");return f(p.call(h))}}),647:(function(o,l,u){var f=u(7908),d=Math.floor,h="".replace,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,y=/\$([$&'`]|\d\d?)/g;o.exports=function(_,E,S,w,T,C){var x=S+_.length,R=w.length,O=y;return T!==void 0&&(T=f(T),O=p),h.call(C,O,function(m,D){var U;switch(D.charAt(0)){case"$":return"$";case"&":return _;case"`":return E.slice(0,S);case"'":return E.slice(x);case"<":U=T[D.slice(1,-1)];break;default:var K=+D;if(K===0)return m;if(K>R){var B=d(K/10);return B===0?m:B<=R?w[B-1]===void 0?D.charAt(1):w[B-1]+D.charAt(1):m}U=w[K-1]}return U===void 0?"":U})}}),7854:(function(o,l,u){var f=function(d){return d&&d.Math==Math&&d};o.exports=f(typeof globalThis=="object"&&globalThis)||f(typeof window=="object"&&window)||f(typeof self=="object"&&self)||f(typeof u.g=="object"&&u.g)||(function(){return this})()||Function("return this")()}),6656:(function(o){var l={}.hasOwnProperty;o.exports=function(u,f){return l.call(u,f)}}),3501:(function(o){o.exports={}}),490:(function(o,l,u){var f=u(5005);o.exports=f("document","documentElement")}),4664:(function(o,l,u){var f=u(9781),d=u(7293),h=u(317);o.exports=!f&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!=7})}),1179:(function(o){var l=Math.abs,u=Math.pow,f=Math.floor,d=Math.log,h=Math.LN2,p=function(_,E,S){var w=new Array(S),T=S*8-E-1,C=(1<<T)-1,x=C>>1,R=E===23?u(2,-24)-u(2,-77):0,O=_<0||_===0&&1/_<0?1:0,m=0,D,U,K;for(_=l(_),_!=_||_===1/0?(U=_!=_?1:0,D=C):(D=f(d(_)/h),_*(K=u(2,-D))<1&&(D--,K*=2),D+x>=1?_+=R/K:_+=R*u(2,1-x),_*K>=2&&(D++,K/=2),D+x>=C?(U=0,D=C):D+x>=1?(U=(_*K-1)*u(2,E),D=D+x):(U=_*u(2,x-1)*u(2,E),D=0));E>=8;w[m++]=U&255,U/=256,E-=8);for(D=D<<E|U,T+=E;T>0;w[m++]=D&255,D/=256,T-=8);return w[--m]|=O*128,w},y=function(_,E){var S=_.length,w=S*8-E-1,T=(1<<w)-1,C=T>>1,x=w-7,R=S-1,O=_[R--],m=O&127,D;for(O>>=7;x>0;m=m*256+_[R],R--,x-=8);for(D=m&(1<<-x)-1,m>>=-x,x+=E;x>0;D=D*256+_[R],R--,x-=8);if(m===0)m=1-C;else{if(m===T)return D?NaN:O?-1/0:1/0;D=D+u(2,E),m=m-C}return(O?-1:1)*D*u(2,m-E)};o.exports={pack:p,unpack:y}}),8361:(function(o,l,u){var f=u(7293),d=u(4326),h="".split;o.exports=f(function(){return!Object("z").propertyIsEnumerable(0)})?function(p){return d(p)=="String"?h.call(p,""):Object(p)}:Object}),9587:(function(o,l,u){var f=u(111),d=u(7674);o.exports=function(h,p,y){var _,E;return d&&typeof(_=p.constructor)=="function"&&_!==y&&f(E=_.prototype)&&E!==y.prototype&&d(h,E),h}}),2788:(function(o,l,u){var f=u(5465),d=Function.toString;typeof f.inspectSource!="function"&&(f.inspectSource=function(h){return d.call(h)}),o.exports=f.inspectSource}),9909:(function(o,l,u){var f=u(8536),d=u(7854),h=u(111),p=u(8880),y=u(6656),_=u(5465),E=u(6200),S=u(3501),w=d.WeakMap,T,C,x,R=function(W){return x(W)?C(W):T(W,{})},O=function(W){return function(Y){var Q;if(!h(Y)||(Q=C(Y)).type!==W)throw TypeError("Incompatible receiver, "+W+" required");return Q}};if(f){var m=_.state||(_.state=new w),D=m.get,U=m.has,K=m.set;T=function(W,Y){return Y.facade=W,K.call(m,W,Y),Y},C=function(W){return D.call(m,W)||{}},x=function(W){return U.call(m,W)}}else{var B=E("state");S[B]=!0,T=function(W,Y){return Y.facade=W,p(W,B,Y),Y},C=function(W){return y(W,B)?W[B]:{}},x=function(W){return y(W,B)}}o.exports={set:T,get:C,has:x,enforce:R,getterFor:O}}),7659:(function(o,l,u){var f=u(5112),d=u(7497),h=f("iterator"),p=Array.prototype;o.exports=function(y){return y!==void 0&&(d.Array===y||p[h]===y)}}),3157:(function(o,l,u){var f=u(4326);o.exports=Array.isArray||function(h){return f(h)=="Array"}}),4705:(function(o,l,u){var f=u(7293),d=/#|\.prototype\./,h=function(S,w){var T=y[p(S)];return T==E?!0:T==_?!1:typeof w=="function"?f(w):!!w},p=h.normalize=function(S){return String(S).replace(d,".").toLowerCase()},y=h.data={},_=h.NATIVE="N",E=h.POLYFILL="P";o.exports=h}),111:(function(o){o.exports=function(l){return typeof l=="object"?l!==null:typeof l=="function"}}),1913:(function(o){o.exports=!1}),7850:(function(o,l,u){var f=u(111),d=u(4326),h=u(5112),p=h("match");o.exports=function(y){var _;return f(y)&&((_=y[p])!==void 0?!!_:d(y)=="RegExp")}}),9212:(function(o,l,u){var f=u(9670);o.exports=function(d){var h=d.return;if(h!==void 0)return f(h.call(d)).value}}),3383:(function(o,l,u){var f=u(7293),d=u(9518),h=u(8880),p=u(6656),y=u(5112),_=u(1913),E=y("iterator"),S=!1,w=function(){return this},T,C,x;[].keys&&(x=[].keys(),"next"in x?(C=d(d(x)),C!==Object.prototype&&(T=C)):S=!0);var R=T==null||f(function(){var O={};return T[E].call(O)!==O});R&&(T={}),(!_||R)&&!p(T,E)&&h(T,E,w),o.exports={IteratorPrototype:T,BUGGY_SAFARI_ITERATORS:S}}),7497:(function(o){o.exports={}}),133:(function(o,l,u){var f=u(7293);o.exports=!!Object.getOwnPropertySymbols&&!f(function(){return!String(Symbol())})}),590:(function(o,l,u){var f=u(7293),d=u(5112),h=u(1913),p=d("iterator");o.exports=!f(function(){var y=new URL("b?a=1&b=2&c=3","http://a"),_=y.searchParams,E="";return y.pathname="c%20d",_.forEach(function(S,w){_.delete("b"),E+=w+S}),h&&!y.toJSON||!_.sort||y.href!=="http://a/c%20d?a=1&c=3"||_.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!_[p]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||E!=="a1c3"||new URL("http://x",void 0).host!=="x"})}),8536:(function(o,l,u){var f=u(7854),d=u(2788),h=f.WeakMap;o.exports=typeof h=="function"&&/native code/.test(d(h))}),1574:(function(o,l,u){var f=u(9781),d=u(7293),h=u(1956),p=u(5181),y=u(5296),_=u(7908),E=u(8361),S=Object.assign,w=Object.defineProperty;o.exports=!S||d(function(){if(f&&S({b:1},S(w({},"a",{enumerable:!0,get:function(){w(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var T={},C={},x=Symbol(),R="abcdefghijklmnopqrst";return T[x]=7,R.split("").forEach(function(O){C[O]=O}),S({},T)[x]!=7||h(S({},C)).join("")!=R})?function(C,x){for(var R=_(C),O=arguments.length,m=1,D=p.f,U=y.f;O>m;)for(var K=E(arguments[m++]),B=D?h(K).concat(D(K)):h(K),W=B.length,Y=0,Q;W>Y;)Q=B[Y++],(!f||U.call(K,Q))&&(R[Q]=K[Q]);return R}:S}),30:(function(o,l,u){var f=u(9670),d=u(6048),h=u(748),p=u(3501),y=u(490),_=u(317),E=u(6200),S=">",w="<",T="prototype",C="script",x=E("IE_PROTO"),R=function(){},O=function(B){return w+C+S+B+w+"/"+C+S},m=function(B){B.write(O("")),B.close();var W=B.parentWindow.Object;return B=null,W},D=function(){var B=_("iframe"),W="java"+C+":",Y;return B.style.display="none",y.appendChild(B),B.src=String(W),Y=B.contentWindow.document,Y.open(),Y.write(O("document.F=Object")),Y.close(),Y.F},U,K=function(){try{U=document.domain&&new ActiveXObject("htmlfile")}catch{}K=U?m(U):D();for(var B=h.length;B--;)delete K[T][h[B]];return K()};p[x]=!0,o.exports=Object.create||function(W,Y){var Q;return W!==null?(R[T]=f(W),Q=new R,R[T]=null,Q[x]=W):Q=K(),Y===void 0?Q:d(Q,Y)}}),6048:(function(o,l,u){var f=u(9781),d=u(3070),h=u(9670),p=u(1956);o.exports=f?Object.defineProperties:function(_,E){h(_);for(var S=p(E),w=S.length,T=0,C;w>T;)d.f(_,C=S[T++],E[C]);return _}}),3070:(function(o,l,u){var f=u(9781),d=u(4664),h=u(9670),p=u(7593),y=Object.defineProperty;l.f=f?y:function(E,S,w){if(h(E),S=p(S,!0),h(w),d)try{return y(E,S,w)}catch{}if("get"in w||"set"in w)throw TypeError("Accessors not supported");return"value"in w&&(E[S]=w.value),E}}),1236:(function(o,l,u){var f=u(9781),d=u(5296),h=u(9114),p=u(5656),y=u(7593),_=u(6656),E=u(4664),S=Object.getOwnPropertyDescriptor;l.f=f?S:function(T,C){if(T=p(T),C=y(C,!0),E)try{return S(T,C)}catch{}if(_(T,C))return h(!d.f.call(T,C),T[C])}}),8006:(function(o,l,u){var f=u(6324),d=u(748),h=d.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(y){return f(y,h)}}),5181:(function(o,l){l.f=Object.getOwnPropertySymbols}),9518:(function(o,l,u){var f=u(6656),d=u(7908),h=u(6200),p=u(8544),y=h("IE_PROTO"),_=Object.prototype;o.exports=p?Object.getPrototypeOf:function(E){return E=d(E),f(E,y)?E[y]:typeof E.constructor=="function"&&E instanceof E.constructor?E.constructor.prototype:E instanceof Object?_:null}}),6324:(function(o,l,u){var f=u(6656),d=u(5656),h=u(1318).indexOf,p=u(3501);o.exports=function(y,_){var E=d(y),S=0,w=[],T;for(T in E)!f(p,T)&&f(E,T)&&w.push(T);for(;_.length>S;)f(E,T=_[S++])&&(~h(w,T)||w.push(T));return w}}),1956:(function(o,l,u){var f=u(6324),d=u(748);o.exports=Object.keys||function(p){return f(p,d)}}),5296:(function(o,l){var u={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,d=f&&!u.call({1:2},1);l.f=d?function(p){var y=f(this,p);return!!y&&y.enumerable}:u}),7674:(function(o,l,u){var f=u(9670),d=u(6077);o.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var h=!1,p={},y;try{y=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,y.call(p,[]),h=p instanceof Array}catch{}return function(E,S){return f(E),d(S),h?y.call(E,S):E.__proto__=S,E}})():void 0)}),288:(function(o,l,u){var f=u(1694),d=u(648);o.exports=f?{}.toString:function(){return"[object "+d(this)+"]"}}),3887:(function(o,l,u){var f=u(5005),d=u(8006),h=u(5181),p=u(9670);o.exports=f("Reflect","ownKeys")||function(_){var E=d.f(p(_)),S=h.f;return S?E.concat(S(_)):E}}),857:(function(o,l,u){var f=u(7854);o.exports=f}),2248:(function(o,l,u){var f=u(1320);o.exports=function(d,h,p){for(var y in h)f(d,y,h[y],p);return d}}),1320:(function(o,l,u){var f=u(7854),d=u(8880),h=u(6656),p=u(3505),y=u(2788),_=u(9909),E=_.get,S=_.enforce,w=String(String).split("String");(o.exports=function(T,C,x,R){var O=R?!!R.unsafe:!1,m=R?!!R.enumerable:!1,D=R?!!R.noTargetGet:!1,U;if(typeof x=="function"&&(typeof C=="string"&&!h(x,"name")&&d(x,"name",C),U=S(x),U.source||(U.source=w.join(typeof C=="string"?C:""))),T===f){m?T[C]=x:p(C,x);return}else O?!D&&T[C]&&(m=!0):delete T[C];m?T[C]=x:d(T,C,x)})(Function.prototype,"toString",function(){return typeof this=="function"&&E(this).source||y(this)})}),7651:(function(o,l,u){var f=u(4326),d=u(2261);o.exports=function(h,p){var y=h.exec;if(typeof y=="function"){var _=y.call(h,p);if(typeof _!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return _}if(f(h)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(h,p)}}),2261:(function(o,l,u){var f=u(7066),d=u(2999),h=RegExp.prototype.exec,p=String.prototype.replace,y=h,_=(function(){var T=/a/,C=/b*/g;return h.call(T,"a"),h.call(C,"a"),T.lastIndex!==0||C.lastIndex!==0})(),E=d.UNSUPPORTED_Y||d.BROKEN_CARET,S=/()??/.exec("")[1]!==void 0,w=_||S||E;w&&(y=function(C){var x=this,R,O,m,D,U=E&&x.sticky,K=f.call(x),B=x.source,W=0,Y=C;return U&&(K=K.replace("y",""),K.indexOf("g")===-1&&(K+="g"),Y=String(C).slice(x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&C[x.lastIndex-1]!==`
|
|
211
|
+
Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+Ps(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}}const sc=new Vre;function zn(e,t){return sc.parse(e,t)}zn.options=zn.setOptions=function(e){return sc.setOptions(e),zn.defaults=sc.defaults,kre(zn.defaults),zn};zn.getDefaults=BI;zn.defaults=kc;zn.use=function(...e){return sc.use(...e),zn.defaults=sc.defaults,kre(zn.defaults),zn};zn.walkTokens=function(e,t){return sc.walkTokens(e,t)};zn.parseInline=sc.parseInline;zn.Parser=Jo;zn.parser=Jo.parse;zn.Renderer=$g;zn.TextRenderer=YI;zn.Lexer=Qo;zn.lexer=Qo.lex;zn.Tokenizer=Mg;zn.Hooks=hh;zn.parse=zn;zn.options;zn.setOptions;zn.use;zn.walkTokens;zn.parseInline;Jo.parse;Qo.lex;const pAe="_container_1hbtl_1",vAe={container:pAe},$K="markdown-link",yC=new Vre;let Qd;const FK=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,gAe=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;yC.use({breaks:!0,async:!0,extensions:[{name:"inlineKatex",level:"inline",start:e=>{let t,r=e;for(;r;){if(t=r.indexOf("$"),t===-1)return;if((t===0||r.charAt(t-1)===" ")&&r.substring(t).match(FK))return t;r=r.substring(t+1).replace(/^\$+/,"")}},tokenizer:e=>{const t=e.match(FK);if(t)return{type:"inlineKatex",raw:t[0],text:t[2].trim(),displayMode:t[1].length===2}},renderer:e=>Qd?Qd.renderToString(e.text,{displayMode:e.displayMode}):e.text},{name:"blockKatex",level:"block",tokenizer:e=>{const t=e.match(gAe);if(t)return{type:"blockKatex",raw:t[0],text:t[2].trim(),displayMode:t[1].length===2}},renderer:e=>Qd?Qd.renderToString(e.text,{displayMode:e.displayMode}):e.text},{start:e=>e.indexOf("^"),name:"superscript",level:"inline",tokenizer:e=>{const t=e.match(/^\^([^\^]+?)\^/);if(t)return{type:"superscript",raw:t[0],text:t[1]}},renderer:e=>`<sup>${e.text}</sup>`},{name:"subscript",level:"inline",start:e=>e.indexOf("~"),tokenizer:e=>{const t=e.match(/^\~([^\~]+?)\~/);if(t)return{type:"subscript",raw:t[0],text:t[1]}},renderer:e=>`<sub>${e.text}</sub>`}],walkTokens:async e=>{if(e.type==="inlineKatex"||e.type==="blockKatex"){const{katex:t}=await Hn(async()=>{const{katex:r}=await import("./Cmu1J2M7.chunk.js");return{katex:r}},__vite__mapDeps([0,1]));Qd=t}}});const Hre={isLink(e){return e.classList.contains($K)},async parse(e,t){if(!e)return"";const r=await yC.parse(e,{renderer:Hre.getRenderer(t)});return Xx.sanitize(r)},async toPlainText(e){if(!e)return"";const t=await this.parse(e,{focusableLinks:!1});return Xx.sanitize(t,{ALLOWED_TAGS:[],KEEP_CONTENT:!0}).replace(/\s+/g," ").trim()},getRenderer(e){const t=new yC.Renderer;return t.heading=({text:r,depth:n})=>`<h${n} class="${{1:"h1",2:"h2",3:"h6",4:"h6",5:"h6",6:"h6"}[n]}">${r}</h${n}>`,t.link=({href:r,text:n})=>{const i=e.focusableLinks?'tabIndex="0"':'tabIndex="-1"';return`<a href="${r}" target="_blank" class="info-link ${$K}" ${i}>${n}</a>`},t},getContainerClass(){return vAe.container}},mAe="shared.shared-utils",Fg=Gr.encloseNamespace(mAe),yAe=70,ax=160,_Ae=/^(.*)\s/,jK="pageTitle",UK="pageDescription",ox="YYYY-MM-DD",df={AU:"au",ENGLAND:"gb",US:"us"},EAe={[df.AU]:Ml.AU,[df.ENGLAND]:Ml.UK,[df.US]:Ml.US,[Ml.AU]:df.AU,[Ml.UK]:df.ENGLAND,[Ml.US]:df.US};function qK(e){return e?e.substring(0,e.length-3)+"...":""}function SAe(e,t){return e?e.substring(0,t):""}function wAe(e,t,r){if(!e)return"";const n=t-r;if(e.length<=n)return e;const i=e.slice(0,n),a=i.match(_Ae);return a?a[1]:i}function Wu({title:e,phraseContext:t,product:r}){var a;if(!e)return"";if(!t)return Fg(jK,{title:e,product:r});const n=((a=t.phraseHandler(t.titlePhrase,{value:""}))==null?void 0:a.length)??0,i=yAe-n;return e.length>=i?Fg(jK,{title:e,product:r}):t.phraseHandler(t.titlePhrase,{title:e})}function Gu({title:e,description:t,phraseContext:r}){var u,f;const n=qK(SAe(t||e,ax));if(!r)return Fg(UK,{description:n});const i=((u=r.phraseHandler(r.descriptionPhrase,{title:"",description:""}))==null?void 0:u.length)??0,a=ax-i;if((e==null?void 0:e.length)>=a)return Fg(UK,{description:n});const o=((f=r.phraseHandler(r.descriptionPhrase,{title:e,description:""}))==null?void 0:f.length)??0,l=qK(wAe(t,ax,o));return r.phraseHandler(r.descriptionPhrase,{title:e,description:l})}function bAe(e,t){return(e==null?void 0:e.reduce((r,n)=>{var a,o;const i=(a=EAe[n.contentRegion])==null?void 0:a.toUpperCase();return((o=n.id)==null?void 0:o.toString())!==(t==null?void 0:t.toString())||!i?r:[...r,{"@type":"Place",name:i}]},[]))??[]}function TAe(e,t){const r=e!=null&&e.datePublished?Jl.format(e==null?void 0:e.datePublished,ox):Jl.format(e==null?void 0:e.dateCreated,ox),n=t!=null&&t.dateModified?Jl.format(t==null?void 0:t.dateModified,ox):"";return{"@context":"https://schema.org","@type":"WebPage",name:e==null?void 0:e.name,description:e==null?void 0:e.description,url:DTe.getCanonicalLink(),publisher:{"@type":"Organization",name:"ClickView"},datePublished:r,dateModified:n}}function AAe(e,t,r){var n;return{"@context":"https://schema.org","@type":"VideoObject",mainEntityOfPage:{"@type":"WebPage","@id":t},name:e==null?void 0:e.name,description:e==null?void 0:e.description,thumbnailUrl:(n=e==null?void 0:e.thumbnail)==null?void 0:n.url,uploadDate:e==null?void 0:e.dateCreated,duration:Jl.getDurationISOString(e==null?void 0:e.duration,"milliseconds"),hasPart:[{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:`.${ix.GLOBAL_PLAYER_SELECTOR}`},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:`.${ix.RESOURCE_ITEM_SELECTOR}`},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:`.${ix.WELCOME_POPUP_SELECTOR}`}],requiresSubscription:!0,isAccessibleForFree:!1,regionsAllowed:bAe(r,e==null?void 0:e.id),potentialAction:{"@type":"WatchAction",actionAccessibilityRequirement:{"@type":"ActionAccessSpecification",requiresSubscription:!0}}}}async function RAe(e,t){const r=[];for(const i of e){const a=await Hre.toPlainText(i.answer);r.push({"@type":"Question",name:i.question,acceptedAnswer:{"@type":"Answer",text:a}})}const n={"@context":"https://schema.org","@type":"FAQPage",mainEntity:r};return t&&(n.name=t),n}let Is="ClickView";const xAe={setProduct(e){Is=e},getDefaultMetadata(e){const{title:t,description:r,canonicalLink:n,phraseContext:i,allowIndexing:a,hrefLang:o,product:l,preload:u}=e;return{title:Wu({title:t,phraseContext:i,product:l||Is}),description:Gu({title:t,description:r,phraseContext:i}),canonicalLink:n,allowIndexing:a,hrefLang:o,preload:u,_helperUsed:!0}},getVideoMetadata(e){const{content:t,canonicalLink:r,phraseContext:n,allowIndexing:i,hrefLang:a,regionAlternatives:o,product:l}=e;return{title:Wu({title:t==null?void 0:t.name,phraseContext:n,product:l||Is}),description:Gu({title:t==null?void 0:t.name,description:t==null?void 0:t.description,phraseContext:n}),jsonLd:AAe(t,r,o),canonicalLink:r,allowIndexing:i,hrefLang:a,_helperUsed:!0}},getClipMetadata(e){var o;const{content:t,canonicalLink:r,phraseContext:n,allowIndexing:i,product:a}=e;return{title:Wu({title:t==null?void 0:t.name,phraseContext:n,product:a||Is}),description:Gu({title:t==null?void 0:t.name,description:(t==null?void 0:t.description)||((o=t==null?void 0:t._parentVideo)==null?void 0:o.description),phraseContext:n}),canonicalLink:r,allowIndexing:i}},getInteractiveMetadata(e){var o;const{content:t,canonicalLink:r,phraseContext:n,allowIndexing:i,product:a}=e;return{title:Wu({title:t==null?void 0:t.name,phraseContext:n,product:a||Is}),description:Gu({title:t==null?void 0:t.name,description:(t==null?void 0:t.description)||((o=t==null?void 0:t._parentVideo)==null?void 0:o.description),phraseContext:n}),canonicalLink:r,allowIndexing:i,_helperUsed:!0}},getPlaylistMetadata(e){const{content:t,canonicalLink:r,phraseContext:n,allowIndexing:i,product:a}=e;return{title:Wu({title:t==null?void 0:t.name,phraseContext:n,product:a||Is}),description:Gu({title:t==null?void 0:t.name,phraseContext:n}),canonicalLink:r,allowIndexing:i,_helperUsed:!0}},getSeriesMetadata(e){const{content:t,canonicalLink:r,phraseContext:n,allowIndexing:i,product:a}=e;return{title:Wu({title:t==null?void 0:t.name,phraseContext:n,product:a||Is}),description:Gu({title:t==null?void 0:t.name,description:t==null?void 0:t.description,phraseContext:n}),canonicalLink:r,allowIndexing:i,_helperUsed:!0}},getClassificationMetadata(e){const{content:{classification:t,dashboard:r},canonicalLink:n,phraseContext:i,allowIndexing:a,hrefLang:o,product:l}=e;function u(){var d,h,p,y;return(h=(d=t==null?void 0:t.externalMetadata)==null?void 0:d.seo)!=null&&h.title?`${(y=(p=t.externalMetadata)==null?void 0:p.seo)==null?void 0:y.title} | ${l||Is}`:Wu({title:t==null?void 0:t.name,phraseContext:i,product:l||Is})}function f(){var d,h,p,y;return(h=(d=t==null?void 0:t.externalMetadata)==null?void 0:d.seo)!=null&&h.description?(y=(p=t.externalMetadata)==null?void 0:p.seo)==null?void 0:y.description:Gu({title:t==null?void 0:t.name,phraseContext:i})}return{title:u(),description:f(),canonicalLink:n,allowIndexing:a,jsonLd:r&&TAe(t,r),hrefLang:o,_helperUsed:!0}},getDiscoverMetadata(e){const{content:t,canonicalLink:r,phraseContext:n,allowIndexing:i,hrefLang:a,product:o}=e;return{title:Wu({title:t==null?void 0:t.name,phraseContext:n,product:o||Is}),description:Gu({title:t==null?void 0:t.name,phraseContext:n}),canonicalLink:r,allowIndexing:i,hrefLang:a,_helperUsed:!0}},async buildFaqJsonLd(e,t){return await RAe(e,t)}};function CAe(e){let t=e;t._helperUsed||(t=xAe.getDefaultMetadata(t)),Ire(t.title);const r=Dbe();if(!r.hasProvider)throw dr.throw(new Sn("PageMetadataContext must exist in your application to use this hook"));Se.useEffect(()=>{!t||e._isPopupUp||r.hasPageMetadataChanged(t)&&r.setPageMetadata(t)})}const So={Default:{LOG_OUT:"log:out",LOG_IN:"log:in",ERROR:"error",NOT_FOUND:"not:found",DEV_ERROR:"dev:error",DIALOG_ERROR:"dialog:error",INDEX:"index",GIVE_FEEDBACK:"give:feedback"},Exchange:{INDEX:"index",FOLDER:"folder",MOST_RECENT:"most:recent",SERIES:"series",SEARCH:"search",PREVIEW:"preview",ADD:"add",SUGGEST_EDIT:"suggest:edit",DOWNLOAD_VIDEO:"download:video",ADD_TO_LIBRARY:"add:to:library"},Tv:{INDEX:"index",CHANNELS:"channels",CHANNEL:"channel",PROGRAMS:"programs",SEARCH:"search",PREVIEW:"preview",ADD:"add",AD_FREE_REQUEST:"ad:free:request",BROADCAST_CONTENT:"broadcast:content",ALREADY_ADDED:"already:added",REQUEST_PROGRAM:"request:program",RADIO_DOWNLOAD:"radio:download"}},OAe={ErrorViews:{SMALL:"/images/error-avatars/small/error-{number}.png"},EmptyStates:{SEARCH:"/images/empty-states/results-v2.png",FOLDER:"/images/empty-states/empty-folder-v2.png"},General:{ANNOUNCEMENT_FRAMED:"/images/general/announcement-framed-v2.png",MOUNTAINS_FRAMED:"/images/general/mountains-framed-v2.png",CONFETTI:"/images/general/confetti-v2.png",PAPER_PLANE:"/images/general/paper-plane-v2.png"},ProgramLogos:{FOXTEL:"/images/logos/foxtel.png",BBC:"/images/logos/bbc.png"}},BK="default.error",IAe=33;function zre({error:e}){var n,i;CAe({title:(e==null?void 0:e.heading)||Gr.getPhrase(BK,"defaultPageTitle")});const[t]=Se.useState(vte.getRandomInt(IAe)+1),r=OAe.ErrorViews.SMALL.replace("{number}",t.toString());return e?de.jsxs(ks,{children:[de.jsx(ks.Image,{src:r}),de.jsx(ks.Heading,{children:e.heading}),!!e.description&&de.jsx(ks.Info,{injectHtml:e.injectDescriptionHtml,children:e.description}),e.cta!==!1&&de.jsx(ks.Cta,{text:((n=e.cta)==null?void 0:n.text)??Gr.getPhrase(BK,"discoverVideos"),className:`info-link ${e.description?"mt-n2":""}`,appLink:((i=e.cta)==null?void 0:i.appLink)??{application:ki.EXCHANGE,action:So.Exchange.INDEX}})]}):de.jsx(de.Fragment,{})}class PAe extends nI{get channelName(){return ki.DEFAULT}get appRoutes(){return{"(/)":"index","*path":"catchAllRoutes"}}get externalRoutes(){return{"logout(/)":"logOut","login(/)":"logIn"}}get appLinks(){return["devError","dialogError","error","notFound","giveFeedback"]}}class kAe extends TI{get name(){return"Default Application"}get layoutOptions(){return{name:hp.DEFAULT_LAYOUT,options:{alertRegion:un.ALERT}}}get channelName(){return ki.DEFAULT}static get router(){return PAe}async index(){const{RedirectView:t}=await Hn(async()=>{const{RedirectView:r}=await import("./C7giBbHJ.chunk.js");return{RedirectView:r}},[]);this.layout.showChildView(un.CONTENT,de.jsx(t,{}))}catchAllRoutes(){dr.throw(new pte)}notFound(){const t=Mr.Radio.channel("error:view").request("current:error");Hn(async()=>{const{NotFoundView:r}=await import("./i6PC1lEa.chunk.js");return{NotFoundView:r}},[]).then(({NotFoundView:r})=>{this.layout.showChildView(un.CONTENT,de.jsx(r,{error:t}))})}error(){const t=Mr.Radio.channel("error:view").request("current:error");this.layout.showChildView(un.CONTENT,de.jsx(zre,{error:t}))}dialogError(){const t=Mr.Radio.channel("error:view").request("current:error");if(!t)return;const{dialogOptions:r}=t;Hn(async()=>{const{DialogView:n}=await import("./CEXoa-wM.chunk.js");return{DialogView:n}},[]).then(({DialogView:n})=>{this.layout.showChildView(un.POPUP,de.jsx(n,{title:r.title,text:r.text,buttons:r.buttons,onDone:t.onDone,onFail:t.onFail,closePopup:()=>this.layout.closePopup()}))})}devError(){const t=Mr.Radio.channel("error:view").request("current:error");Hn(async()=>{const{DevErrorView:r}=await import("./BmU_YUbl.chunk.js");return{DevErrorView:r}},[]).then(({DevErrorView:r})=>{this.layout.showChildView(un.CONTENT,de.jsx(r,{error:t}))})}giveFeedback(){Hn(async()=>{const{GiveFeedbackView:t}=await import("./CSvE-r6r.chunk.js");return{GiveFeedbackView:t}},__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])).then(({GiveFeedbackView:t})=>{this.layout.showChildView(un.POPUP,de.jsx(t,{product:Yo.Exchange,closePopup:()=>this.layout.closePopup()}))})}}var Wre=(e=>(e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience",e[e.TallPoster=60]="TallPoster",e[e.Classroom=67]="Classroom",e[e.ClassroomGroup=68]="ClassroomGroup",e[e.UserProfile=74]="UserProfile",e[e.PartnerProfile=78]="PartnerProfile",e))(Wre||{});const XI={MixedMediaUpload:"MixedMediaUploadService",Context:"ContextService",OldVersion:"OldVersionService"},DAe=5,LAe=3;class NAe extends za{constructor(){super(...arguments),this.routeHistory=[],this.contextHistory=[]}get name(){return XI.Context}static get Instance(){return this.instance||(this.instance=new this)}initialize(){this.listenTo(mn.SHELL,En.ROUTE,this.setContext),this.listenTo(mn.SHELL,En.ROUTE,this.updateRouteHistory)}setContext(t){var r;Ai.isEqual(t,(r=this.getCurrentContext())==null?void 0:r.appLink)||(this.contextHistory.length>=DAe&&this.contextHistory.shift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:t}))}getCurrentContext(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}getPreviousContext(){if(!(!this.contextHistory.length||this.contextHistory.length-2<0))return this.contextHistory[this.contextHistory.length-2]}updateRouteHistory(t){var n;Ai.getHref(t)&&(Ai.isEqual(t,(n=this.getCurrentRoute())==null?void 0:n.appLink)||(this.routeHistory.length>=LAe&&this.routeHistory.shift(),this.routeHistory.push({pageLoad:!this.routeHistory.length,appLink:t})))}getCurrentRoute(){if(this.routeHistory.length)return this.routeHistory[this.routeHistory.length-1]}getPreviousRoute(){if(!(!this.routeHistory.length||this.routeHistory.length-2<0))return this.routeHistory[this.routeHistory.length-2]}fromPageLoad(){return this.contextHistory.length===1}_forcePushContext(t){this.setContext(t),this.updateRouteHistory(t)}}const QI=new NAe,Gre={getStorage(){return window.localStorage?window.localStorage:window.sessionStorage?window.sessionStorage:Gre.getMemoryStorage()},getMemoryStorage(){const e=new Map;return{setItem(t,r){e.set(t,r)},getItem(t){return e.get(t)},removeItem(t){e.delete(t)},clear(){e.clear()},get length(){return e.size},key(t){return Array.from(e.values())[t]}}}};var Ls=(e=>(e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.MemoryStorage="memoryStorage",e))(Ls||{});class JI{constructor(t){if(this.cachePrefix="_cv:",this.expireTime=3600,this.type=t.type,this.hasSupport=this.hasBrowserSupport(),!!this.hasSupport)try{this.type==="memoryStorage"?this.storage=Gre.getMemoryStorage():this.storage=window[this.type]}catch{}}isAvailable(){return this.hasSupport}get(t){if(!this.hasSupport)return;const r=this.storage.getItem(t);try{return JSON.parse(r)}catch{return r}}set(t,r){if(this.hasSupport)try{return this.storage.removeItem(t),typeof r!="string"?(this.storage.setItem(t,JSON.stringify(r)),!0):(this.storage.setItem(t,r),!0)}catch{return!1}}remove(t){if(this.hasSupport)return this.storage.removeItem(t)}length(){if(this.hasSupport)return this.storage.length}clear(){if(this.hasSupport)return this.storage.clear()}cacheSet(t,r,n=this.expireTime){this.cacheClean();const i={time:this.getCurrentTime()+n*1e3,data:typeof r<"u"&&r!==null&&r};return this.set(`${this.cachePrefix}${t}`,i)}cacheGet(t){const r=`${this.cachePrefix}${t}`,n=this.get(r);return n?this.isExpired(n)?(this.remove(r),null):n.data:null}cacheExists(t){const r=`${this.cachePrefix}${t}`,n=this.get(r);return n?this.isExpired(n)?(this.remove(r),!1):!0:!1}cacheRemove(t){return this.remove(`${this.cachePrefix}${t}`)}cacheFlush(){this.cacheClean()}cacheClean(){if(this.hasSupport)for(let t=0;t<this.storage.length;t++){const r=this.storage.key(t);if(r.indexOf(this.cachePrefix)===0){const n=this.get(r);n&&n.time&&this.isExpired(n)&&this.remove(r)}}}isExpired(t){return t.time<this.getCurrentTime()}getCurrentTime(){return new Date().getTime()}hasBrowserSupport(){if(this.type==="memoryStorage")return!0;try{return this.type in window&&window[this.type]!==null}catch{return!1}}}class MAe extends JI{static get Instance(){return this.instance||(this.instance=new this({type:"localStorage"}))}}class $Ae extends JI{static get Instance(){return this.instance||(this.instance=new this({type:"sessionStorage"}))}}class FAe extends JI{static get Instance(){return this.instance||(this.instance=new this({type:"memoryStorage"}))}}const Hi=MAe.Instance,jg=$Ae.Instance,VK=FAe.Instance;var vs=(e=>(e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series",e.ProductionYear="production_year",e))(vs||{});const jAe=(e,t)=>`${t?`${t}:`:""}video:sort:${e}`,UAe=vs.RecentlyAdded,HK={getValidSortTypeFromParam(e){return Object.values(vs).includes(e)?e:vs.Newest},getOrSetSortType(e,t,r,n){const i=jAe(e,n);return(t||!Hi.cacheExists(i))&&Hi.cacheSet(i,t||r||UAe),t||(t=Hi.cacheGet(i)),t},getVideoSortParam(e){switch(e){case vs.AtoZ:return"orderby:name";case vs.ZtoA:return"orderbydesc:name";case vs.Newest:return"orderbydesc:datecreated";case vs.Oldest:return"orderby:datecreated";case vs.RecentlyAdded:return"orderbydesc:timestamp";case vs.Series:return"orderby:seriessort";case vs.ProductionYear:return"orderbydesc:productionyear";default:return}}},al={config(e,t){return{url:"/api/config",key:"config",bootstrapName:"config",success:e,error:t}},version(e,t){return{url:"/api/version",key:"version",bootstrapName:"version",normalize:!1,success:e,error:t}},geoLocation(){return{url:"/api/geolocation",key:"geolocation",normalize:!1,bootstrapName:"geolocation"}}},Zl={LOCALE:"locale",PHRASES:"phrases",TOKEN:"token",PERMISSIONS:"permissions",USER:"currentUser",PRODUCTS:"products"},ZI={userProducts(e,t){return{url:"{gateway}/v1/users/me/products",key:"user:products",normalizeOptions:{namespace:"product"},success:e,error:t,bootstrapName:Zl.PRODUCTS}}};let sx=!1,ux=!1,lx=!1,cx=!0,fx=!0;class qAe extends za{get name(){return"LayoutHelper"}shouldHideNav(){return sx}disableNav(){sx=!0}enableNav(){sx=!1}shouldHideHeader(){return ux}disableHeader(){ux=!0}enableHeader(){ux=!1}lockContentWidth(){lx=!0,this.trigger("change:lockContentWidth")}unlockContentWidth(){lx=!1,this.trigger("change:lockContentWidth")}shouldLockContentWidth(){return!!lx}shouldShowSearch(){return fx}enableSearch(){fx=!0}disableSearch(){fx=!1}enableLogoClick(){cx=!0}disableLogoClick(){cx=!1}shouldAllowLogoClick(){return cx}}const Kre=new qAe,zK="exchangeShared.noAccess";class BAe extends iy{constructor(r){super("Current user's school does not have access to Exchange");Rn(this,"config");this.config=r}get name(){return"NoAccessError"}get heading(){return Gr.getPhrase(zK,"heading")}get description(){return Gr.getPhrase(zK,"body")}get cta(){return!1}get injectDescriptionHtml(){return!0}}const VAe=[{application:ki.DEFAULT,action:So.Default.ERROR},{application:ki.DEFAULT,action:So.Default.DEV_ERROR},{application:ki.DEFAULT,action:So.Default.LOG_IN},{application:ki.DEFAULT,action:So.Default.LOG_OUT}],HAe=VAe.reduce((e,t)=>(e[Yre(t)]=!0,e),{});function Yre(e){return e.application+e.action}function WK(e,t){QI._forcePushContext(e),Kre.disableNav(),gs.routingEnded(),dr.throw(t??new $f)}async function Xre(e,t){const{appLink:r,shell:n}=e;try{if((await SW(n.store,ZI.userProducts())).find(o=>o.id===Yo.Exchange)){t(e);return}if(HAe[Yre(e.appLink)]){Kre.disableNav(),t(e);return}const a=await SW(n.store,al.config());WK(r,new BAe(a))}catch{WK(r)}}class zAe extends nI{get channelName(){return ki.EXCHANGE}get appRoutes(){return{"exchange(/)":"index","exchange/folders/:id(/:slug)":"folder","exchange/series/:id(/:slug)":"series","exchange/search(/)":"search","exchange/most-recent(/)":"mostRecent","exchange/videos/:id(/)":"preview"}}get appLinks(){return["add","suggestEdit","downloadVideo","addToLibrary"]}get filters(){return[Xre]}}class GK extends TI{get name(){return"Exchange Application"}get layoutOptions(){return{name:hp.DEFAULT_LAYOUT,options:{alertRegion:un.ALERT}}}get channelName(){return ki.EXCHANGE}static get router(){return zAe}async index(){const{ExchangeView:t}=await Hn(async()=>{const{ExchangeView:r}=await import("./CbqPW1QD.chunk.js");return{ExchangeView:r}},__vite__mapDeps([21,22,23,24,25,26,27,28,29,30,31,32,14,33,34,35,36,37,38,17,39,40,41,42,43,44,45,46,47,48,4,49]));this.layout.showChildView(un.CONTENT,de.jsx(t,{}))}async folder(t,r,n){const i=typeof r=="string"?n==null?void 0:n.sort:r==null?void 0:r.sort,a=i&&HK.getValidSortTypeFromParam(i),{ExchangeFolderView:o}=await Hn(async()=>{const{ExchangeFolderView:l}=await import("./CtbOxRCF.chunk.js");return{ExchangeFolderView:l}},__vite__mapDeps([50,25,26,22,23,24,27,28,29,30,31,32,14,33,34,51,49,35,52,53,18,54,55,56,43,44,45,4,57,42,58,3,59,60,7,13,61,62,37,63,36,38,17,39,40,41,46,47,48,64,65]));this.layout.showChildView(un.CONTENT,de.jsx(o,{folderId:t,sort:a}))}async series(t,r,n){const i=typeof r=="string"?n==null?void 0:n.sort:r==null?void 0:r.sort,a=i&&HK.getValidSortTypeFromParam(i),{ExchangeSeriesView:o}=await Hn(async()=>{const{ExchangeSeriesView:l}=await import("./wC1U3zaB.chunk.js");return{ExchangeSeriesView:l}},__vite__mapDeps([66,64,18,65,52,32,14,33,29,30,53,54,51,49,35,27,55,56,43,44,45,4,57,42,58,3,28,31,59,60,7,13,25,26,61,62,37,36,47,48,63]));this.layout.showChildView(un.CONTENT,de.jsx(o,{seriesId:t,sort:a}))}async search(t){const{ExchangeSearchResultsView:r}=await Hn(async()=>{const{ExchangeSearchResultsView:n}=await import("./DvMJBGNc.chunk.js");return{ExchangeSearchResultsView:n}},__vite__mapDeps([67,56,43,44,45,4,57,5,6,32,14,33,15,68,61,42,69,51,49,35,27,52,29,30,53,18,54,55,58,3,28,31,59,60,7,13,25,26,62,70,71,11,48,65,72,38,17,39,63,73,47,37,74]));this.layout.showChildView(un.CONTENT,de.jsx(r,{queryParams:t||{}}))}async mostRecent(){const{ExchangeMostRecentView:t}=await Hn(async()=>{const{ExchangeMostRecentView:r}=await import("./EOyUW0EV.chunk.js");return{ExchangeMostRecentView:r}},__vite__mapDeps([75,52,32,14,33,29,30,53,18,54,51,49,35,27,55,56,43,44,45,4,57,42,58,3,28,31,59,60,7,13,25,26,61,62,37,38,17,39,40,41,46,47,48,63]));this.layout.showChildView(un.CONTENT,de.jsx(t,{}))}async preview(t,r){const{pageLoad:n}=QI.getCurrentRoute();n&&this.index();const{ExchangePreviewView:i}=await Hn(async()=>{const{ExchangePreviewView:a}=await import("./i36I5rgn.chunk.js");return{ExchangePreviewView:a}},__vite__mapDeps([76,55,57,43,4,77,78,9,16,59,56,44,45,60,13,17,53,68,61,42,14,15,69,7,3,79,28,29,30,31,25,26,58,19,49,35,80,81,82,83,84,85,86,87,63,88]));this.layout.showChildView(un.POPUP,de.jsx(i,{videoId:t,currentTime:r,closePopup:()=>this.layout.closePopup()}))}async add(t){const{ExchangeAddView:r}=await Hn(async()=>{const{ExchangeAddView:n}=await import("./BuSLCxEs.chunk.js");return{ExchangeAddView:n}},__vite__mapDeps([89,55,57,43,4,3,47,48,88]));this.layout.showChildView(un.POPUP,de.jsx(r,{id:t,closePopup:()=>this.layout.closePopup()}))}async suggestEdit(t){const{ExchangeSuggestEditView:r}=await Hn(async()=>{const{ExchangeSuggestEditView:n}=await import("./B0qPCCXt.chunk.js");return{ExchangeSuggestEditView:n}},__vite__mapDeps([90,55,91,8,9,10,12,71,73,57,43,4,3,92,47,48,88]));this.layout.showChildView(un.POPUP,de.jsx(r,{videoId:t,closePopup:()=>this.layout.closePopup()}))}downloadVideo(t){Hn(async()=>{const{DownloadVideoView:r}=await import("./BazXwFtM.chunk.js");return{DownloadVideoView:r}},__vite__mapDeps([93,79])).then(({DownloadVideoView:r})=>{this.layout.showChildView(un.HIDDEN,de.jsx(r,{id:t}))})}addToLibrary(t){Hn(async()=>{const{AddToLibraryView:r}=await import("./DVgGpvRr.chunk.js");return{AddToLibraryView:r}},__vite__mapDeps([94,16,8,9,10,25,26,23,24,61,35,57,43,4,3,92,56,44,45,95])).then(({AddToLibraryView:r})=>{this.layout.showChildView(un.POPUP,de.jsx(r,{id:t,typeId:Wre.Video,closePopup:()=>this.layout.closePopup()}))})}}class WAe extends nI{get channelName(){return ki.TV}get appRoutes(){return{"tv(/)":"index","tv/:region/channels(/)":"channels","tv/:region/channels/:channelId(/)":"channel","tv/:region/programs(/)":"programs","tv/:region/search(/)":"search"}}get appLinks(){return["preview","add","adFreeRequest","broadcastContent","alreadyAdded","requestProgram","radioDownload"]}get filters(){return[Xre]}}class KK extends TI{get name(){return"Tv Application"}get layoutOptions(){return{name:hp.DEFAULT_LAYOUT,options:{alertRegion:un.ALERT}}}get channelName(){return ki.TV}static get router(){return WAe}async index(t){const{TvHomeView:r}=await Hn(async()=>{const{TvHomeView:n}=await import("./CxNf401G.chunk.js");return{TvHomeView:n}},__vite__mapDeps([96,97,36,37,98]));this.layout.showChildView(un.CONTENT,de.jsx(r,{requestVideo:t.requestVideo==="true"}))}async channels(t,r){const{TvChannelsView:n}=await Hn(async()=>{const{TvChannelsView:i}=await import("./Ft5Mau7n.chunk.js");return{TvChannelsView:i}},__vite__mapDeps([99,36,37,100,85,98,41,42,43,44,45,14,46,101,53,17,102,103,97,104,105]));this.layout.showChildView(un.CONTENT,de.jsx(n,{region:t})),r.requestVideo==="true"&&this.requestProgram(t)}async channel(t,r,n){const{TvChannelView:i}=await Hn(async()=>{const{TvChannelView:a}=await import("./DOH54KcJ.chunk.js");return{TvChannelView:a}},__vite__mapDeps([106,37,36,107,23,24,108,29,30,80,81,84,85,86,100,98,41,42,43,44,45,14,46,101,53,17,102,103,97,109]));this.layout.showChildView(un.CONTENT,de.jsx(i,{region:t,channelId:r,selectedRegion:n.region}))}async programs(t,r){const{TvProgramsView:n}=await Hn(async()=>{const{TvProgramsView:i}=await import("./CmKuC0AJ.chunk.js");return{TvProgramsView:i}},__vite__mapDeps([110,41,42,43,44,45,14,46,37,36,107,23,24,108,100,85,98,101,53,17,102,103,97,29,30,84,86,111]));this.layout.showChildView(un.CONTENT,de.jsx(n,{region:t,startsWith:r.startsWith}))}async search(t,r){const{TvSearchResultsView:n}=await Hn(async()=>{const{TvSearchResultsView:i}=await import("./PEkZnijT.chunk.js");return{TvSearchResultsView:i}},__vite__mapDeps([112,70,52,32,14,33,29,30,53,18,54,7,71,68,61,42,43,44,45,15,69,3,11,48,65,72,37,36,101,17,102,98,113,58,103,97,25,26,28,31,80,81,82,83,84,85,86,114]));this.layout.showChildView(un.CONTENT,de.jsx(n,{region:t,queryParams:r}))}async preview(t,r,n){const{TvPreviewView:i}=await Hn(async()=>{const{TvPreviewView:a}=await import("./mMvgsH8u.chunk.js");return{TvPreviewView:a}},__vite__mapDeps([115,77,78,9,16,59,56,43,44,45,4,57,60,13,17,53,68,61,42,14,15,69,7,3,79,28,29,30,31,25,26,58,19,49,35,80,81,82,83,84,85,86,87,98,113,103,37]));this.layout.showChildView(un.POPUP,de.jsx(i,{region:t,id:r,currentTime:n.currentTime,closePopup:()=>this.layout.closePopup()}))}async add(t,r,n){const{TvAddView:i}=await Hn(async()=>{const{TvAddView:a}=await import("./DhiXbhAO.chunk.js");return{TvAddView:a}},__vite__mapDeps([116,77,98,3,117]));this.layout.showChildView(un.POPUP,de.jsx(i,{region:t,id:r,currentTime:n.currentTime,closePopup:()=>this.layout.closePopup()}))}async adFreeRequest(t,r){const{TvAdFreeRequestView:n}=await Hn(async()=>{const{TvAdFreeRequestView:i}=await import("./GIZO-DsR.chunk.js");return{TvAdFreeRequestView:i}},__vite__mapDeps([118,77,98,103,37]));this.layout.showChildView(un.POPUP,de.jsx(n,{region:t,id:r,closePopup:()=>this.layout.closePopup()}))}async broadcastContent(t){const{TvBroadcastContentView:r}=await Hn(async()=>{const{TvBroadcastContentView:n}=await import("./CP5MKWC_.chunk.js");return{TvBroadcastContentView:n}},__vite__mapDeps([119,98,85,120]));this.layout.showChildView(un.POPUP,de.jsx(r,{region:t,closePopup:()=>this.layout.closePopup()}))}async alreadyAdded(t){const{TvAlreadyAddedView:r}=await Hn(async()=>{const{TvAlreadyAddedView:n}=await import("./CkXDJSIC.chunk.js");return{TvAlreadyAddedView:n}},__vite__mapDeps([121,122]));this.layout.showChildView(un.POPUP,de.jsx(r,{params:t,closePopup:()=>this.layout.closePopup()}))}async requestProgram(t){const{TvRequestProgramView:r}=await Hn(async()=>{const{TvRequestProgramView:n}=await import("./CyTjm-iy.chunk.js");return{TvRequestProgramView:n}},__vite__mapDeps([123,8,9,10,3,92,98,104,91]));this.layout.showChildView(un.POPUP,de.jsx(r,{region:t,closePopup:()=>this.layout.closePopup()}))}async radioDownload(t,r){const{TvRadioDownloadView:n}=await Hn(async()=>{const{TvRadioDownloadView:i}=await import("./CW4iXW5L.chunk.js");return{TvRadioDownloadView:i}},__vite__mapDeps([124,84,85,86,98]));this.layout.showChildView(un.POPUP,de.jsx(n,{region:t,id:r,closePopup:()=>this.layout.closePopup()}))}}async function GAe(e,t){var r;try{const i=(r=(await qa(e.store,Hl.customerSettings()))[yr.ExchangeTvProductOption])==null?void 0:r.value;switch(e.registerApplication(kAe),i){case"exchange":{e.registerApplication(GK),t(e);return}case"tv":{e.registerApplication(KK),t(e);return}case"exchange_and_tv":{e.registerApplication(GK).registerApplication(KK),t(e);return}}}catch{dr.throw(new $f)}}var ms=(e=>(e.Success="success",e.Warning="warning",e.Fail="danger",e.Info="info",e.Pending="pending",e))(ms||{}),KAe=(e=>(e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI",e))(KAe||{});class YAe extends za{constructor(t){super(t)}initialize(){this.alertCollection=new Hm,this.listenTo(mn.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}get name(){return ry.ALERT}get defaults(){return{maxAlerts:3}}showAlerts(){const t=Mr.Radio.channel(mn.ALERT);let r={collection:this.alertCollection};this.options.alertViewCtor&&(r=io({},r,{ctor:this.options.alertViewCtor})),t.trigger("show:alert",r)}removeAlert(t){this.alertCollection.remove(t),this.showAlerts()}createAlert(t){this.alertCollection.length===this.options.maxAlerts&&this.alertCollection.shift(),t.id||(t=io({},t,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new mu(t)),this.showAlerts()}clearAllAlerts(){this.alertCollection.reset(null)}success(t){return typeof t=="string"?au(()=>this.createAlert(io({},this.options.defaultSuccessAlert,{message:t})),this):t.useXHR?au((r,n)=>this.createAlert(io({},this.options.defaultSuccessAlert,{message:n})),this):au(()=>this.createAlert(io({},this.options.defaultSuccessAlert,t)),this)}error(t){return typeof t=="string"?au(()=>this.createAlert(io({},this.options.defaultErrorAlert,{message:t})),this):t.useXHR?au(r=>this.createAlert(io({},this.options.defaultErrorAlert,{message:r.message})),this):au(()=>this.createAlert(io({},this.options.defaultErrorAlertIL_DEFAULT,t)),this)}generateUniqueAlertId(){return AZ("alert_")}}class XAe extends za{constructor(){super(),this.constructors={},this.destructors={},this.instances={},this.singletonInstances={},this.referenceCounts={}}get name(){return"InstanceManager"}static get Instance(){return this.instance||(this.instance=new this)}registerDataService(t,r){this.validateConstructor(t);const n=t.prototype.name;return this.referenceCounts[n]=0,this.constructors[n]=()=>new t({dataProvider:this.getInstance(r.dataProvider),cache:this.getInstance(r.cache),bootstrapData:r.bootstrapData,defaultErrorHandler:r.defaultErrorHandler,alertService:r.alertService}),this.destructors[n]=()=>{this.instances[n]?this.instances[n].destroy():dr.throw(new Sn(`Trying to destroy a ${n} instance that has already been destroyed`)),this.releaseInstance(r.dataProvider),this.releaseInstance(r.cache)},this}registerInstance(t,r){this.validateConstructor(t);const n=t.prototype.name;return this.referenceCounts[n]=0,this.constructors[n]=()=>new t(r),this.destructors[n]=()=>rn(this.instances[n].destroy)&&this.instances[n].destroy(),this}registerSingleton(t){const r=t.name;return this.singletonInstances[r]=t,this}getInstance(t,r){return this.singletonInstances[t]?this.singletonInstances[t]:(this.constructors[t]||dr.throw(new Sn(`${t} was not registered with ${this.name}`)),this.referenceCounts[t]++,r&&this.listenTo(r,"destroy",()=>this.releaseInstance(t)),this.instances[t]||(this.instances[t]=this.constructors[t]()),this.instances[t])}releaseInstance(t){if(this.instances[t])return window.setTimeout(()=>{this.referenceCounts[t]--,this.referenceCounts[t]<1&&(this.destructors[t](),delete this.instances[t])},0),this}validateConstructor(t){const r=t.prototype.name;r||dr.throw(new Sn(`Classes registered with ${this.name} must have a unique name property.`)),this.constructors[r]&&dr.throw(new Sn(`A class with the name: ${r} has already been registered with ${this.name}`))}}const cu=XAe.Instance;class Dc extends sp{constructor(t){super(t),this.dialogOptions||dr.throw(new Sn("Please provide DialogOptions for your implementation of DialogError"))}get name(){return"DialogError"}onDone(){}onFail(){}}const Pv="shared.chunkLoadError",QAe=/\/([^\s/]+\.css)/,JAe=/\/([^\s/]+\.js)/;class YK extends Dc{constructor(t,r,n){super(Gr.getPhrase(Pv,"title",{chunkName:r})),this.product="ClickView",this.btnVariant=t,n&&(this.product=n)}get name(){return"ChunkLoadError"}get dialogOptions(){return{title:Gr.getPhrase(Pv,"heading",{product:this.product}),text:Gr.getPhrase(Pv,"body"),buttons:[{text:Gr.getPhrase(Pv,"reload"),className:`btn btn-${this.btnVariant}`,success:!0}]}}onDone(){Dn.Reload()}}function ZAe(e,t){window.addEventListener("error",r=>{var l,u;const n=((l=r==null?void 0:r.target)==null?void 0:l.src)||((u=r==null?void 0:r.target)==null?void 0:u.href);if(!n)return;const i=f=>(f==null?void 0:f[1])??"Unknown Chunk",a=n.match(JAe);if(a&&n.includes("/scripts/")&&n.includes(".chunk.js")){dr.throw(new YK(e,i(a),t));return}const o=n.match(QAe);if(o&&n.includes("/css/")&&n.includes(".chunk.css")){dr.throw(new YK(e,i(o),t));return}},!0)}class Qre extends sp{constructor(t,r){super(`User is using old version of the code. Old: ${t}. New: ${r}`)}get name(){return"OldVersionError"}}class Jre extends sp{get name(){return"AlertError"}}const fu={UPLOAD_COMPLETE:"upload:complete",UPLOAD_SUCCESS:"upload:success",FILES_ADDED:"files:added",UPLOAD_CANCELLED:"upload:cancelled",UNLOCK_NAV:"upload:unlock:nav"},ah={VIDEO_UPLOAD:"video:upload:service",SUBTITLE_UPLOAD:"subtitle:upload:service",RESOURCE_UPLOAD:"resource:upload:service",MIXED_MEDIA_UPLOAD:"media:upload:service"};function eRe(e){const t=e.showSpinner?de.jsx(fy,{as:"span",animation:"border",role:"status",size:"sm"}):e.children;if(e.tooltip&&e.svg){let n=e.className??"";return e.disabled&&!e.appLink&&(n+=" pointer-events-none"),de.jsx(Ql,{title:e.tooltip,spanHack:!0,children:de.jsx(hC,{appLink:e.appLink,href:e.href,svg:e.svg,svgSize:e.svgSize,onClick:e.onClick,className:n,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled,ariaLabel:e.tooltip,children:t})})}if(e.svg)return de.jsx(hC,{onClick:e.onClick,appLink:e.appLink,href:e.href,svg:e.svg,svgSize:e.svgSize,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled,ariaLabel:e.ariaLabel,children:t});if(e.tooltip&&e.appLink)return de.jsx(Ql,{title:e.tooltip,spanHack:!0,children:de.jsx(Ro,{onClick:e.onClick,appLink:e.appLink,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled,ariaLabel:e.tooltip,children:t})});if(e.appLink)return de.jsx(Ro,{onClick:e.onClick,appLink:e.appLink,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled,ariaLabel:e.ariaLabel,children:t});function r(n){e.analyticsData&&e.analyticsOptions&&Ba.logUserAction(e.analyticsData,e.analyticsOptions),Ao.isFunction(e.onClick)&&e.onClick(n)}return e.tooltip?de.jsx(Ql,{title:e.tooltip,spanHack:!0,children:de.jsx("button",{onClick:r,className:`${e.className??""}${e.disabled?" pointer-events-none":""}`,disabled:e.disabled,"aria-label":typeof t=="string"?t:e.ariaLabel,children:t})}):de.jsx("button",{onClick:r,className:e.className,disabled:e.disabled,"aria-label":typeof t=="string"?t:e.ariaLabel,children:t})}const tRe=(e,t,r,n=[])=>{const i=typeof e=="string"?Mr.Radio.channel(e):e;Se.useEffect(()=>{if(e)return i.on(t,r),()=>{e&&i.off(t,r)}},n)};function rRe(){return de.jsx("div",{className:"text-center p-5",children:de.jsx(fy,{as:"div",animation:"border",role:"status"})})}Zre.defaultProps={closeButton:!0,bodyClassName:"",dialogClassName:"",size:"md",closeOnNavigate:!0};function Zre(e){var n;Ire(e.title);const t=(i,a)=>{!e.closeOnNavigate||!a.isAppRoute||e.closePopup()};tRe(mn.SHELL,En.ROUTE,t,[e.closePopup]);const r=(n=e.headerButtons)!=null&&n.length?e.headerButtons.map((i,a)=>de.jsx(eRe,{...i},a)):de.jsx(de.Fragment,{});return de.jsxs(Av,{show:!0,onHide:e.closePopup,onEntered:e.onEntered,size:e.size==="md"?null:e.size,contentClassName:e.contentClassName,dialogClassName:e.dialogClassName,centered:e.centered,backdrop:e.backdrop,container:document.getElementById("dialog-region"),restoreFocus:!0,animation:e.animation,children:[!!e.title&&!e.hideTitle&&de.jsxs(Av.Header,{className:"d-flex align-items-center bg-white",closeButton:e.closeButton,children:[de.jsx(Av.Title,{as:"h2",className:"h4 flex-grow-1 text-truncate",children:e.title}),r]}),e.showLoadingSpinner?de.jsx(rRe,{}):de.jsx(Av.Body,{className:e.bodyClassName,children:e.children})]})}var dx,XK;function nRe(){if(XK)return dx;XK=1;var e=Array.isArray,t=Object.keys,r=Object.prototype.hasOwnProperty,n=typeof Element<"u";function i(a,o){if(a===o)return!0;if(a&&o&&typeof a=="object"&&typeof o=="object"){var l=e(a),u=e(o),f,d,h;if(l&&u){if(d=a.length,d!=o.length)return!1;for(f=d;f--!==0;)if(!i(a[f],o[f]))return!1;return!0}if(l!=u)return!1;var p=a instanceof Date,y=o instanceof Date;if(p!=y)return!1;if(p&&y)return a.getTime()==o.getTime();var _=a instanceof RegExp,E=o instanceof RegExp;if(_!=E)return!1;if(_&&E)return a.toString()==o.toString();var S=t(a);if(d=S.length,d!==t(o).length)return!1;for(f=d;f--!==0;)if(!r.call(o,S[f]))return!1;if(n&&a instanceof Element&&o instanceof Element)return a===o;for(f=d;f--!==0;)if(h=S[f],!(h==="_owner"&&a.$$typeof)&&!i(a[h],o[h]))return!1;return!0}return a!==a&&o!==o}return dx=function(o,l){try{return i(o,l)}catch(u){if(u.message&&u.message.match(/stack|recursion/i)||u.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",u.name,u.message),!1;throw u}},dx}var iRe=nRe();const Qu=Mn(iRe);var aRe=function(t){return oRe(t)&&!sRe(t)};function oRe(e){return!!e&&typeof e=="object"}function sRe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||cRe(e)}var uRe=typeof Symbol=="function"&&Symbol.for,lRe=uRe?Symbol.for("react.element"):60103;function cRe(e){return e.$$typeof===lRe}function fRe(e){return Array.isArray(e)?[]:{}}function Ug(e,t){return t.clone!==!1&&t.isMergeableObject(e)?kh(fRe(e),e,t):e}function dRe(e,t,r){return e.concat(t).map(function(n){return Ug(n,r)})}function hRe(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(i){n[i]=Ug(e[i],r)}),Object.keys(t).forEach(function(i){!r.isMergeableObject(t[i])||!e[i]?n[i]=Ug(t[i],r):n[i]=kh(e[i],t[i],r)}),n}function kh(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||dRe,r.isMergeableObject=r.isMergeableObject||aRe;var n=Array.isArray(t),i=Array.isArray(e),a=n===i;return a?n?r.arrayMerge(e,t,r):hRe(e,t,r):Ug(t,r)}kh.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return kh(n,i,r)},{})};var _C=kh,ene=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,pRe=typeof self=="object"&&self&&self.Object===Object&&self,Hs=ene||pRe||Function("return this")(),ol=Hs.Symbol,tne=Object.prototype,vRe=tne.hasOwnProperty,gRe=tne.toString,Jd=ol?ol.toStringTag:void 0;function mRe(e){var t=vRe.call(e,Jd),r=e[Jd];try{e[Jd]=void 0;var n=!0}catch{}var i=gRe.call(e);return n&&(t?e[Jd]=r:delete e[Jd]),i}var yRe=Object.prototype,_Re=yRe.toString;function ERe(e){return _Re.call(e)}var SRe="[object Null]",wRe="[object Undefined]",QK=ol?ol.toStringTag:void 0;function Lc(e){return e==null?e===void 0?wRe:SRe:QK&&QK in Object(e)?mRe(e):ERe(e)}function rne(e,t){return function(r){return e(t(r))}}var eP=rne(Object.getPrototypeOf,Object);function Nc(e){return e!=null&&typeof e=="object"}var bRe="[object Object]",TRe=Function.prototype,ARe=Object.prototype,nne=TRe.toString,RRe=ARe.hasOwnProperty,xRe=nne.call(Object);function JK(e){if(!Nc(e)||Lc(e)!=bRe)return!1;var t=eP(e);if(t===null)return!0;var r=RRe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&nne.call(r)==xRe}function CRe(){this.__data__=[],this.size=0}function ine(e,t){return e===t||e!==e&&t!==t}function py(e,t){for(var r=e.length;r--;)if(ine(e[r][0],t))return r;return-1}var ORe=Array.prototype,IRe=ORe.splice;function PRe(e){var t=this.__data__,r=py(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():IRe.call(t,r,1),--this.size,!0}function kRe(e){var t=this.__data__,r=py(t,e);return r<0?void 0:t[r][1]}function DRe(e){return py(this.__data__,e)>-1}function LRe(e,t){var r=this.__data__,n=py(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Cu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Cu.prototype.clear=CRe;Cu.prototype.delete=PRe;Cu.prototype.get=kRe;Cu.prototype.has=DRe;Cu.prototype.set=LRe;function NRe(){this.__data__=new Cu,this.size=0}function MRe(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function $Re(e){return this.__data__.get(e)}function FRe(e){return this.__data__.has(e)}function yp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var jRe="[object AsyncFunction]",URe="[object Function]",qRe="[object GeneratorFunction]",BRe="[object Proxy]";function ane(e){if(!yp(e))return!1;var t=Lc(e);return t==URe||t==qRe||t==jRe||t==BRe}var hx=Hs["__core-js_shared__"],ZK=(function(){var e=/[^.]+$/.exec(hx&&hx.keys&&hx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function VRe(e){return!!ZK&&ZK in e}var HRe=Function.prototype,zRe=HRe.toString;function Mc(e){if(e!=null){try{return zRe.call(e)}catch{}try{return e+""}catch{}}return""}var WRe=/[\\^$.*+?()[\]{}|]/g,GRe=/^\[object .+?Constructor\]$/,KRe=Function.prototype,YRe=Object.prototype,XRe=KRe.toString,QRe=YRe.hasOwnProperty,JRe=RegExp("^"+XRe.call(QRe).replace(WRe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ZRe(e){if(!yp(e)||VRe(e))return!1;var t=ane(e)?JRe:GRe;return t.test(Mc(e))}function exe(e,t){return e==null?void 0:e[t]}function $c(e,t){var r=exe(e,t);return ZRe(r)?r:void 0}var Dh=$c(Hs,"Map"),Lh=$c(Object,"create");function txe(){this.__data__=Lh?Lh(null):{},this.size=0}function rxe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var nxe="__lodash_hash_undefined__",ixe=Object.prototype,axe=ixe.hasOwnProperty;function oxe(e){var t=this.__data__;if(Lh){var r=t[e];return r===nxe?void 0:r}return axe.call(t,e)?t[e]:void 0}var sxe=Object.prototype,uxe=sxe.hasOwnProperty;function lxe(e){var t=this.__data__;return Lh?t[e]!==void 0:uxe.call(t,e)}var cxe="__lodash_hash_undefined__";function fxe(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Lh&&t===void 0?cxe:t,this}function uc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}uc.prototype.clear=txe;uc.prototype.delete=rxe;uc.prototype.get=oxe;uc.prototype.has=lxe;uc.prototype.set=fxe;function dxe(){this.size=0,this.__data__={hash:new uc,map:new(Dh||Cu),string:new uc}}function hxe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vy(e,t){var r=e.__data__;return hxe(t)?r[typeof t=="string"?"string":"hash"]:r.map}function pxe(e){var t=vy(this,e).delete(e);return this.size-=t?1:0,t}function vxe(e){return vy(this,e).get(e)}function gxe(e){return vy(this,e).has(e)}function mxe(e,t){var r=vy(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function gl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}gl.prototype.clear=dxe;gl.prototype.delete=pxe;gl.prototype.get=vxe;gl.prototype.has=gxe;gl.prototype.set=mxe;var yxe=200;function _xe(e,t){var r=this.__data__;if(r instanceof Cu){var n=r.__data__;if(!Dh||n.length<yxe-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new gl(n)}return r.set(e,t),this.size=r.size,this}function gd(e){var t=this.__data__=new Cu(e);this.size=t.size}gd.prototype.clear=NRe;gd.prototype.delete=MRe;gd.prototype.get=$Re;gd.prototype.has=FRe;gd.prototype.set=_xe;function Exe(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var eY=(function(){try{var e=$c(Object,"defineProperty");return e({},"",{}),e}catch{}})();function one(e,t,r){t=="__proto__"&&eY?eY(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Sxe=Object.prototype,wxe=Sxe.hasOwnProperty;function sne(e,t,r){var n=e[t];(!(wxe.call(e,t)&&ine(n,r))||r===void 0&&!(t in e))&&one(e,t,r)}function gy(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var l=t[a],u=void 0;u===void 0&&(u=e[l]),i?one(r,l,u):sne(r,l,u)}return r}function bxe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Txe="[object Arguments]";function tY(e){return Nc(e)&&Lc(e)==Txe}var une=Object.prototype,Axe=une.hasOwnProperty,Rxe=une.propertyIsEnumerable,xxe=tY((function(){return arguments})())?tY:function(e){return Nc(e)&&Axe.call(e,"callee")&&!Rxe.call(e,"callee")},_p=Array.isArray;function Cxe(){return!1}var lne=typeof exports=="object"&&exports&&!exports.nodeType&&exports,rY=lne&&typeof module=="object"&&module&&!module.nodeType&&module,Oxe=rY&&rY.exports===lne,nY=Oxe?Hs.Buffer:void 0,Ixe=nY?nY.isBuffer:void 0,cne=Ixe||Cxe,Pxe=9007199254740991,kxe=/^(?:0|[1-9]\d*)$/;function Dxe(e,t){var r=typeof e;return t=t??Pxe,!!t&&(r=="number"||r!="symbol"&&kxe.test(e))&&e>-1&&e%1==0&&e<t}var Lxe=9007199254740991;function fne(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Lxe}var Nxe="[object Arguments]",Mxe="[object Array]",$xe="[object Boolean]",Fxe="[object Date]",jxe="[object Error]",Uxe="[object Function]",qxe="[object Map]",Bxe="[object Number]",Vxe="[object Object]",Hxe="[object RegExp]",zxe="[object Set]",Wxe="[object String]",Gxe="[object WeakMap]",Kxe="[object ArrayBuffer]",Yxe="[object DataView]",Xxe="[object Float32Array]",Qxe="[object Float64Array]",Jxe="[object Int8Array]",Zxe="[object Int16Array]",eCe="[object Int32Array]",tCe="[object Uint8Array]",rCe="[object Uint8ClampedArray]",nCe="[object Uint16Array]",iCe="[object Uint32Array]",si={};si[Xxe]=si[Qxe]=si[Jxe]=si[Zxe]=si[eCe]=si[tCe]=si[rCe]=si[nCe]=si[iCe]=!0;si[Nxe]=si[Mxe]=si[Kxe]=si[$xe]=si[Yxe]=si[Fxe]=si[jxe]=si[Uxe]=si[qxe]=si[Bxe]=si[Vxe]=si[Hxe]=si[zxe]=si[Wxe]=si[Gxe]=!1;function aCe(e){return Nc(e)&&fne(e.length)&&!!si[Lc(e)]}function tP(e){return function(t){return e(t)}}var dne=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ph=dne&&typeof module=="object"&&module&&!module.nodeType&&module,oCe=ph&&ph.exports===dne,px=oCe&&ene.process,Ff=(function(){try{var e=ph&&ph.require&&ph.require("util").types;return e||px&&px.binding&&px.binding("util")}catch{}})(),iY=Ff&&Ff.isTypedArray,sCe=iY?tP(iY):aCe,uCe=Object.prototype,lCe=uCe.hasOwnProperty;function hne(e,t){var r=_p(e),n=!r&&xxe(e),i=!r&&!n&&cne(e),a=!r&&!n&&!i&&sCe(e),o=r||n||i||a,l=o?bxe(e.length,String):[],u=l.length;for(var f in e)(t||lCe.call(e,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Dxe(f,u)))&&l.push(f);return l}var cCe=Object.prototype;function rP(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||cCe;return e===r}var fCe=rne(Object.keys,Object),dCe=Object.prototype,hCe=dCe.hasOwnProperty;function pCe(e){if(!rP(e))return fCe(e);var t=[];for(var r in Object(e))hCe.call(e,r)&&r!="constructor"&&t.push(r);return t}function pne(e){return e!=null&&fne(e.length)&&!ane(e)}function nP(e){return pne(e)?hne(e):pCe(e)}function vCe(e,t){return e&&gy(t,nP(t),e)}function gCe(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var mCe=Object.prototype,yCe=mCe.hasOwnProperty;function _Ce(e){if(!yp(e))return gCe(e);var t=rP(e),r=[];for(var n in e)n=="constructor"&&(t||!yCe.call(e,n))||r.push(n);return r}function iP(e){return pne(e)?hne(e,!0):_Ce(e)}function ECe(e,t){return e&&gy(t,iP(t),e)}var vne=typeof exports=="object"&&exports&&!exports.nodeType&&exports,aY=vne&&typeof module=="object"&&module&&!module.nodeType&&module,SCe=aY&&aY.exports===vne,oY=SCe?Hs.Buffer:void 0,sY=oY?oY.allocUnsafe:void 0;function wCe(e,t){if(t)return e.slice();var r=e.length,n=sY?sY(r):new e.constructor(r);return e.copy(n),n}function gne(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function bCe(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function mne(){return[]}var TCe=Object.prototype,ACe=TCe.propertyIsEnumerable,uY=Object.getOwnPropertySymbols,aP=uY?function(e){return e==null?[]:(e=Object(e),bCe(uY(e),function(t){return ACe.call(e,t)}))}:mne;function RCe(e,t){return gy(e,aP(e),t)}function yne(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var xCe=Object.getOwnPropertySymbols,_ne=xCe?function(e){for(var t=[];e;)yne(t,aP(e)),e=eP(e);return t}:mne;function CCe(e,t){return gy(e,_ne(e),t)}function Ene(e,t,r){var n=t(e);return _p(e)?n:yne(n,r(e))}function OCe(e){return Ene(e,nP,aP)}function ICe(e){return Ene(e,iP,_ne)}var EC=$c(Hs,"DataView"),SC=$c(Hs,"Promise"),wC=$c(Hs,"Set"),bC=$c(Hs,"WeakMap"),lY="[object Map]",PCe="[object Object]",cY="[object Promise]",fY="[object Set]",dY="[object WeakMap]",hY="[object DataView]",kCe=Mc(EC),DCe=Mc(Dh),LCe=Mc(SC),NCe=Mc(wC),MCe=Mc(bC),ou=Lc;(EC&&ou(new EC(new ArrayBuffer(1)))!=hY||Dh&&ou(new Dh)!=lY||SC&&ou(SC.resolve())!=cY||wC&&ou(new wC)!=fY||bC&&ou(new bC)!=dY)&&(ou=function(e){var t=Lc(e),r=t==PCe?e.constructor:void 0,n=r?Mc(r):"";if(n)switch(n){case kCe:return hY;case DCe:return lY;case LCe:return cY;case NCe:return fY;case MCe:return dY}return t});var $Ce=Object.prototype,FCe=$Ce.hasOwnProperty;function jCe(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&FCe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var pY=Hs.Uint8Array;function oP(e){var t=new e.constructor(e.byteLength);return new pY(t).set(new pY(e)),t}function UCe(e,t){var r=t?oP(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var qCe=/\w*$/;function BCe(e){var t=new e.constructor(e.source,qCe.exec(e));return t.lastIndex=e.lastIndex,t}var vY=ol?ol.prototype:void 0,gY=vY?vY.valueOf:void 0;function VCe(e){return gY?Object(gY.call(e)):{}}function HCe(e,t){var r=t?oP(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var zCe="[object Boolean]",WCe="[object Date]",GCe="[object Map]",KCe="[object Number]",YCe="[object RegExp]",XCe="[object Set]",QCe="[object String]",JCe="[object Symbol]",ZCe="[object ArrayBuffer]",eOe="[object DataView]",tOe="[object Float32Array]",rOe="[object Float64Array]",nOe="[object Int8Array]",iOe="[object Int16Array]",aOe="[object Int32Array]",oOe="[object Uint8Array]",sOe="[object Uint8ClampedArray]",uOe="[object Uint16Array]",lOe="[object Uint32Array]";function cOe(e,t,r){var n=e.constructor;switch(t){case ZCe:return oP(e);case zCe:case WCe:return new n(+e);case eOe:return UCe(e,r);case tOe:case rOe:case nOe:case iOe:case aOe:case oOe:case sOe:case uOe:case lOe:return HCe(e,r);case GCe:return new n;case KCe:case QCe:return new n(e);case YCe:return BCe(e);case XCe:return new n;case JCe:return VCe(e)}}var mY=Object.create,fOe=(function(){function e(){}return function(t){if(!yp(t))return{};if(mY)return mY(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function dOe(e){return typeof e.constructor=="function"&&!rP(e)?fOe(eP(e)):{}}var hOe="[object Map]";function pOe(e){return Nc(e)&&ou(e)==hOe}var yY=Ff&&Ff.isMap,vOe=yY?tP(yY):pOe,gOe="[object Set]";function mOe(e){return Nc(e)&&ou(e)==gOe}var _Y=Ff&&Ff.isSet,yOe=_Y?tP(_Y):mOe,_Oe=1,EOe=2,SOe=4,Sne="[object Arguments]",wOe="[object Array]",bOe="[object Boolean]",TOe="[object Date]",AOe="[object Error]",wne="[object Function]",ROe="[object GeneratorFunction]",xOe="[object Map]",COe="[object Number]",bne="[object Object]",OOe="[object RegExp]",IOe="[object Set]",POe="[object String]",kOe="[object Symbol]",DOe="[object WeakMap]",LOe="[object ArrayBuffer]",NOe="[object DataView]",MOe="[object Float32Array]",$Oe="[object Float64Array]",FOe="[object Int8Array]",jOe="[object Int16Array]",UOe="[object Int32Array]",qOe="[object Uint8Array]",BOe="[object Uint8ClampedArray]",VOe="[object Uint16Array]",HOe="[object Uint32Array]",ei={};ei[Sne]=ei[wOe]=ei[LOe]=ei[NOe]=ei[bOe]=ei[TOe]=ei[MOe]=ei[$Oe]=ei[FOe]=ei[jOe]=ei[UOe]=ei[xOe]=ei[COe]=ei[bne]=ei[OOe]=ei[IOe]=ei[POe]=ei[kOe]=ei[qOe]=ei[BOe]=ei[VOe]=ei[HOe]=!0;ei[AOe]=ei[wne]=ei[DOe]=!1;function vh(e,t,r,n,i,a){var o,l=t&_Oe,u=t&EOe,f=t&SOe;if(o!==void 0)return o;if(!yp(e))return e;var d=_p(e);if(d){if(o=jCe(e),!l)return gne(e,o)}else{var h=ou(e),p=h==wne||h==ROe;if(cne(e))return wCe(e,l);if(h==bne||h==Sne||p&&!i){if(o=u||p?{}:dOe(e),!l)return u?CCe(e,ECe(o,e)):RCe(e,vCe(o,e))}else{if(!ei[h])return i?e:{};o=cOe(e,h,l)}}a||(a=new gd);var y=a.get(e);if(y)return y;a.set(e,o),yOe(e)?e.forEach(function(S){o.add(vh(S,t,r,S,e,a))}):vOe(e)&&e.forEach(function(S,w){o.set(w,vh(S,t,r,w,e,a))});var _=f?u?ICe:OCe:u?iP:nP,E=d?void 0:_(e);return Exe(E||e,function(S,w){E&&(w=S,S=e[w]),sne(o,w,vh(S,t,r,w,e,a))}),o}var zOe=4;function EY(e){return vh(e,zOe)}function Tne(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var WOe="[object Symbol]";function sP(e){return typeof e=="symbol"||Nc(e)&&Lc(e)==WOe}var GOe="Expected a function";function uP(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(GOe);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(uP.Cache||gl),r}uP.Cache=gl;var KOe=500;function YOe(e){var t=uP(e,function(n){return r.size===KOe&&r.clear(),n}),r=t.cache;return t}var XOe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,QOe=/\\(\\)?/g,JOe=YOe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(XOe,function(r,n,i,a){t.push(i?a.replace(QOe,"$1"):n||r)}),t});function ZOe(e){if(typeof e=="string"||sP(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var SY=ol?ol.prototype:void 0,wY=SY?SY.toString:void 0;function Ane(e){if(typeof e=="string")return e;if(_p(e))return Tne(e,Ane)+"";if(sP(e))return wY?wY.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function eIe(e){return e==null?"":Ane(e)}function Rne(e){return _p(e)?Tne(e,ZOe):sP(e)?[e]:gne(JOe(eIe(e)))}var tIe=1,rIe=4;function nIe(e){return vh(e,tIe|rIe)}function Xn(){return Xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xn.apply(this,arguments)}function xne(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Zu(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function bY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var TY=function(t){return Array.isArray(t)&&t.length===0},Sa=function(t){return typeof t=="function"},my=function(t){return t!==null&&typeof t=="object"},iIe=function(t){return String(Math.floor(Number(t)))===t},vx=function(t){return Object.prototype.toString.call(t)==="[object String]"},Cne=function(t){return Se.Children.count(t)===0},gx=function(t){return my(t)&&Sa(t.then)};function _i(e,t,r,n){n===void 0&&(n=0);for(var i=Rne(t);e&&n<i.length;)e=e[i[n++]];return e===void 0?r:e}function $s(e,t,r){for(var n=EY(e),i=n,a=0,o=Rne(t);a<o.length-1;a++){var l=o[a],u=_i(e,o.slice(0,a+1));if(u&&(my(u)||Array.isArray(u)))i=i[l]=EY(u);else{var f=o[a+1];i=i[l]=iIe(f)&&Number(f)>=0?[]:{}}}return(a===0?e:i)[o[a]]===r?e:(r===void 0?delete i[o[a]]:i[o[a]]=r,a===0&&r===void 0&&delete n[o[a]],n)}function One(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var i=0,a=Object.keys(e);i<a.length;i++){var o=a[i],l=e[o];my(l)?r.get(l)||(r.set(l,!0),n[o]=Array.isArray(l)?[]:{},One(l,t,r,n[o])):n[o]=t}return n}var Ep=Se.createContext(void 0);Ep.displayName="FormikContext";var aIe=Ep.Provider,oIe=Ep.Consumer;function lP(){var e=Se.useContext(Ep);return e}function sIe(e,t){switch(t.type){case"SET_VALUES":return Xn({},e,{values:t.payload});case"SET_TOUCHED":return Xn({},e,{touched:t.payload});case"SET_ERRORS":return Qu(e.errors,t.payload)?e:Xn({},e,{errors:t.payload});case"SET_STATUS":return Xn({},e,{status:t.payload});case"SET_ISSUBMITTING":return Xn({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Xn({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Xn({},e,{values:$s(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Xn({},e,{touched:$s(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Xn({},e,{errors:$s(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Xn({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Xn({},e,{touched:One(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Xn({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Xn({},e,{isSubmitting:!1});default:return e}}var kl={},kv={};function uIe(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,i=n===void 0?!0:n,a=e.validateOnMount,o=a===void 0?!1:a,l=e.isInitialValid,u=e.enableReinitialize,f=u===void 0?!1:u,d=e.onSubmit,h=Zu(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=Xn({validateOnChange:r,validateOnBlur:i,validateOnMount:o,onSubmit:d},h),y=Se.useRef(p.initialValues),_=Se.useRef(p.initialErrors||kl),E=Se.useRef(p.initialTouched||kv),S=Se.useRef(p.initialStatus),w=Se.useRef(!1),T=Se.useRef({});Se.useEffect(function(){return w.current=!0,function(){w.current=!1}},[]);var C=Se.useReducer(sIe,{values:p.initialValues,errors:p.initialErrors||kl,touched:p.initialTouched||kv,status:p.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),x=C[0],R=C[1],O=Se.useCallback(function(fe,me){return new Promise(function(ge,Te){var Pe=p.validate(fe,me);Pe==null?ge(kl):gx(Pe)?Pe.then(function(De){ge(De||kl)},function(De){Te(De)}):ge(Pe)})},[p.validate]),m=Se.useCallback(function(fe,me){var ge=p.validationSchema,Te=Sa(ge)?ge(me):ge,Pe=me&&Te.validateAt?Te.validateAt(me,fe):cIe(fe,Te);return new Promise(function(De,qe){Pe.then(function(){De(kl)},function(_t){_t.name==="ValidationError"?De(lIe(_t)):qe(_t)})})},[p.validationSchema]),D=Se.useCallback(function(fe,me){return new Promise(function(ge){return ge(T.current[fe].validate(me))})},[]),U=Se.useCallback(function(fe){var me=Object.keys(T.current).filter(function(Te){return Sa(T.current[Te].validate)}),ge=me.length>0?me.map(function(Te){return D(Te,_i(fe,Te))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ge).then(function(Te){return Te.reduce(function(Pe,De,qe){return De==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||De&&(Pe=$s(Pe,me[qe],De)),Pe},{})})},[D]),K=Se.useCallback(function(fe){return Promise.all([U(fe),p.validationSchema?m(fe):{},p.validate?O(fe):{}]).then(function(me){var ge=me[0],Te=me[1],Pe=me[2],De=_C.all([ge,Te,Pe],{arrayMerge:fIe});return De})},[p.validate,p.validationSchema,U,O,m]),B=Go(function(fe){return fe===void 0&&(fe=x.values),R({type:"SET_ISVALIDATING",payload:!0}),K(fe).then(function(me){return w.current&&(R({type:"SET_ISVALIDATING",payload:!1}),R({type:"SET_ERRORS",payload:me})),me})});Se.useEffect(function(){o&&w.current===!0&&Qu(y.current,p.initialValues)&&B(y.current)},[o,B]);var W=Se.useCallback(function(fe){var me=fe&&fe.values?fe.values:y.current,ge=fe&&fe.errors?fe.errors:_.current?_.current:p.initialErrors||{},Te=fe&&fe.touched?fe.touched:E.current?E.current:p.initialTouched||{},Pe=fe&&fe.status?fe.status:S.current?S.current:p.initialStatus;y.current=me,_.current=ge,E.current=Te,S.current=Pe;var De=function(){R({type:"RESET_FORM",payload:{isSubmitting:!!fe&&!!fe.isSubmitting,errors:ge,touched:Te,status:Pe,values:me,isValidating:!!fe&&!!fe.isValidating,submitCount:fe&&fe.submitCount&&typeof fe.submitCount=="number"?fe.submitCount:0}})};if(p.onReset){var qe=p.onReset(x.values,Z);gx(qe)?qe.then(De):De()}else De()},[p.initialErrors,p.initialStatus,p.initialTouched]);Se.useEffect(function(){w.current===!0&&!Qu(y.current,p.initialValues)&&(f&&(y.current=p.initialValues,W()),o&&B(y.current))},[f,p.initialValues,W,o,B]),Se.useEffect(function(){f&&w.current===!0&&!Qu(_.current,p.initialErrors)&&(_.current=p.initialErrors||kl,R({type:"SET_ERRORS",payload:p.initialErrors||kl}))},[f,p.initialErrors]),Se.useEffect(function(){f&&w.current===!0&&!Qu(E.current,p.initialTouched)&&(E.current=p.initialTouched||kv,R({type:"SET_TOUCHED",payload:p.initialTouched||kv}))},[f,p.initialTouched]),Se.useEffect(function(){f&&w.current===!0&&!Qu(S.current,p.initialStatus)&&(S.current=p.initialStatus,R({type:"SET_STATUS",payload:p.initialStatus}))},[f,p.initialStatus,p.initialTouched]);var Y=Go(function(fe){if(T.current[fe]&&Sa(T.current[fe].validate)){var me=_i(x.values,fe),ge=T.current[fe].validate(me);return gx(ge)?(R({type:"SET_ISVALIDATING",payload:!0}),ge.then(function(Te){return Te}).then(function(Te){R({type:"SET_FIELD_ERROR",payload:{field:fe,value:Te}}),R({type:"SET_ISVALIDATING",payload:!1})})):(R({type:"SET_FIELD_ERROR",payload:{field:fe,value:ge}}),Promise.resolve(ge))}else if(p.validationSchema)return R({type:"SET_ISVALIDATING",payload:!0}),m(x.values,fe).then(function(Te){return Te}).then(function(Te){R({type:"SET_FIELD_ERROR",payload:{field:fe,value:Te[fe]}}),R({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),Q=Se.useCallback(function(fe,me){var ge=me.validate;T.current[fe]={validate:ge}},[]),ie=Se.useCallback(function(fe){delete T.current[fe]},[]),ae=Go(function(fe,me){R({type:"SET_TOUCHED",payload:fe});var ge=me===void 0?i:me;return ge?B(x.values):Promise.resolve()}),ve=Se.useCallback(function(fe){R({type:"SET_ERRORS",payload:fe})},[]),H=Go(function(fe,me){var ge=Sa(fe)?fe(x.values):fe;R({type:"SET_VALUES",payload:ge});var Te=me===void 0?r:me;return Te?B(ge):Promise.resolve()}),J=Se.useCallback(function(fe,me){R({type:"SET_FIELD_ERROR",payload:{field:fe,value:me}})},[]),z=Go(function(fe,me,ge){R({type:"SET_FIELD_VALUE",payload:{field:fe,value:me}});var Te=ge===void 0?r:ge;return Te?B($s(x.values,fe,me)):Promise.resolve()}),ue=Se.useCallback(function(fe,me){var ge=me,Te=fe,Pe;if(!vx(fe)){fe.persist&&fe.persist();var De=fe.target?fe.target:fe.currentTarget,qe=De.type,_t=De.name,qt=De.id,Mt=De.value,Xe=De.checked;De.outerHTML;var wt=De.options,mt=De.multiple;ge=me||_t||qt,Te=/number|range/.test(qe)?(Pe=parseFloat(Mt),isNaN(Pe)?"":Pe):/checkbox/.test(qe)?hIe(_i(x.values,ge),Xe,Mt):wt&&mt?dIe(wt):Mt}ge&&z(ge,Te)},[z,x.values]),we=Go(function(fe){if(vx(fe))return function(me){return ue(me,fe)};ue(fe)}),ke=Go(function(fe,me,ge){me===void 0&&(me=!0),R({type:"SET_FIELD_TOUCHED",payload:{field:fe,value:me}});var Te=ge===void 0?i:ge;return Te?B(x.values):Promise.resolve()}),Be=Se.useCallback(function(fe,me){fe.persist&&fe.persist();var ge=fe.target,Te=ge.name,Pe=ge.id;ge.outerHTML;var De=me||Te||Pe;ke(De,!0)},[ke]),nt=Go(function(fe){if(vx(fe))return function(me){return Be(me,fe)};Be(fe)}),rt=Se.useCallback(function(fe){Sa(fe)?R({type:"SET_FORMIK_STATE",payload:fe}):R({type:"SET_FORMIK_STATE",payload:function(){return fe}})},[]),q=Se.useCallback(function(fe){R({type:"SET_STATUS",payload:fe})},[]),I=Se.useCallback(function(fe){R({type:"SET_ISSUBMITTING",payload:fe})},[]),N=Go(function(){return R({type:"SUBMIT_ATTEMPT"}),B().then(function(fe){var me=fe instanceof Error,ge=!me&&Object.keys(fe).length===0;if(ge){var Te;try{if(Te=L(),Te===void 0)return}catch(Pe){throw Pe}return Promise.resolve(Te).then(function(Pe){return w.current&&R({type:"SUBMIT_SUCCESS"}),Pe}).catch(function(Pe){if(w.current)throw R({type:"SUBMIT_FAILURE"}),Pe})}else if(w.current&&(R({type:"SUBMIT_FAILURE"}),me))throw fe})}),M=Go(function(fe){fe&&fe.preventDefault&&Sa(fe.preventDefault)&&fe.preventDefault(),fe&&fe.stopPropagation&&Sa(fe.stopPropagation)&&fe.stopPropagation(),N().catch(function(me){console.warn("Warning: An unhandled error was caught from submitForm()",me)})}),Z={resetForm:W,validateForm:B,validateField:Y,setErrors:ve,setFieldError:J,setFieldTouched:ke,setFieldValue:z,setStatus:q,setSubmitting:I,setTouched:ae,setValues:H,setFormikState:rt,submitForm:N},L=Go(function(){return d(x.values,Z)}),G=Go(function(fe){fe&&fe.preventDefault&&Sa(fe.preventDefault)&&fe.preventDefault(),fe&&fe.stopPropagation&&Sa(fe.stopPropagation)&&fe.stopPropagation(),W()}),pe=Se.useCallback(function(fe){return{value:_i(x.values,fe),error:_i(x.errors,fe),touched:!!_i(x.touched,fe),initialValue:_i(y.current,fe),initialTouched:!!_i(E.current,fe),initialError:_i(_.current,fe)}},[x.errors,x.touched,x.values]),ce=Se.useCallback(function(fe){return{setValue:function(ge,Te){return z(fe,ge,Te)},setTouched:function(ge,Te){return ke(fe,ge,Te)},setError:function(ge){return J(fe,ge)}}},[z,ke,J]),be=Se.useCallback(function(fe){var me=my(fe),ge=me?fe.name:fe,Te=_i(x.values,ge),Pe={name:ge,value:Te,onChange:we,onBlur:nt};if(me){var De=fe.type,qe=fe.value,_t=fe.as,qt=fe.multiple;De==="checkbox"?qe===void 0?Pe.checked=!!Te:(Pe.checked=!!(Array.isArray(Te)&&~Te.indexOf(qe)),Pe.value=qe):De==="radio"?(Pe.checked=Te===qe,Pe.value=qe):_t==="select"&&qt&&(Pe.value=Pe.value||[],Pe.multiple=!0)}return Pe},[nt,we,x.values]),_e=Se.useMemo(function(){return!Qu(y.current,x.values)},[y.current,x.values]),Ce=Se.useMemo(function(){return typeof l<"u"?_e?x.errors&&Object.keys(x.errors).length===0:l!==!1&&Sa(l)?l(p):l:x.errors&&Object.keys(x.errors).length===0},[l,_e,x.errors,p]),Me=Xn({},x,{initialValues:y.current,initialErrors:_.current,initialTouched:E.current,initialStatus:S.current,handleBlur:nt,handleChange:we,handleReset:G,handleSubmit:M,resetForm:W,setErrors:ve,setFormikState:rt,setFieldTouched:ke,setFieldValue:z,setFieldError:J,setStatus:q,setSubmitting:I,setTouched:ae,setValues:H,submitForm:N,validateForm:B,validateField:Y,isValid:Ce,dirty:_e,unregisterField:ie,registerField:Q,getFieldProps:be,getFieldMeta:pe,getFieldHelpers:ce,validateOnBlur:i,validateOnChange:r,validateOnMount:o});return Me}function ULe(e){var t=uIe(e),r=e.component,n=e.children,i=e.render,a=e.innerRef;return Se.useImperativeHandle(a,function(){return t}),Se.createElement(aIe,{value:t},r?Se.createElement(r,t):i?i(t):n?Sa(n)?n(t):Cne(n)?null:Se.Children.only(n):null)}function lIe(e){var t={};if(e.inner){if(e.inner.length===0)return $s(t,e.path,e.message);for(var i=e.inner,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var a;if(r){if(n>=i.length)break;a=i[n++]}else{if(n=i.next(),n.done)break;a=n.value}var o=a;_i(t,o.path)||(t=$s(t,o.path,o.message))}}return t}function cIe(e,t,r,n){r===void 0&&(r=!1),n===void 0&&(n={});var i=TC(e);return t[r?"validateSync":"validate"](i,{abortEarly:!1,context:n})}function TC(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(i){return Array.isArray(i)===!0||JK(i)?TC(i):i!==""?i:void 0}):JK(e[n])?t[n]=TC(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function fIe(e,t,r){var n=e.slice();return t.forEach(function(a,o){if(typeof n[o]>"u"){var l=r.clone!==!1,u=l&&r.isMergeableObject(a);n[o]=u?_C(Array.isArray(a)?[]:{},a,r):a}else r.isMergeableObject(a)?n[o]=_C(e[o],a,r):e.indexOf(a)===-1&&n.push(a)}),n}function dIe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function hIe(e,t,r){if(typeof e=="boolean")return!!t;var n=[],i=!1,a=-1;if(Array.isArray(e))n=e,a=e.indexOf(r),i=a>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!i?n.concat(r):i?n.slice(0,a).concat(n.slice(a+1)):n}var pIe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Se.useLayoutEffect:Se.useEffect;function Go(e){var t=Se.useRef(e);return pIe(function(){t.current=e}),Se.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.current.apply(void 0,n)},[])}function qLe(e){var t=e.validate,r=e.name,n=e.render,i=e.children,a=e.as,o=e.component,l=Zu(e,["validate","name","render","children","as","component"]),u=lP(),f=Zu(u,["validate","validationSchema"]),d=f.registerField,h=f.unregisterField;Se.useEffect(function(){return d(r,{validate:t}),function(){h(r)}},[d,h,r,t]);var p=f.getFieldProps(Xn({name:r},l)),y=f.getFieldMeta(r),_={field:p,form:f};if(n)return n(Xn({},_,{meta:y}));if(Sa(i))return i(Xn({},_,{meta:y}));if(o){if(typeof o=="string"){var E=l.innerRef,S=Zu(l,["innerRef"]);return Se.createElement(o,Xn({ref:E},p,S),i)}return Se.createElement(o,Xn({field:p,form:f},l),i)}var w=a||"input";if(typeof w=="string"){var T=l.innerRef,C=Zu(l,["innerRef"]);return Se.createElement(w,Xn({ref:T},p,C),i)}return Se.createElement(w,Xn({},p,l),i)}var vIe=Se.forwardRef(function(e,t){var r=e.action,n=Zu(e,["action"]),i=r??"#",a=lP(),o=a.handleReset,l=a.handleSubmit;return Se.createElement("form",Object.assign({onSubmit:l,ref:t,onReset:o,action:i},n))});vIe.displayName="Form";function gIe(e){var t=function(i){return Se.createElement(oIe,null,function(a){return Se.createElement(e,Object.assign({},i,{formik:a}))})},r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+r+")",FEe(t,e)}var mIe=function(t,r,n){var i=jf(t),a=i[r];return i.splice(r,1),i.splice(n,0,a),i},yIe=function(t,r,n){var i=jf(t),a=i[r];return i[r]=i[n],i[n]=a,i},mx=function(t,r,n){var i=jf(t);return i.splice(r,0,n),i},_Ie=function(t,r,n){var i=jf(t);return i[r]=n,i},jf=function(t){if(t){if(Array.isArray(t))return[].concat(t);var r=Object.keys(t).map(function(n){return parseInt(n)}).reduce(function(n,i){return i>n?i:n},0);return Array.from(Xn({},t,{length:r+1}))}else return[]},EIe=(function(e){xne(t,e);function t(n){var i;return i=e.call(this,n)||this,i.updateArrayField=function(a,o,l){var u=i.props,f=u.name,d=u.formik.setFormikState;d(function(h){var p=typeof l=="function"?l:a,y=typeof o=="function"?o:a,_=$s(h.values,f,a(_i(h.values,f))),E=l?p(_i(h.errors,f)):void 0,S=o?y(_i(h.touched,f)):void 0;return TY(E)&&(E=void 0),TY(S)&&(S=void 0),Xn({},h,{values:_,errors:l?$s(h.errors,f,E):h.errors,touched:o?$s(h.touched,f,S):h.touched})})},i.push=function(a){return i.updateArrayField(function(o){return[].concat(jf(o),[nIe(a)])},!1,!1)},i.handlePush=function(a){return function(){return i.push(a)}},i.swap=function(a,o){return i.updateArrayField(function(l){return yIe(l,a,o)},!0,!0)},i.handleSwap=function(a,o){return function(){return i.swap(a,o)}},i.move=function(a,o){return i.updateArrayField(function(l){return mIe(l,a,o)},!0,!0)},i.handleMove=function(a,o){return function(){return i.move(a,o)}},i.insert=function(a,o){return i.updateArrayField(function(l){return mx(l,a,o)},function(l){return mx(l,a,null)},function(l){return mx(l,a,null)})},i.handleInsert=function(a,o){return function(){return i.insert(a,o)}},i.replace=function(a,o){return i.updateArrayField(function(l){return _Ie(l,a,o)},!1,!1)},i.handleReplace=function(a,o){return function(){return i.replace(a,o)}},i.unshift=function(a){var o=-1;return i.updateArrayField(function(l){var u=l?[a].concat(l):[a];return o<0&&(o=u.length),u},function(l){var u=l?[null].concat(l):[null];return o<0&&(o=u.length),u},function(l){var u=l?[null].concat(l):[null];return o<0&&(o=u.length),u}),o},i.handleUnshift=function(a){return function(){return i.unshift(a)}},i.handleRemove=function(a){return function(){return i.remove(a)}},i.handlePop=function(){return function(){return i.pop()}},i.remove=i.remove.bind(bY(i)),i.pop=i.pop.bind(bY(i)),i}var r=t.prototype;return r.componentDidUpdate=function(i){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Qu(_i(i.formik.values,i.name),_i(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(i){var a;return this.updateArrayField(function(o){var l=o?jf(o):[];return a||(a=l[i]),Sa(l.splice)&&l.splice(i,1),l},!0,!0),a},r.pop=function(){var i;return this.updateArrayField(function(a){var o=a;return i||(i=o&&o.pop&&o.pop()),o},!0,!0),i},r.render=function(){var i={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},a=this.props,o=a.component,l=a.render,u=a.children,f=a.name,d=a.formik,h=Zu(d,["validate","validationSchema"]),p=Xn({},i,{form:h,name:f});return o?Se.createElement(o,p):l?l(p):u?typeof u=="function"?u(p):Cne(u)?null:Se.Children.only(u):null},t})(Se.Component);EIe.defaultProps={validateOnChange:!0};var SIe=(function(e){xne(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.shouldComponentUpdate=function(i){return _i(this.props.formik.errors,this.props.name)!==_i(i.formik.errors,this.props.name)||_i(this.props.formik.touched,this.props.name)!==_i(i.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(i).length},r.render=function(){var i=this.props,a=i.component,o=i.formik,l=i.render,u=i.children,f=i.name,d=Zu(i,["component","formik","render","children","name"]),h=_i(o.touched,f),p=_i(o.errors,f);return h&&p?l?Sa(l)?l(p):null:u?Sa(u)?u(p):null:a?Se.createElement(a,d,p):p:null},t})(Se.Component),BLe=gIe(SIe);const wIe=Se.createContext(""),Nh=Se.memo(function(e){const{phrase:t,namespace:r,options:n}=e,i=Se.useContext(wIe),a=r||i,o=Object.assign({escapeText:!0},n),l=Gr.getPhrase(a,t,o);return de.jsx("span",{dangerouslySetInnerHTML:{__html:l}})},(e,t)=>e.namespace===t.namespace&&e.phrase===t.phrase&&ys.isEqual(e.options,t.options));function bIe(e){var n;const[t,r]=Se.useState(!1);return Se.useEffect(()=>{var i;if(!e.isValid){r(!1);return}e.dirty||(i=e.initialStatus)!=null&&i.allowInitialSubmit?r(!0):r(!1)},[e.isValid,(n=e.initialStatus)==null?void 0:n.allowInitialSubmit,e.dirty,e.values]),Se.useEffect(()=>{e.isSubmitting&&r(!1)},[e.isSubmitting]),t}function TIe(e){const{showSpinner:t,children:r,style:n,spinnerText:i,...a}=e,o=Se.useRef(null),[{width:l,height:u},f]=Se.useState({}),[d,h]=Se.useState(t);Se.useEffect(()=>{if(!t){f({});return}const y=o.current,_=y.offsetHeight,E=y.offsetWidth;!_||!E||f({width:E,height:_})},[t]),Se.useLayoutEffect(()=>{h(t)},[t]);const p={...n};return l&&(p.width=`${l+1}px`),u&&(p.height=`${u+1}px`),de.jsx(oy,{ref:o,disabled:t,style:p,...a,children:d?de.jsxs(de.Fragment,{children:[de.jsx(fy,{as:"span",animation:"border",role:"status",size:"sm"}),!!i&&de.jsx("span",{className:"ps-1",children:i})]}):r})}const AIe={info:"custom-toggle-info"};Ine.defaults={floatEnd:!0};function Ine(e){const{on:t,showStateWhenDisabled:r,tooltipText:n,variant:i,floatEnd:a,hideOutline:o,...l}=e;function u(...S){e.disabled||e.onClick(...S)}const f="d-inline-block align-top custom-toggle toggle-option",d=e.disabled?"disabled":"",h=o?"outline-none":"",p=AIe[i]??"",y=a?"float-end":"";let _=t?"on":"";e.disabled&&!r&&(_="");const E=`${f} ${p} ${_} ${d} ${h} ${y}`;return e.tooltipText?de.jsx(Ql,{title:n,spanHack:!0,children:de.jsx(eC,{...l,role:"switch","aria-checked":`${t}`,onClick:u,className:E,children:de.jsx("span",{className:"handle"})})}):de.jsx(eC,{...l,role:"switch","aria-checked":t,onClick:u,className:E,children:de.jsx("span",{className:"handle"})})}const Pne="shared.popup",ec=e=>de.jsx("div",{className:`d-flex justify-content-end align-items-center border-top pt-3 px-3 mx-n3 undo-changes-btn ${e.className??""}`,children:e.children});function kne(e){return de.jsx(TIe,{variant:e.variant||"primary",type:e.type||"submit",disabled:e.disabled||e.showSpinner,size:e.size,className:e.className?e.className:"",onClick:()=>{var t;return(t=e.onClick)==null?void 0:t.call(e)},showSpinner:e.showSpinner,spinnerText:e.spinnerText,children:e.text?de.jsx(de.Fragment,{children:e.text}):de.jsx(Nh,{namespace:Pne,phrase:e.isNew?"create":"save"})})}function RIe(e){const t=lP(),r=bIe(t??{}),n=(t==null?void 0:t.isSubmitting)||e.showSpinner;function i(){return typeof e.disabled=="boolean"?e.disabled:!!t&&!r||n}return de.jsx(kne,{...e,disabled:i(),showSpinner:n})}const xIe=e=>Dr.useContext(Ep)?de.jsx(RIe,{...e}):de.jsx(kne,{...e}),CIe=e=>de.jsx(oy,{onClick:e.onClick,variant:e.variant||"link",size:e.size,className:e.className?e.className:"me-2",children:e.text?e.text:de.jsx(Nh,{namespace:Pne,phrase:"cancel"})}),OIe=e=>de.jsx(g1e.Check,{type:"checkbox",className:e.className??"me-auto",label:e.label,id:e.id,onChange:e.onToggle,checked:e.checked}),IIe=e=>de.jsxs("div",{className:"d-flex align-items-center me-auto",children:[de.jsx(Ine,{on:e.on,onClick:e.onClick,disabled:e.disabled,tooltipText:e.tooltip}),!!e.label&&de.jsx("span",{className:"fw-semibold ms-2",children:e.label})]});ec.Submit=xIe;ec.Cancel=CIe;ec.Checkbox=OIe;ec.Toggle=IIe;const AY="shared.shared-utils";let nu=null;const PIe={render:(e,t={})=>{let r=document.getElementById("dialog-region");r||(r=document.createElement("div"),r.id="dialog-region",document.appendChild(r)),nu||(nu=UI.createRoot(r));function n(){var l;if(Ao.isFunction((l=t.submitButtonProps)==null?void 0:l.onClick)){const u=t.submitButtonProps.onClick();if(u instanceof Promise){u.then(()=>{nu.unmount(),nu=null});return}}nu.unmount(),nu=null}function i(){var l;Ao.isFunction((l=t.cancelButtonProps)==null?void 0:l.onClick)&&t.cancelButtonProps.onClick(),nu.unmount(),nu=null}const a={...t.submitButtonProps?t.submitButtonProps:{},onClick:()=>{n()}},o={...t.cancelButtonProps?t.cancelButtonProps:{},onClick:()=>{i()}};nu.render(de.jsxs(Zre,{title:t.title,closePopup:i,size:t.size,centered:t.centered,bodyClassName:"overflow-hidden",dialogClassName:t.dialogClassName,children:[e,!t.hideButtons&&de.jsxs(ec,{className:t.buttonContainerClassName,children:[t.cancelButtonProps&&de.jsx(ec.Cancel,{...o}),t.submitButtonProps&&de.jsx(ec.Submit,{...a})]})]}))},getDefaultSubmitButton(){return{variant:"dark",text:Gr.getPhrase(AY,"confirm")}},getDefaultCancelButton(){return{variant:"light",text:Gr.getPhrase(AY,"cancel")}}},Dv=Gr.encloseNamespace("shared.hooks");let AC=!1;const RY={isLocked:()=>AC},kIe=()=>{const[e,t]=Dr.useState([]),r=Mr.Radio.channel(mn.SHELL);Dr.useEffect(()=>(e.find(u=>!u.allowAppLinks)&&r.on(En.NAV_IS_LOCKED,a),e.length&&window.addEventListener("beforeunload",o),()=>{r.off(En.NAV_IS_LOCKED,a),window.removeEventListener("beforeunload",o)}),[e]),Dr.useEffect(()=>{function u(){n({id:"upload",title:Dv("navLockTitle"),text:Dv("navLockBody"),allowAppLinks:!0})}const f=Mr.Radio.channel(ah.VIDEO_UPLOAD);return f.on(fu.FILES_ADDED,u),f.on(fu.UNLOCK_NAV,i),()=>{f.off(fu.FILES_ADDED,u),f.off(fu.UNLOCK_NAV,i)}},[]);function n(u={}){e.find(f=>f.id===u.id)||(u.allowAppLinks||r.trigger(En.LOCK_NAV),t([...e,u]),AC=!0)}function i(u){const f=e.filter(d=>d.id!==u);(f.length===0||!f.find(d=>!d.allowAppLinks))&&r.trigger(En.UNLOCK_NAV),t(f),f.length||(AC=!1)}function a(u){var d;if(!e.length)return;const f=e.find(h=>!h.allowAppLinks);if((d=f.appLinkWhitelist)!=null&&d.find(h=>h.action===u.action&&h.application===u.application)){r.trigger(En.UNLOCK_NAV),window.setTimeout(()=>{Ai.trigger(u),r.trigger(En.LOCK_NAV)},0);return}if(Ao.isFunction(f.renderCustomDialog)){f.renderCustomDialog();return}PIe.render(de.jsx("p",{children:f.text}),{title:f.title,submitButtonProps:{onClick:()=>{f.onConfirmUnlock&&f.onConfirmUnlock(),l(u)},variant:"danger",text:Dv("discard")},cancelButtonProps:{text:Dv("cancel"),variant:"link"}})}function o(u){let f=e.find(d=>d.allowAppLinks);return f||(f=ac.first(e)),u.returnValue=f.text,f.text}function l(u){r.trigger(En.NAV_UNLOCKED_BY_USER),e.forEach(f=>{f.allowAppLinks||i(f.id)}),window.removeEventListener("beforeunload",o),Ai.trigger(u)}return{lock:n,unlock:i}},DIe=9e5;class LIe extends za{constructor(){super(...arguments),this.canReload=!0}get name(){return XI.OldVersion}initialize(){this.onVisibilityChange=this.onVisibilityChange.bind(this),this.onInactivityTimeout=this.onInactivityTimeout.bind(this)}handleOldVersion(){document.addEventListener("visibilitychange",this.onVisibilityChange),this.onVisibilityChange()}onVisibilityChange(){if(!document.hidden){window.clearTimeout(this.timeout);return}this.setInactivityTimeout()}setInactivityTimeout(){this.timeout=window.setTimeout(this.onInactivityTimeout,DIe)}onInactivityTimeout(){if(RY.isLocked()){this.setInactivityTimeout();return}this.onInactive()}onInactive(){if(!this.canReload||RY.isLocked()){this.setInactivityTimeout();return}Dn.Reload()}setCanReload(t){this.canReload=t}}const NIe=new LIe,RC={Success:"Success! 🙌",Warning:"Whoops...",Fail:"Oops...",Info:"FYI"};function MIe(e){cu.getInstance(ry.ALERT).createAlert({heading:RC.Fail,type:ms.Fail,message:e.message})}function $Ie(e){Mr.Radio.channel("error:view").reply("current:error",()=>e),Ai.trigger({application:ki.DEFAULT,action:So.Default.NOT_FOUND})}function xY(e){Mr.Radio.channel("error:view").reply("current:error",()=>e),Ai.trigger({application:ki.DEFAULT,action:So.Default.ERROR})}function FIe(e){Mr.Radio.channel("error:view").reply("current:error",()=>e),Ai.trigger({application:ki.DEFAULT,action:So.Default.DIALOG_ERROR})}function jIe(){NIe.handleOldVersion()}function UIe(e,t){e.registerErrorHandler(iy,xY).registerErrorHandler(Dc,FIe).registerErrorHandler(Jre,MIe).registerErrorHandler(pte,$Ie).registerErrorHandler($f,xY).registerErrorHandler(Qre,jIe),ZAe("dark"),t(e)}class qIe extends Lye{constructor(){super(...arguments),this.regionRoots={},this.isReactComponentRendered={}}isReactComponent(t){return Dr&&Dr.isValidElement(t)}showChildView(t,r,n){if(this.isReactComponent(r)){this.showChildReactComponent(t,r),this.isReactComponentRendered[t]=!0;return}this.isReactComponentRendered[t]&&this.unmountRoot(t),super.showChildView(t,r,n),this.isReactComponentRendered[t]=!1}showChildReactComponent(t,r){if(this.isAttached()){this.renderChildReactComponent(t,r);return}this.listenToOnce(this,"attach",()=>this.renderChildReactComponent(t,r))}renderChildReactComponent(t,r){const n=this.getRegion(t),i=this.$el.find(n.el);!i||!i.length||(n.trigger("before:show"),this.regionRoots[t]||(this.regionRoots[t]=UI.createRoot(i[0])),this.regionRoots[t].render(r),window.setTimeout(()=>n.trigger("show"),0),this.listenToOnce(this,`unmount:${t}`,()=>this.unmountRoot(t)),this.listenToOnce(this,"before:destroy",()=>this.unmountRoot(t)))}unmountRoot(t){this.regionRoots[t]&&(this.regionRoots[t].unmount(),delete this.regionRoots[t])}wrapWithStore(t){return de.jsx(Kee,{store:this.options.store,children:t})}}class yx extends Dr.Component{constructor(t){super(t),this.currentErrorHandled=!1,this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){this.currentErrorHandled||(this.currentErrorHandled=!0,window.trackJs&&window.trackJs.console.error(t.message,{errorInfo:r}),this.props.throwError&&(dr.throw(new this.props.throwError(t.message)),window.setTimeout(()=>{this.currentErrorHandled=!1,this.setState({error:null})},500)))}render(){const{error:t}=this.state;if(t&&this.props.renderError){const r=this.props.renderError;return de.jsx(r,{})}return t||!this.props.children?de.jsx(de.Fragment,{}):this.props.children}}function BIe(e){return document.querySelector(`.${e}`)}const VIe=Dr.createContext(null);function HIe(e){const[t,r]=Dr.useState();return Dr.useEffect(()=>{r(BIe(e.containerClassName))},[]),de.jsx(VIe.Provider,{value:{container:t},children:e.children})}function hf(e){const[t,r]=Se.useState(window.matchMedia(e).matches);return Se.useEffect(()=>{const n=window.matchMedia(e);n.matches!==t&&r(n.matches);const i=()=>r(n.matches);return n.addListener(i),()=>n.removeListener(i)},[e]),t}const Dne=Dr.createContext({}),zIe=e=>{const t=hf("(max-width: 575.98px)"),r=hf("(min-width: 576px) and (max-width: 767.98px)"),n=hf("(min-width: 768px) and (max-width: 991.98px)"),i=hf("(min-width: 992px) and (max-width: 1199.98px)"),a=hf("(min-width: 1200px) and (max-width: 1439.98px)"),o=hf("(min-width: 1440px)"),l=Dr.useMemo(()=>({xs:t,sm:r,md:n,lg:i,xl:a,xxl:o}),[t,r,n,i,a,o]);return de.jsx(Dne.Provider,{value:l,children:e.children})},_x="shared.unspecifiedDialogError";class WIe extends Dc{constructor(){super("Unspecified dialog error"),this.btnVariant="dark"}get name(){return"UnspecifiedDialogError"}get dialogOptions(){return{title:Gr.getPhrase(_x,"title"),text:Gr.getPhrase(_x,"body"),buttons:[{text:Gr.getPhrase(_x,"close"),className:`btn btn-${this.btnVariant}`,success:!0}]}}}function GIe(){function e(r){r.key==="Tab"&&(document.body.classList.add("user-is-tabbing"),window.removeEventListener("keydown",e),window.addEventListener("mousedown",t))}function t(){document.body.classList.remove("user-is-tabbing"),window.removeEventListener("mousedown",t),window.addEventListener("keydown",e)}Se.useEffect(()=>(window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)),[])}function KIe(){const e=ea(al.version());return e.data?de.jsx("footer",{className:"text-center text-secondary my-2",children:de.jsxs("small",{children:["2003 - ",new Date().getFullYear()," © ClickView | Version: ",e.data]})}):de.jsx(de.Fragment,{})}function YIe(){return de.jsx("svg",{viewBox:"0 0 434 71",children:de.jsxs("g",{children:[de.jsx("path",{fill:"#000000",d:"M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z"}),de.jsx("path",{fill:"#F8981D",d:"M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z"})]})})}function VLe(){return de.jsx("svg",{viewBox:"0 0 41 70",children:de.jsx("g",{children:de.jsx("path",{fill:"#F8981D",d:"M 0 0 41 35 0 70z"})})})}const ta={currentUser(e,t){return{url:"/api/currentuser",key:"currentuser",normalizeOptions:{namespace:"currentuser"},bootstrapName:Zl.USER,success:e,error:t}},user(e,t,r){return{url:`{gateway}/v1/users/${e}`,key:`users:${e}`,success:t,error:r}},groups(e){return{url:`{gateway}/v1/objects/${e}/members?query=groups`,key:`users:${e}:groups`}},usersById(e,t,r){return{url:Xo.urlBuilder("{gateway}/v1/users",{id:e}),key:`users:list:${e.join(",")}`,success:t,error:r,formatData:n=>{const i=n.reduce((a,o)=>(a[o.id.toString()]=o,a),{});return e.map(a=>i[a.toString()])}}},getUserIdByQuery(e,t){return{url:`{gateway}/v1/users/ids?${e}`,key:`users:ids:${e}`,success:t}},workspace(e,t){return{url:"/api/domain/v2/me/workspace?query=categorytree",key:"workspace",success:e,error:t}},sendVerificationEmail(e,t,r,n){return{url:"/api/account/email",key:"verify:email",type:Vi.POST,data:{emailAddress:e},success:t,error:r,always:n,invalidationKeys:["verify:email:status"]}},token(e,t){return{url:"/api/token",key:"token",bootstrapName:Zl.TOKEN,formatData:r=>typeof r.expiry!="number"||r.expiry<=0||isNaN(r.expiry)?r:{value:r.value,localTTL:new Date().getTime()+r.expiry*1e3},success:e,error:t}},permissions(e,t){return{url:"{gateway}/v1/users/me/permissions",publicUrl:"/api/permissions",key:"permissions",success:e,error:t,normalize:!1,formatData:r=>r.reduce((n,i)=>(n[i]=!0,n),{}),bootstrapName:Zl.PERMISSIONS}},customers(e){return{url:`{gateway}/v1/objects/${e}/customers`,key:"customers"}},accessPolicy(){return{url:"{gateway}/v1/users/me/access-policy",key:"access:policy"}},updateJobTitle(e,t,r){return{url:`{gateway}/v1/customers/${t}/users/job-titles`,key:`update:${e}:job:title:${r}`,type:Vi.PUT,data:{customerId:t,users:[{userId:e,jobTitle:r}]},updateState:{keys:`users:${e}`,updateData:n=>{const i=n[`users:${e}`];return{...n,[`users:${e}`]:{...i,userProfile:{...i.userProfile,metadata:{...i.userProfile.metadata||{},jobTitle:r}}}}}}}},getById(e,t){const r=ac.uniq(e);return r.sort(),{url:`{gateway}/v1/objects?query=${`avatar&${r.map(i=>`id=${i}`).join("&")}`}`,key:`users:by:id:${r.join(",")}`,error:t}},updateCurrentUser(e,t,r,n){return{url:"{gateway}/v1/users/me/info",key:"edit:current:user",type:Vi.PUT,data:e,invalidationKeys:["search:aggregation","currentuser"],success:t,error:r,always:n}},updateUserJobTitle(e){return{url:"{gateway}/v1/users/me/profile",key:"edit:current:user:role",type:Vi.PUT,data:{jobTitle:e},invalidationKeys:["search:aggregation","currentuser"]}}},XIe=e=>{const t=ea(ta.currentUser()),r=ea(t.hasCompleted&&ch.getCustomerSettingsRequest(t.data)),n=ea(t.hasCompleted&&ch.getUserSettingsRequest(t.data)),i=cp(),a=!!r.hasCompleted&&!!n.hasCompleted,o=E=>{var T,C;if(!a||r.hasError||n.hasError)return null;const S=(T=r.data)==null?void 0:T[E];if(S)return S==null?void 0:S.value;const w=(C=n.data)==null?void 0:C[E];return w?w==null?void 0:w.value:null};function l(E,S,w,T,C){return E==="user"?Hl.updateUserSetting(S,w,T,C):Hl.updateCustomerSetting(S,w,T,C)}const u=(E,S,w,T,C)=>{function x(){Ba.logUserAction({name:S.name,value:S.value},{location:e,entity:kn.UserSetting,actionType:jt.Edit}),w==null||w()}fd(i,l(E,S,x,T,C))},f=(E,S)=>new Promise((w,T)=>{u(E,S,w,T)}),d=(E,S,w,T)=>u("user",E,S,w,T),h=(E,S,w,T)=>u("customer",E,S,w,T),p=E=>f("user",E),y=E=>f("customer",E);function _(){var E;return(E=t.data)!=null&&E.isAuthenticated?o(yr.HasTopicDirectories):!0}return{isLoadingSettings:!a,updateUserSetting:d,updateUserSettingAsync:p,updateCustomerSetting:h,updateCustomerSettingAsync:y,userSettings:n,shareToGoogleClassroom:o(yr.ShareToGoogleClassroom),shareToMicrosoftTeams:o(yr.ShareToMicrosoftTeams),hasLti:o(yr.LTI),defaultPlaybackQuality:o(yr.DefaultPlaybackQuality),defaultLocalCachePlaybackQuality:o(yr.DefaultLocalCachePlaybackQuality),enableSubtitlesDefault:o(yr.EnableSubtitlesDefault),hasCompletedOnboardingV1:o(yr.HasCompletedOnboardingV1),hasCompletedOnboardingV2:o(yr.HasCompletedOnboardingV2),hasOnboardingV2:o(yr.HasNewOnboarding),hasCompletedOnboardingStepCreatePlaylist:o(yr.HasCompletedOnboardingStepCreatePlaylist),hasCompletedOnboardingProductTips:o(yr.HasCompletedOnboardingProductTips),liteUpgradeTypeCustomer:o(yr.LiteUpgradeTypeCustomer),hasNewClassificationView:o(yr.HasNewClassificationView),hasCuratedDiscoverDashboards:o(yr.HasCuratedDiscoverDashboards),hasSpecialEventCalendar:o(yr.HasSpecialEventCalendar),hasLiteSearchDropdown:o(yr.HasLiteSearchDropdown),policyEndTime:o(yr.PolicyEndTime),bulkOnboardingPreferencesState:o(yr.BulkOnboardingPreferencesState),hasOnlineTopics:o(yr.Topics),hasPreviewVideos:o(yr.PreviewVideos),hasUserEnabledPreviewVideos:o(yr.UserEnabledPreviewVideos),domainSettings:o(yr.DomainSettings),inviteColleague:o(yr.InviteColleague),myVideosFolders:o(yr.MyVideosFolders),exchangeTvProductOption:o(yr.ExchangeTvProductOption),messageFrequencyOption:o(yr.MessageFrequencyOption),tvRegion:o(yr.TvRegion),preferredTheme:o(yr.PreferredTheme),hasEnabledViviStudentCasting:o(yr.HasEnabledViviStudentCasting),hasEnabledViviPlayback:o(yr.HasEnabledViviPlayback),hasEnabledAppleTvPlayback:o(yr.HasEnabledAppleTvPlayback),hasDisplayedPresentationSwitcherProductTip:o(yr.HasDisplayedPresentationSwitcherProductTip),hasDisplayedTopicsDirectoryTabProductTip:o(yr.HasDisplayedTopicsDirectoryTabProductTip),hasDisplayedGiveFeedbackFormProductTip:o(yr.HasDisplayedGiveFeedbackFormProductTip),hasDisplayedWhatsNewLinkProductTip:o(yr.HasDisplayedWhatsNewLinkProductTip),showExchangeSearchResults:o(yr.ShowExchangeSearchResultsUser),shareOverrideRestrictions:o(yr.ShareOverrideRestrictions),hasTopicDirectories:_(),hasTopicVideoListFeature:o(yr.HasTopicVideoListFeature),hasManageGroupPermissions:o(yr.HasManageGrouPermissions),experimentalInteractiveQuestions:o(yr.ExperimentalInteractiveQuestions),hasClassrooms:o(yr.HasClassrooms),hasNewSearch:o(yr.HasNewSearch),hasPlayPageTranscript:o(yr.HasPlayPageTranscript),hasShareFlowV2:o(yr.HasShareFlowV2),referralCount:o(yr.ReferralCount),hasPartnerProfiles:o(yr.HasPartnerProfiles),defaultCitationStyle:o(yr.DefaultCitationStyle),hasStudentReach:o(yr.HasStudentReach),studentReachClassroomSize:o(yr.StudentReachClassroomSize),schoolStartTime:o(yr.SchoolStartTime),schoolEndTime:o(yr.SchoolEndTime),timezone:o(yr.Timezone)}};var yy=(e=>(e.Small="small",e.Medium="medium",e.Large="large",e))(yy||{}),Ju=(e=>(e[e.Thumbnails=0]="Thumbnails",e[e.Banners=1]="Banners",e[e.Avatars=2]="Avatars",e[e.Logos=3]="Logos",e[e.Covers=4]="Covers",e[e.Posters=5]="Posters",e[e.TallPosters=6]="TallPosters",e[e.HeroBanners=7]="HeroBanners",e[e.Pdf=8]="Pdf",e[e.Link=9]="Link",e[e.None=99999]="None",e))(Ju||{}),QIe=(e=>(e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover",e))(QIe||{});const JIe={[Ju.Banners]:"banner",[Ju.Thumbnails]:"thumbnail"},CY={[Ju.Banners]:"banners",[Ju.Thumbnails]:"thumbnails",[Ju.TallPosters]:"tallPosters",[Ju.Covers]:"covers",[Ju.Avatars]:"avatars"},ZIe={categoryMapper:e=>`/v1/category-map/${e}`},iu={createUrl(e,t){return iu._createUrl(e,t)},createBannerUrl(e,t,r){return e&&e.url?iu._createUrl(e.url,r):iu._createCategoryMappedUrl(t,r)},createResourceImage(e,t,r){return iu._createUrl(e,{url:t,...r})},Rfc3986EncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape)},_createCategoryMappedUrl(e,t){const{fallbackBaseUrl:r,fallbackCategoryName:n,type:i}=e,a=Xo.safeUrlConcat(r,`${ZIe.categoryMapper(JIe[i])}`),o={name:iu.Rfc3986EncodeURIComponent(n),...t};return iu._createUrl(a,o)},_createUrl(e,t){if(!e)return;if(ys.isEmpty(t))return e;const r=Ah.param(t),n=e.indexOf("?")===-1?"?":"&";let i=e;return i.endsWith("/")&&(i=i.slice(0,-1)),i+`${n}${r}`},legacyCreateThumbnailUrl(e,t){if(!e)return"";let r;if(!e||(e instanceof mu?r=e.get("url"):typeof e=="string"?r=e:r=e.url,!r))return;const n={size:yy.Small,bgColor:"000",...t};return iu._createUrl(r,n)},getDisplayImageFromObject(e){var t,r,n,i,a;return"tallPoster"in e&&((t=e.tallPoster)!=null&&t.url)?e.tallPoster:"cover"in e&&((r=e.cover)!=null&&r.url)?e.cover:"thumbnail"in e&&((n=e.thumbnail)!=null&&n.url)?e.thumbnail:"_parentVideo"in e&&((a=(i=e._parentVideo)==null?void 0:i.thumbnail)!=null&&a.url)?e._parentVideo.thumbnail:null},getUrlById(e,t,r,n){CY[t]||dr.throw(new Sn(`ImageType:${t} not supported, please add it to 'ImageApiImageTypes'`));const i=Xo.safeUrlConcat(e,`v2/${CY[t]}/${r}`);return Xo.urlBuilder(i,{size:n})}},ePe="_avatar_xiggt_1",tPe="_dot_xiggt_11",OY={avatar:ePe,dot:tPe};function rPe(e,t){return t?iu.createUrl(Xo.safeUrlConcat(e,`/v1/profile-images?initials=${t}`),{size:yy.Small}):""}function nPe(e){const t=!e.anonymiseUsers&&e.imageUrl||rPe(e.imageCdnUrl,e.initials);return de.jsxs("div",{className:"position-relative h-100 w-100",children:[de.jsx("div",{className:`${OY.avatar} ${(e==null?void 0:e.extraClasses)||""}`,style:{backgroundImage:`url('${t}')`},children:" "}),e.showDot&&de.jsx("div",{className:`${OY.dot} rounded-circle bg-danger`})]})}var Sp=(e=>(e.ManageSubjectPreferences="subjects.preferences.manage",e.FollowSubjects="subjects.follow",e.ViewClassrooms="classrooms.view",e.ManageAllClassrooms="classrooms.manage.all",e.JoinClassroom="classroom.join",e.ShareToUsers="share.direct.users",e.ShareToClassrooms="share.direct.classrooms",e.ShareToClassroomGroups="share.direct.classroomgroups",e.ShareToOpenClassrooms="share.direct.openclassrooms",e.CreateClassrooms="classrooms.create",e.DeleteClassrooms="classrooms.delete",e.StudentExperience="studentexperience",e.ManageUsers="users.manage",e.ManageIntegrations="integrations.manage",e.EditProfileDetails="profile.edit",e.ManageCustomerSettings="customersettings.manage",e.ManageLocalCache="localcache.manage",e.ManageVideoAccess="video.access.manage",e.ViewCustomerAnalytics="analytics.customeranalytics.view",e.ViewAnalyticsProduct="analytics.view",e.ManageShareLinkSettings="sharelink.settings.edit",e.ViewProductBoard="productboard.view",e.CanSubmitFeedback="feedback.submit",e.ViewTrialDuration="trial.duration.view",e.ViewTrialBanner="trial.banner.view",e.ViewTrialUpgrade="trial.upgrade.view",e.ViewInviteColleague="invitecolleague.view",e.UploadVideo="video.upload",e.FavouriteVideo="video.favourite",e.ViewVideoPointsOfInterest="video.pointsofinterest.view",e.ViewVideoGlance="video.glance.view",e.ViewVideoInteractives="video.interactives.view",e.ViewVideoClips="video.clips.view",e.ViewCurriculums="curriculums.view",e.ViewLibraries="libraries.view",e.ContributeVideo="video.contribute",e.ViewOnboarding="onboarding.view",e.Exchange="exchangetv.manage",e.Rostering="rostering.manage",e.ViewMoviesTv="moviestv.view",e.ViewDiscover="discover.view",e.ViewSearch="search.view",e.ViewMyShares="myshares.view",e.ViewInsights="insights.view",e.ViewRestrictedMode="restrictedmode.view",e.GuestExperience="guestexperience",e.CreatePlaylist="playlist.create",e))(Sp||{});function iPe(){return Dr.useContext(Dne)}var cP=(e=>(e.UPDATE="UPDATE_VIEW_MODEL",e))(cP||{});function aPe(e){return e?e===Ls.SessionStorage?jg:Hi:null}const oPe=(e,t,r)=>{const n=aPe(r==null?void 0:r.storage);let i=n==null?void 0:n.get(e);const a=cp(),o=Gee(h=>h.viewModelData[e]);(i==="undefined"||i==="null")&&(i=null);function l(){return i!=null}const u=(t!==void 0||l())&&o===void 0;Dr.useEffect(()=>{if(u){if(l()){f(i);return}f(t);return}},[]);function f(h,p){n&&d(h,p),a({type:cP.UPDATE,payload:{viewModelKey:e,dataOrKey:h,keyData:p}})}function d(h,p){if(!n)return;const y=n.get(e);if(typeof h=="string"&&p!==void 0){n.set(e,{...y,[h]:p});return}n.set(e,h)}return u?l()?[i,f]:[t,f]:[o??void 0,f]},sPe=new Set(["system_cv_trial_freemium_v1","system_cv_trial_freemium_v2"]);function uPe(){var i;const e=ea(ta.currentUser()),t=ea(e.hasCompleted&&((i=e.data)==null?void 0:i.isAuthenticated)&&ta.accessPolicy());function r(a){var l,u;return t.data?(((u=(l=t.data)==null?void 0:l.permissions)==null?void 0:u.additional)??[]).includes(a):!1}function n(){const a=new Set;return t.data&&sPe.has(t.data.id)&&a.add(Sp.ViewInsights),a}return{isLoaded:e.hasCompleted&&t.hasCompleted,accessPolicy:t.data,policyHasOption:r,gatedPermissions:n()}}const lPe={LOCAL_PERMISSIONS:"local:permissions",BULK_USER_ACTIONS:"bulk:user:actions"},fP=()=>{const e=ea(ta.currentUser()),t=ea(e.hasCompleted&&ta.permissions()),{gatedPermissions:r}=uPe(),[n]=oPe(lPe.LOCAL_PERMISSIONS),i=l=>!t.hasCompleted||t.hasError?!1:!l||!(l!=null&&l.length)?!0:Array.isArray(l)?!l.find(u=>!t.data[u]):!!t.data[l],a=l=>(n||dr.throw(new Sn("Local Permissions should be registered during start up.")),!l||!(l!=null&&l.length)?!0:Array.isArray(l)?!l.find(u=>!n[u]):!!n[l]),o=l=>!t.hasCompleted||t.hasError?"hidden":r.has(l)?t.data[l]?"soft-gate":"hard-gate":t.data[l]?"visible":"hidden";return{permissions:t.data,hasPermissions:i,hasLocalPermissions:a,getGatedPermission:o,isLoaded:t.hasCompleted}};function IY(e){return de.jsx("svg",{...e,children:de.jsx("path",{fill:"currentColor",d:"M13.5 4.5A.5.5 0 0 1 14 4h5.5a.5.5 0 0 1 .5.5V10a.5.5 0 0 1-1 0V5.707l-6.146 6.147a.5.5 0 0 1-.708-.708L18.293 5H14a.5.5 0 0 1-.5-.5M5 7.5A1.5 1.5 0 0 1 6.5 6H9a.5.5 0 0 1 0 1H6.5a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5V15a.5.5 0 0 1 1 0v3.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 5 18.5z"})})}const Ex={"Academic Coach":"teacher","Assistant Head Teacher":"kdm","Consortium Leadership":"kdm","Curriculum Coordinator":"teacher","Curriculum Leader":"teacher","Deputy Head Teacher":"kdm","Deputy Principal":"kdm","Digital Technology Coordinator":"teacher","District Leadership":"kdm","e-Learning/ICT Coordinator":"teacher","Head of Department":"teacher","Head of Faculty":"teacher","Head of Key Stage":"teacher","Head of Subject":"teacher","Head Teacher":"kdm",IT:"kdm","IT/LRC":"kdm","e-Learning Coordinator":"kdm","Instructional Technology Specialist":"teacher","Librarian / Teacher Librarian":"teacher",Principal:"kdm","School Leadership":"kdm","Subject Lead":"teacher",Teacher:"teacher","SSO / SLSO":"teacher","Assistant Principal":"kdm","IT / IT Specialist":"kdm","Learning Support":"teacher","Learning Assistant":"teacher","Educational Assistant (EA)":"teacher","Learning Support Teacher / Resource Teacher":"teacher","Department Head / Manager":"teacher","Curriculum Coordinator / Consultant":"teacher","School Counsellor / Guidance Counsellor":"teacher","Vice-Principal":"kdm",Superintendent:"kdm","Director of Education":"kdm","Business Manager":"kdm",Professor:"kdm",Lecturer:"teacher","Course Coordinator / Administrator":"teacher","Digital Learning Manager":"teacher",Tutor:"teacher","Teaching Fellow":"teacher",Librarian:"teacher",Researcher:"teacher","Learning Technologist":"teacher","Teaching Assistant":"teacher"};var $l=(e=>(e.Disabled="Disabled",e.Active="Active",e.Inactive="Inactive",e))($l||{}),Tf=(e=>(e.Unknown="Unknown",e.Staff="Staff",e.Learner="Learner",e.System="System",e))(Tf||{}),Ko=(e=>(e.Guest="Guest",e.User="User",e.Admin="Admin",e.SuperAdmin="SuperAdmin",e))(Ko||{});const cPe=["rm unify glow","glow","rm unify"],jl={getInitials(e,t){let r="";return e!=null&&e.length&&(r=e[0]),t!=null&&t.length&&(r+=t[0]),r.toUpperCase()},getInitialsFromFullName(e){const t=(e==null?void 0:e.split(" "))??[];if(!t.length)return"";const r=t[0],n=t.length>1?t[1]:"";return jl.getInitials(r,n)},getFullName(e){return e!=null&&e.name?`${(e==null?void 0:e.name)??""} ${(e==null?void 0:e.surname)??""}`.trim():""},getCommunityName(e){var t;return e!=null&&e.name?`${e.name} ${(t=e.surname)==null?void 0:t.slice(0,1)}`:""},getUserType(e){let t=e.userType;if(typeof t=="number")switch(t){case 0:t=Tf.Unknown;break;case 1:t=Tf.Staff;break;case 2:t=Tf.Learner;break;case 255:t=Tf.System;break}return t},getUserStatus(e){let t=e.status;if(typeof t=="number")switch(t){case 0:t=$l.Disabled;break;case 1:t=$l.Active;break;case 2:t=$l.Inactive;break}return t},getUserStatusFromValue(e){if(typeof e=="number")switch(e){case 0:e=$l.Disabled;break;case 1:e=$l.Active;break;case 2:e=$l.Inactive;break}return e},getUserRole(e){var r,n;let t;if("userProfiles"in e&&((n=(r=e.userProfiles)==null?void 0:r.data)!=null&&n[0])&&(t=e.userProfiles.data[0].role),"userProfile"in e&&e.userProfile&&(t=e.userProfile.role),!t)return Ko.User;if(typeof t=="number")switch(t){case 16:t=Ko.Guest;break;case 32:t=Ko.User;break;case 48:t=Ko.Admin;break;case 64:t=Ko.SuperAdmin;break}return t},getUserRoleFromValue(e){if(!e&&e!==0)return Ko.User;if(typeof e=="number")switch(e){case 16:return Ko.Guest;case 32:return Ko.User;case 48:return Ko.Admin;case 64:return Ko.SuperAdmin;default:return Ko.User}return e},getDisplayName(e){var t,r;return(t=e.metadata)!=null&&t.displayName?(r=e.metadata)==null?void 0:r.displayName:jl.getFullName(e)},getYearGroup(e){var t,r,n;return(t=e.masterYearGroup)!=null&&t.id?e.masterYearGroup:(n=(r=e.yearGroups)==null?void 0:r.data)!=null&&n.length?ac.first(e.yearGroups.data):null},hasLegacySso(e){var t;return(t=e==null?void 0:e.authenticationMethods)!=null&&t.length?e.authenticationMethods.some(r=>!r.local&&r.isLegacy):!1},hasNonLegacySso(e){var t;return(t=e==null?void 0:e.authenticationMethods)!=null&&t.length?e.authenticationMethods.some(r=>!r.local&&!r.isLegacy):!1},hasSso(e){return jl.hasLegacySso(e)||jl.hasNonLegacySso(e)},hasRmUnifySso(e){var t;return(t=e==null?void 0:e.authenticationMethods)!=null&&t.length?e.authenticationMethods.some(r=>{var n;return cPe.includes((n=r.displayName)==null?void 0:n.toLowerCase())}):!1},getPersonaFromJobTitle(e){if(!e)return"teacher";const t={};for(const n in Ex)Ex.hasOwnProperty(n)&&(t[n.toLowerCase()]=Ex[n]);const r=t[e.toLowerCase()];return r||"teacher"},isKDM(e){return e?jl.getPersonaFromJobTitle(e)==="kdm":!1},getValidYearGroups(e){return e?e.filter(t=>t.value!==0):[]}};function PY(e){return de.jsx("svg",{...e,children:de.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.378 5.167a.62.62 0 0 1 .873 0l7.535 7.507a.494.494 0 1 0 .697-.7l-7.536-7.506a1.605 1.605 0 0 0-2.266 0l-7.536 7.506a.494.494 0 1 0 .697.7zM6.206 13.43a.494.494 0 0 0-.987 0v6.077c0 .273.22.494.494.494h4.437a.494.494 0 0 0 .494-.494v-4.42c0-.335.274-.611.616-.611h1.109c.342 0 .616.276.616.611v4.42c0 .273.22.494.493.494h4.438a.494.494 0 0 0 .494-.494V13.43a.494.494 0 0 0-.988 0v5.583h-3.45v-3.926c0-.885-.72-1.599-1.603-1.599h-1.11c-.883 0-1.603.714-1.603 1.6v3.925h-3.45z",clipRule:"evenodd"})})}const fPe="_toggle_1f3ot_1",dPe={toggle:fPe},hPe=4,kY="shared.customerSelectorItem";function pPe(e){var n;function t(i,a=null){a!==e.currentCustomerId&&(Ba.logUserAction({id:e.currentCustomerId,newCustomerId:a},{actionType:jt.SwitchCustomer,entity:kn.Customer,location:Ta.UserOptions}),Dn.PageLoad(r(a)))}function r(i){return i?`/change-customer?customerId=${i}`:"/change-customer"}return!((n=e.customers)!=null&&n.length)||!e.currentCustomerId?de.jsx(de.Fragment,{}):e.customers.length<=1?de.jsx(de.Fragment,{}):e.customers.length>hPe?de.jsx(Eo.Item,{as:"li",onClick:i=>t(),className:"cursor-pointer",children:de.jsxs("div",{className:"d-flex justify-content-between",children:[de.jsx(Nh,{namespace:kY,phrase:"title"}),de.jsx(oc,{svg:PY,className:"svg-container text-secondary"})]})}):de.jsxs("li",{className:"dropdown-item dropstart cursor-pointer",children:[de.jsxs("div",{className:`dropdown-toggle d-flex justify-content-between ${dPe.toggle}`,"data-bs-toggle":"dropdown","aria-expanded":"false",children:[de.jsx(Nh,{namespace:kY,phrase:"title"}),de.jsx(oc,{svg:PY,className:"svg-container text-secondary"})]}),de.jsx("ul",{className:"dropdown-menu",children:e.customers.map((i,a)=>{const o=i.id===e.currentCustomerId;return de.jsx(Eo.Item,{as:"li",onClick:l=>t(l,i.id),disabled:o,children:i.name},a)})})]})}var du=(e=>(e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1",e))(du||{});const Lv={1:"/integrations/share-integrations/enable-share-integrations",2:"/using-clickview/classrooms/classrooms",3:"/using-clickview/interactive-videos/interactive-videos",4:"/administration/user-permissions/create-staff-student-accounts",5:"/using-clickview/create-manage/how-to-upload-videos",6:"/using-clickview/share/add-videos-school-library",7:"/administration/user-permissions/sso-grade-level-mappings",8:"/administration/content-permissions/content-review-restrictions",9:"/administration/content-permissions/grade-level",10:"/administration/user-permissions/create-staff-student-accounts",11:"/integrations/casting/vivi",12:"/integrations/casting/enable-apple-tv",13:"/integrations/learning-management-systems/school-id-rss-feed",14:"/administration/content-permissions/marc-record-formats",15:"/administration/content-permissions/export-libraries",16:"/using-clickview/student-view/video-sharing-students",17:"/using-clickview/share/share-videos",18:"/using-clickview/analytics/student-reach",19:"/using-clickview/create-manage/playlists",20:"/using-clickview/create-manage/how-to-upload-videos",21:"/integrations/learning-management-systems"},vPe={[du.US]:Lv,[du.AU]:{...Lv,4:"/administration/user-permissions/manage-sso-user-accounts",7:"/administration/user-permissions/sso-year-level-mappings",9:"/administration/content-permissions/year-level"},[du.UK]:{...Lv,4:"/administration/user-permissions/manage-sso-user-accounts",7:"/administration/user-permissions/sso-year-level-mappings",9:"/administration/content-permissions/year-level"},[du.NZ]:{...Lv,4:"/administration/user-permissions/manage-sso-user-accounts",7:"/administration/user-permissions/sso-year-level-mappings",9:"/administration/content-permissions/year-level"}},gPe={[du.US]:"/help",[du.AU]:"/en-au/help",[du.UK]:"/en-gb/help",[du.NZ]:"/en-au/help"};class mPe{constructor(){this.name="LocalizedArticleHelper"}static get Instance(){return this.instance||(this.instance=new this)}initialize(t){this.initializeUrl(t),this.initializeInstanceRegion(t)}initializeUrl(t){if(!t.product){dr.throw(new Sn(`${this.name} requires a product name`));return}if(this.product=t.product,this.marketingSiteUrl=t.marketingSiteUrl,t.product===Yo.Online){if(!t.onlineSupportSiteUrl){dr.throw(new Sn("ArticleHelper requires a online support site url"));return}this.supportSiteUrl=t.onlineSupportSiteUrl;return}if(!t.liteSupportSiteUrl){dr.throw(new Sn("ArticleHelper requires a lite support site url"));return}this.supportSiteUrl=t.liteSupportSiteUrl}initializeInstanceRegion(t){if(!t.instanceRegion){dr.throw(new Sn(`${this.name} requires an instance region`));return}this.instanceRegion=t.instanceRegion,this.product===Yo.Primary&&(this.liteArticleUrlMapping=vPe[this.instanceRegion])}validate(){return this.supportSiteUrl&&this.instanceRegion?!0:this.product===Yo.Primary&&!this.liteArticleUrlMapping?(dr.throw(new Sn(`${this.name} requires a lite article url mapping`)),!1):(dr.throw(new Sn(`${this.name} was not initialized`)),!1)}getArticle(t){return this.validate()?t?Xo.safeUrlConcat(this.getSupportSiteUrl(),this.liteArticleUrlMapping[t]):this.getSupportSiteUrl():""}getSupportSiteUrl(){return this.validate()?Xo.safeUrlConcat(this.supportSiteUrl,gPe[this.instanceRegion]):""}getLiteArticle(t){return this.product===Yo.Online&&dr.throw(new Sn("ArticleHelper.getLiteArticle() should not be used in Online")),this.getArticle(t)}getSupportRequestUrl(){return this.validate()?Xo.safeUrlConcat(this.marketingSiteUrl,"/contact-us/support"):""}getAuthorBlogUrl(t){return!this.marketingSiteUrl||!t?"":Xo.safeUrlConcat(this.marketingSiteUrl,`blog/author/${t}`)}getHybridArticle(t,r){return this.product===Yo.Online?this.getSupportSiteUrl():this.getLiteArticle(r)}}const xC=mPe.Instance,yPe="shared.userOptions",DY=Gr.encloseNamespace(yPe);function _Pe(e,t,r){const{hasPermissions:n}=fP(),i=ac.sortBy(t,"order");if(e&&(i.push({label:DY("helpCentre"),order:0,url:xC.getSupportSiteUrl(),analyticsData:{url:xC.getSupportSiteUrl()},analyticsOptions:{actionType:jt.Click,entity:kn.Url,descriptor:Yl.ExternalLink,location:Ta.UserOptions}}),n(Sp.ViewProductBoard)&&!r)){const o=Xo.safeUrlConcat(e.productBoardUrl,"tabs/23-what-s-new");i.push({label:DY("whatsNew"),order:0,url:o,analyticsData:{url:o},analyticsOptions:{actionType:jt.Click,entity:kn.Url,descriptor:Yl.ExternalLink,location:Ta.UserOptions}})}const a={main:[],logOut:[]};return i.forEach(o=>{o.section==="logOut"?a.logOut.push(o):a.main.push(o)}),a}function EPe(e,t,r){var u;const n=ea(ta.currentUser()),i=ea(((u=n.data)==null?void 0:u.isAuthenticated)&&ZI.userProducts());if(t||!i.data)return;const a=[...i.data],o=Array.isArray(e)?e:[e];let l=a.filter(f=>!o.includes(f.id),"order");return typeof r=="function"&&(l=r(l)),ac.sortBy(l)}const SPe="_avatarContainer_1z0er_1",wPe="_productLogo_1z0er_5",bPe="_counter_1z0er_9",qg={avatarContainer:SPe,productLogo:wPe,counter:bPe},TPe="shared.userOptions",gh=Gr.encloseNamespace(TPe);function LY({item:e}){if(e.appLink)return de.jsxs(Eo.Item,{as:Ro,appLink:e.appLink,openInNewTab:e.openInNewTab,onClick:e.onClick,className:"d-flex align-items-center",analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,children:[e.counter>0&&de.jsx("div",{className:`${qg.counter} badge bg-danger rounded-pill fw-semibold me-1`,children:e.counter}),de.jsxs("div",{className:"d-flex justify-content-between",children:[e.label,!!e.openInNewTab&&de.jsx(oc,{svg:IY,className:"svg-container text-secondary"})]})]});if(e.url){let t=function(r){var n;r.preventDefault(),(n=e.onClick)==null||n.call(e),e.analyticsData&&e.analyticsOptions&&Ba.logUserAction({href:e.url,...e.analyticsData},e.analyticsOptions),Dn.PageLoad(e.url,!0)};return de.jsxs(Eo.Item,{as:"a",href:e.url,target:e.openInNewTab===!1?null:"_blank",className:"d-flex align-items-center",onClick:r=>t(r),children:[e.counter>0&&de.jsx("div",{className:`${qg.counter} badge bg-danger rounded-pill fw-semibold me-1`,children:e.counter}),de.jsxs("div",{className:"d-flex justify-content-between",children:[e.label,e.openInNewTab!==!1&&de.jsx(oc,{svg:IY,className:"svg-container text-secondary"})]})]})}return de.jsx(de.Fragment,{})}const APe=({appLinks:e})=>{const t=iPe(),r=t.xs||t.sm;return de.jsxs(de.Fragment,{children:[de.jsx(Ro,{appLink:e.signIn,className:"btn btn-link ps-0",analyticsOptions:{actionType:jt.Click,location:Ta.TopNav,entity:kn.Url,descriptor:Ch.SignIn},analyticsData:{},children:gh("signIn")}),de.jsx(Ro,{appLink:e.signUp,className:"btn btn-dark ms-2",analyticsOptions:{actionType:jt.Click,location:Ta.TopNav,entity:kn.AppLink,workflowPhase:el.Start,descriptor:Ch.SignUp},analyticsData:{},tag:"button",children:gh(r?"signUpForMobile":"signUp")})]})},RPe=({appLinks:e})=>de.jsx(Ro,{appLink:e.signIn,className:"btn btn-dark d-inline-block",analyticsOptions:{actionType:jt.Click,location:Ta.TopNav,entity:kn.AppLink,workflowPhase:el.Start,descriptor:Ch.SignIn},analyticsData:{},children:gh("signIn")});function xPe(e){var _,E,S,w,T,C;const[t,r]=Se.useState(!1),{hasPermissions:n}=fP(),i=ea(ta.currentUser()),a=ea(((_=i.data)==null?void 0:_.id)&&ta.user(i.data.id)),o=ea(al.config()),l=ea(((E=i.data)==null?void 0:E.isAuthenticated)&&ta.customers(i.data.id)),u=_Pe(o.data,e.additionalItems,e.hideWhatsNew),f=n(Sp.GuestExperience),d=e.hideProductList||f,h=EPe(e.productId,d,e.transform);function p(x){r(x),Ba.logUserAction({},{actionType:jt.Click,entity:kn.AppLink,location:Ta.UserOptions,descriptor:x?Yl.Open:Yl.Close})}function y(x){Ba.logUserAction({id:x.id,name:x.name},{actionType:jt.Click,entity:kn.Product,location:Ta.UserOptions,descriptor:Yl.ExternalLink})}return!i.hasCompleted||i.data.isAuthenticated&&!a.hasCompleted||!o.data?de.jsx(de.Fragment,{}):i.data.isAuthenticated?de.jsxs(Eo,{className:"position-relative",onToggle:p,children:[de.jsx(Eo.Toggle,{id:"userOptions",variant:"","aria-label":"Options menu",className:`${qg.avatarContainer} no-caret border-0 p-0`,children:de.jsx(nPe,{imageUrl:iu.createUrl(i.data.avatar,{size:yy.Small}),imageCdnUrl:o.data.imageCdnUrl,initials:jl.getInitials(i.data.givenName,i.data.familyName),showDot:u.main.some(x=>x.counter>0)})}),de.jsxs(Eo.Menu,{as:"ul",align:"end",children:[de.jsxs(Eo.Item,{as:"div",children:[de.jsxs("div",{className:"m-0 d-flex flex-wrap",children:[de.jsx("strong",{children:i.data.displayName})," ",!f&&de.jsxs("span",{className:"text-secondary",children:["(",i.data.username,")"]})]}),de.jsx("div",{className:"m-0 text-secondary",children:i.data.customerName}),!f&&((S=a.data)==null?void 0:S.masterYearGroup)&&de.jsx("p",{className:"m-0 text-secondary",children:a.data.masterYearGroup.name})]}),de.jsx(pPe,{isParentOpen:t,currentCustomerId:(w=i.data)==null?void 0:w.customerId,customers:(T=l.data)==null?void 0:T.data}),de.jsx(Eo.Divider,{}),u.main.map((x,R)=>de.jsx(LY,{item:x},R)),de.jsx(Eo.Divider,{}),h==null?void 0:h.map((x,R)=>de.jsxs(Eo.Item,{as:"a",href:x.url,target:"_blank",className:"d-flex align-items-center py-1",onClick:()=>y(x),children:[de.jsx("img",{src:x.imageUrl,className:`${qg.productLogo} me-2`}),x.name]},R)),!!(h!=null&&h.length)&&de.jsx(Eo.Divider,{}),u.logOut.map((x,R)=>de.jsx(LY,{item:x},R)),de.jsx(Eo.Item,{as:Ro,appLink:e.appLinks.signOut,analyticsData:{id:(C=i.data)==null?void 0:C.id},analyticsOptions:{actionType:jt.Click,location:Ta.UserOptions,entity:kn.AppLink,descriptor:Ch.SignOut},children:gh("signOut")})]})]}):e.displaySignUp?de.jsx(APe,{...e}):de.jsx(RPe,{...e})}function CPe(e){return de.jsx("svg",{...e,children:de.jsx("path",{fill:"currentColor",d:"M4.794 4c-.67 0-1.207.541-1.207 1.21v13.58c0 .669.538 1.21 1.207 1.21h14.499c.67 0 1.207-.541 1.207-1.21V5.21c0-.669-.538-1.21-1.207-1.21zm-.207 1.21c0-.12.093-.21.207-.21h14.499c.114 0 .207.09.207.21v13.58c0 .12-.093.21-.207.21h-.82c.09-.212.126-.451.09-.696l-.977-6.73a1.3 1.3 0 0 0-1.474-1.099l-.791.115a1.3 1.3 0 0 0-.628.273A1.3 1.3 0 0 0 13.4 9.7h-1.6c-.302 0-.58.103-.8.275a1.3 1.3 0 0 0-.8-.275H8.6A1.3 1.3 0 0 0 7.3 11v7.6q0 .21.063.4H4.794a.207.207 0 0 1-.207-.21zM14.7 15.36l.499 3.433q.015.107.047.207h-.609a1.3 1.3 0 0 0 .063-.4zM8.3 11a.3.3 0 0 1 .3-.3h1.6a.3.3 0 0 1 .3.3v7.6a.3.3 0 0 1-.3.3H8.6a.3.3 0 0 1-.3-.3zm3.5-.3h1.6a.3.3 0 0 1 .3.3v7.6a.3.3 0 0 1-.3.3h-1.6a.3.3 0 0 1-.3-.3V11a.3.3 0 0 1 .3-.3m3.41 1.22a.3.3 0 0 1 .254-.34l.792-.115a.3.3 0 0 1 .34.254l.978 6.729a.3.3 0 0 1-.254.34l-.792.115a.3.3 0 0 1-.34-.254z"})})}function OPe(e){return de.jsx("svg",{...e,children:de.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.893 7.5H5.6A1.6 1.6 0 0 0 4 9.1v9.3A1.6 1.6 0 0 0 5.6 20h12.8a1.6 1.6 0 0 0 1.6-1.6V9.1a1.6 1.6 0 0 0-1.6-1.6h-5.096l2.733-2.535a.55.55 0 0 0 0-.816.657.657 0 0 0-.88 0l-3.059 2.837L9.04 4.15a.657.657 0 0 0-.88 0 .55.55 0 0 0 0 .816zM5.6 8.7h12.8c.22 0 .4.18.4.4v9.3a.4.4 0 0 1-.4.4H5.6a.4.4 0 0 1-.4-.4V9.1c0-.22.18-.4.4-.4m11.407 3.413a.6.6 0 0 1-.24.814l-4.4 2.4a.6.6 0 0 1-.887-.527v-1.39l-3.513 1.917a.6.6 0 1 1-.574-1.054l4.4-2.4a.6.6 0 0 1 .887.527v1.39l3.513-1.917a.6.6 0 0 1 .814.24",clipRule:"evenodd"})})}const IPe="_navItem_7o62g_5",PPe="_active_7o62g_18",kPe="_svg_7o62g_21",DPe="_background_7o62g_24",LPe="_backgroundExchange_7o62g_33",NPe="_backgroundTv_7o62g_37",MPe="_iconContainer_7o62g_42",$Pe="_text_7o62g_57",FPe="_exchange_7o62g_66",jPe="_clickviewTv_7o62g_72",Ds={navItem:IPe,active:PPe,svg:kPe,background:DPe,backgroundExchange:LPe,backgroundTv:NPe,iconContainer:MPe,text:$Pe,exchange:FPe,clickviewTv:jPe};function UPe(e){return e==="exchange"?Ds.backgroundExchange:e==="tv"?Ds.backgroundTv:""}function NY(e){const{appLink:t,typeClass:r,active:n,text:i,svg:a}=e;return de.jsxs(Ro,{appLink:t,className:`${Ds.navItem} ${r} ${n?Ds.active:""}`,children:[de.jsx("div",{className:Ds.iconContainer,children:de.jsx(oc,{svg:a,className:Ds.svg})}),de.jsx("div",{className:Ds.text,children:i})]})}function qPe(e){return de.jsxs("div",{className:"position-relative",children:[de.jsx("div",{className:`${Ds.background} ${UPe(e.activeApp)}`}),de.jsx(NY,{appLink:{application:ki.EXCHANGE,action:So.Exchange.INDEX},typeClass:Ds.exchange,active:e.activeApp==="exchange",text:"Exchange Archive",svg:CPe}),de.jsx(NY,{appLink:{application:ki.TV,action:So.Tv.INDEX},typeClass:Ds.clickviewTv,active:e.activeApp==="tv",text:"ClickView TV",svg:OPe})]})}var Lne=(e=>(e[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other",e[e.ClickView=254]="ClickView",e[e.System=255]="System",e))(Lne||{}),BPe=(e=>(e.Unclassified="Unclassified",e.Primary="Primary",e.Secondary="Secondary",e.K12="K12",e.Tertiary="Tertiary",e.NonEducational="NonEducational",e.Partners="Partners",e.Internal="Internal",e.Other="Other",e.ClickView="ClickView",e.System="System",e))(BPe||{});const Nne={customer(e,t,r,n){return{url:Xo.urlBuilder(`{gateway}/v1/objects/${e}`,{query:n?"organisation":""}),key:`customers:${e}:${n?"with-organization":""}`,success:t,error:r}},yearGroups(e){return{url:`{gateway}/v1/customers/${e}/year-groups?query={orderby:value}rating`,key:"year:groups"}},updateYearGroupRatings(e,t,r,n){return{url:`{gateway}/v1/customers/${e}/year-groups`,key:"update:year:group:ratings",type:Vi.PUT,data:t,success:r,error:n,invalidationKeys:["year:groups"]}}},VPe="_nav_fxrnb_1",HPe="_logo_fxrnb_11",zPe="_navIconContainer_fxrnb_23",Nv={nav:VPe,logo:HPe,navIconContainer:zPe},WPe="exchange.header",MY={application:ki.DEFAULT,action:So.Default.INDEX};function GPe(e){var d,h,p;const t=ea(al.config()),r=ea(ZI.userProducts()),n=ea(ta.currentUser()),a=((h=ea(!!((d=n.data)!=null&&d.isAuthenticated)&&Nne.customer(n.data.customerId)).data)==null?void 0:h.customerType)===Lne.Tertiary,{exchangeTvProductOption:o}=XIe(null),{hasPermissions:l}=fP(),u=(p=r.data)==null?void 0:p.find(y=>y.id===Yo.Exchange);function f(y){return a&&!l(Sp.ViewCustomerAnalytics)?y.filter(_=>_.id!==Yo.Analytics):y}return de.jsx("nav",{className:`navbar navbar-expanded ps-3 w-100 ${Nv.nav}`,children:de.jsxs("div",{className:"container-fluid",children:[de.jsx("div",{className:`d-flex align-items-center justify-content-start ${Nv.headerLeft}`,children:de.jsx(Ro,{appLink:MY,className:`navbar-brand text-hide align-top ${Nv.logo} d-inline-block'`,analyticsData:{url:Ai.getHref(MY)},analyticsOptions:{actionType:jt.Click,entity:kn.Url,location:Ta.TopNav,descriptor:Yl.ClickViewLogo},children:de.jsx(YIe,{})})}),u&&o==="exchange_and_tv"&&de.jsx("div",{className:`${Nv.navIconContainer} position-absolute w-100 d-flex align-items-center justify-content-center`,children:de.jsx(qPe,{activeApp:e.activeApp})}),de.jsxs("div",{className:"d-flex align-items-center justify-content-end",children:[de.jsx(Ro,{appLink:{application:ki.DEFAULT,action:So.Default.GIVE_FEEDBACK},className:"btn btn-outline-dark me-3",children:de.jsx(Nh,{namespace:WPe,phrase:"giveFeedback"})}),!!t.data&&de.jsx("div",{className:"me-3",children:de.jsx(xPe,{productId:Yo.Exchange,appLinks:{signOut:{application:ki.DEFAULT,action:So.Default.LOG_OUT}},transform:f})})]})]})})}const KPe="_content_ulv6h_1",YPe="_container_ulv6h_6",XPe="_fixedBottomRightContainer_ulv6h_13",QPe="_lockedWidth_ulv6h_19",Mv={content:KPe,container:YPe,fixedBottomRightContainer:XPe,lockedWidth:QPe},Mne="banner-portal-container",JPe=e=>(kIe(),GIe(),Se.useEffect(()=>{document.body.style.overflowY="scroll"},[]),de.jsx(yx,{renderError:()=>zre({error:new $f}),children:de.jsxs("div",{className:Mv.lockedWidth,children:[de.jsx(GPe,{activeApp:e.activeApp}),de.jsxs("div",{className:Mv.content,children:[de.jsx("div",{className:`container-fluid ${Mne}`}),de.jsxs("div",{className:`container px-3 ${Mv.container}`,children:[de.jsx(yx,{throwError:$f,children:e.contentChild}),de.jsx(KIe,{})]})]}),de.jsx(yx,{throwError:WIe,children:e.popupChild}),de.jsx("div",{className:"d-flex flex-column align-items-end",children:!!e.alertChild&&de.jsx("div",{className:Mv.fixedBottomRightContainer,children:e.alertChild})}),de.jsx("div",{style:{display:"none"},children:e.hiddenChild})]})}));function ZPe(e){return de.jsx(Kee,{store:e.store,children:de.jsx(Lbe,{children:de.jsx(zIe,{children:de.jsx(HIe,{containerClassName:Mne,children:de.jsx(JPe,{...e})})})})})}class eke extends qIe{constructor(r){super(r);Rn(this,"childComponents",{});Rn(this,"preventScrollTop",!1);Rn(this,"activeApp")}initialize(){var n,i;this.listenTo(mn.SHELL,En.ROUTE,this.onRouteChange),this.listenTo(mn.SHELL,"prevent:scroll:top",()=>this.preventScrollTop=!0);const r=(i=(n=yte.getCurrentContext())==null?void 0:n.appLink)==null?void 0:i.application;this.setActiveApp(r)}get title(){return!1}get name(){return"DefaultLayoutView"}get template(){return()=>'<div id="dialog-region"></div><div class="layout-region position-relative"></div>'}static getCacheKey(){return`${hp.DEFAULT_LAYOUT}`}regions(){return{layout:{el:".layout-region",replaceEl:!0}}}getChildComponents(){return{contentChild:this.childComponents[un.CONTENT],popupChild:this.childComponents[un.POPUP],alertChild:this.childComponents[un.ALERT],hiddenChild:this.childComponents[un.HIDDEN],store:this.options.store,activeApp:this.activeApp}}unsetRegion(r){delete this.childComponents[r],this.renderLayout()}closePopup(){this.unsetRegion(un.POPUP)}showChildView(r,n,i={}){this.childComponents[r]=n,r===un.CONTENT&&(!this.preventScrollTop&&!i.preventScrollTop&&Ah(window).scrollTop(0),this.preventScrollTop=!1),this.renderLayout()}renderLayout(){const r={...this.getChildComponents()};super.showChildView("layout",de.jsx(ZPe,{...r}))}setActiveApp(r){if(r===ki.EXCHANGE){this.activeApp="exchange";return}if(r===ki.TV){this.activeApp="tv";return}this.activeApp=null}onRouteChange(r,n){n.isAppRoute&&this.setActiveApp(r.application)}}function tke(e,t){e.registerLayout(hp.DEFAULT_LAYOUT,eke),t(e)}function rke(e,t,r){zm.setUpVariables({isDevelopment:!1}),r(e,t)}var Bg=(e=>(e.Fifo="FifoMemoryCache",e))(Bg||{}),Vg=(e=>(e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider",e))(Vg||{});class nke extends za{get defaultProps(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}constructor(t){super(t),uh(this,"name")||dr.throw(new Sn("Must provide a name when extending BaseDataService")),uh(this,"channelName")||dr.throw(new Sn(`Must provide a channelName for ${uh(this,"name")}`));const r=[...this.defaultProps,...this.props||[]];this.dataRequestSignatures={},this.mergeOptions(t,r)}getCursors(t){const r=this.cache.get(t);return r?r.cursors:{next:"",previous:""}}clearCacheAndGet(t){const{callback:r,errorCallback:n,eventPrefix:i}=t,{syncEvent:a,errorEvent:o}=this.getEventNames(i),l=this.cache.get(i);if(l&&l.openRequest){const u=d=>{rn(n)&&this.stopListening(this.getChannel(),o,n),rn(r)&&r(d)},f=()=>{rn(r)&&this.stopListening(this.getChannel(),a,r),rn(n)&&n()};this.listenToOnce(this.getChannel(),a,u),this.listenToOnce(this.getChannel(),o,f);return}this.cache.remove(t.eventPrefix),this.get(t)}get(t){const{callback:r,errorCallback:n,eventPrefix:i,resource:a,formatData:o,expiryTime:l,successHandler:u,errorHandler:f,bootstrapName:d,invalidateFlight:h}=t,{syncEvent:p,requestEvent:y,successEvent:_,errorEvent:E}=this.getEventNames(i),S=this.getChannel(),w=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[d]&&(this.cacheData(i,this.bootstrapData[d],o,{openRequest:!1,timestamp:w}),delete this.bootstrapData[d]);const T=this.cache.get(i);let C;T&&(C=T.data);const x=T&&T.openRequest,R=this.isExpired(i,l);if(x){const O=D=>{rn(n)&&this.stopListening(this.getChannel(),E,n),rn(r)&&r(D)},m=()=>{rn(r)&&this.stopListening(this.getChannel(),p,r),rn(n)&&n()};this.listenToOnce(S,p,O),this.listenToOnce(S,E,m)}if((!this.cache.has(i)||R)&&(S.trigger(y),this.listenToResponse({eventPrefix:i,formatData:o,cacheOptions:{timestamp:w},callback:r,errorCallback:n,successHandler:u,errorHandler:f,invalidateFlight:h}),this.cacheData(i,null,null,{openRequest:!0,timestamp:w}),this.dataProvider.read(a,{channel:this.getTransportChannel(),successEvent:_,errorEvent:E})),C&&rn(r)&&!R&&r(C),C)return C}create(t){const{eventPrefix:r,resource:n,data:i,formatData:a,callback:o,errorCallback:l,invalidationKeys:u,successHandler:f,errorHandler:d,invalidateFlight:h}=t,{requestEvent:p,successEvent:y,errorEvent:_}=this.getEventNames(t.eventPrefix),E=this.getChannel(),S=this.getTransportChannel();E.trigger(p),this.listenToResponse({eventPrefix:r,formatData:a,invalidationKeys:u,callback:o,errorCallback:l,successHandler:f,errorHandler:d,invalidateFlight:h}),this.dataProvider.create(n,i,{channel:S,successEvent:y,errorEvent:_})}update(t){const{data:r,callback:n,errorCallback:i,resource:a,formatData:o,eventPrefix:l,invalidationKeys:u,errorHandler:f,successHandler:d,invalidateFlight:h}=t,{requestEvent:p,successEvent:y,errorEvent:_}=this.getEventNames(t.eventPrefix),E=this.getChannel(),S=this.getTransportChannel();E.trigger(p),this.listenToResponse({eventPrefix:l,formatData:o,invalidationKeys:u,callback:n,errorCallback:i,successHandler:d,errorHandler:f,invalidateFlight:h}),this.dataProvider.update(a,r,{channel:S,successEvent:y,errorEvent:_})}delete(t){const{eventPrefix:r,resource:n,callback:i,errorCallback:a,invalidationKeys:o,successHandler:l,errorHandler:u,invalidateFlight:f}=t,{successEvent:d,errorEvent:h}=this.getEventNames(r),p=this.getTransportChannel(),y={noCache:!0,clearCacheKey:!0};this.listenToResponse({eventPrefix:r,invalidationKeys:o,callback:i,errorCallback:a,cacheOptions:y,successHandler:l,errorHandler:u,invalidateFlight:f}),this.dataProvider.delete(n,{channel:p,successEvent:d,errorEvent:h})}listenToResponse(t){const{eventPrefix:r,formatData:n,callback:i,errorCallback:a,successHandler:o,errorHandler:l,invalidationKeys:u,cacheOptions:f={},invalidateFlight:d}=t,{syncEvent:h,successEvent:p,errorEvent:y,successAlertEvent:_,errorAlertEvent:E}=this.getEventNames(r),S=this.getChannel(),w=this.getTransportChannel(),T=this.getAlertChannel();if(rn(i)&&this.listenToOnce(S,h,i),rn(a)&&this.listenToOnce(S,y,a),this.stopListening(T,_),this.stopListening(T,E),rn(o)&&this.listenToOnce(T,_,o),rn(l)&&this.listenToOnce(T,E,l),!rn(l)&&l!==!1&&rn(this.defaultErrorHandler)&&this.listenToOnce(T,E,this.defaultErrorHandler),this.hasRequestSignature(r))return;this.setRequestSignature(r);const C=(R,...O)=>{this.stopListening(S,y,a),T.trigger(_,R,...O);const m=f.noCache?this.formatData(R,n):this.cacheData(r,R,n);f.clearCacheKey&&this.cache.remove(r),S.trigger(h,m),u&&u.length&&this.cache.invalidate(u,D=>S.trigger(`${D}:invalidate`),d)},x=(...R)=>{this.stopListening(S,h,i);const O=this.dataProvider.parseError(...R);T.trigger(E,O),S.trigger(y,O),!f.noCache&&this.cacheData(r,null,null)};this.listenTo(w,p,C),this.listenTo(w,y,x)}cacheData(t,r,n,i={}){const{openRequest:a=!1}=i;let{timestamp:o}=i;o||(o=this.currentTimestamp());const l=this.processPagination(r),u=this.formatData(r,n);return this.cache.set(t,{data:u,timestamp:o,cursors:l,openRequest:a}),u}processPagination(t){if(!t)return;const{pagination:r}=t;if(r){if(r.cursors)return r.cursors;if(!_g(r.offset)&&!_g(r.pageSize))return this.convertOffsetPaginationToCursors(r);if(r.page)return this.convertLegacyPaginationToCursors(r)}}formatData(t,r){return rn(r)?r(t):t}chain(){const t=[],r=(a,o)=>{rn(a)&&a(o)},n=(a,o)=>{const l=()=>{const u=a.callback;a.callback=f=>{r(u,f),r(t.shift())},this[o](a)};return t.push(l),i},i={func(a){return t.push(()=>{a(t.shift()||(()=>{}))}),i},get(a){return n(a,"get")},create(a){return n(a,"create")},update(a){return n(a,"update")},delete(a){return n(a,"delete")},run(){r(t.shift())}};return i}invalidateCache(t,r=!1){!t||!t.length||this.cache.invalidate(t,n=>this.getChannel().trigger(`${n}:invalidate`),r)}currentTimestamp(){return new Date().valueOf()}isExpired(t,r){if(!r)return!1;const n=this.cache.get(t);if(!n||!n.timestamp)return!0;const i=1e3,a=n.timestamp,o=r*i;return a<this.currentTimestamp()-o}getEventNames(t){return{syncEvent:`${t}:sync`,requestEvent:`${t}:request`,successEvent:`${t}:success`,errorEvent:`${t}:error`,successAlertEvent:`${t}:success:alert`,errorAlertEvent:`${t}:error:alert`}}getTransportChannel(){return Mr.Radio.channel(`${this.channelName}:transport`)}getAlertChannel(){return Mr.Radio.channel(`${this.channelName}:alert`)}setRequestSignature(t){this.dataRequestSignatures[t]=t}hasRequestSignature(t){return!!this.dataRequestSignatures[t]}convertOffsetPaginationToCursors(t){const{offset:r,pageSize:n,totalItems:i}=t,a=i>0&&r<i&&r+n,o=i>0&&r>0&&Math.max(r-n,0),l={};if(a&&a<i&&(l.next=a.toString()),Rf(o)&&(l.previous=o.toString()),!Sh(l))return l}convertLegacyPaginationToCursors(t){const{page:r,totalPages:n}=t,i=Rf(r)&&r>0&&r<n&&r+1,a=Rf(r)&&r>1&&r-1,o={};if(i&&i<=n&&(o.next=i.toString()),a&&(o.previous=a.toString()),!Sh(o))return o}}class ike extends za{constructor(){super(),this.viewObjects={}}static get Instance(){return this.instance||(this.instance=new this)}get name(){return"ViewModelService"}updateViewModel(t,r){const n=this.mergeData(r,t.toJSON());return t instanceof Vz&&t.set(n,{silent:!0}),t instanceof mu&&!(t instanceof Vz)&&t.set(n,{silent:!0}),t}get(t,r={},n={}){const{update:i=!1}=n,a=this.viewObjects[t];if(a&&i)return this.updateViewModel(a,r);if(a)return a;const o=this.getLocalData(t,n);return this.set(t,r,o,n)}set(t,r={},n,i){const{ctor:a,storage:o}=i,l=this.mergeData(r,n),u=a?new a(l):new mu(l);return this.viewObjects[t]=u,o&&!n?(this.setLocalData(t,u,null,i),this.setupChangeListeners(t,u,i)):o&&n&&this.setupChangeListeners(t,u,i),u}clear(t){const r=this.viewObjects[t];return r?(this.stopListening(r),r.trigger("destroy"),delete this.viewObjects[t],!0):!1}getLocalData(t,r){const{storage:n}=r;return n?this.getStorageHelper(n.type).get(t):void 0}setLocalData(t,r,n,i){const{storage:a}=i;if(!a||a&&!a.persistProps)return;typeof a.persistProps=="string"&&(a.persistProps=[a.persistProps]);let o;r instanceof mu&&(o=r.pick(a.persistProps)),this.getStorageHelper(a.type).set(t,o)}setupChangeListeners(t,r,n){const{storage:i}=n;!i||i&&!i.persistProps||(typeof i.persistProps=="string"&&(i.persistProps=[i.persistProps]),Je.each(i.persistProps,a=>{this.listenTo(r,`change:${a}`,Je.partial(this.setLocalData,t,Je,Je,n))}))}mergeData(t,r){if(!r)return t;if(Je.isObject(t)&&Je.isObject(r))return Je.extend(t,r);dr.throw(new Sn("defaultValues and existingData are not of the same datatype and cannot be merged"))}getStorageHelper(t){switch(t){case Ls.LocalStorage:return Hi;case Ls.SessionStorage:return jg}}}const $ne=ike.Instance;var dP=(e=>(e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary",e))(dP||{});class ake extends Dc{constructor(t){super(t)}get name(){return"FileTypeError"}get lang(){return"upload.fileType"}get dialogOptions(){return{title:Gr.getPhrase(this.lang,"heading"),text:Gr.getPhrase(this.lang,"body"),buttons:[{text:Gr.getPhrase(this.lang,"okay"),className:"btn btn-dark",success:!0},{text:Gr.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}const oke=["pdf"],ske=["doc","docx","dotx","dot","rtf","docm","odt"],uke=["csv","txt"],lke=["xlsx"],$Y=["jpg","jpeg","png","bmp","gif","webp"],FY=["3gp","3gpp","asx","avi","divx","flv","m2t","m2ts","m2v","m4v","mkv","mod","mov","mp4","mpe","mpeg","mpg","mts","ogv","qt","ts","vob","webm","wmv"],cke=["zip"],fke=["ppt","pps","pptx"],dke=["srt"],$v={VIDEO:`.${FY.join(",.")}`,MIXED_MEDIA:`.${$Y.join(",.")},${FY.join(",.")}`,RESOURCES:`.${[...ske,...lke,...fke,...oke,...uke,...$Y,...cke].join(",.")}`,SUBTITLES:`.${dke.join(",.")}`},hke={requestUpload(e,t){const r=e.name.split("."),n=t===dP.Permanent?null:Jl.add(new Date,7,"days").toISOString(),i={name:r.join("."),extension:r.length>1?r.pop():"",size:e.size,lifestyle:t,dateExpires:n,contentType:e.type||"application/octet-stream",chunkUploadEnabled:!0};return{url:"{gateway}/v1/files/upload",key:"upload:file",type:Vi.POST,data:i}}};var Sx={exports:{}},jY;function pke(){return jY||(jY=1,(function(e,t){(function(n,i){e.exports=i()})(self,function(){return(function(){var r={3099:(function(o){o.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}}),6077:(function(o,l,u){var f=u(111);o.exports=function(d){if(!f(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}}),1223:(function(o,l,u){var f=u(5112),d=u(30),h=u(3070),p=f("unscopables"),y=Array.prototype;y[p]==null&&h.f(y,p,{configurable:!0,value:d(null)}),o.exports=function(_){y[p][_]=!0}}),1530:(function(o,l,u){var f=u(8710).charAt;o.exports=function(d,h,p){return h+(p?f(d,h).length:1)}}),5787:(function(o){o.exports=function(l,u,f){if(!(l instanceof u))throw TypeError("Incorrect "+(f?f+" ":"")+"invocation");return l}}),9670:(function(o,l,u){var f=u(111);o.exports=function(d){if(!f(d))throw TypeError(String(d)+" is not an object");return d}}),4019:(function(o){o.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"}),260:(function(o,l,u){var f=u(4019),d=u(9781),h=u(7854),p=u(111),y=u(6656),_=u(648),E=u(8880),S=u(1320),w=u(3070).f,T=u(9518),C=u(7674),x=u(5112),R=u(9711),O=h.Int8Array,m=O&&O.prototype,D=h.Uint8ClampedArray,U=D&&D.prototype,K=O&&T(O),B=m&&T(m),W=Object.prototype,Y=W.isPrototypeOf,Q=x("toStringTag"),ie=R("TYPED_ARRAY_TAG"),ae=f&&!!C&&_(h.opera)!=="Opera",ve=!1,H,J={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},ue=function(I){if(!p(I))return!1;var N=_(I);return N==="DataView"||y(J,N)||y(z,N)},we=function(q){if(!p(q))return!1;var I=_(q);return y(J,I)||y(z,I)},ke=function(q){if(we(q))return q;throw TypeError("Target is not a typed array")},Be=function(q){if(C){if(Y.call(K,q))return q}else for(var I in J)if(y(J,H)){var N=h[I];if(N&&(q===N||Y.call(N,q)))return q}throw TypeError("Target is not a typed array constructor")},nt=function(q,I,N){if(d){if(N)for(var M in J){var Z=h[M];Z&&y(Z.prototype,q)&&delete Z.prototype[q]}(!B[q]||N)&&S(B,q,N?I:ae&&m[q]||I)}},rt=function(q,I,N){var M,Z;if(d){if(C){if(N)for(M in J)Z=h[M],Z&&y(Z,q)&&delete Z[q];if(!K[q]||N)try{return S(K,q,N?I:ae&&O[q]||I)}catch{}else return}for(M in J)Z=h[M],Z&&(!Z[q]||N)&&S(Z,q,I)}};for(H in J)h[H]||(ae=!1);if((!ae||typeof K!="function"||K===Function.prototype)&&(K=function(){throw TypeError("Incorrect invocation")},ae))for(H in J)h[H]&&C(h[H],K);if((!ae||!B||B===W)&&(B=K.prototype,ae))for(H in J)h[H]&&C(h[H].prototype,B);if(ae&&T(U)!==B&&C(U,B),d&&!y(B,Q)){ve=!0,w(B,Q,{get:function(){return p(this)?this[ie]:void 0}});for(H in J)h[H]&&E(h[H],ie,H)}o.exports={NATIVE_ARRAY_BUFFER_VIEWS:ae,TYPED_ARRAY_TAG:ve&&ie,aTypedArray:ke,aTypedArrayConstructor:Be,exportTypedArrayMethod:nt,exportTypedArrayStaticMethod:rt,isView:ue,isTypedArray:we,TypedArray:K,TypedArrayPrototype:B}}),3331:(function(o,l,u){var f=u(7854),d=u(9781),h=u(4019),p=u(8880),y=u(2248),_=u(7293),E=u(5787),S=u(9958),w=u(7466),T=u(7067),C=u(1179),x=u(9518),R=u(7674),O=u(8006).f,m=u(3070).f,D=u(1285),U=u(8003),K=u(9909),B=K.get,W=K.set,Y="ArrayBuffer",Q="DataView",ie="prototype",ae="Wrong length",ve="Wrong index",H=f[Y],J=H,z=f[Q],ue=z&&z[ie],we=Object.prototype,ke=f.RangeError,Be=C.pack,nt=C.unpack,rt=function(me){return[me&255]},q=function(me){return[me&255,me>>8&255]},I=function(me){return[me&255,me>>8&255,me>>16&255,me>>24&255]},N=function(me){return me[3]<<24|me[2]<<16|me[1]<<8|me[0]},M=function(me){return Be(me,23,4)},Z=function(me){return Be(me,52,8)},L=function(me,ge){m(me[ie],ge,{get:function(){return B(this)[ge]}})},G=function(me,ge,Te,Pe){var De=T(Te),qe=B(me);if(De+ge>qe.byteLength)throw ke(ve);var _t=B(qe.buffer).bytes,qt=De+qe.byteOffset,Mt=_t.slice(qt,qt+ge);return Pe?Mt:Mt.reverse()},pe=function(me,ge,Te,Pe,De,qe){var _t=T(Te),qt=B(me);if(_t+ge>qt.byteLength)throw ke(ve);for(var Mt=B(qt.buffer).bytes,Xe=_t+qt.byteOffset,wt=Pe(+De),mt=0;mt<ge;mt++)Mt[Xe+mt]=wt[qe?mt:ge-mt-1]};if(!h)J=function(ge){E(this,J,Y);var Te=T(ge);W(this,{bytes:D.call(new Array(Te),0),byteLength:Te}),d||(this.byteLength=Te)},z=function(ge,Te,Pe){E(this,z,Q),E(ge,J,Q);var De=B(ge).byteLength,qe=S(Te);if(qe<0||qe>De)throw ke("Wrong offset");if(Pe=Pe===void 0?De-qe:w(Pe),qe+Pe>De)throw ke(ae);W(this,{buffer:ge,byteLength:Pe,byteOffset:qe}),d||(this.buffer=ge,this.byteLength=Pe,this.byteOffset=qe)},d&&(L(J,"byteLength"),L(z,"buffer"),L(z,"byteLength"),L(z,"byteOffset")),y(z[ie],{getInt8:function(ge){return G(this,1,ge)[0]<<24>>24},getUint8:function(ge){return G(this,1,ge)[0]},getInt16:function(ge){var Te=G(this,2,ge,arguments.length>1?arguments[1]:void 0);return(Te[1]<<8|Te[0])<<16>>16},getUint16:function(ge){var Te=G(this,2,ge,arguments.length>1?arguments[1]:void 0);return Te[1]<<8|Te[0]},getInt32:function(ge){return N(G(this,4,ge,arguments.length>1?arguments[1]:void 0))},getUint32:function(ge){return N(G(this,4,ge,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ge){return nt(G(this,4,ge,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ge){return nt(G(this,8,ge,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ge,Te){pe(this,1,ge,rt,Te)},setUint8:function(ge,Te){pe(this,1,ge,rt,Te)},setInt16:function(ge,Te){pe(this,2,ge,q,Te,arguments.length>2?arguments[2]:void 0)},setUint16:function(ge,Te){pe(this,2,ge,q,Te,arguments.length>2?arguments[2]:void 0)},setInt32:function(ge,Te){pe(this,4,ge,I,Te,arguments.length>2?arguments[2]:void 0)},setUint32:function(ge,Te){pe(this,4,ge,I,Te,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ge,Te){pe(this,4,ge,M,Te,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ge,Te){pe(this,8,ge,Z,Te,arguments.length>2?arguments[2]:void 0)}});else{if(!_(function(){H(1)})||!_(function(){new H(-1)})||_(function(){return new H,new H(1.5),new H(NaN),H.name!=Y})){J=function(ge){return E(this,J),new H(T(ge))};for(var ce=J[ie]=H[ie],be=O(H),_e=0,Ce;be.length>_e;)(Ce=be[_e++])in J||p(J,Ce,H[Ce]);ce.constructor=J}R&&x(ue)!==we&&R(ue,we);var Me=new z(new J(2)),fe=ue.setInt8;Me.setInt8(0,2147483648),Me.setInt8(1,2147483649),(Me.getInt8(0)||!Me.getInt8(1))&&y(ue,{setInt8:function(ge,Te){fe.call(this,ge,Te<<24>>24)},setUint8:function(ge,Te){fe.call(this,ge,Te<<24>>24)}},{unsafe:!0})}U(J,Y),U(z,Q),o.exports={ArrayBuffer:J,DataView:z}}),1048:(function(o,l,u){var f=u(7908),d=u(1400),h=u(7466),p=Math.min;o.exports=[].copyWithin||function(_,E){var S=f(this),w=h(S.length),T=d(_,w),C=d(E,w),x=arguments.length>2?arguments[2]:void 0,R=p((x===void 0?w:d(x,w))-C,w-T),O=1;for(C<T&&T<C+R&&(O=-1,C+=R-1,T+=R-1);R-- >0;)C in S?S[T]=S[C]:delete S[T],T+=O,C+=O;return S}}),1285:(function(o,l,u){var f=u(7908),d=u(1400),h=u(7466);o.exports=function(y){for(var _=f(this),E=h(_.length),S=arguments.length,w=d(S>1?arguments[1]:void 0,E),T=S>2?arguments[2]:void 0,C=T===void 0?E:d(T,E);C>w;)_[w++]=y;return _}}),8533:(function(o,l,u){var f=u(2092).forEach,d=u(9341),h=d("forEach");o.exports=h?[].forEach:function(y){return f(this,y,arguments.length>1?arguments[1]:void 0)}}),8457:(function(o,l,u){var f=u(9974),d=u(7908),h=u(3411),p=u(7659),y=u(7466),_=u(6135),E=u(1246);o.exports=function(w){var T=d(w),C=typeof this=="function"?this:Array,x=arguments.length,R=x>1?arguments[1]:void 0,O=R!==void 0,m=E(T),D=0,U,K,B,W,Y,Q;if(O&&(R=f(R,x>2?arguments[2]:void 0,2)),m!=null&&!(C==Array&&p(m)))for(W=m.call(T),Y=W.next,K=new C;!(B=Y.call(W)).done;D++)Q=O?h(W,R,[B.value,D],!0):B.value,_(K,D,Q);else for(U=y(T.length),K=new C(U);U>D;D++)Q=O?R(T[D],D):T[D],_(K,D,Q);return K.length=D,K}}),1318:(function(o,l,u){var f=u(5656),d=u(7466),h=u(1400),p=function(y){return function(_,E,S){var w=f(_),T=d(w.length),C=h(S,T),x;if(y&&E!=E){for(;T>C;)if(x=w[C++],x!=x)return!0}else for(;T>C;C++)if((y||C in w)&&w[C]===E)return y||C||0;return!y&&-1}};o.exports={includes:p(!0),indexOf:p(!1)}}),2092:(function(o,l,u){var f=u(9974),d=u(8361),h=u(7908),p=u(7466),y=u(5417),_=[].push,E=function(S){var w=S==1,T=S==2,C=S==3,x=S==4,R=S==6,O=S==7,m=S==5||R;return function(D,U,K,B){for(var W=h(D),Y=d(W),Q=f(U,K,3),ie=p(Y.length),ae=0,ve=B||y,H=w?ve(D,ie):T||O?ve(D,0):void 0,J,z;ie>ae;ae++)if((m||ae in Y)&&(J=Y[ae],z=Q(J,ae,W),S))if(w)H[ae]=z;else if(z)switch(S){case 3:return!0;case 5:return J;case 6:return ae;case 2:_.call(H,J)}else switch(S){case 4:return!1;case 7:_.call(H,J)}return R?-1:C||x?x:H}};o.exports={forEach:E(0),map:E(1),filter:E(2),some:E(3),every:E(4),find:E(5),findIndex:E(6),filterOut:E(7)}}),6583:(function(o,l,u){var f=u(5656),d=u(9958),h=u(7466),p=u(9341),y=Math.min,_=[].lastIndexOf,E=!!_&&1/[1].lastIndexOf(1,-0)<0,S=p("lastIndexOf"),w=E||!S;o.exports=w?function(C){if(E)return _.apply(this,arguments)||0;var x=f(this),R=h(x.length),O=R-1;for(arguments.length>1&&(O=y(O,d(arguments[1]))),O<0&&(O=R+O);O>=0;O--)if(O in x&&x[O]===C)return O||0;return-1}:_}),1194:(function(o,l,u){var f=u(7293),d=u(5112),h=u(7392),p=d("species");o.exports=function(y){return h>=51||!f(function(){var _=[],E=_.constructor={};return E[p]=function(){return{foo:1}},_[y](Boolean).foo!==1})}}),9341:(function(o,l,u){var f=u(7293);o.exports=function(d,h){var p=[][d];return!!p&&f(function(){p.call(null,h||function(){throw 1},1)})}}),3671:(function(o,l,u){var f=u(3099),d=u(7908),h=u(8361),p=u(7466),y=function(_){return function(E,S,w,T){f(S);var C=d(E),x=h(C),R=p(C.length),O=_?R-1:0,m=_?-1:1;if(w<2)for(;;){if(O in x){T=x[O],O+=m;break}if(O+=m,_?O<0:R<=O)throw TypeError("Reduce of empty array with no initial value")}for(;_?O>=0:R>O;O+=m)O in x&&(T=S(T,x[O],O,C));return T}};o.exports={left:y(!1),right:y(!0)}}),5417:(function(o,l,u){var f=u(111),d=u(3157),h=u(5112),p=h("species");o.exports=function(y,_){var E;return d(y)&&(E=y.constructor,typeof E=="function"&&(E===Array||d(E.prototype))?E=void 0:f(E)&&(E=E[p],E===null&&(E=void 0))),new(E===void 0?Array:E)(_===0?0:_)}}),3411:(function(o,l,u){var f=u(9670),d=u(9212);o.exports=function(h,p,y,_){try{return _?p(f(y)[0],y[1]):p(y)}catch(E){throw d(h),E}}}),7072:(function(o,l,u){var f=u(5112),d=f("iterator"),h=!1;try{var p=0,y={next:function(){return{done:!!p++}},return:function(){h=!0}};y[d]=function(){return this},Array.from(y,function(){throw 2})}catch{}o.exports=function(_,E){if(!E&&!h)return!1;var S=!1;try{var w={};w[d]=function(){return{next:function(){return{done:S=!0}}}},_(w)}catch{}return S}}),4326:(function(o){var l={}.toString;o.exports=function(u){return l.call(u).slice(8,-1)}}),648:(function(o,l,u){var f=u(1694),d=u(4326),h=u(5112),p=h("toStringTag"),y=d((function(){return arguments})())=="Arguments",_=function(E,S){try{return E[S]}catch{}};o.exports=f?d:function(E){var S,w,T;return E===void 0?"Undefined":E===null?"Null":typeof(w=_(S=Object(E),p))=="string"?w:y?d(S):(T=d(S))=="Object"&&typeof S.callee=="function"?"Arguments":T}}),9920:(function(o,l,u){var f=u(6656),d=u(3887),h=u(1236),p=u(3070);o.exports=function(y,_){for(var E=d(_),S=p.f,w=h.f,T=0;T<E.length;T++){var C=E[T];f(y,C)||S(y,C,w(_,C))}}}),8544:(function(o,l,u){var f=u(7293);o.exports=!f(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})}),4994:(function(o,l,u){var f=u(3383).IteratorPrototype,d=u(30),h=u(9114),p=u(8003),y=u(7497),_=function(){return this};o.exports=function(E,S,w){var T=S+" Iterator";return E.prototype=d(f,{next:h(1,w)}),p(E,T,!1,!0),y[T]=_,E}}),8880:(function(o,l,u){var f=u(9781),d=u(3070),h=u(9114);o.exports=f?function(p,y,_){return d.f(p,y,h(1,_))}:function(p,y,_){return p[y]=_,p}}),9114:(function(o){o.exports=function(l,u){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:u}}}),6135:(function(o,l,u){var f=u(7593),d=u(3070),h=u(9114);o.exports=function(p,y,_){var E=f(y);E in p?d.f(p,E,h(0,_)):p[E]=_}}),654:(function(o,l,u){var f=u(2109),d=u(4994),h=u(9518),p=u(7674),y=u(8003),_=u(8880),E=u(1320),S=u(5112),w=u(1913),T=u(7497),C=u(3383),x=C.IteratorPrototype,R=C.BUGGY_SAFARI_ITERATORS,O=S("iterator"),m="keys",D="values",U="entries",K=function(){return this};o.exports=function(B,W,Y,Q,ie,ae,ve){d(Y,W,Q);var H=function(I){if(I===ie&&ke)return ke;if(!R&&I in ue)return ue[I];switch(I){case m:return function(){return new Y(this,I)};case D:return function(){return new Y(this,I)};case U:return function(){return new Y(this,I)}}return function(){return new Y(this)}},J=W+" Iterator",z=!1,ue=B.prototype,we=ue[O]||ue["@@iterator"]||ie&&ue[ie],ke=!R&&we||H(ie),Be=W=="Array"&&ue.entries||we,nt,rt,q;if(Be&&(nt=h(Be.call(new B)),x!==Object.prototype&&nt.next&&(!w&&h(nt)!==x&&(p?p(nt,x):typeof nt[O]!="function"&&_(nt,O,K)),y(nt,J,!0,!0),w&&(T[J]=K))),ie==D&&we&&we.name!==D&&(z=!0,ke=function(){return we.call(this)}),(!w||ve)&&ue[O]!==ke&&_(ue,O,ke),T[W]=ke,ie)if(rt={values:H(D),keys:ae?ke:H(m),entries:H(U)},ve)for(q in rt)(R||z||!(q in ue))&&E(ue,q,rt[q]);else f({target:W,proto:!0,forced:R||z},rt);return rt}}),9781:(function(o,l,u){var f=u(7293);o.exports=!f(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),317:(function(o,l,u){var f=u(7854),d=u(111),h=f.document,p=d(h)&&d(h.createElement);o.exports=function(y){return p?h.createElement(y):{}}}),8324:(function(o){o.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),8113:(function(o,l,u){var f=u(5005);o.exports=f("navigator","userAgent")||""}),7392:(function(o,l,u){var f=u(7854),d=u(8113),h=f.process,p=h&&h.versions,y=p&&p.v8,_,E;y?(_=y.split("."),E=_[0]+_[1]):d&&(_=d.match(/Edge\/(\d+)/),(!_||_[1]>=74)&&(_=d.match(/Chrome\/(\d+)/),_&&(E=_[1]))),o.exports=E&&+E}),748:(function(o){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),2109:(function(o,l,u){var f=u(7854),d=u(1236).f,h=u(8880),p=u(1320),y=u(3505),_=u(9920),E=u(4705);o.exports=function(S,w){var T=S.target,C=S.global,x=S.stat,R,O,m,D,U,K;if(C?O=f:x?O=f[T]||y(T,{}):O=(f[T]||{}).prototype,O)for(m in w){if(U=w[m],S.noTargetGet?(K=d(O,m),D=K&&K.value):D=O[m],R=E(C?m:T+(x?".":"#")+m,S.forced),!R&&D!==void 0){if(typeof U==typeof D)continue;_(U,D)}(S.sham||D&&D.sham)&&h(U,"sham",!0),p(O,m,U,S)}}}),7293:(function(o){o.exports=function(l){try{return!!l()}catch{return!0}}}),7007:(function(o,l,u){u(4916);var f=u(1320),d=u(7293),h=u(5112),p=u(2261),y=u(8880),_=h("species"),E=!d(function(){var x=/./;return x.exec=function(){var R=[];return R.groups={a:"7"},R},"".replace(x,"$<a>")!=="7"}),S=(function(){return"a".replace(/./,"$0")==="$0"})(),w=h("replace"),T=(function(){return/./[w]?/./[w]("a","$0")==="":!1})(),C=!d(function(){var x=/(?:)/,R=x.exec;x.exec=function(){return R.apply(this,arguments)};var O="ab".split(x);return O.length!==2||O[0]!=="a"||O[1]!=="b"});o.exports=function(x,R,O,m){var D=h(x),U=!d(function(){var ie={};return ie[D]=function(){return 7},""[x](ie)!=7}),K=U&&!d(function(){var ie=!1,ae=/a/;return x==="split"&&(ae={},ae.constructor={},ae.constructor[_]=function(){return ae},ae.flags="",ae[D]=/./[D]),ae.exec=function(){return ie=!0,null},ae[D](""),!ie});if(!U||!K||x==="replace"&&!(E&&S&&!T)||x==="split"&&!C){var B=/./[D],W=O(D,""[x],function(ie,ae,ve,H,J){return ae.exec===p?U&&!J?{done:!0,value:B.call(ae,ve,H)}:{done:!0,value:ie.call(ve,ae,H)}:{done:!1}},{REPLACE_KEEPS_$0:S,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:T}),Y=W[0],Q=W[1];f(String.prototype,x,Y),f(RegExp.prototype,D,R==2?function(ie,ae){return Q.call(ie,this,ae)}:function(ie){return Q.call(ie,this)})}m&&y(RegExp.prototype[D],"sham",!0)}}),9974:(function(o,l,u){var f=u(3099);o.exports=function(d,h,p){if(f(d),h===void 0)return d;switch(p){case 0:return function(){return d.call(h)};case 1:return function(y){return d.call(h,y)};case 2:return function(y,_){return d.call(h,y,_)};case 3:return function(y,_,E){return d.call(h,y,_,E)}}return function(){return d.apply(h,arguments)}}}),5005:(function(o,l,u){var f=u(857),d=u(7854),h=function(p){return typeof p=="function"?p:void 0};o.exports=function(p,y){return arguments.length<2?h(f[p])||h(d[p]):f[p]&&f[p][y]||d[p]&&d[p][y]}}),1246:(function(o,l,u){var f=u(648),d=u(7497),h=u(5112),p=h("iterator");o.exports=function(y){if(y!=null)return y[p]||y["@@iterator"]||d[f(y)]}}),8554:(function(o,l,u){var f=u(9670),d=u(1246);o.exports=function(h){var p=d(h);if(typeof p!="function")throw TypeError(String(h)+" is not iterable");return f(p.call(h))}}),647:(function(o,l,u){var f=u(7908),d=Math.floor,h="".replace,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,y=/\$([$&'`]|\d\d?)/g;o.exports=function(_,E,S,w,T,C){var x=S+_.length,R=w.length,O=y;return T!==void 0&&(T=f(T),O=p),h.call(C,O,function(m,D){var U;switch(D.charAt(0)){case"$":return"$";case"&":return _;case"`":return E.slice(0,S);case"'":return E.slice(x);case"<":U=T[D.slice(1,-1)];break;default:var K=+D;if(K===0)return m;if(K>R){var B=d(K/10);return B===0?m:B<=R?w[B-1]===void 0?D.charAt(1):w[B-1]+D.charAt(1):m}U=w[K-1]}return U===void 0?"":U})}}),7854:(function(o,l,u){var f=function(d){return d&&d.Math==Math&&d};o.exports=f(typeof globalThis=="object"&&globalThis)||f(typeof window=="object"&&window)||f(typeof self=="object"&&self)||f(typeof u.g=="object"&&u.g)||(function(){return this})()||Function("return this")()}),6656:(function(o){var l={}.hasOwnProperty;o.exports=function(u,f){return l.call(u,f)}}),3501:(function(o){o.exports={}}),490:(function(o,l,u){var f=u(5005);o.exports=f("document","documentElement")}),4664:(function(o,l,u){var f=u(9781),d=u(7293),h=u(317);o.exports=!f&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!=7})}),1179:(function(o){var l=Math.abs,u=Math.pow,f=Math.floor,d=Math.log,h=Math.LN2,p=function(_,E,S){var w=new Array(S),T=S*8-E-1,C=(1<<T)-1,x=C>>1,R=E===23?u(2,-24)-u(2,-77):0,O=_<0||_===0&&1/_<0?1:0,m=0,D,U,K;for(_=l(_),_!=_||_===1/0?(U=_!=_?1:0,D=C):(D=f(d(_)/h),_*(K=u(2,-D))<1&&(D--,K*=2),D+x>=1?_+=R/K:_+=R*u(2,1-x),_*K>=2&&(D++,K/=2),D+x>=C?(U=0,D=C):D+x>=1?(U=(_*K-1)*u(2,E),D=D+x):(U=_*u(2,x-1)*u(2,E),D=0));E>=8;w[m++]=U&255,U/=256,E-=8);for(D=D<<E|U,T+=E;T>0;w[m++]=D&255,D/=256,T-=8);return w[--m]|=O*128,w},y=function(_,E){var S=_.length,w=S*8-E-1,T=(1<<w)-1,C=T>>1,x=w-7,R=S-1,O=_[R--],m=O&127,D;for(O>>=7;x>0;m=m*256+_[R],R--,x-=8);for(D=m&(1<<-x)-1,m>>=-x,x+=E;x>0;D=D*256+_[R],R--,x-=8);if(m===0)m=1-C;else{if(m===T)return D?NaN:O?-1/0:1/0;D=D+u(2,E),m=m-C}return(O?-1:1)*D*u(2,m-E)};o.exports={pack:p,unpack:y}}),8361:(function(o,l,u){var f=u(7293),d=u(4326),h="".split;o.exports=f(function(){return!Object("z").propertyIsEnumerable(0)})?function(p){return d(p)=="String"?h.call(p,""):Object(p)}:Object}),9587:(function(o,l,u){var f=u(111),d=u(7674);o.exports=function(h,p,y){var _,E;return d&&typeof(_=p.constructor)=="function"&&_!==y&&f(E=_.prototype)&&E!==y.prototype&&d(h,E),h}}),2788:(function(o,l,u){var f=u(5465),d=Function.toString;typeof f.inspectSource!="function"&&(f.inspectSource=function(h){return d.call(h)}),o.exports=f.inspectSource}),9909:(function(o,l,u){var f=u(8536),d=u(7854),h=u(111),p=u(8880),y=u(6656),_=u(5465),E=u(6200),S=u(3501),w=d.WeakMap,T,C,x,R=function(W){return x(W)?C(W):T(W,{})},O=function(W){return function(Y){var Q;if(!h(Y)||(Q=C(Y)).type!==W)throw TypeError("Incompatible receiver, "+W+" required");return Q}};if(f){var m=_.state||(_.state=new w),D=m.get,U=m.has,K=m.set;T=function(W,Y){return Y.facade=W,K.call(m,W,Y),Y},C=function(W){return D.call(m,W)||{}},x=function(W){return U.call(m,W)}}else{var B=E("state");S[B]=!0,T=function(W,Y){return Y.facade=W,p(W,B,Y),Y},C=function(W){return y(W,B)?W[B]:{}},x=function(W){return y(W,B)}}o.exports={set:T,get:C,has:x,enforce:R,getterFor:O}}),7659:(function(o,l,u){var f=u(5112),d=u(7497),h=f("iterator"),p=Array.prototype;o.exports=function(y){return y!==void 0&&(d.Array===y||p[h]===y)}}),3157:(function(o,l,u){var f=u(4326);o.exports=Array.isArray||function(h){return f(h)=="Array"}}),4705:(function(o,l,u){var f=u(7293),d=/#|\.prototype\./,h=function(S,w){var T=y[p(S)];return T==E?!0:T==_?!1:typeof w=="function"?f(w):!!w},p=h.normalize=function(S){return String(S).replace(d,".").toLowerCase()},y=h.data={},_=h.NATIVE="N",E=h.POLYFILL="P";o.exports=h}),111:(function(o){o.exports=function(l){return typeof l=="object"?l!==null:typeof l=="function"}}),1913:(function(o){o.exports=!1}),7850:(function(o,l,u){var f=u(111),d=u(4326),h=u(5112),p=h("match");o.exports=function(y){var _;return f(y)&&((_=y[p])!==void 0?!!_:d(y)=="RegExp")}}),9212:(function(o,l,u){var f=u(9670);o.exports=function(d){var h=d.return;if(h!==void 0)return f(h.call(d)).value}}),3383:(function(o,l,u){var f=u(7293),d=u(9518),h=u(8880),p=u(6656),y=u(5112),_=u(1913),E=y("iterator"),S=!1,w=function(){return this},T,C,x;[].keys&&(x=[].keys(),"next"in x?(C=d(d(x)),C!==Object.prototype&&(T=C)):S=!0);var R=T==null||f(function(){var O={};return T[E].call(O)!==O});R&&(T={}),(!_||R)&&!p(T,E)&&h(T,E,w),o.exports={IteratorPrototype:T,BUGGY_SAFARI_ITERATORS:S}}),7497:(function(o){o.exports={}}),133:(function(o,l,u){var f=u(7293);o.exports=!!Object.getOwnPropertySymbols&&!f(function(){return!String(Symbol())})}),590:(function(o,l,u){var f=u(7293),d=u(5112),h=u(1913),p=d("iterator");o.exports=!f(function(){var y=new URL("b?a=1&b=2&c=3","http://a"),_=y.searchParams,E="";return y.pathname="c%20d",_.forEach(function(S,w){_.delete("b"),E+=w+S}),h&&!y.toJSON||!_.sort||y.href!=="http://a/c%20d?a=1&c=3"||_.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!_[p]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||E!=="a1c3"||new URL("http://x",void 0).host!=="x"})}),8536:(function(o,l,u){var f=u(7854),d=u(2788),h=f.WeakMap;o.exports=typeof h=="function"&&/native code/.test(d(h))}),1574:(function(o,l,u){var f=u(9781),d=u(7293),h=u(1956),p=u(5181),y=u(5296),_=u(7908),E=u(8361),S=Object.assign,w=Object.defineProperty;o.exports=!S||d(function(){if(f&&S({b:1},S(w({},"a",{enumerable:!0,get:function(){w(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var T={},C={},x=Symbol(),R="abcdefghijklmnopqrst";return T[x]=7,R.split("").forEach(function(O){C[O]=O}),S({},T)[x]!=7||h(S({},C)).join("")!=R})?function(C,x){for(var R=_(C),O=arguments.length,m=1,D=p.f,U=y.f;O>m;)for(var K=E(arguments[m++]),B=D?h(K).concat(D(K)):h(K),W=B.length,Y=0,Q;W>Y;)Q=B[Y++],(!f||U.call(K,Q))&&(R[Q]=K[Q]);return R}:S}),30:(function(o,l,u){var f=u(9670),d=u(6048),h=u(748),p=u(3501),y=u(490),_=u(317),E=u(6200),S=">",w="<",T="prototype",C="script",x=E("IE_PROTO"),R=function(){},O=function(B){return w+C+S+B+w+"/"+C+S},m=function(B){B.write(O("")),B.close();var W=B.parentWindow.Object;return B=null,W},D=function(){var B=_("iframe"),W="java"+C+":",Y;return B.style.display="none",y.appendChild(B),B.src=String(W),Y=B.contentWindow.document,Y.open(),Y.write(O("document.F=Object")),Y.close(),Y.F},U,K=function(){try{U=document.domain&&new ActiveXObject("htmlfile")}catch{}K=U?m(U):D();for(var B=h.length;B--;)delete K[T][h[B]];return K()};p[x]=!0,o.exports=Object.create||function(W,Y){var Q;return W!==null?(R[T]=f(W),Q=new R,R[T]=null,Q[x]=W):Q=K(),Y===void 0?Q:d(Q,Y)}}),6048:(function(o,l,u){var f=u(9781),d=u(3070),h=u(9670),p=u(1956);o.exports=f?Object.defineProperties:function(_,E){h(_);for(var S=p(E),w=S.length,T=0,C;w>T;)d.f(_,C=S[T++],E[C]);return _}}),3070:(function(o,l,u){var f=u(9781),d=u(4664),h=u(9670),p=u(7593),y=Object.defineProperty;l.f=f?y:function(E,S,w){if(h(E),S=p(S,!0),h(w),d)try{return y(E,S,w)}catch{}if("get"in w||"set"in w)throw TypeError("Accessors not supported");return"value"in w&&(E[S]=w.value),E}}),1236:(function(o,l,u){var f=u(9781),d=u(5296),h=u(9114),p=u(5656),y=u(7593),_=u(6656),E=u(4664),S=Object.getOwnPropertyDescriptor;l.f=f?S:function(T,C){if(T=p(T),C=y(C,!0),E)try{return S(T,C)}catch{}if(_(T,C))return h(!d.f.call(T,C),T[C])}}),8006:(function(o,l,u){var f=u(6324),d=u(748),h=d.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(y){return f(y,h)}}),5181:(function(o,l){l.f=Object.getOwnPropertySymbols}),9518:(function(o,l,u){var f=u(6656),d=u(7908),h=u(6200),p=u(8544),y=h("IE_PROTO"),_=Object.prototype;o.exports=p?Object.getPrototypeOf:function(E){return E=d(E),f(E,y)?E[y]:typeof E.constructor=="function"&&E instanceof E.constructor?E.constructor.prototype:E instanceof Object?_:null}}),6324:(function(o,l,u){var f=u(6656),d=u(5656),h=u(1318).indexOf,p=u(3501);o.exports=function(y,_){var E=d(y),S=0,w=[],T;for(T in E)!f(p,T)&&f(E,T)&&w.push(T);for(;_.length>S;)f(E,T=_[S++])&&(~h(w,T)||w.push(T));return w}}),1956:(function(o,l,u){var f=u(6324),d=u(748);o.exports=Object.keys||function(p){return f(p,d)}}),5296:(function(o,l){var u={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,d=f&&!u.call({1:2},1);l.f=d?function(p){var y=f(this,p);return!!y&&y.enumerable}:u}),7674:(function(o,l,u){var f=u(9670),d=u(6077);o.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var h=!1,p={},y;try{y=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,y.call(p,[]),h=p instanceof Array}catch{}return function(E,S){return f(E),d(S),h?y.call(E,S):E.__proto__=S,E}})():void 0)}),288:(function(o,l,u){var f=u(1694),d=u(648);o.exports=f?{}.toString:function(){return"[object "+d(this)+"]"}}),3887:(function(o,l,u){var f=u(5005),d=u(8006),h=u(5181),p=u(9670);o.exports=f("Reflect","ownKeys")||function(_){var E=d.f(p(_)),S=h.f;return S?E.concat(S(_)):E}}),857:(function(o,l,u){var f=u(7854);o.exports=f}),2248:(function(o,l,u){var f=u(1320);o.exports=function(d,h,p){for(var y in h)f(d,y,h[y],p);return d}}),1320:(function(o,l,u){var f=u(7854),d=u(8880),h=u(6656),p=u(3505),y=u(2788),_=u(9909),E=_.get,S=_.enforce,w=String(String).split("String");(o.exports=function(T,C,x,R){var O=R?!!R.unsafe:!1,m=R?!!R.enumerable:!1,D=R?!!R.noTargetGet:!1,U;if(typeof x=="function"&&(typeof C=="string"&&!h(x,"name")&&d(x,"name",C),U=S(x),U.source||(U.source=w.join(typeof C=="string"?C:""))),T===f){m?T[C]=x:p(C,x);return}else O?!D&&T[C]&&(m=!0):delete T[C];m?T[C]=x:d(T,C,x)})(Function.prototype,"toString",function(){return typeof this=="function"&&E(this).source||y(this)})}),7651:(function(o,l,u){var f=u(4326),d=u(2261);o.exports=function(h,p){var y=h.exec;if(typeof y=="function"){var _=y.call(h,p);if(typeof _!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return _}if(f(h)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(h,p)}}),2261:(function(o,l,u){var f=u(7066),d=u(2999),h=RegExp.prototype.exec,p=String.prototype.replace,y=h,_=(function(){var T=/a/,C=/b*/g;return h.call(T,"a"),h.call(C,"a"),T.lastIndex!==0||C.lastIndex!==0})(),E=d.UNSUPPORTED_Y||d.BROKEN_CARET,S=/()??/.exec("")[1]!==void 0,w=_||S||E;w&&(y=function(C){var x=this,R,O,m,D,U=E&&x.sticky,K=f.call(x),B=x.source,W=0,Y=C;return U&&(K=K.replace("y",""),K.indexOf("g")===-1&&(K+="g"),Y=String(C).slice(x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&C[x.lastIndex-1]!==`
|
|
212
212
|
`)&&(B="(?: "+B+")",Y=" "+Y,W++),O=new RegExp("^(?:"+B+")",K)),S&&(O=new RegExp("^"+B+"$(?!\\s)",K)),_&&(R=x.lastIndex),m=h.call(U?O:x,Y),U?m?(m.input=m.input.slice(W),m[0]=m[0].slice(W),m.index=x.lastIndex,x.lastIndex+=m[0].length):x.lastIndex=0:_&&m&&(x.lastIndex=x.global?m.index+m[0].length:R),S&&m&&m.length>1&&p.call(m[0],O,function(){for(D=1;D<arguments.length-2;D++)arguments[D]===void 0&&(m[D]=void 0)}),m}),o.exports=y}),7066:(function(o,l,u){var f=u(9670);o.exports=function(){var d=f(this),h="";return d.global&&(h+="g"),d.ignoreCase&&(h+="i"),d.multiline&&(h+="m"),d.dotAll&&(h+="s"),d.unicode&&(h+="u"),d.sticky&&(h+="y"),h}}),2999:(function(o,l,u){var f=u(7293);function d(h,p){return RegExp(h,p)}l.UNSUPPORTED_Y=f(function(){var h=d("a","y");return h.lastIndex=2,h.exec("abcd")!=null}),l.BROKEN_CARET=f(function(){var h=d("^r","gy");return h.lastIndex=2,h.exec("str")!=null})}),4488:(function(o){o.exports=function(l){if(l==null)throw TypeError("Can't call method on "+l);return l}}),3505:(function(o,l,u){var f=u(7854),d=u(8880);o.exports=function(h,p){try{d(f,h,p)}catch{f[h]=p}return p}}),6340:(function(o,l,u){var f=u(5005),d=u(3070),h=u(5112),p=u(9781),y=h("species");o.exports=function(_){var E=f(_),S=d.f;p&&E&&!E[y]&&S(E,y,{configurable:!0,get:function(){return this}})}}),8003:(function(o,l,u){var f=u(3070).f,d=u(6656),h=u(5112),p=h("toStringTag");o.exports=function(y,_,E){y&&!d(y=E?y:y.prototype,p)&&f(y,p,{configurable:!0,value:_})}}),6200:(function(o,l,u){var f=u(2309),d=u(9711),h=f("keys");o.exports=function(p){return h[p]||(h[p]=d(p))}}),5465:(function(o,l,u){var f=u(7854),d=u(3505),h="__core-js_shared__",p=f[h]||d(h,{});o.exports=p}),2309:(function(o,l,u){var f=u(1913),d=u(5465);(o.exports=function(h,p){return d[h]||(d[h]=p!==void 0?p:{})})("versions",[]).push({version:"3.9.0",mode:f?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),6707:(function(o,l,u){var f=u(9670),d=u(3099),h=u(5112),p=h("species");o.exports=function(y,_){var E=f(y).constructor,S;return E===void 0||(S=f(E)[p])==null?_:d(S)}}),8710:(function(o,l,u){var f=u(9958),d=u(4488),h=function(p){return function(y,_){var E=String(d(y)),S=f(_),w=E.length,T,C;return S<0||S>=w?p?"":void 0:(T=E.charCodeAt(S),T<55296||T>56319||S+1===w||(C=E.charCodeAt(S+1))<56320||C>57343?p?E.charAt(S):T:p?E.slice(S,S+2):(T-55296<<10)+(C-56320)+65536)}};o.exports={codeAt:h(!1),charAt:h(!0)}}),3197:(function(o){var l=2147483647,u=36,f=1,d=26,h=38,p=700,y=72,_=128,E="-",S=/[^\0-\u007E]/,w=/[.\u3002\uFF0E\uFF61]/g,T="Overflow: input needs wider integers to process",C=u-f,x=Math.floor,R=String.fromCharCode,O=function(K){for(var B=[],W=0,Y=K.length;W<Y;){var Q=K.charCodeAt(W++);if(Q>=55296&&Q<=56319&&W<Y){var ie=K.charCodeAt(W++);(ie&64512)==56320?B.push(((Q&1023)<<10)+(ie&1023)+65536):(B.push(Q),W--)}else B.push(Q)}return B},m=function(K){return K+22+75*(K<26)},D=function(K,B,W){var Y=0;for(K=W?x(K/p):K>>1,K+=x(K/B);K>C*d>>1;Y+=u)K=x(K/C);return x(Y+(C+1)*K/(K+h))},U=function(K){var B=[];K=O(K);var W=K.length,Y=_,Q=0,ie=y,ae,ve;for(ae=0;ae<K.length;ae++)ve=K[ae],ve<128&&B.push(R(ve));var H=B.length,J=H;for(H&&B.push(E);J<W;){var z=l;for(ae=0;ae<K.length;ae++)ve=K[ae],ve>=Y&&ve<z&&(z=ve);var ue=J+1;if(z-Y>x((l-Q)/ue))throw RangeError(T);for(Q+=(z-Y)*ue,Y=z,ae=0;ae<K.length;ae++){if(ve=K[ae],ve<Y&&++Q>l)throw RangeError(T);if(ve==Y){for(var we=Q,ke=u;;ke+=u){var Be=ke<=ie?f:ke>=ie+d?d:ke-ie;if(we<Be)break;var nt=we-Be,rt=u-Be;B.push(R(m(Be+nt%rt))),we=x(nt/rt)}B.push(R(m(we))),ie=D(Q,ue,J==H),Q=0,++J}}++Q,++Y}return B.join("")};o.exports=function(K){var B=[],W=K.toLowerCase().replace(w,".").split("."),Y,Q;for(Y=0;Y<W.length;Y++)Q=W[Y],B.push(S.test(Q)?"xn--"+U(Q):Q);return B.join(".")}}),6091:(function(o,l,u){var f=u(7293),d=u(1361),h="
";o.exports=function(p){return f(function(){return!!d[p]()||h[p]()!=h||d[p].name!==p})}}),3111:(function(o,l,u){var f=u(4488),d=u(1361),h="["+d+"]",p=RegExp("^"+h+h+"*"),y=RegExp(h+h+"*$"),_=function(E){return function(S){var w=String(f(S));return E&1&&(w=w.replace(p,"")),E&2&&(w=w.replace(y,"")),w}};o.exports={start:_(1),end:_(2),trim:_(3)}}),1400:(function(o,l,u){var f=u(9958),d=Math.max,h=Math.min;o.exports=function(p,y){var _=f(p);return _<0?d(_+y,0):h(_,y)}}),7067:(function(o,l,u){var f=u(9958),d=u(7466);o.exports=function(h){if(h===void 0)return 0;var p=f(h),y=d(p);if(p!==y)throw RangeError("Wrong length or index");return y}}),5656:(function(o,l,u){var f=u(8361),d=u(4488);o.exports=function(h){return f(d(h))}}),9958:(function(o){var l=Math.ceil,u=Math.floor;o.exports=function(f){return isNaN(f=+f)?0:(f>0?u:l)(f)}}),7466:(function(o,l,u){var f=u(9958),d=Math.min;o.exports=function(h){return h>0?d(f(h),9007199254740991):0}}),7908:(function(o,l,u){var f=u(4488);o.exports=function(d){return Object(f(d))}}),4590:(function(o,l,u){var f=u(3002);o.exports=function(d,h){var p=f(d);if(p%h)throw RangeError("Wrong offset");return p}}),3002:(function(o,l,u){var f=u(9958);o.exports=function(d){var h=f(d);if(h<0)throw RangeError("The argument can't be less than 0");return h}}),7593:(function(o,l,u){var f=u(111);o.exports=function(d,h){if(!f(d))return d;var p,y;if(h&&typeof(p=d.toString)=="function"&&!f(y=p.call(d))||typeof(p=d.valueOf)=="function"&&!f(y=p.call(d))||!h&&typeof(p=d.toString)=="function"&&!f(y=p.call(d)))return y;throw TypeError("Can't convert object to primitive value")}}),1694:(function(o,l,u){var f=u(5112),d=f("toStringTag"),h={};h[d]="z",o.exports=String(h)==="[object z]"}),9843:(function(o,l,u){var f=u(2109),d=u(7854),h=u(9781),p=u(3832),y=u(260),_=u(3331),E=u(5787),S=u(9114),w=u(8880),T=u(7466),C=u(7067),x=u(4590),R=u(7593),O=u(6656),m=u(648),D=u(111),U=u(30),K=u(7674),B=u(8006).f,W=u(7321),Y=u(2092).forEach,Q=u(6340),ie=u(3070),ae=u(1236),ve=u(9909),H=u(9587),J=ve.get,z=ve.set,ue=ie.f,we=ae.f,ke=Math.round,Be=d.RangeError,nt=_.ArrayBuffer,rt=_.DataView,q=y.NATIVE_ARRAY_BUFFER_VIEWS,I=y.TYPED_ARRAY_TAG,N=y.TypedArray,M=y.TypedArrayPrototype,Z=y.aTypedArrayConstructor,L=y.isTypedArray,G="BYTES_PER_ELEMENT",pe="Wrong length",ce=function(me,ge){for(var Te=0,Pe=ge.length,De=new(Z(me))(Pe);Pe>Te;)De[Te]=ge[Te++];return De},be=function(me,ge){ue(me,ge,{get:function(){return J(this)[ge]}})},_e=function(me){var ge;return me instanceof nt||(ge=m(me))=="ArrayBuffer"||ge=="SharedArrayBuffer"},Ce=function(me,ge){return L(me)&&typeof ge!="symbol"&&ge in me&&String(+ge)==String(ge)},Me=function(ge,Te){return Ce(ge,Te=R(Te,!0))?S(2,ge[Te]):we(ge,Te)},fe=function(ge,Te,Pe){return Ce(ge,Te=R(Te,!0))&&D(Pe)&&O(Pe,"value")&&!O(Pe,"get")&&!O(Pe,"set")&&!Pe.configurable&&(!O(Pe,"writable")||Pe.writable)&&(!O(Pe,"enumerable")||Pe.enumerable)?(ge[Te]=Pe.value,ge):ue(ge,Te,Pe)};h?(q||(ae.f=Me,ie.f=fe,be(M,"buffer"),be(M,"byteOffset"),be(M,"byteLength"),be(M,"length")),f({target:"Object",stat:!0,forced:!q},{getOwnPropertyDescriptor:Me,defineProperty:fe}),o.exports=function(me,ge,Te){var Pe=me.match(/\d+$/)[0]/8,De=me+(Te?"Clamped":"")+"Array",qe="get"+me,_t="set"+me,qt=d[De],Mt=qt,Xe=Mt&&Mt.prototype,wt={},mt=function(ft,Ft){var Ct=J(ft);return Ct.view[qe](Ft*Pe+Ct.byteOffset,!0)},Et=function(ft,Ft,Ct){var Ae=J(ft);Te&&(Ct=(Ct=ke(Ct))<0?0:Ct>255?255:Ct&255),Ae.view[_t](Ft*Pe+Ae.byteOffset,Ct,!0)},At=function(ft,Ft){ue(ft,Ft,{get:function(){return mt(this,Ft)},set:function(Ct){return Et(this,Ft,Ct)},enumerable:!0})};q?p&&(Mt=ge(function(ft,Ft,Ct,Ae){return E(ft,Mt,De),H((function(){return D(Ft)?_e(Ft)?Ae!==void 0?new qt(Ft,x(Ct,Pe),Ae):Ct!==void 0?new qt(Ft,x(Ct,Pe)):new qt(Ft):L(Ft)?ce(Mt,Ft):W.call(Mt,Ft):new qt(C(Ft))})(),ft,Mt)}),K&&K(Mt,N),Y(B(qt),function(ft){ft in Mt||w(Mt,ft,qt[ft])}),Mt.prototype=Xe):(Mt=ge(function(ft,Ft,Ct,Ae){E(ft,Mt,De);var Ze=0,ut=0,bt,Lt,tr;if(!D(Ft))tr=C(Ft),Lt=tr*Pe,bt=new nt(Lt);else if(_e(Ft)){bt=Ft,ut=x(Ct,Pe);var vr=Ft.byteLength;if(Ae===void 0){if(vr%Pe||(Lt=vr-ut,Lt<0))throw Be(pe)}else if(Lt=T(Ae)*Pe,Lt+ut>vr)throw Be(pe);tr=Lt/Pe}else return L(Ft)?ce(Mt,Ft):W.call(Mt,Ft);for(z(ft,{buffer:bt,byteOffset:ut,byteLength:Lt,length:tr,view:new rt(bt)});Ze<tr;)At(ft,Ze++)}),K&&K(Mt,N),Xe=Mt.prototype=U(M)),Xe.constructor!==Mt&&w(Xe,"constructor",Mt),I&&w(Xe,I,De),wt[De]=Mt,f({global:!0,forced:Mt!=qt,sham:!q},wt),G in Mt||w(Mt,G,Pe),G in Xe||w(Xe,G,Pe),Q(De)}):o.exports=function(){}}),3832:(function(o,l,u){var f=u(7854),d=u(7293),h=u(7072),p=u(260).NATIVE_ARRAY_BUFFER_VIEWS,y=f.ArrayBuffer,_=f.Int8Array;o.exports=!p||!d(function(){_(1)})||!d(function(){new _(-1)})||!h(function(E){new _,new _(null),new _(1.5),new _(E)},!0)||d(function(){return new _(new y(2),1,void 0).length!==1})}),3074:(function(o,l,u){var f=u(260).aTypedArrayConstructor,d=u(6707);o.exports=function(h,p){for(var y=d(h,h.constructor),_=0,E=p.length,S=new(f(y))(E);E>_;)S[_]=p[_++];return S}}),7321:(function(o,l,u){var f=u(7908),d=u(7466),h=u(1246),p=u(7659),y=u(9974),_=u(260).aTypedArrayConstructor;o.exports=function(S){var w=f(S),T=arguments.length,C=T>1?arguments[1]:void 0,x=C!==void 0,R=h(w),O,m,D,U,K,B;if(R!=null&&!p(R))for(K=R.call(w),B=K.next,w=[];!(U=B.call(K)).done;)w.push(U.value);for(x&&T>2&&(C=y(C,arguments[2],2)),m=d(w.length),D=new(_(this))(m),O=0;m>O;O++)D[O]=x?C(w[O],O):w[O];return D}}),9711:(function(o){var l=0,u=Math.random();o.exports=function(f){return"Symbol("+String(f===void 0?"":f)+")_"+(++l+u).toString(36)}}),3307:(function(o,l,u){var f=u(133);o.exports=f&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),5112:(function(o,l,u){var f=u(7854),d=u(2309),h=u(6656),p=u(9711),y=u(133),_=u(3307),E=d("wks"),S=f.Symbol,w=_?S:S&&S.withoutSetter||p;o.exports=function(T){return h(E,T)||(y&&h(S,T)?E[T]=S[T]:E[T]=w("Symbol."+T)),E[T]}}),1361:(function(o){o.exports=`
|
|
213
213
|
\v\f\r \u2028\u2029\uFEFF`}),8264:(function(o,l,u){var f=u(2109),d=u(7854),h=u(3331),p=u(6340),y="ArrayBuffer",_=h[y],E=d[y];f({global:!0,forced:E!==_},{ArrayBuffer:_}),p(y)}),2222:(function(o,l,u){var f=u(2109),d=u(7293),h=u(3157),p=u(111),y=u(7908),_=u(7466),E=u(6135),S=u(5417),w=u(1194),T=u(5112),C=u(7392),x=T("isConcatSpreadable"),R=9007199254740991,O="Maximum allowed index exceeded",m=C>=51||!d(function(){var B=[];return B[x]=!1,B.concat()[0]!==B}),D=w("concat"),U=function(B){if(!p(B))return!1;var W=B[x];return W!==void 0?!!W:h(B)},K=!m||!D;f({target:"Array",proto:!0,forced:K},{concat:function(W){var Y=y(this),Q=S(Y,0),ie=0,ae,ve,H,J,z;for(ae=-1,H=arguments.length;ae<H;ae++)if(z=ae===-1?Y:arguments[ae],U(z)){if(J=_(z.length),ie+J>R)throw TypeError(O);for(ve=0;ve<J;ve++,ie++)ve in z&&E(Q,ie,z[ve])}else{if(ie>=R)throw TypeError(O);E(Q,ie++,z)}return Q.length=ie,Q}})}),7327:(function(o,l,u){var f=u(2109),d=u(2092).filter,h=u(1194),p=h("filter");f({target:"Array",proto:!0,forced:!p},{filter:function(_){return d(this,_,arguments.length>1?arguments[1]:void 0)}})}),2772:(function(o,l,u){var f=u(2109),d=u(1318).indexOf,h=u(9341),p=[].indexOf,y=!!p&&1/[1].indexOf(1,-0)<0,_=h("indexOf");f({target:"Array",proto:!0,forced:y||!_},{indexOf:function(S){return y?p.apply(this,arguments)||0:d(this,S,arguments.length>1?arguments[1]:void 0)}})}),6992:(function(o,l,u){var f=u(5656),d=u(1223),h=u(7497),p=u(9909),y=u(654),_="Array Iterator",E=p.set,S=p.getterFor(_);o.exports=y(Array,"Array",function(w,T){E(this,{type:_,target:f(w),index:0,kind:T})},function(){var w=S(this),T=w.target,C=w.kind,x=w.index++;return!T||x>=T.length?(w.target=void 0,{value:void 0,done:!0}):C=="keys"?{value:x,done:!1}:C=="values"?{value:T[x],done:!1}:{value:[x,T[x]],done:!1}},"values"),h.Arguments=h.Array,d("keys"),d("values"),d("entries")}),1249:(function(o,l,u){var f=u(2109),d=u(2092).map,h=u(1194),p=h("map");f({target:"Array",proto:!0,forced:!p},{map:function(_){return d(this,_,arguments.length>1?arguments[1]:void 0)}})}),7042:(function(o,l,u){var f=u(2109),d=u(111),h=u(3157),p=u(1400),y=u(7466),_=u(5656),E=u(6135),S=u(5112),w=u(1194),T=w("slice"),C=S("species"),x=[].slice,R=Math.max;f({target:"Array",proto:!0,forced:!T},{slice:function(m,D){var U=_(this),K=y(U.length),B=p(m,K),W=p(D===void 0?K:D,K),Y,Q,ie;if(h(U)&&(Y=U.constructor,typeof Y=="function"&&(Y===Array||h(Y.prototype))?Y=void 0:d(Y)&&(Y=Y[C],Y===null&&(Y=void 0)),Y===Array||Y===void 0))return x.call(U,B,W);for(Q=new(Y===void 0?Array:Y)(R(W-B,0)),ie=0;B<W;B++,ie++)B in U&&E(Q,ie,U[B]);return Q.length=ie,Q}})}),561:(function(o,l,u){var f=u(2109),d=u(1400),h=u(9958),p=u(7466),y=u(7908),_=u(5417),E=u(6135),S=u(1194),w=S("splice"),T=Math.max,C=Math.min,x=9007199254740991,R="Maximum allowed length exceeded";f({target:"Array",proto:!0,forced:!w},{splice:function(m,D){var U=y(this),K=p(U.length),B=d(m,K),W=arguments.length,Y,Q,ie,ae,ve,H;if(W===0?Y=Q=0:W===1?(Y=0,Q=K-B):(Y=W-2,Q=C(T(h(D),0),K-B)),K+Y-Q>x)throw TypeError(R);for(ie=_(U,Q),ae=0;ae<Q;ae++)ve=B+ae,ve in U&&E(ie,ae,U[ve]);if(ie.length=Q,Y<Q){for(ae=B;ae<K-Q;ae++)ve=ae+Q,H=ae+Y,ve in U?U[H]=U[ve]:delete U[H];for(ae=K;ae>K-Q+Y;ae--)delete U[ae-1]}else if(Y>Q)for(ae=K-Q;ae>B;ae--)ve=ae+Q-1,H=ae+Y-1,ve in U?U[H]=U[ve]:delete U[H];for(ae=0;ae<Y;ae++)U[ae+B]=arguments[ae+2];return U.length=K-Q+Y,ie}})}),8309:(function(o,l,u){var f=u(9781),d=u(3070).f,h=Function.prototype,p=h.toString,y=/^\s*function ([^ (]*)/,_="name";f&&!(_ in h)&&d(h,_,{configurable:!0,get:function(){try{return p.call(this).match(y)[1]}catch{return""}}})}),489:(function(o,l,u){var f=u(2109),d=u(7293),h=u(7908),p=u(9518),y=u(8544),_=d(function(){p(1)});f({target:"Object",stat:!0,forced:_,sham:!y},{getPrototypeOf:function(S){return p(h(S))}})}),1539:(function(o,l,u){var f=u(1694),d=u(1320),h=u(288);f||d(Object.prototype,"toString",h,{unsafe:!0})}),4916:(function(o,l,u){var f=u(2109),d=u(2261);f({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})}),9714:(function(o,l,u){var f=u(1320),d=u(9670),h=u(7293),p=u(7066),y="toString",_=RegExp.prototype,E=_[y],S=h(function(){return E.call({source:"a",flags:"b"})!="/a/b"}),w=E.name!=y;(S||w)&&f(RegExp.prototype,y,function(){var C=d(this),x=String(C.source),R=C.flags,O=String(R===void 0&&C instanceof RegExp&&!("flags"in _)?p.call(C):R);return"/"+x+"/"+O},{unsafe:!0})}),8783:(function(o,l,u){var f=u(8710).charAt,d=u(9909),h=u(654),p="String Iterator",y=d.set,_=d.getterFor(p);h(String,"String",function(E){y(this,{type:p,string:String(E),index:0})},function(){var S=_(this),w=S.string,T=S.index,C;return T>=w.length?{value:void 0,done:!0}:(C=f(w,T),S.index+=C.length,{value:C,done:!1})})}),4723:(function(o,l,u){var f=u(7007),d=u(9670),h=u(7466),p=u(4488),y=u(1530),_=u(7651);f("match",1,function(E,S,w){return[function(C){var x=p(this),R=C==null?void 0:C[E];return R!==void 0?R.call(C,x):new RegExp(C)[E](String(x))},function(T){var C=w(S,T,this);if(C.done)return C.value;var x=d(T),R=String(this);if(!x.global)return _(x,R);var O=x.unicode;x.lastIndex=0;for(var m=[],D=0,U;(U=_(x,R))!==null;){var K=String(U[0]);m[D]=K,K===""&&(x.lastIndex=y(R,h(x.lastIndex),O)),D++}return D===0?null:m}]})}),5306:(function(o,l,u){var f=u(7007),d=u(9670),h=u(7466),p=u(9958),y=u(4488),_=u(1530),E=u(647),S=u(7651),w=Math.max,T=Math.min,C=function(x){return x===void 0?x:String(x)};f("replace",2,function(x,R,O,m){var D=m.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,U=m.REPLACE_KEEPS_$0,K=D?"$":"$0";return[function(W,Y){var Q=y(this),ie=W==null?void 0:W[x];return ie!==void 0?ie.call(W,Q,Y):R.call(String(Q),W,Y)},function(B,W){if(!D&&U||typeof W=="string"&&W.indexOf(K)===-1){var Y=O(R,B,this,W);if(Y.done)return Y.value}var Q=d(B),ie=String(this),ae=typeof W=="function";ae||(W=String(W));var ve=Q.global;if(ve){var H=Q.unicode;Q.lastIndex=0}for(var J=[];;){var z=S(Q,ie);if(z===null||(J.push(z),!ve))break;var ue=String(z[0]);ue===""&&(Q.lastIndex=_(ie,h(Q.lastIndex),H))}for(var we="",ke=0,Be=0;Be<J.length;Be++){z=J[Be];for(var nt=String(z[0]),rt=w(T(p(z.index),ie.length),0),q=[],I=1;I<z.length;I++)q.push(C(z[I]));var N=z.groups;if(ae){var M=[nt].concat(q,rt,ie);N!==void 0&&M.push(N);var Z=String(W.apply(void 0,M))}else Z=E(nt,ie,rt,q,N,W);rt>=ke&&(we+=ie.slice(ke,rt)+Z,ke=rt+nt.length)}return we+ie.slice(ke)}]})}),3123:(function(o,l,u){var f=u(7007),d=u(7850),h=u(9670),p=u(4488),y=u(6707),_=u(1530),E=u(7466),S=u(7651),w=u(2261),T=u(7293),C=[].push,x=Math.min,R=4294967295,O=!T(function(){return!RegExp(R,"y")});f("split",2,function(m,D,U){var K;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?K=function(B,W){var Y=String(p(this)),Q=W===void 0?R:W>>>0;if(Q===0)return[];if(B===void 0)return[Y];if(!d(B))return D.call(Y,B,Q);for(var ie=[],ae=(B.ignoreCase?"i":"")+(B.multiline?"m":"")+(B.unicode?"u":"")+(B.sticky?"y":""),ve=0,H=new RegExp(B.source,ae+"g"),J,z,ue;(J=w.call(H,Y))&&(z=H.lastIndex,!(z>ve&&(ie.push(Y.slice(ve,J.index)),J.length>1&&J.index<Y.length&&C.apply(ie,J.slice(1)),ue=J[0].length,ve=z,ie.length>=Q)));)H.lastIndex===J.index&&H.lastIndex++;return ve===Y.length?(ue||!H.test(""))&&ie.push(""):ie.push(Y.slice(ve)),ie.length>Q?ie.slice(0,Q):ie}:"0".split(void 0,0).length?K=function(B,W){return B===void 0&&W===0?[]:D.call(this,B,W)}:K=D,[function(W,Y){var Q=p(this),ie=W==null?void 0:W[m];return ie!==void 0?ie.call(W,Q,Y):K.call(String(Q),W,Y)},function(B,W){var Y=U(K,B,this,W,K!==D);if(Y.done)return Y.value;var Q=h(B),ie=String(this),ae=y(Q,RegExp),ve=Q.unicode,H=(Q.ignoreCase?"i":"")+(Q.multiline?"m":"")+(Q.unicode?"u":"")+(O?"y":"g"),J=new ae(O?Q:"^(?:"+Q.source+")",H),z=W===void 0?R:W>>>0;if(z===0)return[];if(ie.length===0)return S(J,ie)===null?[ie]:[];for(var ue=0,we=0,ke=[];we<ie.length;){J.lastIndex=O?we:0;var Be=S(J,O?ie:ie.slice(we)),nt;if(Be===null||(nt=x(E(J.lastIndex+(O?0:we)),ie.length))===ue)we=_(ie,we,ve);else{if(ke.push(ie.slice(ue,we)),ke.length===z)return ke;for(var rt=1;rt<=Be.length-1;rt++)if(ke.push(Be[rt]),ke.length===z)return ke;we=ue=nt}}return ke.push(ie.slice(ue)),ke}]},!O)}),3210:(function(o,l,u){var f=u(2109),d=u(3111).trim,h=u(6091);f({target:"String",proto:!0,forced:h("trim")},{trim:function(){return d(this)}})}),2990:(function(o,l,u){var f=u(260),d=u(1048),h=f.aTypedArray,p=f.exportTypedArrayMethod;p("copyWithin",function(_,E){return d.call(h(this),_,E,arguments.length>2?arguments[2]:void 0)})}),8927:(function(o,l,u){var f=u(260),d=u(2092).every,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("every",function(_){return d(h(this),_,arguments.length>1?arguments[1]:void 0)})}),3105:(function(o,l,u){var f=u(260),d=u(1285),h=f.aTypedArray,p=f.exportTypedArrayMethod;p("fill",function(_){return d.apply(h(this),arguments)})}),5035:(function(o,l,u){var f=u(260),d=u(2092).filter,h=u(3074),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("filter",function(E){var S=d(p(this),E,arguments.length>1?arguments[1]:void 0);return h(this,S)})}),7174:(function(o,l,u){var f=u(260),d=u(2092).findIndex,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("findIndex",function(_){return d(h(this),_,arguments.length>1?arguments[1]:void 0)})}),4345:(function(o,l,u){var f=u(260),d=u(2092).find,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("find",function(_){return d(h(this),_,arguments.length>1?arguments[1]:void 0)})}),2846:(function(o,l,u){var f=u(260),d=u(2092).forEach,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("forEach",function(_){d(h(this),_,arguments.length>1?arguments[1]:void 0)})}),4731:(function(o,l,u){var f=u(260),d=u(1318).includes,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("includes",function(_){return d(h(this),_,arguments.length>1?arguments[1]:void 0)})}),7209:(function(o,l,u){var f=u(260),d=u(1318).indexOf,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("indexOf",function(_){return d(h(this),_,arguments.length>1?arguments[1]:void 0)})}),6319:(function(o,l,u){var f=u(7854),d=u(260),h=u(6992),p=u(5112),y=p("iterator"),_=f.Uint8Array,E=h.values,S=h.keys,w=h.entries,T=d.aTypedArray,C=d.exportTypedArrayMethod,x=_&&_.prototype[y],R=!!x&&(x.name=="values"||x.name==null),O=function(){return E.call(T(this))};C("entries",function(){return w.call(T(this))}),C("keys",function(){return S.call(T(this))}),C("values",O,!R),C(y,O,!R)}),8867:(function(o,l,u){var f=u(260),d=f.aTypedArray,h=f.exportTypedArrayMethod,p=[].join;h("join",function(_){return p.apply(d(this),arguments)})}),7789:(function(o,l,u){var f=u(260),d=u(6583),h=f.aTypedArray,p=f.exportTypedArrayMethod;p("lastIndexOf",function(_){return d.apply(h(this),arguments)})}),3739:(function(o,l,u){var f=u(260),d=u(2092).map,h=u(6707),p=f.aTypedArray,y=f.aTypedArrayConstructor,_=f.exportTypedArrayMethod;_("map",function(S){return d(p(this),S,arguments.length>1?arguments[1]:void 0,function(w,T){return new(y(h(w,w.constructor)))(T)})})}),4483:(function(o,l,u){var f=u(260),d=u(3671).right,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("reduceRight",function(_){return d(h(this),_,arguments.length,arguments.length>1?arguments[1]:void 0)})}),9368:(function(o,l,u){var f=u(260),d=u(3671).left,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("reduce",function(_){return d(h(this),_,arguments.length,arguments.length>1?arguments[1]:void 0)})}),2056:(function(o,l,u){var f=u(260),d=f.aTypedArray,h=f.exportTypedArrayMethod,p=Math.floor;h("reverse",function(){for(var _=this,E=d(_).length,S=p(E/2),w=0,T;w<S;)T=_[w],_[w++]=_[--E],_[E]=T;return _})}),3462:(function(o,l,u){var f=u(260),d=u(7466),h=u(4590),p=u(7908),y=u(7293),_=f.aTypedArray,E=f.exportTypedArrayMethod,S=y(function(){new Int8Array(1).set({})});E("set",function(T){_(this);var C=h(arguments.length>1?arguments[1]:void 0,1),x=this.length,R=p(T),O=d(R.length),m=0;if(O+C>x)throw RangeError("Wrong length");for(;m<O;)this[C+m]=R[m++]},S)}),678:(function(o,l,u){var f=u(260),d=u(6707),h=u(7293),p=f.aTypedArray,y=f.aTypedArrayConstructor,_=f.exportTypedArrayMethod,E=[].slice,S=h(function(){new Int8Array(1).slice()});_("slice",function(T,C){for(var x=E.call(p(this),T,C),R=d(this,this.constructor),O=0,m=x.length,D=new(y(R))(m);m>O;)D[O]=x[O++];return D},S)}),7462:(function(o,l,u){var f=u(260),d=u(2092).some,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("some",function(_){return d(h(this),_,arguments.length>1?arguments[1]:void 0)})}),3824:(function(o,l,u){var f=u(260),d=f.aTypedArray,h=f.exportTypedArrayMethod,p=[].sort;h("sort",function(_){return p.call(d(this),_)})}),5021:(function(o,l,u){var f=u(260),d=u(7466),h=u(1400),p=u(6707),y=f.aTypedArray,_=f.exportTypedArrayMethod;_("subarray",function(S,w){var T=y(this),C=T.length,x=h(S,C);return new(p(T,T.constructor))(T.buffer,T.byteOffset+x*T.BYTES_PER_ELEMENT,d((w===void 0?C:h(w,C))-x))})}),2974:(function(o,l,u){var f=u(7854),d=u(260),h=u(7293),p=f.Int8Array,y=d.aTypedArray,_=d.exportTypedArrayMethod,E=[].toLocaleString,S=[].slice,w=!!p&&h(function(){E.call(new p(1))}),T=h(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!h(function(){p.prototype.toLocaleString.call([1,2])});_("toLocaleString",function(){return E.apply(w?S.call(y(this)):y(this),arguments)},T)}),5016:(function(o,l,u){var f=u(260).exportTypedArrayMethod,d=u(7293),h=u(7854),p=h.Uint8Array,y=p&&p.prototype||{},_=[].toString,E=[].join;d(function(){_.call({})})&&(_=function(){return E.call(this)});var S=y.toString!=_;f("toString",_,S)}),2472:(function(o,l,u){var f=u(9843);f("Uint8",function(d){return function(p,y,_){return d(this,p,y,_)}})}),4747:(function(o,l,u){var f=u(7854),d=u(8324),h=u(8533),p=u(8880);for(var y in d){var _=f[y],E=_&&_.prototype;if(E&&E.forEach!==h)try{p(E,"forEach",h)}catch{E.forEach=h}}}),3948:(function(o,l,u){var f=u(7854),d=u(8324),h=u(6992),p=u(8880),y=u(5112),_=y("iterator"),E=y("toStringTag"),S=h.values;for(var w in d){var T=f[w],C=T&&T.prototype;if(C){if(C[_]!==S)try{p(C,_,S)}catch{C[_]=S}if(C[E]||p(C,E,w),d[w]){for(var x in h)if(C[x]!==h[x])try{p(C,x,h[x])}catch{C[x]=h[x]}}}}}),1637:(function(o,l,u){u(6992);var f=u(2109),d=u(5005),h=u(590),p=u(1320),y=u(2248),_=u(8003),E=u(4994),S=u(9909),w=u(5787),T=u(6656),C=u(9974),x=u(648),R=u(9670),O=u(111),m=u(30),D=u(9114),U=u(8554),K=u(1246),B=u(5112),W=d("fetch"),Y=d("Headers"),Q=B("iterator"),ie="URLSearchParams",ae=ie+"Iterator",ve=S.set,H=S.getterFor(ie),J=S.getterFor(ae),z=/\+/g,ue=Array(4),we=function(ce){return ue[ce-1]||(ue[ce-1]=RegExp("((?:%[\\da-f]{2}){"+ce+"})","gi"))},ke=function(ce){try{return decodeURIComponent(ce)}catch{return ce}},Be=function(ce){var be=ce.replace(z," "),_e=4;try{return decodeURIComponent(be)}catch{for(;_e;)be=be.replace(we(_e--),ke);return be}},nt=/[!'()~]|%20/g,rt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},q=function(ce){return rt[ce]},I=function(ce){return encodeURIComponent(ce).replace(nt,q)},N=function(ce,be){if(be)for(var _e=be.split("&"),Ce=0,Me,fe;Ce<_e.length;)Me=_e[Ce++],Me.length&&(fe=Me.split("="),ce.push({key:Be(fe.shift()),value:Be(fe.join("="))}))},M=function(ce){this.entries.length=0,N(this.entries,ce)},Z=function(ce,be){if(ce<be)throw TypeError("Not enough arguments")},L=E(function(be,_e){ve(this,{type:ae,iterator:U(H(be).entries),kind:_e})},"Iterator",function(){var be=J(this),_e=be.kind,Ce=be.iterator.next(),Me=Ce.value;return Ce.done||(Ce.value=_e==="keys"?Me.key:_e==="values"?Me.value:[Me.key,Me.value]),Ce}),G=function(){w(this,G,ie);var be=arguments.length>0?arguments[0]:void 0,_e=this,Ce=[],Me,fe,me,ge,Te,Pe,De,qe,_t;if(ve(_e,{type:ie,entries:Ce,updateURL:function(){},updateSearchParams:M}),be!==void 0)if(O(be))if(Me=K(be),typeof Me=="function")for(fe=Me.call(be),me=fe.next;!(ge=me.call(fe)).done;){if(Te=U(R(ge.value)),Pe=Te.next,(De=Pe.call(Te)).done||(qe=Pe.call(Te)).done||!Pe.call(Te).done)throw TypeError("Expected sequence with length 2");Ce.push({key:De.value+"",value:qe.value+""})}else for(_t in be)T(be,_t)&&Ce.push({key:_t,value:be[_t]+""});else N(Ce,typeof be=="string"?be.charAt(0)==="?"?be.slice(1):be:be+"")},pe=G.prototype;y(pe,{append:function(be,_e){Z(arguments.length,2);var Ce=H(this);Ce.entries.push({key:be+"",value:_e+""}),Ce.updateURL()},delete:function(ce){Z(arguments.length,1);for(var be=H(this),_e=be.entries,Ce=ce+"",Me=0;Me<_e.length;)_e[Me].key===Ce?_e.splice(Me,1):Me++;be.updateURL()},get:function(be){Z(arguments.length,1);for(var _e=H(this).entries,Ce=be+"",Me=0;Me<_e.length;Me++)if(_e[Me].key===Ce)return _e[Me].value;return null},getAll:function(be){Z(arguments.length,1);for(var _e=H(this).entries,Ce=be+"",Me=[],fe=0;fe<_e.length;fe++)_e[fe].key===Ce&&Me.push(_e[fe].value);return Me},has:function(be){Z(arguments.length,1);for(var _e=H(this).entries,Ce=be+"",Me=0;Me<_e.length;)if(_e[Me++].key===Ce)return!0;return!1},set:function(be,_e){Z(arguments.length,1);for(var Ce=H(this),Me=Ce.entries,fe=!1,me=be+"",ge=_e+"",Te=0,Pe;Te<Me.length;Te++)Pe=Me[Te],Pe.key===me&&(fe?Me.splice(Te--,1):(fe=!0,Pe.value=ge));fe||Me.push({key:me,value:ge}),Ce.updateURL()},sort:function(){var be=H(this),_e=be.entries,Ce=_e.slice(),Me,fe,me;for(_e.length=0,me=0;me<Ce.length;me++){for(Me=Ce[me],fe=0;fe<me;fe++)if(_e[fe].key>Me.key){_e.splice(fe,0,Me);break}fe===me&&_e.push(Me)}be.updateURL()},forEach:function(be){for(var _e=H(this).entries,Ce=C(be,arguments.length>1?arguments[1]:void 0,3),Me=0,fe;Me<_e.length;)fe=_e[Me++],Ce(fe.value,fe.key,this)},keys:function(){return new L(this,"keys")},values:function(){return new L(this,"values")},entries:function(){return new L(this,"entries")}},{enumerable:!0}),p(pe,Q,pe.entries),p(pe,"toString",function(){for(var be=H(this).entries,_e=[],Ce=0,Me;Ce<be.length;)Me=be[Ce++],_e.push(I(Me.key)+"="+I(Me.value));return _e.join("&")},{enumerable:!0}),_(G,ie),f({global:!0,forced:!h},{URLSearchParams:G}),!h&&typeof W=="function"&&typeof Y=="function"&&f({global:!0,enumerable:!0,forced:!0},{fetch:function(be){var _e=[be],Ce,Me,fe;return arguments.length>1&&(Ce=arguments[1],O(Ce)&&(Me=Ce.body,x(Me)===ie&&(fe=Ce.headers?new Y(Ce.headers):new Y,fe.has("content-type")||fe.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Ce=m(Ce,{body:D(0,String(Me)),headers:D(0,fe)}))),_e.push(Ce)),W.apply(this,_e)}}),o.exports={URLSearchParams:G,getState:H}}),285:(function(o,l,u){u(8783);var f=u(2109),d=u(9781),h=u(590),p=u(7854),y=u(6048),_=u(1320),E=u(5787),S=u(6656),w=u(1574),T=u(8457),C=u(8710).codeAt,x=u(3197),R=u(8003),O=u(1637),m=u(9909),D=p.URL,U=O.URLSearchParams,K=O.getState,B=m.set,W=m.getterFor("URL"),Y=Math.floor,Q=Math.pow,ie="Invalid authority",ae="Invalid scheme",ve="Invalid host",H="Invalid port",J=/[A-Za-z]/,z=/[\d+-.A-Za-z]/,ue=/\d/,we=/^(0x|0X)/,ke=/^[0-7]+$/,Be=/^\d+$/,nt=/^[\dA-Fa-f]+$/,rt=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,q=/[\u0000\t\u000A\u000D #/:?@[\\]]/,I=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,N=/[\t\u000A\u000D]/g,M,Z=function(ye,lt){var tt,ct,kt;if(lt.charAt(0)=="["){if(lt.charAt(lt.length-1)!="]"||(tt=G(lt.slice(1,-1)),!tt))return ve;ye.host=tt}else if(ge(ye)){if(lt=x(lt),rt.test(lt)||(tt=L(lt),tt===null))return ve;ye.host=tt}else{if(q.test(lt))return ve;for(tt="",ct=T(lt),kt=0;kt<ct.length;kt++)tt+=fe(ct[kt],be);ye.host=tt}},L=function(ye){var lt=ye.split("."),tt,ct,kt,dt,Gt,Cr,Wr;if(lt.length&<[lt.length-1]==""&<.pop(),tt=lt.length,tt>4)return ye;for(ct=[],kt=0;kt<tt;kt++){if(dt=lt[kt],dt=="")return ye;if(Gt=10,dt.length>1&&dt.charAt(0)=="0"&&(Gt=we.test(dt)?16:8,dt=dt.slice(Gt==8?1:2)),dt==="")Cr=0;else{if(!(Gt==10?Be:Gt==8?ke:nt).test(dt))return ye;Cr=parseInt(dt,Gt)}ct.push(Cr)}for(kt=0;kt<tt;kt++)if(Cr=ct[kt],kt==tt-1){if(Cr>=Q(256,5-tt))return null}else if(Cr>255)return null;for(Wr=ct.pop(),kt=0;kt<ct.length;kt++)Wr+=ct[kt]*Q(256,3-kt);return Wr},G=function(ye){var lt=[0,0,0,0,0,0,0,0],tt=0,ct=null,kt=0,dt,Gt,Cr,Wr,Kr,an,Nt,Vr=function(){return ye.charAt(kt)};if(Vr()==":"){if(ye.charAt(1)!=":")return;kt+=2,tt++,ct=tt}for(;Vr();){if(tt==8)return;if(Vr()==":"){if(ct!==null)return;kt++,tt++,ct=tt;continue}for(dt=Gt=0;Gt<4&&nt.test(Vr());)dt=dt*16+parseInt(Vr(),16),kt++,Gt++;if(Vr()=="."){if(Gt==0||(kt-=Gt,tt>6))return;for(Cr=0;Vr();){if(Wr=null,Cr>0)if(Vr()=="."&&Cr<4)kt++;else return;if(!ue.test(Vr()))return;for(;ue.test(Vr());){if(Kr=parseInt(Vr(),10),Wr===null)Wr=Kr;else{if(Wr==0)return;Wr=Wr*10+Kr}if(Wr>255)return;kt++}lt[tt]=lt[tt]*256+Wr,Cr++,(Cr==2||Cr==4)&&tt++}if(Cr!=4)return;break}else if(Vr()==":"){if(kt++,!Vr())return}else if(Vr())return;lt[tt++]=dt}if(ct!==null)for(an=tt-ct,tt=7;tt!=0&&an>0;)Nt=lt[tt],lt[tt--]=lt[ct+an-1],lt[ct+--an]=Nt;else if(tt!=8)return;return lt},pe=function(ye){for(var lt=null,tt=1,ct=null,kt=0,dt=0;dt<8;dt++)ye[dt]!==0?(kt>tt&&(lt=ct,tt=kt),ct=null,kt=0):(ct===null&&(ct=dt),++kt);return kt>tt&&(lt=ct,tt=kt),lt},ce=function(ye){var lt,tt,ct,kt;if(typeof ye=="number"){for(lt=[],tt=0;tt<4;tt++)lt.unshift(ye%256),ye=Y(ye/256);return lt.join(".")}else if(typeof ye=="object"){for(lt="",ct=pe(ye),tt=0;tt<8;tt++)kt&&ye[tt]===0||(kt&&(kt=!1),ct===tt?(lt+=tt?":":"::",kt=!0):(lt+=ye[tt].toString(16),tt<7&&(lt+=":")));return"["+lt+"]"}return ye},be={},_e=w({},be,{" ":1,'"':1,"<":1,">":1,"`":1}),Ce=w({},_e,{"#":1,"?":1,"{":1,"}":1}),Me=w({},Ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(ye,lt){var tt=C(ye,0);return tt>32&&tt<127&&!S(lt,ye)?ye:encodeURIComponent(ye)},me={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ge=function(ye){return S(me,ye.scheme)},Te=function(ye){return ye.username!=""||ye.password!=""},Pe=function(ye){return!ye.host||ye.cannotBeABaseURL||ye.scheme=="file"},De=function(ye,lt){var tt;return ye.length==2&&J.test(ye.charAt(0))&&((tt=ye.charAt(1))==":"||!lt&&tt=="|")},qe=function(ye){var lt;return ye.length>1&&De(ye.slice(0,2))&&(ye.length==2||(lt=ye.charAt(2))==="/"||lt==="\\"||lt==="?"||lt==="#")},_t=function(ye){var lt=ye.path,tt=lt.length;tt&&(ye.scheme!="file"||tt!=1||!De(lt[0],!0))&<.pop()},qt=function(ye){return ye==="."||ye.toLowerCase()==="%2e"},Mt=function(ye){return ye=ye.toLowerCase(),ye===".."||ye==="%2e."||ye===".%2e"||ye==="%2e%2e"},Xe={},wt={},mt={},Et={},At={},ft={},Ft={},Ct={},Ae={},Ze={},ut={},bt={},Lt={},tr={},vr={},ar={},hr={},xr={},en={},Qn={},bn={},vn=function(ye,lt,tt,ct){var kt=tt||Xe,dt=0,Gt="",Cr=!1,Wr=!1,Kr=!1,an,Nt,Vr,Ci;for(tt||(ye.scheme="",ye.username="",ye.password="",ye.host=null,ye.port=null,ye.path=[],ye.query=null,ye.fragment=null,ye.cannotBeABaseURL=!1,lt=lt.replace(I,"")),lt=lt.replace(N,""),an=T(lt);dt<=an.length;){switch(Nt=an[dt],kt){case Xe:if(Nt&&J.test(Nt))Gt+=Nt.toLowerCase(),kt=wt;else{if(tt)return ae;kt=mt;continue}break;case wt:if(Nt&&(z.test(Nt)||Nt=="+"||Nt=="-"||Nt=="."))Gt+=Nt.toLowerCase();else if(Nt==":"){if(tt&&(ge(ye)!=S(me,Gt)||Gt=="file"&&(Te(ye)||ye.port!==null)||ye.scheme=="file"&&!ye.host))return;if(ye.scheme=Gt,tt){ge(ye)&&me[ye.scheme]==ye.port&&(ye.port=null);return}Gt="",ye.scheme=="file"?kt=tr:ge(ye)&&ct&&ct.scheme==ye.scheme?kt=Et:ge(ye)?kt=Ct:an[dt+1]=="/"?(kt=At,dt++):(ye.cannotBeABaseURL=!0,ye.path.push(""),kt=en)}else{if(tt)return ae;Gt="",kt=mt,dt=0;continue}break;case mt:if(!ct||ct.cannotBeABaseURL&&Nt!="#")return ae;if(ct.cannotBeABaseURL&&Nt=="#"){ye.scheme=ct.scheme,ye.path=ct.path.slice(),ye.query=ct.query,ye.fragment="",ye.cannotBeABaseURL=!0,kt=bn;break}kt=ct.scheme=="file"?tr:ft;continue;case Et:if(Nt=="/"&&an[dt+1]=="/")kt=Ae,dt++;else{kt=ft;continue}break;case At:if(Nt=="/"){kt=Ze;break}else{kt=xr;continue}case ft:if(ye.scheme=ct.scheme,Nt==M)ye.username=ct.username,ye.password=ct.password,ye.host=ct.host,ye.port=ct.port,ye.path=ct.path.slice(),ye.query=ct.query;else if(Nt=="/"||Nt=="\\"&&ge(ye))kt=Ft;else if(Nt=="?")ye.username=ct.username,ye.password=ct.password,ye.host=ct.host,ye.port=ct.port,ye.path=ct.path.slice(),ye.query="",kt=Qn;else if(Nt=="#")ye.username=ct.username,ye.password=ct.password,ye.host=ct.host,ye.port=ct.port,ye.path=ct.path.slice(),ye.query=ct.query,ye.fragment="",kt=bn;else{ye.username=ct.username,ye.password=ct.password,ye.host=ct.host,ye.port=ct.port,ye.path=ct.path.slice(),ye.path.pop(),kt=xr;continue}break;case Ft:if(ge(ye)&&(Nt=="/"||Nt=="\\"))kt=Ae;else if(Nt=="/")kt=Ze;else{ye.username=ct.username,ye.password=ct.password,ye.host=ct.host,ye.port=ct.port,kt=xr;continue}break;case Ct:if(kt=Ae,Nt!="/"||Gt.charAt(dt+1)!="/")continue;dt++;break;case Ae:if(Nt!="/"&&Nt!="\\"){kt=Ze;continue}break;case Ze:if(Nt=="@"){Cr&&(Gt="%40"+Gt),Cr=!0,Vr=T(Gt);for(var Kn=0;Kn<Vr.length;Kn++){var Wi=Vr[Kn];if(Wi==":"&&!Kr){Kr=!0;continue}var wi=fe(Wi,Me);Kr?ye.password+=wi:ye.username+=wi}Gt=""}else if(Nt==M||Nt=="/"||Nt=="?"||Nt=="#"||Nt=="\\"&&ge(ye)){if(Cr&&Gt=="")return ie;dt-=T(Gt).length+1,Gt="",kt=ut}else Gt+=Nt;break;case ut:case bt:if(tt&&ye.scheme=="file"){kt=ar;continue}else if(Nt==":"&&!Wr){if(Gt=="")return ve;if(Ci=Z(ye,Gt),Ci)return Ci;if(Gt="",kt=Lt,tt==bt)return}else if(Nt==M||Nt=="/"||Nt=="?"||Nt=="#"||Nt=="\\"&&ge(ye)){if(ge(ye)&&Gt=="")return ve;if(tt&&Gt==""&&(Te(ye)||ye.port!==null))return;if(Ci=Z(ye,Gt),Ci)return Ci;if(Gt="",kt=hr,tt)return;continue}else Nt=="["?Wr=!0:Nt=="]"&&(Wr=!1),Gt+=Nt;break;case Lt:if(ue.test(Nt))Gt+=Nt;else if(Nt==M||Nt=="/"||Nt=="?"||Nt=="#"||Nt=="\\"&&ge(ye)||tt){if(Gt!=""){var na=parseInt(Gt,10);if(na>65535)return H;ye.port=ge(ye)&&na===me[ye.scheme]?null:na,Gt=""}if(tt)return;kt=hr;continue}else return H;break;case tr:if(ye.scheme="file",Nt=="/"||Nt=="\\")kt=vr;else if(ct&&ct.scheme=="file")if(Nt==M)ye.host=ct.host,ye.path=ct.path.slice(),ye.query=ct.query;else if(Nt=="?")ye.host=ct.host,ye.path=ct.path.slice(),ye.query="",kt=Qn;else if(Nt=="#")ye.host=ct.host,ye.path=ct.path.slice(),ye.query=ct.query,ye.fragment="",kt=bn;else{qe(an.slice(dt).join(""))||(ye.host=ct.host,ye.path=ct.path.slice(),_t(ye)),kt=xr;continue}else{kt=xr;continue}break;case vr:if(Nt=="/"||Nt=="\\"){kt=ar;break}ct&&ct.scheme=="file"&&!qe(an.slice(dt).join(""))&&(De(ct.path[0],!0)?ye.path.push(ct.path[0]):ye.host=ct.host),kt=xr;continue;case ar:if(Nt==M||Nt=="/"||Nt=="\\"||Nt=="?"||Nt=="#"){if(!tt&&De(Gt))kt=xr;else if(Gt==""){if(ye.host="",tt)return;kt=hr}else{if(Ci=Z(ye,Gt),Ci)return Ci;if(ye.host=="localhost"&&(ye.host=""),tt)return;Gt="",kt=hr}continue}else Gt+=Nt;break;case hr:if(ge(ye)){if(kt=xr,Nt!="/"&&Nt!="\\")continue}else if(!tt&&Nt=="?")ye.query="",kt=Qn;else if(!tt&&Nt=="#")ye.fragment="",kt=bn;else if(Nt!=M&&(kt=xr,Nt!="/"))continue;break;case xr:if(Nt==M||Nt=="/"||Nt=="\\"&&ge(ye)||!tt&&(Nt=="?"||Nt=="#")){if(Mt(Gt)?(_t(ye),Nt!="/"&&!(Nt=="\\"&&ge(ye))&&ye.path.push("")):qt(Gt)?Nt!="/"&&!(Nt=="\\"&&ge(ye))&&ye.path.push(""):(ye.scheme=="file"&&!ye.path.length&&De(Gt)&&(ye.host&&(ye.host=""),Gt=Gt.charAt(0)+":"),ye.path.push(Gt)),Gt="",ye.scheme=="file"&&(Nt==M||Nt=="?"||Nt=="#"))for(;ye.path.length>1&&ye.path[0]==="";)ye.path.shift();Nt=="?"?(ye.query="",kt=Qn):Nt=="#"&&(ye.fragment="",kt=bn)}else Gt+=fe(Nt,Ce);break;case en:Nt=="?"?(ye.query="",kt=Qn):Nt=="#"?(ye.fragment="",kt=bn):Nt!=M&&(ye.path[0]+=fe(Nt,be));break;case Qn:!tt&&Nt=="#"?(ye.fragment="",kt=bn):Nt!=M&&(Nt=="'"&&ge(ye)?ye.query+="%27":Nt=="#"?ye.query+="%23":ye.query+=fe(Nt,be));break;case bn:Nt!=M&&(ye.fragment+=fe(Nt,_e));break}dt++}},dn=function(lt){var tt=E(this,dn,"URL"),ct=arguments.length>1?arguments[1]:void 0,kt=String(lt),dt=B(tt,{type:"URL"}),Gt,Cr;if(ct!==void 0){if(ct instanceof dn)Gt=W(ct);else if(Cr=vn(Gt={},String(ct)),Cr)throw TypeError(Cr)}if(Cr=vn(dt,kt,null,Gt),Cr)throw TypeError(Cr);var Wr=dt.searchParams=new U,Kr=K(Wr);Kr.updateSearchParams(dt.query),Kr.updateURL=function(){dt.query=String(Wr)||null},d||(tt.href=jn.call(tt),tt.origin=li.call(tt),tt.protocol=ti.call(tt),tt.username=Si.call(tt),tt.password=xi.call(tt),tt.host=Tn.call(tt),tt.hostname=Gn.call(tt),tt.port=hi.call(tt),tt.pathname=ci.call(tt),tt.search=it.call(tt),tt.searchParams=$t.call(tt),tt.hash=vt.call(tt))},Fn=dn.prototype,jn=function(){var ye=W(this),lt=ye.scheme,tt=ye.username,ct=ye.password,kt=ye.host,dt=ye.port,Gt=ye.path,Cr=ye.query,Wr=ye.fragment,Kr=lt+":";return kt!==null?(Kr+="//",Te(ye)&&(Kr+=tt+(ct?":"+ct:"")+"@"),Kr+=ce(kt),dt!==null&&(Kr+=":"+dt)):lt=="file"&&(Kr+="//"),Kr+=ye.cannotBeABaseURL?Gt[0]:Gt.length?"/"+Gt.join("/"):"",Cr!==null&&(Kr+="?"+Cr),Wr!==null&&(Kr+="#"+Wr),Kr},li=function(){var ye=W(this),lt=ye.scheme,tt=ye.port;if(lt=="blob")try{return new URL(lt.path[0]).origin}catch{return"null"}return lt=="file"||!ge(ye)?"null":lt+"://"+ce(ye.host)+(tt!==null?":"+tt:"")},ti=function(){return W(this).scheme+":"},Si=function(){return W(this).username},xi=function(){return W(this).password},Tn=function(){var ye=W(this),lt=ye.host,tt=ye.port;return lt===null?"":tt===null?ce(lt):ce(lt)+":"+tt},Gn=function(){var ye=W(this).host;return ye===null?"":ce(ye)},hi=function(){var ye=W(this).port;return ye===null?"":String(ye)},ci=function(){var ye=W(this),lt=ye.path;return ye.cannotBeABaseURL?lt[0]:lt.length?"/"+lt.join("/"):""},it=function(){var ye=W(this).query;return ye?"?"+ye:""},$t=function(){return W(this).searchParams},vt=function(){var ye=W(this).fragment;return ye?"#"+ye:""},Ge=function(ye,lt){return{get:ye,set:lt,configurable:!0,enumerable:!0}};if(d&&y(Fn,{href:Ge(jn,function(ye){var lt=W(this),tt=String(ye),ct=vn(lt,tt);if(ct)throw TypeError(ct);K(lt.searchParams).updateSearchParams(lt.query)}),origin:Ge(li),protocol:Ge(ti,function(ye){var lt=W(this);vn(lt,String(ye)+":",Xe)}),username:Ge(Si,function(ye){var lt=W(this),tt=T(String(ye));if(!Pe(lt)){lt.username="";for(var ct=0;ct<tt.length;ct++)lt.username+=fe(tt[ct],Me)}}),password:Ge(xi,function(ye){var lt=W(this),tt=T(String(ye));if(!Pe(lt)){lt.password="";for(var ct=0;ct<tt.length;ct++)lt.password+=fe(tt[ct],Me)}}),host:Ge(Tn,function(ye){var lt=W(this);lt.cannotBeABaseURL||vn(lt,String(ye),ut)}),hostname:Ge(Gn,function(ye){var lt=W(this);lt.cannotBeABaseURL||vn(lt,String(ye),bt)}),port:Ge(hi,function(ye){var lt=W(this);Pe(lt)||(ye=String(ye),ye==""?lt.port=null:vn(lt,ye,Lt))}),pathname:Ge(ci,function(ye){var lt=W(this);lt.cannotBeABaseURL||(lt.path=[],vn(lt,ye+"",hr))}),search:Ge(it,function(ye){var lt=W(this);ye=String(ye),ye==""?lt.query=null:(ye.charAt(0)=="?"&&(ye=ye.slice(1)),lt.query="",vn(lt,ye,Qn)),K(lt.searchParams).updateSearchParams(lt.query)}),searchParams:Ge($t),hash:Ge(vt,function(ye){var lt=W(this);if(ye=String(ye),ye==""){lt.fragment=null;return}ye.charAt(0)=="#"&&(ye=ye.slice(1)),lt.fragment="",vn(lt,ye,bn)})}),_(Fn,"toJSON",function(){return jn.call(this)},{enumerable:!0}),_(Fn,"toString",function(){return jn.call(this)},{enumerable:!0}),D){var xt=D.createObjectURL,fr=D.revokeObjectURL;xt&&_(dn,"createObjectURL",function(lt){return xt.apply(D,arguments)}),fr&&_(dn,"revokeObjectURL",function(lt){return fr.apply(D,arguments)})}R(dn,"URL"),f({global:!0,forced:!h,sham:!d},{URL:dn})})},n={};function i(o){if(n[o])return n[o].exports;var l=n[o]={exports:{}};return r[o](l,l.exports,i),l.exports}(function(){i.d=function(o,l){for(var u in l)i.o(l,u)&&!i.o(o,u)&&Object.defineProperty(o,u,{enumerable:!0,get:l[u]})}})(),(function(){i.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})()})(),(function(){i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)}})(),(function(){i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}})();var a={};return(function(){i.r(a),i.d(a,{Dropzone:function(){return H},default:function(){return q}}),i(2222),i(7327),i(2772),i(6992),i(1249),i(7042),i(561),i(8264),i(8309),i(489),i(1539),i(4916),i(9714),i(8783),i(4723),i(5306),i(3123),i(3210),i(2472),i(2990),i(8927),i(3105),i(5035),i(4345),i(7174),i(2846),i(4731),i(7209),i(6319),i(8867),i(7789),i(3739),i(9368),i(4483),i(2056),i(3462),i(678),i(7462),i(3824),i(5021),i(2974),i(5016),i(4747),i(3948),i(285);function o(I,N){var M;if(typeof Symbol>"u"||I[Symbol.iterator]==null){if(Array.isArray(I)||(M=l(I))||I&&typeof I.length=="number"){M&&(I=M);var Z=0,L=function(){};return{s:L,n:function(){return Z>=I.length?{done:!0}:{done:!1,value:I[Z++]}},e:function(_e){throw _e},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
214
214
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var G=!0,pe=!1,ce;return{s:function(){M=I[Symbol.iterator]()},n:function(){var _e=M.next();return G=_e.done,_e},e:function(_e){pe=!0,ce=_e},f:function(){try{!G&&M.return!=null&&M.return()}finally{if(pe)throw ce}}}}function l(I,N){if(I){if(typeof I=="string")return u(I,N);var M=Object.prototype.toString.call(I).slice(8,-1);if(M==="Object"&&I.constructor&&(M=I.constructor.name),M==="Map"||M==="Set")return Array.from(I);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return u(I,N)}}function u(I,N){(N==null||N>I.length)&&(N=I.length);for(var M=0,Z=new Array(N);M<N;M++)Z[M]=I[M];return Z}function f(I,N){if(!(I instanceof N))throw new TypeError("Cannot call a class as a function")}function d(I,N){for(var M=0;M<N.length;M++){var Z=N[M];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(I,Z.key,Z)}}function h(I,N,M){return N&&d(I.prototype,N),I}var p=(function(){function I(){f(this,I)}return h(I,[{key:"on",value:(function(M,Z){return this._callbacks=this._callbacks||{},this._callbacks[M]||(this._callbacks[M]=[]),this._callbacks[M].push(Z),this})},{key:"emit",value:function(M){this._callbacks=this._callbacks||{};for(var Z=this._callbacks[M],L=arguments.length,G=new Array(L>1?L-1:0),pe=1;pe<L;pe++)G[pe-1]=arguments[pe];if(Z){var ce=o(Z),be;try{for(ce.s();!(be=ce.n()).done;){var _e=be.value;_e.apply(this,G)}}catch(Ce){ce.e(Ce)}finally{ce.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+M,{args:G})),this}},{key:"makeEvent",value:function(M,Z){var L={bubbles:!0,cancelable:!0,detail:Z};if(typeof window.CustomEvent=="function")return new CustomEvent(M,L);var G=document.createEvent("CustomEvent");return G.initCustomEvent(M,L.bubbles,L.cancelable,L.detail),G}},{key:"off",value:function(M,Z){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var L=this._callbacks[M];if(!L)return this;if(arguments.length===1)return delete this._callbacks[M],this;for(var G=0;G<L.length;G++){var pe=L[G];if(pe===Z){L.splice(G,1);break}}return this}}]),I})(),y='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',_=y;function E(I,N){var M;if(typeof Symbol>"u"||I[Symbol.iterator]==null){if(Array.isArray(I)||(M=S(I))||I&&typeof I.length=="number"){M&&(I=M);var Z=0,L=function(){};return{s:L,n:function(){return Z>=I.length?{done:!0}:{done:!1,value:I[Z++]}},e:function(_e){throw _e},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
215
215
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var G=!0,pe=!1,ce;return{s:function(){M=I[Symbol.iterator]()},n:function(){var _e=M.next();return G=_e.done,_e},e:function(_e){pe=!0,ce=_e},f:function(){try{!G&&M.return!=null&&M.return()}finally{if(pe)throw ce}}}}function S(I,N){if(I){if(typeof I=="string")return w(I,N);var M=Object.prototype.toString.call(I).slice(8,-1);if(M==="Object"&&I.constructor&&(M=I.constructor.name),M==="Map"||M==="Set")return Array.from(I);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return w(I,N)}}function w(I,N){(N==null||N>I.length)&&(N=I.length);for(var M=0,Z=new Array(N);M<N;M++)Z[M]=I[M];return Z}var T={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(N,M,Z){if(Z)return{dzuuid:Z.file.upload.uuid,dzchunkindex:Z.index,dztotalfilesize:Z.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:Z.file.upload.totalChunkCount,dzchunkbyteoffset:Z.index*this.options.chunkSize}},accept:function(N,M){return M()},chunksUploaded:function(N,M){M()},fallback:function(){var N;this.element.className="".concat(this.element.className," dz-browser-not-supported");var M=E(this.element.getElementsByTagName("div")),Z;try{for(M.s();!(Z=M.n()).done;){var L=Z.value;if(/(^| )dz-message($| )/.test(L.className)){N=L,L.className="dz-message";break}}}catch(pe){M.e(pe)}finally{M.f()}N||(N=H.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(N));var G=N.getElementsByTagName("span")[0];return G&&(G.textContent!=null?G.textContent=this.options.dictFallbackMessage:G.innerText!=null&&(G.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(N,M,Z,L){var G={srcX:0,srcY:0,srcWidth:N.width,srcHeight:N.height},pe=N.width/N.height;M==null&&Z==null?(M=G.srcWidth,Z=G.srcHeight):M==null?M=Z*pe:Z==null&&(Z=M/pe),M=Math.min(M,G.srcWidth),Z=Math.min(Z,G.srcHeight);var ce=M/Z;if(G.srcWidth>M||G.srcHeight>Z)if(L==="crop")pe>ce?(G.srcHeight=N.height,G.srcWidth=G.srcHeight*ce):(G.srcWidth=N.width,G.srcHeight=G.srcWidth/ce);else if(L==="contain")pe>ce?Z=M/pe:M=Z*pe;else throw new Error("Unknown resizeMethod '".concat(L,"'"));return G.srcX=(N.width-G.srcWidth)/2,G.srcY=(N.height-G.srcHeight)/2,G.trgWidth=M,G.trgHeight=Z,G},transformFile:function(N,M){return(this.options.resizeWidth||this.options.resizeHeight)&&N.type.match(/image.*/)?this.resizeImage(N,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,M):M(N)},previewTemplate:_,drop:function(N){return this.element.classList.remove("dz-drag-hover")},dragstart:function(N){},dragend:function(N){return this.element.classList.remove("dz-drag-hover")},dragenter:function(N){return this.element.classList.add("dz-drag-hover")},dragover:function(N){return this.element.classList.add("dz-drag-hover")},dragleave:function(N){return this.element.classList.remove("dz-drag-hover")},paste:function(N){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(N){var M=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){N.previewElement=H.createElement(this.options.previewTemplate.trim()),N.previewTemplate=N.previewElement,this.previewsContainer.appendChild(N.previewElement);var Z=E(N.previewElement.querySelectorAll("[data-dz-name]")),L;try{for(Z.s();!(L=Z.n()).done;){var G=L.value;G.textContent=N.name}}catch(fe){Z.e(fe)}finally{Z.f()}var pe=E(N.previewElement.querySelectorAll("[data-dz-size]")),ce;try{for(pe.s();!(ce=pe.n()).done;)G=ce.value,G.innerHTML=this.filesize(N.size)}catch(fe){pe.e(fe)}finally{pe.f()}this.options.addRemoveLinks&&(N._removeLink=H.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),N.previewElement.appendChild(N._removeLink));var be=function(me){return me.preventDefault(),me.stopPropagation(),N.status===H.UPLOADING?H.confirm(M.options.dictCancelUploadConfirmation,function(){return M.removeFile(N)}):M.options.dictRemoveFileConfirmation?H.confirm(M.options.dictRemoveFileConfirmation,function(){return M.removeFile(N)}):M.removeFile(N)},_e=E(N.previewElement.querySelectorAll("[data-dz-remove]")),Ce;try{for(_e.s();!(Ce=_e.n()).done;){var Me=Ce.value;Me.addEventListener("click",be)}}catch(fe){_e.e(fe)}finally{_e.f()}}},removedfile:function(N){return N.previewElement!=null&&N.previewElement.parentNode!=null&&N.previewElement.parentNode.removeChild(N.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(N,M){if(N.previewElement){N.previewElement.classList.remove("dz-file-preview");var Z=E(N.previewElement.querySelectorAll("[data-dz-thumbnail]")),L;try{for(Z.s();!(L=Z.n()).done;){var G=L.value;G.alt=N.name,G.src=M}}catch(pe){Z.e(pe)}finally{Z.f()}return setTimeout(function(){return N.previewElement.classList.add("dz-image-preview")},1)}},error:function(N,M){if(N.previewElement){N.previewElement.classList.add("dz-error"),typeof M!="string"&&M.error&&(M=M.error);var Z=E(N.previewElement.querySelectorAll("[data-dz-errormessage]")),L;try{for(Z.s();!(L=Z.n()).done;){var G=L.value;G.textContent=M}}catch(pe){Z.e(pe)}finally{Z.f()}}},errormultiple:function(){},processing:function(N){if(N.previewElement&&(N.previewElement.classList.add("dz-processing"),N._removeLink))return N._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(N,M,Z){if(N.previewElement){var L=E(N.previewElement.querySelectorAll("[data-dz-uploadprogress]")),G;try{for(L.s();!(G=L.n()).done;){var pe=G.value;pe.nodeName==="PROGRESS"?pe.value=M:pe.style.width="".concat(M,"%")}}catch(ce){L.e(ce)}finally{L.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(N){if(N.previewElement)return N.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(N){return this.emit("error",N,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(N){if(N._removeLink&&(N._removeLink.innerHTML=this.options.dictRemoveFile),N.previewElement)return N.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},C=T;function x(I){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(M){return typeof M}:x=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},x(I)}function R(I,N){var M;if(typeof Symbol>"u"||I[Symbol.iterator]==null){if(Array.isArray(I)||(M=O(I))||I&&typeof I.length=="number"){M&&(I=M);var Z=0,L=function(){};return{s:L,n:function(){return Z>=I.length?{done:!0}:{done:!1,value:I[Z++]}},e:function(_e){throw _e},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
216
216
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var G=!0,pe=!1,ce;return{s:function(){M=I[Symbol.iterator]()},n:function(){var _e=M.next();return G=_e.done,_e},e:function(_e){pe=!0,ce=_e},f:function(){try{!G&&M.return!=null&&M.return()}finally{if(pe)throw ce}}}}function O(I,N){if(I){if(typeof I=="string")return m(I,N);var M=Object.prototype.toString.call(I).slice(8,-1);if(M==="Object"&&I.constructor&&(M=I.constructor.name),M==="Map"||M==="Set")return Array.from(I);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return m(I,N)}}function m(I,N){(N==null||N>I.length)&&(N=I.length);for(var M=0,Z=new Array(N);M<N;M++)Z[M]=I[M];return Z}function D(I,N){if(!(I instanceof N))throw new TypeError("Cannot call a class as a function")}function U(I,N){for(var M=0;M<N.length;M++){var Z=N[M];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(I,Z.key,Z)}}function K(I,N,M){return N&&U(I.prototype,N),M&&U(I,M),I}function B(I,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(N&&N.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),N&&W(I,N)}function W(I,N){return W=Object.setPrototypeOf||function(Z,L){return Z.__proto__=L,Z},W(I,N)}function Y(I){var N=ae();return function(){var Z=ve(I),L;if(N){var G=ve(this).constructor;L=Reflect.construct(Z,arguments,G)}else L=Z.apply(this,arguments);return Q(this,L)}}function Q(I,N){return N&&(x(N)==="object"||typeof N=="function")?N:ie(I)}function ie(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function ae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ve(I){return ve=Object.setPrototypeOf?Object.getPrototypeOf:function(M){return M.__proto__||Object.getPrototypeOf(M)},ve(I)}var H=(function(I){B(M,I);var N=Y(M);function M(Z,L){var G;D(this,M),G=N.call(this);var pe,ce;if(G.element=Z,G.version=M.version,G.clickableElements=[],G.listeners=[],G.files=[],typeof G.element=="string"&&(G.element=document.querySelector(G.element)),!G.element||G.element.nodeType==null)throw new Error("Invalid dropzone element.");if(G.element.dropzone)throw new Error("Dropzone already attached.");M.instances.push(ie(G)),G.element.dropzone=ie(G);var be=(ce=M.optionsForElement(G.element))!=null?ce:{};if(G.options=M.extend({},C,be,L??{}),G.options.previewTemplate=G.options.previewTemplate.replace(/\n*/g,""),G.options.forceFallback||!M.isBrowserSupported())return Q(G,G.options.fallback.call(ie(G)));if(G.options.url==null&&(G.options.url=G.element.getAttribute("action")),!G.options.url)throw new Error("No URL provided.");if(G.options.acceptedFiles&&G.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(G.options.uploadMultiple&&G.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return G.options.acceptedMimeTypes&&(G.options.acceptedFiles=G.options.acceptedMimeTypes,delete G.options.acceptedMimeTypes),G.options.renameFilename!=null&&(G.options.renameFile=function(_e){return G.options.renameFilename.call(ie(G),_e.name,_e)}),typeof G.options.method=="string"&&(G.options.method=G.options.method.toUpperCase()),(pe=G.getExistingFallback())&&pe.parentNode&&pe.parentNode.removeChild(pe),G.options.previewsContainer!==!1&&(G.options.previewsContainer?G.previewsContainer=M.getElement(G.options.previewsContainer,"previewsContainer"):G.previewsContainer=G.element),G.options.clickable&&(G.options.clickable===!0?G.clickableElements=[G.element]:G.clickableElements=M.getElements(G.options.clickable,"clickable")),G.init(),G}return K(M,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(L){return L.accepted}).map(function(L){return L})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(L){return!L.accepted}).map(function(L){return L})}},{key:"getFilesWithStatus",value:function(L){return this.files.filter(function(G){return G.status===L}).map(function(G){return G})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(M.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(M.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(M.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(L){return L.status===M.UPLOADING||L.status===M.QUEUED}).map(function(L){return L})}},{key:"init",value:function(){var L=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(M.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var G=function Me(){L.hiddenFileInput&&L.hiddenFileInput.parentNode.removeChild(L.hiddenFileInput),L.hiddenFileInput=document.createElement("input"),L.hiddenFileInput.setAttribute("type","file"),(L.options.maxFiles===null||L.options.maxFiles>1)&&L.hiddenFileInput.setAttribute("multiple","multiple"),L.hiddenFileInput.className="dz-hidden-input",L.options.acceptedFiles!==null&&L.hiddenFileInput.setAttribute("accept",L.options.acceptedFiles),L.options.capture!==null&&L.hiddenFileInput.setAttribute("capture",L.options.capture),L.hiddenFileInput.setAttribute("tabindex","-1"),L.hiddenFileInput.style.visibility="hidden",L.hiddenFileInput.style.position="absolute",L.hiddenFileInput.style.top="0",L.hiddenFileInput.style.left="0",L.hiddenFileInput.style.height="0",L.hiddenFileInput.style.width="0",M.getElement(L.options.hiddenInputContainer,"hiddenInputContainer").appendChild(L.hiddenFileInput),L.hiddenFileInput.addEventListener("change",function(){var fe=L.hiddenFileInput.files;if(fe.length){var me=R(fe),ge;try{for(me.s();!(ge=me.n()).done;){var Te=ge.value;L.addFile(Te)}}catch(Pe){me.e(Pe)}finally{me.f()}}L.emit("addedfiles",fe),Me()})};G()}this.URL=window.URL!==null?window.URL:window.webkitURL;var pe=R(this.events),ce;try{for(pe.s();!(ce=pe.n()).done;){var be=ce.value;this.on(be,this.options[be])}}catch(Me){pe.e(Me)}finally{pe.f()}this.on("uploadprogress",function(){return L.updateTotalUploadProgress()}),this.on("removedfile",function(){return L.updateTotalUploadProgress()}),this.on("canceled",function(Me){return L.emit("complete",Me)}),this.on("complete",function(Me){if(L.getAddedFiles().length===0&&L.getUploadingFiles().length===0&&L.getQueuedFiles().length===0)return setTimeout(function(){return L.emit("queuecomplete")},0)});var _e=function(fe){if(fe.dataTransfer.types){for(var me=0;me<fe.dataTransfer.types.length;me++)if(fe.dataTransfer.types[me]==="Files")return!0}return!1},Ce=function(fe){if(_e(fe))return fe.stopPropagation(),fe.preventDefault?fe.preventDefault():fe.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(fe){return L.emit("dragstart",fe)},dragenter:function(fe){return Ce(fe),L.emit("dragenter",fe)},dragover:function(fe){var me;try{me=fe.dataTransfer.effectAllowed}catch{}return fe.dataTransfer.dropEffect=me==="move"||me==="linkMove"?"move":"copy",Ce(fe),L.emit("dragover",fe)},dragleave:function(fe){return L.emit("dragleave",fe)},drop:function(fe){return Ce(fe),L.drop(fe)},dragend:function(fe){return L.emit("dragend",fe)}}}],this.clickableElements.forEach(function(Me){return L.listeners.push({element:Me,events:{click:function(me){return(Me!==L.element||me.target===L.element||M.elementInside(me.target,L.element.querySelector(".dz-message")))&&L.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,M.instances.splice(M.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var L,G=0,pe=0,ce=this.getActiveFiles();if(ce.length){var be=R(this.getActiveFiles()),_e;try{for(be.s();!(_e=be.n()).done;){var Ce=_e.value;G+=Ce.upload.bytesSent,pe+=Ce.upload.total}}catch(Me){be.e(Me)}finally{be.f()}L=100*G/pe}else L=100;return this.emit("totaluploadprogress",L,pe,G)}},{key:"_getParamName",value:function(L){return typeof this.options.paramName=="function"?this.options.paramName(L):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(L,"]"):"")}},{key:"_renameFile",value:function(L){return typeof this.options.renameFile!="function"?L.name:this.options.renameFile(L)}},{key:"getFallbackForm",value:function(){var L,G;if(L=this.getExistingFallback())return L;var pe='<div class="dz-fallback">';this.options.dictFallbackText&&(pe+="<p>".concat(this.options.dictFallbackText,"</p>")),pe+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var ce=M.createElement(pe);return this.element.tagName!=="FORM"?(G=M.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),G.appendChild(ce)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),G??ce}},{key:"getExistingFallback",value:function(){for(var L=function(Ce){var Me=R(Ce),fe;try{for(Me.s();!(fe=Me.n()).done;){var me=fe.value;if(/(^| )fallback($| )/.test(me.className))return me}}catch(ge){Me.e(ge)}finally{Me.f()}},G=0,pe=["div","form"];G<pe.length;G++){var ce=pe[G],be;if(be=L(this.element.getElementsByTagName(ce)))return be}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(L){return(function(){var G=[];for(var pe in L.events){var ce=L.events[pe];G.push(L.element.addEventListener(pe,ce,!1))}return G})()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(L){return(function(){var G=[];for(var pe in L.events){var ce=L.events[pe];G.push(L.element.removeEventListener(pe,ce,!1))}return G})()})}},{key:"disable",value:function(){var L=this;return this.clickableElements.forEach(function(G){return G.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(G){return L.cancelUpload(G)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(L){return L.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(L){var G=0,pe="b";if(L>0){for(var ce=["tb","gb","mb","kb","b"],be=0;be<ce.length;be++){var _e=ce[be],Ce=Math.pow(this.options.filesizeBase,4-be)/10;if(L>=Ce){G=L/Math.pow(this.options.filesizeBase,4-be),pe=_e;break}}G=Math.round(10*G)/10}return"<strong>".concat(G,"</strong> ").concat(this.options.dictFileSizeUnits[pe])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(L){if(L.dataTransfer){this.emit("drop",L);for(var G=[],pe=0;pe<L.dataTransfer.files.length;pe++)G[pe]=L.dataTransfer.files[pe];if(G.length){var ce=L.dataTransfer.items;ce&&ce.length&&ce[0].webkitGetAsEntry!=null?this._addFilesFromItems(ce):this.handleFiles(G)}this.emit("addedfiles",G)}}},{key:"paste",value:function(L){if(nt(L!=null?L.clipboardData:void 0,function(pe){return pe.items})!=null){this.emit("paste",L);var G=L.clipboardData.items;if(G.length)return this._addFilesFromItems(G)}}},{key:"handleFiles",value:function(L){var G=R(L),pe;try{for(G.s();!(pe=G.n()).done;){var ce=pe.value;this.addFile(ce)}}catch(be){G.e(be)}finally{G.f()}}},{key:"_addFilesFromItems",value:function(L){var G=this;return(function(){var pe=[],ce=R(L),be;try{for(ce.s();!(be=ce.n()).done;){var _e=be.value,Ce;_e.webkitGetAsEntry!=null&&(Ce=_e.webkitGetAsEntry())?Ce.isFile?pe.push(G.addFile(_e.getAsFile())):Ce.isDirectory?pe.push(G._addFilesFromDirectory(Ce,Ce.name)):pe.push(void 0):_e.getAsFile!=null&&(_e.kind==null||_e.kind==="file")?pe.push(G.addFile(_e.getAsFile())):pe.push(void 0)}}catch(Me){ce.e(Me)}finally{ce.f()}return pe})()}},{key:"_addFilesFromDirectory",value:function(L,G){var pe=this,ce=L.createReader(),be=function(Me){return rt(console,"log",function(fe){return fe.log(Me)})},_e=function Ce(){return ce.readEntries(function(Me){if(Me.length>0){var fe=R(Me),me;try{for(fe.s();!(me=fe.n()).done;){var ge=me.value;ge.isFile?ge.file(function(Te){if(!(pe.options.ignoreHiddenFiles&&Te.name.substring(0,1)==="."))return Te.fullPath="".concat(G,"/").concat(Te.name),pe.addFile(Te)}):ge.isDirectory&&pe._addFilesFromDirectory(ge,"".concat(G,"/").concat(ge.name))}}catch(Te){fe.e(Te)}finally{fe.f()}Ce()}return null},be)};return _e()}},{key:"accept",value:function(L,G){this.options.maxFilesize&&L.size>this.options.maxFilesize*1024*1024?G(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(L.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):M.isValidFile(L,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(G(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",L)):this.options.accept.call(this,L,G):G(this.options.dictInvalidFileType)}},{key:"addFile",value:function(L){var G=this;L.upload={uuid:M.uuidv4(),progress:0,total:L.size,bytesSent:0,filename:this._renameFile(L)},this.files.push(L),L.status=M.ADDED,this.emit("addedfile",L),this._enqueueThumbnail(L),this.accept(L,function(pe){pe?(L.accepted=!1,G._errorProcessing([L],pe)):(L.accepted=!0,G.options.autoQueue&&G.enqueueFile(L)),G._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(L){var G=R(L),pe;try{for(G.s();!(pe=G.n()).done;){var ce=pe.value;this.enqueueFile(ce)}}catch(be){G.e(be)}finally{G.f()}return null}},{key:"enqueueFile",value:function(L){var G=this;if(L.status===M.ADDED&&L.accepted===!0){if(L.status=M.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return G.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(L){var G=this;if(this.options.createImageThumbnails&&L.type.match(/image.*/)&&L.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(L),setTimeout(function(){return G._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var L=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var G=this._thumbnailQueue.shift();return this.createThumbnail(G,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(pe){return L.emit("thumbnail",G,pe),L._processingThumbnail=!1,L._processThumbnailQueue()})}}},{key:"removeFile",value:function(L){if(L.status===M.UPLOADING&&this.cancelUpload(L),this.files=J(this.files,L),this.emit("removedfile",L),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(L){L==null&&(L=!1);var G=R(this.files.slice()),pe;try{for(G.s();!(pe=G.n()).done;){var ce=pe.value;(ce.status!==M.UPLOADING||L)&&this.removeFile(ce)}}catch(be){G.e(be)}finally{G.f()}return null}},{key:"resizeImage",value:function(L,G,pe,ce,be){var _e=this;return this.createThumbnail(L,G,pe,ce,!0,function(Ce,Me){if(Me==null)return be(L);var fe=_e.options.resizeMimeType;fe==null&&(fe=L.type);var me=Me.toDataURL(fe,_e.options.resizeQuality);return(fe==="image/jpeg"||fe==="image/jpg")&&(me=ke.restore(L.dataURL,me)),be(M.dataURItoBlob(me))})}},{key:"createThumbnail",value:function(L,G,pe,ce,be,_e){var Ce=this,Me=new FileReader;Me.onload=function(){if(L.dataURL=Me.result,L.type==="image/svg+xml"){_e!=null&&_e(Me.result);return}Ce.createThumbnailFromUrl(L,G,pe,ce,be,_e)},Me.readAsDataURL(L)}},{key:"displayExistingFile",value:function(L,G,pe,ce){var be=this,_e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",L),this.emit("complete",L),!_e)this.emit("thumbnail",L,G),pe&&pe();else{var Ce=function(fe){be.emit("thumbnail",L,fe),pe&&pe()};L.dataURL=G,this.createThumbnailFromUrl(L,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,Ce,ce)}}},{key:"createThumbnailFromUrl",value:function(L,G,pe,ce,be,_e,Ce){var Me=this,fe=document.createElement("img");return Ce&&(fe.crossOrigin=Ce),be=getComputedStyle(document.body).imageOrientation=="from-image"?!1:be,fe.onload=function(){var me=function(Te){return Te(1)};return typeof EXIF<"u"&&EXIF!==null&&be&&(me=function(Te){return EXIF.getData(fe,function(){return Te(EXIF.getTag(this,"Orientation"))})}),me(function(ge){L.width=fe.width,L.height=fe.height;var Te=Me.options.resize.call(Me,L,G,pe,ce),Pe=document.createElement("canvas"),De=Pe.getContext("2d");switch(Pe.width=Te.trgWidth,Pe.height=Te.trgHeight,ge>4&&(Pe.width=Te.trgHeight,Pe.height=Te.trgWidth),ge){case 2:De.translate(Pe.width,0),De.scale(-1,1);break;case 3:De.translate(Pe.width,Pe.height),De.rotate(Math.PI);break;case 4:De.translate(0,Pe.height),De.scale(1,-1);break;case 5:De.rotate(.5*Math.PI),De.scale(1,-1);break;case 6:De.rotate(.5*Math.PI),De.translate(0,-Pe.width);break;case 7:De.rotate(.5*Math.PI),De.translate(Pe.height,-Pe.width),De.scale(-1,1);break;case 8:De.rotate(-.5*Math.PI),De.translate(-Pe.height,0);break}we(De,fe,Te.srcX!=null?Te.srcX:0,Te.srcY!=null?Te.srcY:0,Te.srcWidth,Te.srcHeight,Te.trgX!=null?Te.trgX:0,Te.trgY!=null?Te.trgY:0,Te.trgWidth,Te.trgHeight);var qe=Pe.toDataURL("image/png");if(_e!=null)return _e(qe,Pe)})},_e!=null&&(fe.onerror=_e),fe.src=L.dataURL}},{key:"processQueue",value:function(){var L=this.options.parallelUploads,G=this.getUploadingFiles().length,pe=G;if(!(G>=L)){var ce=this.getQueuedFiles();if(ce.length>0){if(this.options.uploadMultiple)return this.processFiles(ce.slice(0,L-G));for(;pe<L;){if(!ce.length)return;this.processFile(ce.shift()),pe++}}}}},{key:"processFile",value:function(L){return this.processFiles([L])}},{key:"processFiles",value:function(L){var G=R(L),pe;try{for(G.s();!(pe=G.n()).done;){var ce=pe.value;ce.processing=!0,ce.status=M.UPLOADING,this.emit("processing",ce)}}catch(be){G.e(be)}finally{G.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",L),this.uploadFiles(L)}},{key:"_getFilesWithXhr",value:function(L){return this.files.filter(function(G){return G.xhr===L}).map(function(G){return G})}},{key:"cancelUpload",value:function(L){if(L.status===M.UPLOADING){var G=this._getFilesWithXhr(L.xhr),pe=R(G),ce;try{for(pe.s();!(ce=pe.n()).done;){var be=ce.value;be.status=M.CANCELED}}catch(fe){pe.e(fe)}finally{pe.f()}typeof L.xhr<"u"&&L.xhr.abort();var _e=R(G),Ce;try{for(_e.s();!(Ce=_e.n()).done;){var Me=Ce.value;this.emit("canceled",Me)}}catch(fe){_e.e(fe)}finally{_e.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",G)}else(L.status===M.ADDED||L.status===M.QUEUED)&&(L.status=M.CANCELED,this.emit("canceled",L),this.options.uploadMultiple&&this.emit("canceledmultiple",[L]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(L){if(typeof L=="function"){for(var G=arguments.length,pe=new Array(G>1?G-1:0),ce=1;ce<G;ce++)pe[ce-1]=arguments[ce];return L.apply(this,pe)}return L}},{key:"uploadFile",value:function(L){return this.uploadFiles([L])}},{key:"uploadFiles",value:function(L){var G=this;this._transformFiles(L,function(pe){if(G.options.chunking){var ce=pe[0];L[0].upload.chunked=G.options.chunking&&(G.options.forceChunking||ce.size>G.options.chunkSize),L[0].upload.totalChunkCount=Math.ceil(ce.size/G.options.chunkSize)}if(L[0].upload.chunked){var be=L[0],_e=pe[0];be.upload.chunks=[];var Ce=function(){for(var Te=0;be.upload.chunks[Te]!==void 0;)Te++;if(!(Te>=be.upload.totalChunkCount)){var Pe=Te*G.options.chunkSize,De=Math.min(Pe+G.options.chunkSize,_e.size),qe={name:G._getParamName(0),data:_e.webkitSlice?_e.webkitSlice(Pe,De):_e.slice(Pe,De),filename:be.upload.filename,chunkIndex:Te};be.upload.chunks[Te]={file:be,index:Te,dataBlock:qe,status:M.UPLOADING,progress:0,retries:0},G._uploadData(L,[qe])}};if(be.upload.finishedChunkUpload=function(ge,Te){var Pe=!0;ge.status=M.SUCCESS,ge.dataBlock=null,ge.xhr=null;for(var De=0;De<be.upload.totalChunkCount;De++){if(be.upload.chunks[De]===void 0)return Ce();be.upload.chunks[De].status!==M.SUCCESS&&(Pe=!1)}Pe&&G.options.chunksUploaded(be,function(){G._finished(L,Te,null)})},G.options.parallelChunkUploads)for(var Me=0;Me<be.upload.totalChunkCount;Me++)Ce();else Ce()}else{for(var fe=[],me=0;me<L.length;me++)fe[me]={name:G._getParamName(me),data:pe[me],filename:L[me].upload.filename};G._uploadData(L,fe)}})}},{key:"_getChunk",value:function(L,G){for(var pe=0;pe<L.upload.totalChunkCount;pe++)if(L.upload.chunks[pe]!==void 0&&L.upload.chunks[pe].xhr===G)return L.upload.chunks[pe]}},{key:"_uploadData",value:function(L,G){var pe=this,ce=new XMLHttpRequest,be=R(L),_e;try{for(be.s();!(_e=be.n()).done;){var Ce=_e.value;Ce.xhr=ce}}catch(Ft){be.e(Ft)}finally{be.f()}L[0].upload.chunked&&(L[0].upload.chunks[G[0].chunkIndex].xhr=ce);var Me=this.resolveOption(this.options.method,L),fe=this.resolveOption(this.options.url,L);ce.open(Me,fe,!0);var me=this.resolveOption(this.options.timeout,L);me&&(ce.timeout=this.resolveOption(this.options.timeout,L)),ce.withCredentials=!!this.options.withCredentials,ce.onload=function(Ft){pe._finishedUploading(L,ce,Ft)},ce.ontimeout=function(){pe._handleUploadError(L,ce,"Request timedout after ".concat(pe.options.timeout/1e3," seconds"))},ce.onerror=function(){pe._handleUploadError(L,ce)};var ge=ce.upload!=null?ce.upload:ce;ge.onprogress=function(Ft){return pe._updateFilesUploadProgress(L,ce,Ft)};var Te={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&M.extend(Te,this.options.headers);for(var Pe in Te){var De=Te[Pe];De&&ce.setRequestHeader(Pe,De)}var qe=new FormData;if(this.options.params){var _t=this.options.params;typeof _t=="function"&&(_t=_t.call(this,L,ce,L[0].upload.chunked?this._getChunk(L[0],ce):null));for(var qt in _t){var Mt=_t[qt];if(Array.isArray(Mt))for(var Xe=0;Xe<Mt.length;Xe++)qe.append(qt,Mt[Xe]);else qe.append(qt,Mt)}}var wt=R(L),mt;try{for(wt.s();!(mt=wt.n()).done;){var Et=mt.value;this.emit("sending",Et,ce,qe)}}catch(Ft){wt.e(Ft)}finally{wt.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",L,ce,qe),this._addFormElementData(qe);for(var At=0;At<G.length;At++){var ft=G[At];qe.append(ft.name,ft.data,ft.filename)}this.submitRequest(ce,qe,L)}},{key:"_transformFiles",value:function(L,G){for(var pe=this,ce=[],be=0,_e=function(fe){pe.options.transformFile.call(pe,L[fe],function(me){ce[fe]=me,++be===L.length&&G(ce)})},Ce=0;Ce<L.length;Ce++)_e(Ce)}},{key:"_addFormElementData",value:function(L){if(this.element.tagName==="FORM"){var G=R(this.element.querySelectorAll("input, textarea, select, button")),pe;try{for(G.s();!(pe=G.n()).done;){var ce=pe.value,be=ce.getAttribute("name"),_e=ce.getAttribute("type");if(_e&&(_e=_e.toLowerCase()),!(typeof be>"u"||be===null))if(ce.tagName==="SELECT"&&ce.hasAttribute("multiple")){var Ce=R(ce.options,!0),Me;try{for(Ce.s();!(Me=Ce.n()).done;){var fe=Me.value;fe.selected&&L.append(be,fe.value)}}catch(me){Ce.e(me)}finally{Ce.f()}}else(!_e||_e!=="checkbox"&&_e!=="radio"||ce.checked)&&L.append(be,ce.value)}}catch(me){G.e(me)}finally{G.f()}}}},{key:"_updateFilesUploadProgress",value:function(L,G,pe){if(L[0].upload.chunked){var Ce=L[0],Me=this._getChunk(Ce,G);pe?(Me.progress=100*pe.loaded/pe.total,Me.total=pe.total,Me.bytesSent=pe.loaded):(Me.progress=100,Me.bytesSent=Me.total),Ce.upload.progress=0,Ce.upload.total=0,Ce.upload.bytesSent=0;for(var fe=0;fe<Ce.upload.totalChunkCount;fe++)Ce.upload.chunks[fe]&&typeof Ce.upload.chunks[fe].progress<"u"&&(Ce.upload.progress+=Ce.upload.chunks[fe].progress,Ce.upload.total+=Ce.upload.chunks[fe].total,Ce.upload.bytesSent+=Ce.upload.chunks[fe].bytesSent);Ce.upload.progress=Ce.upload.progress/Ce.upload.totalChunkCount,this.emit("uploadprogress",Ce,Ce.upload.progress,Ce.upload.bytesSent)}else{var ce=R(L),be;try{for(ce.s();!(be=ce.n()).done;){var _e=be.value;_e.upload.total&&_e.upload.bytesSent&&_e.upload.bytesSent==_e.upload.total||(pe?(_e.upload.progress=100*pe.loaded/pe.total,_e.upload.total=pe.total,_e.upload.bytesSent=pe.loaded):(_e.upload.progress=100,_e.upload.bytesSent=_e.upload.total),this.emit("uploadprogress",_e,_e.upload.progress,_e.upload.bytesSent))}}catch(me){ce.e(me)}finally{ce.f()}}}},{key:"_finishedUploading",value:function(L,G,pe){var ce;if(L[0].status!==M.CANCELED&&G.readyState===4){if(G.responseType!=="arraybuffer"&&G.responseType!=="blob"&&(ce=G.responseText,G.getResponseHeader("content-type")&&~G.getResponseHeader("content-type").indexOf("application/json")))try{ce=JSON.parse(ce)}catch(be){pe=be,ce="Invalid JSON response from server."}this._updateFilesUploadProgress(L,G),200<=G.status&&G.status<300?L[0].upload.chunked?L[0].upload.finishedChunkUpload(this._getChunk(L[0],G),ce):this._finished(L,ce,pe):this._handleUploadError(L,G,ce)}}},{key:"_handleUploadError",value:function(L,G,pe){if(L[0].status!==M.CANCELED){if(L[0].upload.chunked&&this.options.retryChunks){var ce=this._getChunk(L[0],G);if(ce.retries++<this.options.retryChunksLimit){this._uploadData(L,[ce.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(L,pe||this.options.dictResponseError.replace("{{statusCode}}",G.status),G)}}},{key:"submitRequest",value:function(L,G,pe){if(L.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}L.send(G)}},{key:"_finished",value:function(L,G,pe){var ce=R(L),be;try{for(ce.s();!(be=ce.n()).done;){var _e=be.value;_e.status=M.SUCCESS,this.emit("success",_e,G,pe),this.emit("complete",_e)}}catch(Ce){ce.e(Ce)}finally{ce.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",L,G,pe),this.emit("completemultiple",L)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(L,G,pe){var ce=R(L),be;try{for(ce.s();!(be=ce.n()).done;){var _e=be.value;_e.status=M.ERROR,this.emit("error",_e,G,pe),this.emit("complete",_e)}}catch(Ce){ce.e(Ce)}finally{ce.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",L,G,pe),this.emit("completemultiple",L)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=p,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(L){for(var G=arguments.length,pe=new Array(G>1?G-1:0),ce=1;ce<G;ce++)pe[ce-1]=arguments[ce];for(var be=0,_e=pe;be<_e.length;be++){var Ce=_e[be];for(var Me in Ce){var fe=Ce[Me];L[Me]=fe}}return L}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(L){var G=Math.random()*16|0,pe=L==="x"?G:G&3|8;return pe.toString(16)})}}]),M})(p);H.initClass(),H.version="5.9.3",H.options={},H.optionsForElement=function(I){if(I.getAttribute("id"))return H.options[z(I.getAttribute("id"))]},H.instances=[],H.forElement=function(I){if(typeof I=="string"&&(I=document.querySelector(I)),(I!=null?I.dropzone:void 0)==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return I.dropzone},H.autoDiscover=!0,H.discover=function(){var I;if(document.querySelectorAll)I=document.querySelectorAll(".dropzone");else{I=[];var N=function(Z){return(function(){var L=[],G=R(Z),pe;try{for(G.s();!(pe=G.n()).done;){var ce=pe.value;/(^| )dropzone($| )/.test(ce.className)?L.push(I.push(ce)):L.push(void 0)}}catch(be){G.e(be)}finally{G.f()}return L})()};N(document.getElementsByTagName("div")),N(document.getElementsByTagName("form"))}return(function(){var M=[],Z=R(I),L;try{for(Z.s();!(L=Z.n()).done;){var G=L.value;H.optionsForElement(G)!==!1?M.push(new H(G)):M.push(void 0)}}catch(pe){Z.e(pe)}finally{Z.f()}return M})()},H.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],H.isBrowserSupported=function(){var I=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))I=!1;else{H.blacklistedBrowsers!==void 0&&(H.blockedBrowsers=H.blacklistedBrowsers);var N=R(H.blockedBrowsers),M;try{for(N.s();!(M=N.n()).done;){var Z=M.value;if(Z.test(navigator.userAgent)){I=!1;continue}}}catch(L){N.e(L)}finally{N.f()}}else I=!1;return I},H.dataURItoBlob=function(I){for(var N=atob(I.split(",")[1]),M=I.split(",")[0].split(":")[1].split(";")[0],Z=new ArrayBuffer(N.length),L=new Uint8Array(Z),G=0,pe=N.length,ce=0<=pe;ce?G<=pe:G>=pe;ce?G++:G--)L[G]=N.charCodeAt(G);return new Blob([Z],{type:M})};var J=function(N,M){return N.filter(function(Z){return Z!==M}).map(function(Z){return Z})},z=function(N){return N.replace(/[\-_](\w)/g,function(M){return M.charAt(1).toUpperCase()})};H.createElement=function(I){var N=document.createElement("div");return N.innerHTML=I,N.childNodes[0]},H.elementInside=function(I,N){if(I===N)return!0;for(;I=I.parentNode;)if(I===N)return!0;return!1},H.getElement=function(I,N){var M;if(typeof I=="string"?M=document.querySelector(I):I.nodeType!=null&&(M=I),M==null)throw new Error("Invalid `".concat(N,"` option provided. Please provide a CSS selector or a plain HTML element."));return M},H.getElements=function(I,N){var M,Z;if(I instanceof Array){Z=[];try{var L=R(I,!0),G;try{for(L.s();!(G=L.n()).done;)M=G.value,Z.push(this.getElement(M,N))}catch(be){L.e(be)}finally{L.f()}}catch{Z=null}}else if(typeof I=="string"){Z=[];var pe=R(document.querySelectorAll(I)),ce;try{for(pe.s();!(ce=pe.n()).done;)M=ce.value,Z.push(M)}catch(be){pe.e(be)}finally{pe.f()}}else I.nodeType!=null&&(Z=[I]);if(Z==null||!Z.length)throw new Error("Invalid `".concat(N,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return Z},H.confirm=function(I,N,M){if(window.confirm(I))return N();if(M!=null)return M()},H.isValidFile=function(I,N){if(!N)return!0;N=N.split(",");var M=I.type,Z=M.replace(/\/.*$/,""),L=R(N),G;try{for(L.s();!(G=L.n()).done;){var pe=G.value;if(pe=pe.trim(),pe.charAt(0)==="."){if(I.name.toLowerCase().indexOf(pe.toLowerCase(),I.name.length-pe.length)!==-1)return!0}else if(/\/\*$/.test(pe)){if(Z===pe.replace(/\/.*$/,""))return!0}else if(M===pe)return!0}}catch(ce){L.e(ce)}finally{L.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(I){return this.each(function(){return new H(this,I)})}),H.ADDED="added",H.QUEUED="queued",H.ACCEPTED=H.QUEUED,H.UPLOADING="uploading",H.PROCESSING=H.UPLOADING,H.CANCELED="canceled",H.ERROR="error",H.SUCCESS="success";var ue=function(N){N.naturalWidth;var M=N.naturalHeight,Z=document.createElement("canvas");Z.width=1,Z.height=M;var L=Z.getContext("2d");L.drawImage(N,0,0);for(var G=L.getImageData(1,0,1,M),pe=G.data,ce=0,be=M,_e=M;_e>ce;){var Ce=pe[(_e-1)*4+3];Ce===0?be=_e:ce=_e,_e=be+ce>>1}var Me=_e/M;return Me===0?1:Me},we=function(N,M,Z,L,G,pe,ce,be,_e,Ce){var Me=ue(M);return N.drawImage(M,Z,L,G,pe,ce,be,_e,Ce/Me)},ke=(function(){function I(){D(this,I)}return K(I,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(M){for(var Z="",L=void 0,G=void 0,pe="",ce=void 0,be=void 0,_e=void 0,Ce="",Me=0;L=M[Me++],G=M[Me++],pe=M[Me++],ce=L>>2,be=(L&3)<<4|G>>4,_e=(G&15)<<2|pe>>6,Ce=pe&63,isNaN(G)?_e=Ce=64:isNaN(pe)&&(Ce=64),Z=Z+this.KEY_STR.charAt(ce)+this.KEY_STR.charAt(be)+this.KEY_STR.charAt(_e)+this.KEY_STR.charAt(Ce),L=G=pe="",ce=be=_e=Ce="",Me<M.length;);return Z}},{key:"restore",value:function(M,Z){if(!M.match("data:image/jpeg;base64,"))return Z;var L=this.decode64(M.replace("data:image/jpeg;base64,","")),G=this.slice2Segments(L),pe=this.exifManipulation(Z,G);return"data:image/jpeg;base64,".concat(this.encode64(pe))}},{key:"exifManipulation",value:function(M,Z){var L=this.getExifArray(Z),G=this.insertExif(M,L),pe=new Uint8Array(G);return pe}},{key:"getExifArray",value:function(M){for(var Z=void 0,L=0;L<M.length;){if(Z=M[L],Z[0]===255&Z[1]===225)return Z;L++}return[]}},{key:"insertExif",value:function(M,Z){var L=M.replace("data:image/jpeg;base64,",""),G=this.decode64(L),pe=G.indexOf(255,3),ce=G.slice(0,pe),be=G.slice(pe),_e=ce;return _e=_e.concat(Z),_e=_e.concat(be),_e}},{key:"slice2Segments",value:function(M){for(var Z=0,L=[];;){var G;if(M[Z]===255&M[Z+1]===218)break;if(M[Z]===255&M[Z+1]===216)Z+=2;else{G=M[Z+2]*256+M[Z+3];var pe=Z+G+2,ce=M.slice(Z,pe);L.push(ce),Z=pe}if(Z>M.length)break}return L}},{key:"decode64",value:function(M){var Z=void 0,L=void 0,G="",pe=void 0,ce=void 0,be=void 0,_e="",Ce=0,Me=[],fe=/[^A-Za-z0-9\+\/\=]/g;for(fe.exec(M)&&console.warn(`There were invalid base64 characters in the input text.
|
|
217
217
|
Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
|
|
218
|
-
Expect errors in decoding.`),M=M.replace(/[^A-Za-z0-9\+\/\=]/g,"");pe=this.KEY_STR.indexOf(M.charAt(Ce++)),ce=this.KEY_STR.indexOf(M.charAt(Ce++)),be=this.KEY_STR.indexOf(M.charAt(Ce++)),_e=this.KEY_STR.indexOf(M.charAt(Ce++)),Z=pe<<2|ce>>4,L=(ce&15)<<4|be>>2,G=(be&3)<<6|_e,Me.push(Z),be!==64&&Me.push(L),_e!==64&&Me.push(G),Z=L=G="",pe=ce=be=_e="",Ce<M.length;);return Me}}]),I})();ke.initClass();var Be=function(N,M){var Z=!1,L=!0,G=N.document,pe=G.documentElement,ce=G.addEventListener?"addEventListener":"attachEvent",be=G.addEventListener?"removeEventListener":"detachEvent",_e=G.addEventListener?"":"on",Ce=function fe(me){if(!(me.type==="readystatechange"&&G.readyState!=="complete")&&((me.type==="load"?N:G)[be](_e+me.type,fe,!1),!Z&&(Z=!0)))return M.call(N,me.type||me)},Me=function fe(){try{pe.doScroll("left")}catch{setTimeout(fe,50);return}return Ce("poll")};if(G.readyState!=="complete"){if(G.createEventObject&&pe.doScroll){try{L=!N.frameElement}catch{}L&&Me()}return G[ce](_e+"DOMContentLoaded",Ce,!1),G[ce](_e+"readystatechange",Ce,!1),N[ce](_e+"load",Ce,!1)}};H._autoDiscoverFunction=function(){if(H.autoDiscover)return H.discover()},Be(window,H._autoDiscoverFunction);function nt(I,N){return typeof I<"u"&&I!==null?N(I):void 0}function rt(I,N,M){if(typeof I<"u"&&I!==null&&typeof I[N]=="function")return M(I,N)}window.Dropzone=H;var q=H})(),a})()})})(Sx)),Sx.exports}var vke=pke();const UY=Mn(vke),Fv="upload.internetConnectivityError";class gke extends Dc{constructor(){super(Gr.getPhrase(Fv,"title"))}get name(){return"InternetConnectivityError"}get dialogOptions(){return{title:Gr.getPhrase(Fv,"heading"),text:Gr.getPhrase(Fv,"body"),buttons:[{text:Gr.getPhrase(Fv,"okay"),className:"btn btn-outline-dark",success:!0}]}}}const jv="upload.slowInternetError";class mke extends Dc{constructor(){super(Gr.getPhrase(jv,"title"))}get name(){return"SlowInternetError"}get dialogOptions(){return{title:Gr.getPhrase(jv,"heading"),text:Gr.getPhrase(jv,"body"),buttons:[{text:Gr.getPhrase(jv,"okay"),className:"btn btn-outline-dark",success:!0}]}}}const yke=[];class qY extends za{constructor(t){super(t),this.slowInternetTimeout={},this.showSlowInternetTimeout=!0}get name(){return"DropzoneWrapper"}initialize(t){const{loggingEnabled:r}=this.options,n=Mr.Radio.channel(t.channelName),i=this;this.dropzone=new UY(document.createElement("div"),{url:(a=>{const o=a[0],{ingestUrl:l}=o.cvUpload;return l}),chunking:this.options.chunkingEnabled,chunkSize:this.options.chunkSize,forceChunking:!0,autoProcessQueue:!0,maxFilesize:this.options.maxFileSize,acceptedFiles:this.options.acceptedFiles,paramName:"content",timeout:18e4,init:function(){r&&(Je.each(yke,a=>{this.on(a,(...o)=>{const l=o[0]instanceof File?o[0].name:o[0];console.info(a,l,o)})}),this.on("uploadprogress",(a,o,l)=>{const u=l/a.size*100;n.trigger("progress",i.getId(a),u,l)}),this.on("success",a=>{const o=a.upload.chunks,l=Je.last(o);let u=l.xhr;u||(u=l.file.xhr);const f=JSON.parse(u.response);a.cvUpload.fileId=f.id,n.trigger(fu.UPLOAD_SUCCESS,a,f)}),this.on("error",(a,o,l)=>{if(l&&l.status===0){dr.throw(new gke);return}a.status!=="canceled"&&dr.throw(new Jre(Gr.getPhrase("upload.services","uploadError",{fileName:a.name,message:o.message})))}),this.on("sending",a=>{window.clearTimeout(i.slowInternetTimeout[a.path]),i.showSlowInternetTimeout&&(i.slowInternetTimeout[a.path]=window.setTimeout(()=>{i.showSlowInternetTimeout&&dr.throw(new mke),i.showSlowInternetTimeout=!1},3e4))}),this.on("complete",a=>window.clearTimeout(i.slowInternetTimeout[a.path])))},params:(a,o,l)=>{if(l)return{chunk_index:l.index,upload_length:l.file.size}},addedfile:()=>{},thumbnail:()=>{},uploadprogress:()=>{}})}getId(t){return t.upload.uuid}addFile(t){this.dropzone.addFile(t)}removeFile(t){this.dropzone.removeFile(t)}start(){this.dropzone.processQueue()}destroy(){this.dropzone.destroy()}static isValidFile(t,r){return UY.isValidFile(t,r)}}class _ke extends nke{constructor(){super({dataProvider:cu.getInstance(Vg.Ajax),cache:cu.getInstance(Bg.Fifo),alertService:cu.getInstance(ry.ALERT)}),this.incrementingUploadId=0}get name(){return"UploadDataService"}get channelName(){return"private:upload:data:service"}requestUploads(t,r,n,i,a){const o=this.chain();Aa(r,l=>{this.incrementingUploadId++,o.create({resource:t,eventPrefix:`request:upload:${this.incrementingUploadId}`,data:this.getFileUploadRequest(l,n),callback:u=>{i(l,u)},errorHandler:this.alertService.error("Something went wrong while we were uploading your video. Please try again.")})}),o.func(()=>{a()}).run()}cancelUpload(t,r,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:t,ingestUrl:r},callback:n})}getFileUploadRequest(t,r){const n=t.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:t.size,fileLifestyle:r}}onDestroy(){cu.releaseInstance(Vg.Ajax).releaseInstance(Bg.Fifo)}}const Eke={0:$v.VIDEO,1:$v.RESOURCES,2:$v.SUBTITLES,3:$v.MIXED_MEDIA},Ske={0:ah.VIDEO_UPLOAD,1:ah.RESOURCE_UPLOAD,2:ah.SUBTITLE_UPLOAD,3:ah.MIXED_MEDIA_UPLOAD},wke=1024*1024*4,bke=1024*1024*1024*50;class Tke extends za{initialize(){this.uploadDataService=new _ke,this.progressViewModel=$ne.get(`upload:progress:${this.uploadType}`),this.bindListeners()}get channelName(){return Ske[this.uploadType]}get lang(){return"uploadShared.services"}initUploader(t,r){if(this.uploader)return;let n=wke;t&&n<t&&(n=t),r&&n>r&&(n=r),this.uploader=new qY({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:bke,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}bindListeners(){this.listenTo(this.channelName,"progress",this.onProgress),this.listenTo(this.channelName,fu.UPLOAD_SUCCESS,this.onSuccess)}onProgress(t,r,n){const i=this.collection.get(t);i&&(i.set({progress:r>100?100:r,totalUploaded:n}),this.setOverallProgress())}isUploading(){return!!this.getCollection().length}getCollection(){return this.collection?this.collection:(this.collection=new Hm,this.collection)}setOverallProgress(){let t=0,r=0;const n=this.getCollection();if(!n.length){this.progressViewModel.set({progress:0});return}n.each(l=>{t+=l.get("totalUploaded")||0,r+=l.get("file").size||0});const i=t/r*100,a=i>=100,o=()=>{this.progressViewModel.set({progress:a?100:i,done:a})};if(!a){o();return}window.setTimeout(o,2e3)}isValidFile(t){return qY.isValidFile(t,this.getAcceptedFiles())}addFiles(t,r){if(qx(t,n=>!this.isValidFile(n))){dr.throw(new ake(Gr.getPhrase(this.lang,"invalidFileType")));return}this.requestUploads(t,r)}async requestUploads(t,r){const n=this.isUploading(),i=this.getCollection();for(const o of t){const l=await ete(this.options.store.dispatch,hke.requestUpload(o,this.fileLifestyle));"minChunkSize"in l&&"maxChunkSize"in l&&this.initUploader(l.minChunkSize,l.maxChunkSize),o.cvUpload={uploadId:l.uploadId,ingestUrl:l.uploadUrl},this.uploader.addFile(o);let u=o.name;this.uploadType===0&&(u=u.replace(/\.[^/.]+$/,""));const f=this.uploader.getId(o);i.add({id:f,file:o,name:u,...this.getAdditionalFileInfo(o,l)},{at:i.length-1})}r&&Ba.logUserAction({uploadCount:t.length},r),Mr.Radio.channel(this.channelName).trigger(fu.FILES_ADDED,t,n)}addFile(t,r){this.addFiles([t],r)}cancelUpload(t){const r=this.getCollection(),n=r.get(t);if(!n)return;const i=n.get("file");this.uploader.removeFile(i),r.remove(n),this.uploadDataService.cancelUpload(i.cvUpload.uploadId,i.cvUpload.ingestUrl,()=>{Ba.logUserAction(n.toJSON(),{entity:kn.Video,actionType:jt.Upload,workflowPhase:el.Discard,descriptor:Qx.Single,location:Ta.MyUploads}),Mr.Radio.channel(this.channelName).trigger(fu.UPLOAD_CANCELLED)}),this.setOverallProgress()}onSuccess(t,r){const n=this.uploader.getId(t),i=this.getCollection().get(n);i.set("fileInfo",r),Ba.logUserAction({id:t.cvUpload.uploadId},{entity:kn.Video,actionType:jt.Upload,workflowPhase:el.Complete,descriptor:Qx.Single,location:Ta.VideoUpload}),Mr.Radio.channel(this.channelName).trigger(fu.UPLOAD_COMPLETE,i)}cancelAllUploads(){const t=this.getCollection().map(r=>r.get("id"));Aa(t,r=>this.cancelUpload(r))}getUpload(t){const r=this.uploader.getId(t);return this.getCollection().get(r)}getAcceptedFiles(){return Eke[this.uploadType]}getAdditionalFileInfo(t,r){return{}}}class Ake extends Tke{get uploadType(){return 3}get name(){return XI.MixedMediaUpload}get fileLifestyle(){return dP.Temporary}}var Rke=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return dre(t,n)})},wx=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return hre(t,n)})},hP=(function(e){RI(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(l,u){var f=n.resolveArguments(l,u),d=f[0],h=f[1];n.removeClasses(d,"exit"),n.addClass(d,h?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(l,u)},n.onEntering=function(l,u){var f=n.resolveArguments(l,u),d=f[0],h=f[1],p=h?"appear":"enter";n.addClass(d,p,"active"),n.props.onEntering&&n.props.onEntering(l,u)},n.onEntered=function(l,u){var f=n.resolveArguments(l,u),d=f[0],h=f[1],p=h?"appear":"enter";n.removeClasses(d,p),n.addClass(d,p,"done"),n.props.onEntered&&n.props.onEntered(l,u)},n.onExit=function(l){var u=n.resolveArguments(l),f=u[0];n.removeClasses(f,"appear"),n.removeClasses(f,"enter"),n.addClass(f,"exit","base"),n.props.onExit&&n.props.onExit(l)},n.onExiting=function(l){var u=n.resolveArguments(l),f=u[0];n.addClass(f,"exit","active"),n.props.onExiting&&n.props.onExiting(l)},n.onExited=function(l){var u=n.resolveArguments(l),f=u[0];n.removeClasses(f,"exit"),n.addClass(f,"exit","done"),n.props.onExited&&n.props.onExited(l)},n.resolveArguments=function(l,u){return n.props.nodeRef?[n.props.nodeRef.current,l]:[l,u]},n.getClassNames=function(l){var u=n.props.classNames,f=typeof u=="string",d=f&&u?u+"-":"",h=f?""+d+l:u[l],p=f?h+"-active":u[l+"Active"],y=f?h+"-done":u[l+"Done"];return{baseClassName:h,activeClassName:p,doneClassName:y}},n}var r=t.prototype;return r.addClass=function(i,a,o){var l=this.getClassNames(a)[o+"ClassName"],u=this.getClassNames("enter"),f=u.doneClassName;a==="appear"&&o==="done"&&f&&(l+=" "+f),o==="active"&&i&&Ste(i),l&&(this.appliedClasses[a][o]=l,Rke(i,l))},r.removeClasses=function(i,a){var o=this.appliedClasses[a],l=o.base,u=o.active,f=o.done;this.appliedClasses[a]={},l&&wx(i,l),u&&wx(i,u),f&&wx(i,f)},r.render=function(){var i=this.props;i.classNames;var a=Jm(i,["classNames"]);return Dr.createElement(Vs,Rh({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(Dr.Component);hP.defaultProps={classNames:""};hP.propTypes={};function xke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pP(e,t){var r=function(a){return t&&Se.isValidElement(a)?t(a):a},n=Object.create(null);return e&&Se.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function Cke(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,l={};for(var u in t){if(n[u])for(o=0;o<n[u].length;o++){var f=n[u][o];l[n[u][o]]=r(f)}l[u]=r(u)}for(o=0;o<i.length;o++)l[i[o]]=r(i[o]);return l}function zl(e,t,r){return r[t]!=null?r[t]:e.props[t]}function Oke(e,t){return pP(e.children,function(r){return Se.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:zl(r,"appear",e),enter:zl(r,"enter",e),exit:zl(r,"exit",e)})})}function Ike(e,t,r){var n=pP(e.children),i=Cke(t,n);return Object.keys(i).forEach(function(a){var o=i[a];if(Se.isValidElement(o)){var l=a in t,u=a in n,f=t[a],d=Se.isValidElement(f)&&!f.props.in;u&&(!l||d)?i[a]=Se.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:zl(o,"exit",e),enter:zl(o,"enter",e)}):!u&&l&&!d?i[a]=Se.cloneElement(o,{in:!1}):u&&l&&Se.isValidElement(f)&&(i[a]=Se.cloneElement(o,{onExited:r.bind(null,o),in:f.props.in,exit:zl(o,"exit",e),enter:zl(o,"enter",e)}))}}),i}var Pke=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},kke={component:"div",childFactory:function(t){return t}},vP=(function(e){RI(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=a.handleExited.bind(xke(a));return a.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var o=a.children,l=a.handleExited,u=a.firstRender;return{children:u?Oke(i,l):Ike(i,o,l),firstRender:!1}},r.handleExited=function(i,a){var o=pP(this.props.children);i.key in o||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(l){var u=Rh({},l.children);return delete u[i.key],{children:u}}))},r.render=function(){var i=this.props,a=i.component,o=i.childFactory,l=Jm(i,["component","childFactory"]),u=this.state.contextValue,f=Pke(this.state.children).map(o);return delete l.appear,delete l.enter,delete l.exit,a===null?Dr.createElement(Og.Provider,{value:u},f):Dr.createElement(Og.Provider,{value:u},Dr.createElement(a,l,f))},t})(Dr.Component);vP.propTypes={};vP.defaultProps=kke;function Dke(e){return de.jsx("svg",{...e,children:de.jsx("path",{fill:"currentColor",d:"M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9m0 1.212c-2.081 0-4.037.809-5.508 2.28A7.74 7.74 0 0 0 4.212 12c0 2.081.809 4.037 2.28 5.508A7.74 7.74 0 0 0 12 19.788c2.081 0 4.037-.809 5.508-2.28A7.74 7.74 0 0 0 19.788 12c0-2.081-.809-4.037-2.28-5.508A7.74 7.74 0 0 0 12 4.212m4.244 4.366a.7.7 0 0 1 .07 1.016l-5.25 5.76a.77.77 0 0 1-1.094.035l-2.25-2.16a.7.7 0 0 1 0-1.018.77.77 0 0 1 1.06 0l1.684 1.616 4.722-5.181a.77.77 0 0 1 1.058-.068"})})}function Lke(e){return de.jsx("svg",{...e,children:de.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0m-1 0a7 7 0 1 0-14 0 7 7 0 0 0 14 0m-6.25-.75a.75.75 0 0 0-1.5 0v5a.75.75 0 0 0 1.5 0zm0-3a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0",clipRule:"evenodd"})})}function Nke(e){return de.jsx("svg",{...e,children:de.jsx("path",{fill:"currentColor",d:"m13.882 20.807.619 2.935q-.803.17-3.028.258l.176-.008-.175-.004.133-2.997.28.008.154.001a9 9 0 0 0 1.841-.194m-5.888-.75a9 9 0 0 0 2.12.744l-.63 2.933a12 12 0 0 1-2.832-.992zm9.274-.746 1.754 2.436a12 12 0 0 1-2.638 1.433l-1.093-2.793a9 9 0 0 0 1.977-1.076M5.06 17.724A9 9 0 0 0 6.7 19.271l-1.773 2.42a12 12 0 0 1-2.184-2.057zm14.736-1.187 2.592 1.515a12 12 0 0 1-1.828 2.38l-2.137-2.108a9 9 0 0 0 1.373-1.787M3.31 14.344a9 9 0 0 0 .852 2.078L1.55 17.899a12 12 0 0 1-1.138-2.776zm17.661-1.39 2.987.313a12 12 0 0 1-.686 2.92l-2.814-1.046c.261-.7.434-1.434.513-2.187M.135 10.197l2.97.447a9.2 9.2 0 0 0-.056 2.27l-2.988.3Q.02 12.813 0 12l.009-.457q.026-.684.126-1.346m23.299-1.925c.306.937.5 1.924.566 2.947l-2.997.192a9 9 0 0 0-.424-2.208zM1.892 5.532l2.529 1.62a9 9 0 0 0-.967 2.027L.6 8.24c.318-.962.754-1.87 1.291-2.708m19.06-1.548c.668.744 1.245 1.57 1.713 2.464l-2.661 1.39a9 9 0 0 0-1.286-1.849zM5.407 1.976 7.06 4.48a9 9 0 0 0-1.714 1.465l-2.221-2.02a12 12 0 0 1 2.28-1.95m11.503-.937c.923.412 1.784.937 2.566 1.558L17.61 4.946a9 9 0 0 0-1.926-1.168zM10.03.163l.492 2.96a9 9 0 0 0-2.153.643L7.153 1.023C8.058.622 9.023.33 10.03.163M12.013 0l.439.008a12 12 0 0 1 2.541.364L14.25 3.28A9 9 0 0 0 12.012 3z"})})}function Mke(e){return de.jsx("svg",{...e,children:de.jsx("path",{d:"m13.026 4.377 8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0M12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2m.75-3.677V8.677a.69.69 0 0 0-.7-.677c-.387 0-.7.303-.7.677v5.646c0 .374.313.677.7.677s.7-.303.7-.677",fill:"currentColor"})})}const $ke="_alertItem_i5y1z_1",Fke="_alertBox_i5y1z_11",jke="_alertList_i5y1z_11",Uke="_icon_i5y1z_28",qke="_alertContent_i5y1z_32",Bke="_heading_i5y1z_40",Wl={alertItem:$ke,alertBox:Fke,alertList:jke,icon:Uke,alertContent:qke,heading:Bke};function Vke(e){const{alert:t,svg:r,svgClassName:n,closeAlert:i}=e,{message:a,heading:o,appLink:l,appLinkText:u,appLinkClassName:f="",extLink:d,extLinkText:h,extLinkClassName:p}=t;return de.jsxs(de.Fragment,{children:[de.jsx("div",{className:`d-inline-block ${Wl.icon}`,children:de.jsx(oc,{svg:r,className:`svg-container ${n}`})}),de.jsxs("div",{role:t.type===ms.Fail?"alert":"status",className:`ps-2 d-inline-block ${Wl.alertContent}`,children:[de.jsx("p",{className:`p-0 m-0 pb-1 ${Wl.heading}`,children:o}),de.jsx("p",{className:`p-0 text-break clamp-4 ${Wl.message}`,dangerouslySetInnerHTML:{__html:a}}),!!l&&de.jsx(Ro,{className:f,appLink:l,children:de.jsx("span",{dangerouslySetInnerHTML:{__html:u}})}),!!d&&h&&de.jsx("a",{href:d,className:p,target:"_blank",children:h})]}),de.jsx("div",{className:"btn-close d-inline-block cursor-pointer",role:"button","aria-label":"Close",onClick:i})]})}const Hke=e=>{switch(e.type){case ms.Success:return Dke;case ms.Fail:case ms.Warning:return Mke;case ms.Pending:return Nke;case ms.Info:default:return Lke}},zke=e=>e.type===ms.Pending?"text-info":`text-${e.type}`;Fne.defaultProps={timeout:3e3};function Fne({alert:e,closeAlert:t,timeout:r}){const[n,i]=Se.useState(!0),a=Se.useRef(null);return Se.useEffect(()=>{if(!n){clearTimeout(a.current);return}a.current=window.setTimeout(t,r)},[n]),de.jsx("li",{className:`bg-white mt-2 p-2 show clearfix ${Wl.alertItem}`,onMouseEnter:()=>i(!1),onMouseLeave:()=>i(!0),children:de.jsx(Vke,{alert:e,svg:Hke(e),svgClassName:zke(e),closeAlert:t})})}function Wke({alerts:e,removeAlert:t}){return de.jsx("div",{className:Wl.alertBox,children:de.jsx(vP,{component:"ul",className:`${Wl.alertList} list-unstyled`,children:e&&e.map((r,n)=>de.jsx(hP,{timeout:200,classNames:"alert",children:de.jsx(Fne,{alert:r,closeAlert:()=>t(r.id),timeout:r.timeout})},n))})})}async function Gke(e,t){try{const r={maxAlerts:3,defaultSuccessAlert:{heading:RC.Success,type:ms.Success},defaultErrorAlert:{heading:RC.Fail,type:ms.Fail},alertViewCtor:Wke};cu.registerSingleton(new YAe(r)).registerInstance(Ake,{store:e.store}),t(e)}catch{dr.throw(new $f)}}function Kke(e){var t,r=e.Symbol;return typeof r=="function"?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}var Ef;typeof self<"u"?Ef=self:typeof window<"u"?Ef=window:typeof globalThis<"u"?Ef=globalThis:typeof module<"u"?Ef=module:Ef=Function("return this")();var BY=Kke(Ef),bx=function(){return Math.random().toString(36).substring(7).split("").join(".")},mh={INIT:"@@redux/INIT"+bx(),REPLACE:"@@redux/REPLACE"+bx(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+bx()}};function Yke(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function jne(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error("Expected the enhancer to be a function.");return r(jne)(e,t)}if(typeof e!="function")throw new Error("Expected the reducer to be a function.");var i=e,a=t,o=[],l=o,u=!1;function f(){l===o&&(l=o.slice())}function d(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function h(E){if(typeof E!="function")throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var S=!0;return f(),l.push(E),function(){if(S){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");S=!1,f();var T=l.indexOf(E);l.splice(T,1)}}}function p(E){if(!Yke(E))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(typeof E.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,a=i(a,E)}finally{u=!1}for(var S=o=l,w=0;w<S.length;w++){var T=S[w];T()}return E}function y(E){if(typeof E!="function")throw new Error("Expected the nextReducer to be a function.");i=E,p({type:mh.REPLACE})}function _(){var E,S=h;return E={subscribe:function(T){if(typeof T!="object"||T===null)throw new TypeError("Expected the observer to be an object.");function C(){T.next&&T.next(d())}C();var x=S(C);return{unsubscribe:x}}},E[BY]=function(){return this},E}return p({type:mh.INIT}),n={dispatch:p,subscribe:h,getState:d,replaceReducer:y},n[BY]=_,n}function Xke(e,t){var r=t&&t.type,n=r&&'action "'+String(r)+'"'||"an action";return"Given "+n+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function Qke(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:mh.INIT});if(typeof n>"u")throw new Error('Reducer "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:mh.PROBE_UNKNOWN_ACTION()})>"u")throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+mh.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function Jke(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),o;try{Qke(r)}catch(l){o=l}return function(u,f){if(u===void 0&&(u={}),o)throw o;for(var d=!1,h={},p=0;p<a.length;p++){var y=a[p],_=r[y],E=u[y],S=_(E,f);if(typeof S>"u"){var w=Xke(y,f);throw new Error(w)}h[y]=S,d=d||S!==E}return d?h:u}}function Zke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VY(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r}function eDe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VY(r,!0).forEach(function(n){Zke(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VY(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tDe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function rDe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(u){return u(o)});return a=tDe.apply(void 0,l)(i.dispatch),eDe({},i,{dispatch:a})}}}const Une={X_APP_VERSION:"X-App-Version"};function nDe(e){const{oldVersionError:t,authenticationError:r}=e;return function(i){return a=>o=>{var h,p;const l=o;if(o.type===wa.API_ERROR&&r&&((h=l==null?void 0:l.xhr)==null?void 0:h.status)===rI.Unauthorized)return dr.throw(new r("dark"));if(o.type!==wa.API_RESPONSE){a(o);return}const f=i.getState().applicationData.version,d=(p=l==null?void 0:l.xhr)==null?void 0:p.getResponseHeader(Une.X_APP_VERSION);t&&f&&d&&d!==f&&dr.throw(new t(f,d)),a(o)}}}function iDe(e,t){if(!ys.isObject(t.xhr))return e;const r=t.xhr.getResponseHeader(Une.X_APP_VERSION);return r?{...e,version:r}:e}const aDe={version:null};function oDe(e=aDe,t){switch(t.type){case wa.API_RESPONSE:return iDe(e,t)}return e}function sDe(e,t){return typeof t.payload.dataOrKey=="string"&&t.payload.keyData!==void 0?{...e,[t.payload.viewModelKey]:{...e[t.payload.viewModelKey],[t.payload.dataOrKey]:t.payload.keyData}}:typeof t.payload.dataOrKey=="object"&&Array.isArray(t.payload.dataOrKey)?{...e,[t.payload.viewModelKey]:t.payload.dataOrKey}:{...e,[t.payload.viewModelKey]:t.payload.dataOrKey}}function uDe(e={},t){switch(t.type){case cP.UPDATE:return sDe(e,t)}return e}const lDe={STANDARD:600},Uv="shared.authentication";class cDe extends Dc{constructor(t){super(Gr.getPhrase(Uv,"title")),this.btnVariant=t}get name(){return"AuthenticationError"}get dialogOptions(){return{title:Gr.getPhrase(Uv,"heading"),text:Gr.getPhrase(Uv,"body"),buttons:[{text:Gr.getPhrase(Uv,"reload"),className:`btn btn-${this.btnVariant}`,success:!0}]}}onDone(){Dn.Reload()}}class fDe extends cDe{onDone(){Dn.PageLoad(`/login?returnUrl=${encodeURIComponent(Dn.GetCurrentUrl())}`)}}const If={hasTokenExpired(e){return typeof(e==null?void 0:e.localTTL)!="number"?!1:new Date().getTime()>e.localTTL},getToken(e,t){var a,o,l,u;const r=Jee(e.getState(),Zl.TOKEN),n=If.hasTokenExpired(r.data);if((r.shouldFetch||n)&&!r.isFetching){fd(e.dispatch,t);return}if(r.isFetching){let f=!1;const d=e.subscribe(()=>{d(),!f&&(f=!0,If.getToken(e,t))});return}r.hasError?((a=t.error)==null||a.call(t,{status:r.statusCode,getResponseHeader:null}),(o=t.always)==null||o.call(t)):((l=t.success)==null||l.call(t,r.data),(u=t.always)==null||u.call(t))},async getTokenAsync(e){const t=qne.getToken();return t||new Promise((r,n)=>{const i=o=>r(o),a=o=>n(o);If.getToken(e,ta.token(i,a))})}},dDe=Fi.Router.prototype._routeToRegExp("share/embed/:id(/)"),hDe=Fi.Router.prototype._routeToRegExp("videos/embed/:id(/)"),qne={applyToken(e){const t=QI.getCurrentRoute().appLink,r=Ai.getHref({...t,params:{...typeof t.params=="object"?t.params:{},embedToken:e==null?void 0:e.value,localTTL:e==null?void 0:e.localTTL,a:!0}});Dn.PageLoad(r)},getToken(){const e=Fi.history.getFragment(Dn.GetCurrentPath()),t=dDe.test(e),r=hDe.test(e);if(!t&&!r||!window.URLSearchParams)return null;const n=new URLSearchParams(window.location.search),i=n.get("embedToken"),a=parseInt(n.get("localTTL"));if(!i||!a)return null;const o={value:i,localTTL:isNaN(a)?null:a};return If.hasTokenExpired(o)?null:o}};function pDe(){const e=qne.getToken();return e?function(r,n){if(!r.resource.startsWith("/"))return n(r);If.hasTokenExpired(e)||(r.headers={...r.headers??{},authorization:`Bearer ${e.value}`}),n(r)}:(t,r)=>r(t)}const CC={safeUrlConcat(e,t){if(!e)return;let r=e;return e.endsWith("/")||(r+="/"),t&&(r+=t.startsWith("/")?t.slice(1):t),r}},HY={"{gateway}":"gatewayApiUrl","{image}":"imageCdnUrl","{integrations}":"integrationsApiUrl","{player}":"playerApiUrl"};function vDe(e){return async function(r,n){const i=Object.keys(HY).find(o=>r.resource.startsWith(o));if(!i)return n(r);function a(o,l){const u=o[HY[i]],f={...r,resource:CC.safeUrlConcat(u,r.resource.split(`${i}/`)[1])};l!=null&&l.value&&(f.headers={...f.headers??{},authorization:`Bearer ${l.value}`}),n(f)}try{const o=await qa(e,al.config());if(!(await qa(e,ta.currentUser())).isAuthenticated){a(o);return}const u=await If.getTokenAsync(e);a(o,u)}catch{n(r)}}}const zY=/\(([^()]*)\)/g;function gDe(e,t){return function(n,i){i({...n,resource:n.resource.replace(e,t)})}}function mDe(e,t){function r(n){return function(a){const o=t[a];if(typeof o=="string"){n.useAsync(gDe(a,o));return}o&&n.useAsync(o)}}return function(i,a){var p;const o=new xf,l=new xf,u={resource:i.resource,store:e},f={resource:null,store:e},d=(p=i.data)==null?void 0:p.ogql;if(decodeURIComponent(i.resource).replace(zY,r(o)),d){const y=JSON.stringify(i.data.ogql);f.resource=y,y.replace(zY,r(l))}o.goAsync(u,y=>{l.goAsync(f,_=>{a({...i,resource:y.resource,data:d?{...i.data,ogql:JSON.parse(_.resource)}:i.data})})})}}function yDe(e,t){return function(n){const i=new xf;i.useAsync(vDe(e.store)),i.useAsync(mDe(e.store,t)),i.useAsync(pDe()),i.goAsync(n,a=>{Uye(a)})}}const WY={VIDEO_COLLECTION:"(videoCollection)",SERIES:"tallposter,_rating,banner",CLASSIFICATION_COLLECTION:"banner,cover,tallPoster,_theme[banner,cover,tallPoster,thumbnail,icon]",CLASSIFICATION:e=>`banner,cover,tallPoster,thumbnail,_theme[banner,cover,tallPoster,thumbnail,icon],followers{id:${e}},pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0},tags{tagType:curation}`,VIDEO:"channel,series,season,_rating,producers,glance,distributors[partnerprofiles[_slug,count()]],owner,subjectPresentationAudiences,resources[thumbnail,pdf],tags,productionCompanies[partnerprofiles[_slug,count()]],directors,links,thumbnail,_canUpdate,_videoProgress,_canBeConsumed,categories[libraries],libraries,_canAddToLibrary,_restrictions,_canDownload,_isClickViewCurated,contentLicences,_canCreateChild",PLAYLIST:"cover,banner,owner,followers[count()]{limit:0}",PLAYLIST_COLLECTION:"videos[count()]{status:[1,2],limit:0},interactives[count()]{status:[1,2],limit:0},clips[count()]{status:[1,2],limit:0},cover",CLIP:"(clip)",CLIP_COLLECTION:"(clipCollection)",INTERACTIVE:"(interactive)",INTERACTIVE_COLLECTION:"(interactiveCollection)",LIBRARY_COLLECTION:"owner[logo]",LIBRARY:"owner[logo],categorytree",PARTNER_PROFILE:"company[banner,logo,partnerprofiles[count()]],person[partnerprofiles[count()]],_slug,contentregions,_logo,_banner,_cover,_colour,_videobanner,links"},HLe={CLASSIFICATION:"banner,cover,tallPoster,_theme[banner,cover,tallPoster,thumbnail,icon],pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0},tags{tagType:curation}",CLASSIFICATION_COLLECTION:"banner,cover,tallPoster,_theme[banner,cover,tallPoster,thumbnail,icon]",VIDEO:"series,season,_rating,producers,glance,distributors[partnerprofiles[_slug,count()]],subjectPresentationAudiences,resources[thumbnail,pdf],tags,productionCompanies[partnerprofiles[_slug,count()]],directors,links,thumbnail,interactives[thumbnail,_canBeConsumed,_isClickViewCurated],clips[_canBeConsumed,_isClickViewCurated,_thumbnail],_canBeConsumed,_isClickViewCurated,categories,libraries",VIDEO_COLLECTION:"thumbnail,_rating,series,season,subjectPresentationAudiences,subtitles{limit:1},_canBeConsumed"},_De=[yr.ExchangeTvProductOption,yr.TvRegion,yr.LiteUpgradeTypeCustomer];function EDe(e){return function(r,n){const i=_De.map(o=>`type=${o}`).join("&"),a=r.resource.replace(e,i);n({...r,resource:a})}}const SDe=[yr.HasCompletedOnboardingV1];function wDe(e){return function(r,n){const i=SDe.map(o=>`type=${o}`).join("&"),a=r.resource.replace(e,i);n({...r,resource:a})}}const bDe="thumbnail,_rating,series,season,subtitles{limit:1}";function TDe(e){return function(r,n){mI(r.store,ta.currentUser(i=>{let a=`${bDe}`;i.isAuthenticated&&(a+=`,favouritedby{id:${i.id}}`);const o=r.resource.replace(e,a);n({...r,resource:o})},()=>n(r)))}}const ADe={[WY.VIDEO_COLLECTION]:TDe(WY.VIDEO_COLLECTION),"(customerSettings)":EDe("(customerSettings)"),"(userSettings)":wDe("(userSettings)")};async function RDe(e,t){const r=Jke({flightData:hSe,viewModelData:uDe,applicationData:oDe}),n=sSe({fetchData:yDe(e,ADe),bootstrappedData:window.bootstrapData||{},defaultCacheDuration:lDe.STANDARD}),i=nDe({authenticationError:fDe,oldVersionError:Qre});async function a(l){e.registerStore(l),t(e),delete window.bootstrapData}const o=jne(r,rDe(n,i));await a(o)}const xDe="application:options";class CDe extends za{constructor(t){super(),this.clients={},this.enrichers={},$ne.get(xDe).set(t??{})}get name(){return AI.Analytics}registerTransport(t,r){return this.transport=new t(r),this.bindTransportListeners(),this}bindTransportListeners(){this.listenTo(_te.ANALYTICS,Cf.Inlet,this.onEvent)}registerClient(t,r){return this.validateConstructor(t),this.clients[t.prototype.name]=t.prototype.name,this.transport.subscribe(new t(r)),this}registerEnricher(t,r){this.validateConstructor(t);const n=new t(r);return this.enrichers[n.name]=n,this.registerMiddleware(au(n.enrich,n)),this}hasEnricher(t){return!!this.enrichers[t.prototype.name]}onEvent(t){this.executeMiddleware(t,r=>{this.transport.publish(r)})}validateConstructor(t){const r=t.prototype.name;r||dr.throw(new Sn(`Classes registered with ${this.name} must have a unique name property.`));const n=i=>Ao.isFunction(t.prototype.isType)&&t.prototype.isType(i);(n("BaseAnalyticsClient")||r==="CollectionApiClient")&&this.clients[r]&&dr.throw(new Sn(`A client class with the name: ${r} has already been registered with ${this.name}`)),n("BaseAnalyticsEnricher")&&this.enrichers[r]&&dr.throw(new Sn(`An enricher class named: ${r} has already been registered with ${this.name}`))}registerMiddleware(t){this.executeMiddleware=(r=>(n,i)=>r(n,()=>t(n,i)))(this.executeMiddleware)}executeMiddleware(t,r){r(t)}}const Bne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function GY(e,t,r,n){let i,a,o;const l=t||[0],u=(r=r||0)>>>3,f=n===-1?3:0;for(i=0;i<e.length;i+=1)o=i+u,a=o>>>2,l.length<=a&&l.push(0),l[a]|=e[i]<<8*(f+n*(o%4));return{value:l,binLen:8*e.length+r}}function Tx(e,t,r){switch(t){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(n,i,a){return(function(o,l,u,f){let d,h,p,y;if(o.length%2!=0)throw new Error("String of HEX type must be in byte increments");const _=l||[0],E=(u=u||0)>>>3,S=f===-1?3:0;for(d=0;d<o.length;d+=2){if(h=parseInt(o.substr(d,2),16),isNaN(h))throw new Error("String of HEX type contains invalid characters");for(y=(d>>>1)+E,p=y>>>2;_.length<=p;)_.push(0);_[p]|=h<<8*(S+f*(y%4))}return{value:_,binLen:4*o.length+u}})(n,i,a,r)};case"TEXT":return function(n,i,a){return(function(o,l,u,f,d){let h,p,y,_,E,S,w,T,C=0;const x=u||[0],R=(f=f||0)>>>3;if(l==="UTF8")for(w=d===-1?3:0,y=0;y<o.length;y+=1)for(h=o.charCodeAt(y),p=[],128>h?p.push(h):2048>h?(p.push(192|h>>>6),p.push(128|63&h)):55296>h||57344<=h?p.push(224|h>>>12,128|h>>>6&63,128|63&h):(y+=1,h=65536+((1023&h)<<10|1023&o.charCodeAt(y)),p.push(240|h>>>18,128|h>>>12&63,128|h>>>6&63,128|63&h)),_=0;_<p.length;_+=1){for(S=C+R,E=S>>>2;x.length<=E;)x.push(0);x[E]|=p[_]<<8*(w+d*(S%4)),C+=1}else for(w=d===-1?2:0,T=l==="UTF16LE"&&d!==1||l!=="UTF16LE"&&d===1,y=0;y<o.length;y+=1){for(h=o.charCodeAt(y),T===!0&&(_=255&h,h=_<<8|h>>>8),S=C+R,E=S>>>2;x.length<=E;)x.push(0);x[E]|=h<<8*(w+d*(S%4)),C+=2}return{value:x,binLen:8*C+f}})(n,t,i,a,r)};case"B64":return function(n,i,a){return(function(o,l,u,f){let d,h,p,y,_,E,S,w=0;const T=l||[0],C=(u=u||0)>>>3,x=f===-1?3:0,R=o.indexOf("=");if(o.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(o=o.replace(/=/g,""),R!==-1&&R<o.length)throw new Error("Invalid '=' found in base-64 string");for(h=0;h<o.length;h+=4){for(_=o.substr(h,4),y=0,p=0;p<_.length;p+=1)d=Bne.indexOf(_.charAt(p)),y|=d<<18-6*p;for(p=0;p<_.length-1;p+=1){for(S=w+C,E=S>>>2;T.length<=E;)T.push(0);T[E]|=(y>>>16-8*p&255)<<8*(x+f*(S%4)),w+=1}}return{value:T,binLen:8*w+u}})(n,i,a,r)};case"BYTES":return function(n,i,a){return(function(o,l,u,f){let d,h,p,y;const _=l||[0],E=(u=u||0)>>>3,S=f===-1?3:0;for(h=0;h<o.length;h+=1)d=o.charCodeAt(h),y=h+E,p=y>>>2,_.length<=p&&_.push(0),_[p]|=d<<8*(S+f*(y%4));return{value:_,binLen:8*o.length+u}})(n,i,a,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error("ARRAYBUFFER not supported by this environment")}return function(n,i,a){return(function(o,l,u,f){return GY(new Uint8Array(o),l,u,f)})(n,i,a,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error("UINT8ARRAY not supported by this environment")}return function(n,i,a){return GY(n,i,a,r)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function KY(e,t,r,n){switch(e){case"HEX":return function(i){return(function(a,o,l,u){let f,d,h="";const p=o/8,y=l===-1?3:0;for(f=0;f<p;f+=1)d=a[f>>>2]>>>8*(y+l*(f%4)),h+="0123456789abcdef".charAt(d>>>4&15)+"0123456789abcdef".charAt(15&d);return u.outputUpper?h.toUpperCase():h})(i,t,r,n)};case"B64":return function(i){return(function(a,o,l,u){let f,d,h,p,y,_="";const E=o/8,S=l===-1?3:0;for(f=0;f<E;f+=3)for(p=f+1<E?a[f+1>>>2]:0,y=f+2<E?a[f+2>>>2]:0,h=(a[f>>>2]>>>8*(S+l*(f%4))&255)<<16|(p>>>8*(S+l*((f+1)%4))&255)<<8|y>>>8*(S+l*((f+2)%4))&255,d=0;d<4;d+=1)_+=8*f+6*d<=o?Bne.charAt(h>>>6*(3-d)&63):u.b64Pad;return _})(i,t,r,n)};case"BYTES":return function(i){return(function(a,o,l){let u,f,d="";const h=o/8,p=l===-1?3:0;for(u=0;u<h;u+=1)f=a[u>>>2]>>>8*(p+l*(u%4))&255,d+=String.fromCharCode(f);return d})(i,t,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error("ARRAYBUFFER not supported by this environment")}return function(i){return(function(a,o,l){let u;const f=o/8,d=new ArrayBuffer(f),h=new Uint8Array(d),p=l===-1?3:0;for(u=0;u<f;u+=1)h[u]=a[u>>>2]>>>8*(p+l*(u%4))&255;return d})(i,t,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error("UINT8ARRAY not supported by this environment")}return function(i){return(function(a,o,l){let u;const f=o/8,d=l===-1?3:0,h=new Uint8Array(f);for(u=0;u<f;u+=1)h[u]=a[u>>>2]>>>8*(d+l*(u%4))&255;return h})(i,t,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function YY(e){const t={outputUpper:!1,b64Pad:"=",outputLen:-1},r=e||{},n="Output length must be a multiple of 8";if(t.outputUpper=r.outputUpper||!1,r.b64Pad&&(t.b64Pad=r.b64Pad),r.outputLen){if(r.outputLen%8!=0)throw new Error(n);t.outputLen=r.outputLen}else if(r.shakeLen){if(r.shakeLen%8!=0)throw new Error(n);t.outputLen=r.shakeLen}if(typeof t.outputUpper!="boolean")throw new Error("Invalid outputUpper formatting option");if(typeof t.b64Pad!="string")throw new Error("Invalid b64Pad formatting option");return t}function pf(e,t){return e<<t|e>>>32-t}function XY(e,t,r){return e^t^r}function ODe(e,t,r){return e&t^e&r^t&r}function Zd(e,t){const r=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(r>>>16))<<16|65535&r}function qv(e,t,r,n,i){const a=(65535&e)+(65535&t)+(65535&r)+(65535&n)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(r>>>16)+(n>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function IDe(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function Vne(e,t){let r,n,i,a,o,l,u;const f=[];for(r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],u=0;u<80;u+=1)f[u]=u<16?e[u]:pf(f[u-3]^f[u-8]^f[u-14]^f[u-16],1),l=u<20?qv(pf(r,5),(d=n)&i^~d&a,o,1518500249,f[u]):u<40?qv(pf(r,5),XY(n,i,a),o,1859775393,f[u]):u<60?qv(pf(r,5),ODe(n,i,a),o,2400959708,f[u]):qv(pf(r,5),XY(n,i,a),o,3395469782,f[u]),o=a,a=i,i=pf(n,30),n=r,r=l;var d;return t[0]=Zd(r,t[0]),t[1]=Zd(n,t[1]),t[2]=Zd(i,t[2]),t[3]=Zd(a,t[3]),t[4]=Zd(o,t[4]),t}function PDe(e,t,r,n){let i;const a=15+(t+65>>>9<<4),o=t+r;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&o,e[a-1]=o/4294967296|0,i=0;i<e.length;i+=16)n=Vne(e.slice(i,i+16),n);return n}class kDe extends class{constructor(t,r,n){const i=n||{};if(this.t=r,this.i=i.encoding||"UTF8",this.numRounds=i.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.s=t,this.o=[],this.h=0,this.u=!1,this.l=0,this.A=!1,this.p=[],this.R=[]}update(t){let r,n=0;const i=this.U>>>5,a=this.T(t,this.o,this.h),o=a.binLen,l=a.value,u=o>>>5;for(r=0;r<u;r+=i)n+this.U<=o&&(this.F=this.m(l.slice(r,r+i),this.F),n+=this.U);this.l+=n,this.o=l.slice(n>>>5),this.h=o%this.U,this.u=!0}getHash(t,r){let n,i,a=this.g;const o=YY(r);if(this.B){if(o.outputLen===-1)throw new Error("Output length must be specified in options");a=o.outputLen}const l=KY(t,a,this.v,o);if(this.A&&this.Y)return l(this.Y(o));for(i=this.H(this.o.slice(),this.h,this.l,this.C(this.F),a),n=1;n<this.numRounds;n+=1)this.B&&a%32!=0&&(i[i.length-1]&=16777215>>>24-a%32),i=this.H(i,a,0,this.I(this.s),a);return l(i)}setHMACKey(t,r,n){if(!this.L)throw new Error("Variant does not support HMAC");if(this.u)throw new Error("Cannot set MAC key after calling update");const i=Tx(r,(n||{}).encoding||"UTF8",this.v);this.M(i(t))}M(t){const r=this.U>>>3,n=r/4-1;let i;if(this.numRounds!==1)throw new Error("Cannot set numRounds with MAC");if(this.A)throw new Error("MAC key already set");for(r<t.binLen/8&&(t.value=this.H(t.value,t.binLen,0,this.I(this.s),this.g));t.value.length<=n;)t.value.push(0);for(i=0;i<=n;i+=1)this.p[i]=909522486^t.value[i],this.R[i]=1549556828^t.value[i];this.F=this.m(this.p,this.F),this.l=this.U,this.A=!0}getHMAC(t,r){const n=YY(r);return KY(t,this.g,this.v,n)(this.N())}N(){let t;if(!this.A)throw new Error("Cannot call getHMAC without first setting MAC key");const r=this.H(this.o.slice(),this.h,this.l,this.C(this.F),this.g);return t=this.m(this.R,this.I(this.s)),t=this.H(r,this.g,this.U,t,this.g),t}}{constructor(t,r,n){if(t!=="SHA-1")throw new Error("Chosen SHA variant is not supported");super(t,r,n);const i=n||{};this.L=!0,this.Y=this.N,this.v=-1,this.T=Tx(this.t,this.i,this.v),this.m=Vne,this.C=function(a){return a.slice()},this.I=IDe,this.H=PDe,this.F=[1732584193,4023233417,2562383102,271733878,3285377520],this.U=512,this.g=160,this.B=!1,i.hmacKey&&this.M((function(a,o,l,u){const f=a+" must include a value and format";if(!o)throw new Error(f);if(o.value===void 0||!o.format)throw new Error(f);return Tx(o.format,o.encoding||"UTF8",l)(o.value)})("hmacKey",i.hmacKey,this.v))}}var hu=(e=>(e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1",e.CvNaWest1="cv-na-west-1",e))(hu||{});const DDe={systemName:hu.CvApSoutheast1},LDe={systemName:hu.CvApSoutheast2},NDe={systemName:hu.CvEuWest1},MDe={systemName:hu.CvNaWest1},$De={CvApSoutheast1:DDe,CvApSoutheast2:LDe,CvEuWest1:NDe,CvNaWest1:MDe},QY="r",_y="cv:r",Ey="cv:r:e",Bv="referrer",JY="cv:originalReferrer",OC=28800,ZY=["internalReferrer"],gP={getDecodedAttributionData(){const e=Hi.cacheGet(_y);if(e&&Object.keys(e).length>0)return e;const t=eX();return t==null?void 0:t.decoded},getEncodedAttributionData(){const e=Hi.cacheGet(Ey);return e!=null&&e.length?e:eX().encoded},getProfileId(){const e=gP.getDecodedAttributionData();return(e==null?void 0:e.profileId)??null},setAttributionData(e){if(!e)return;const t=Hne(e);IC(t,e)},decodeRValue(e){if(e)try{const t=atob(e),r=JSON.parse(t);if(!mP(r))throw Error(`Decoded R value is invalid: ${JSON.stringify(r)}`);return r}catch(t){const r=t instanceof Error?t.message:t==null?void 0:t.toString();console.error(r)}}};function eX(){const e=Hi.cacheGet(_y),t=Hi.cacheGet(Ey);return mP(e)?{encoded:t,decoded:e}:FDe()}function FDe(){Hi.cacheRemove(_y),Hi.cacheRemove(Ey);const e=UDe(),t=gP.decodeRValue(e);if(t)return IC(e,t),{decoded:t,encoded:e};const r={internalReferrer:window.location.origin+window.location.pathname,originalReferrer:jDe()},n=Hne(r);return IC(n,r),{decoded:r,encoded:n}}function mP(e){return!e||typeof e!="object"||Object.keys(e).length<ZY.length?!1:ZY.every(t=>typeof e[t]=="string")}function jDe(){const e=Hi.cacheGet(JY);if(e&&typeof e=="string")return e;let t=document.referrer??"";if(window.URLSearchParams){const r=new URLSearchParams(window.location.search),n=r.has(Bv)&&r.get(Bv);r.has(Bv)&&r.get(Bv)&&(t=n)}return t&&Hi.cacheSet(JY,t,OC),t}function UDe(){if(!window.URLSearchParams)return;const e=new URLSearchParams(window.location.search);if(e.has(QY))return e.get(QY)}function Hne(e){if(mP(e))try{return btoa(JSON.stringify(e))}catch{console.error(`R value could not be encoded: ${JSON.stringify(e)}`)}}function IC(e,t){try{Hi.cacheSet(_y,t,OC),Hi.cacheSet(Ey,e,OC)}catch{console.error("Could not store attribution data in session storage")}}const tX=3,qDe=5e3,BDe=6,Ax={};class VDe{constructor(t){this.key=t.toString()}getCount(){return Ax[this.key]||0}increment(){Ax[this.key]=this.getCount()+1}reset(){delete Ax[this.key]}shouldBreak(){return this.getCount()>=BDe}}class HDe{constructor(){this.attempt=0}async wait(){await new Promise(t=>setTimeout(t,qDe*Math.pow(2,this.attempt))),this.attempt++}}async function zDe(e,t){const r=new HDe,n=new VDe(e);async function i(){const a=await fetch(e,t);if(a.status>=500&&!n.shouldBreak())throw new Error(`Server error: ${a.status}`);return a.ok&&n.reset(),a}for(let a=1;a<=tX;a++)try{return await i()}catch(o){if(a>=tX||n.shouldBreak())throw o;n.increment(),await r.wait()}}var Vv,WDe=new Uint8Array(16);function GDe(){if(!Vv&&(Vv=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Vv))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Vv(WDe)}const KDe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function yP(e){return typeof e=="string"&&KDe.test(e)}var oa=[];for(var Rx=0;Rx<256;++Rx)oa.push((Rx+256).toString(16).substr(1));function YDe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(oa[e[t+0]]+oa[e[t+1]]+oa[e[t+2]]+oa[e[t+3]]+"-"+oa[e[t+4]]+oa[e[t+5]]+"-"+oa[e[t+6]]+oa[e[t+7]]+"-"+oa[e[t+8]]+oa[e[t+9]]+"-"+oa[e[t+10]]+oa[e[t+11]]+oa[e[t+12]]+oa[e[t+13]]+oa[e[t+14]]+oa[e[t+15]]).toLowerCase();if(!yP(r))throw TypeError("Stringified UUID is invalid");return r}function XDe(e,t,r){e=e||{};var n=e.random||(e.rng||GDe)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,YDe(n)}function QDe(e){if(!yP(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const rX="cv:session:",nX="cv:window:",JDe=new Date(864e13).getTime(),iX=18e5,ZDe=4;function zne(e){if(e===Ls.LocalStorage)return Hi.isAvailable()?Hi:VK;if(e===Ls.SessionStorage)return jg.isAvailable()?jg:VK}function aX(e){return e===!1?JDe:new Date().getTime()+e}function eLe(){return XDe()}function tLe(e){return e?new Date().getTime()>e:!1}function rLe(e){return!(typeof e!="object"||typeof(e==null?void 0:e.id)!="string"||!yP(e.id)||QDe(e.id)!==ZDe||typeof(e==null?void 0:e.ttl)!="number"||(e==null?void 0:e.ttl)<=0||isNaN(e==null?void 0:e.ttl))}function oX(e,t,r){const n=zne(r);if(!(n!=null&&n.isAvailable()))return;const i=e+(t||"0");n.remove(i)}function sX(e,t,r,n){const i=zne(r),a=e+(t||"0"),o=i.get(a);if(!rLe(o)||tLe(o==null?void 0:o.ttl)){const u={id:eLe(),ttl:aX(n)};return i.set(a,u),u.id}const l={id:o.id,ttl:aX(n)};return i.set(a,l),o.id}let xx=!1;const uX={getClientSessionData(e){const t=sX(rX,e,Ls.LocalStorage,iX),r=sX(nX,e,Ls.SessionStorage,xx?!1:iX);return!t&&!r?null:{id:t,windowId:r}},resetClientSession(e){oX(rX,e,Ls.LocalStorage),oX(nX,e,Ls.SessionStorage)},lockWindowSession(){xx=!0},unlockWindowSession(){xx=!1}},Gl={isObject(e){const t=typeof e;return t==="function"||t==="object"&&!!e},isFunction(e){return typeof e=="function"}},tn={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},su="Unknown";function vf(e,t,r){const n=t.exec(r)||[];let[i]=n;return i||(i=su),{name:e,version:i}}function Dl(e,t,r){if(!t)return{name:e,version:su};const n=t.exec(r),i=n&&n.length?n[0].trim():su;return{name:e,version:i}}function nLe(e,t){const r={name:e,version:null};return tn.win2000.test(t)&&(r.version="2000"),tn.winXP.test(t)&&(r.version="XP"),tn.winVista.test(t)&&(r.version="Vista"),tn.win7.test(t)&&(r.version="7"),tn.win8.test(t)&&(r.version="8"),tn.win81.test(t)&&(r.version="8.1"),tn.win10.test(t)&&(r.version="10"),r.version||(r.version=su),r}const lX={getDeviceType(){const e=window.navigator.userAgent;return tn.mobileDevice.test(e)?tn.iphone.test(e)?"iPhone":tn.ipad.test(e)?"iPad":tn.android.test(e)?"Android":tn.blackberry.test(e)?"Blackberry":tn.windowsPhone.test(e)?"Windows Phone":su:"Desktop"},getOperatingSystem(){const e=window.navigator.userAgent;return tn.android.test(e)?Dl("Android",tn.androidVersion,e):tn.iphone.test(e)||tn.ipad.test(e)?Dl("iOS",tn.iosVersion,e):tn.linux.test(e)?Dl("Linux",null,e):tn.unix.test(e)?Dl("Unix",null,e):tn.mac.test(e)?Dl("Macintosh",tn.osxVersion,e):tn.windows.test(e)?nLe("Windows",e):tn.blackberry.test(e)?Dl("BlackBerry",tn.blackberryVersion,e):tn.windowsPhone.test(e)?Dl("Windows Phone",tn.windowsPhoneVersion,e):{name:su,version:su}},getBrowser(){const e=window.navigator.userAgent;return tn.chrome.test(e)?vf("Chrome",tn.generalVersion,e):tn.firefox.test(e)?vf("Firefox",tn.generalVersion,e):tn.safari.test(e)?vf("Safari",tn.generalVersion,e):tn.ie.test(e)?vf("Internet Explorer",tn.ieVersion,e):tn.edge.test(e)?vf("Edge",tn.edgeVersion,e):tn.opera.test(e)?vf("Opera",tn.operaVersion,e):{name:su,version:su}},isTouchScreen(){return!!("ontouchstart"in window||navigator.maxTouchPoints)}},iLe=28800,cX="cv:utmparams",PC=[["source","utm_source"],["medium","utm_medium"],["campaign","utm_campaign"],["term","utm_term"],["content","utm_content"]],aLe=PC.reduce((e,[t])=>({...e,[t]:t}),{}),Wne={getUtmParameters(){if(!window.URLSearchParams)return null;const e=new URLSearchParams(window.location.search),t={},r=([n,i])=>{e.has(i)&&(t[n]=e.get(i))};return PC.forEach(r),fX(t)},setUtmParameters(e){if(!e)return;const t={},r=n=>{aLe[n]&&(t[n]=e[n])};return Object.keys(e).forEach(r),fX(t)},getURLSearchParams(){if(!window.URLSearchParams)return null;const e=new URLSearchParams,t=Wne.getUtmParameters();return t?(PC.forEach(([r,n])=>{t[r]&&e.set(n,t[r])}),e):null}};function fX(e){if(Object.keys(e).length)return Hi.cacheSet(cX,e,iLe),e;const t=Hi.cacheGet(cX);return t&&typeof t=="object"&&Object.keys(t).length?t:null}const oLe="2.3.0",sLe={version:oLe},uLe="zXJL9nOHxzDlMUDjiP41",dX="unknown";class lLe{constructor(t){this.options=t,this.initialize()}initialize(){this.validateOptions(),this.options.logUtmParameters&&(this.utmParameters=Wne.getUtmParameters()),this.options.logAttributionData&&(this.attributionData=gP.getDecodedAttributionData())}get name(){return"CollectionApiClient"}async log(t){if(Array.isArray(t))return this.logBulk(t);this.shouldLog(t)&&(this.validateEvent(t),await this.postData(await this.formatData(t)))}async logBulk(t){const r=t.filter(i=>this.shouldLog(i));if(!r.length)return;r.forEach(i=>this.validateEvent(i));const n=await Promise.all(r.map(i=>this.formatData(i)));await this.postData(n)}validateOptions(){if(!Gl.isFunction(this.options.getUser))throw new Error("getUser option is required.")}shouldLog(t){return Gl.isFunction(this.options.shouldLog)?this.options.shouldLog(t):!0}async postData(t){const r=await this.getRegionalUrl(this.options.collectionApiUrls),n=JSON.stringify(t),i={"Content-Type":"application/json",...this.getSignatureHeader(n)};let a=CC.safeUrlConcat(r,"/v1/ingest");Array.isArray(t)&&(a=CC.safeUrlConcat(a,"/bulk"));try{const o=await zDe(a,{method:"POST",mode:"cors",headers:i,body:n});o.ok||this.logError(new Error(`CollectionApiClient failed to log event. Status: ${o.status} ${o.statusText}`),!1,this.getResponseAsObject(o))}catch(o){this.logError(o)}}getResponseAsObject(t){return{headers:t.headers,ok:t.ok,redirected:t.redirected,status:t.status,statusText:t.statusText,type:t.type,url:t.url,body:t.text()}}getSignatureHeader(t){const r=new kDe("SHA-1","TEXT",{hmacKey:{value:uLe,format:"TEXT",encoding:"UTF8"}});return r.update(t),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${r.getHash("B64")}`}}async getRegionalUrl(t){switch((await this.getRegion()).systemName){case hu.CvEuWest1:return t.cvEuWest1;case hu.CvApSoutheast2:return t.cvApSoutheast2;case hu.CvNaWest1:return t.cvNaWest1;case hu.CvApSoutheast1:default:return t.cvApSoutheast1}}validateEvent(t){typeof t.type!="string"&&this.logError(new Error("Event type is required."),!0),Gl.isObject(t.actionContext)||this.logError(new Error("Event actionContext is required."),!0),t.actionContext.entity||this.logError(new Error("Event actionContext entity is required."),!0)}async formatData(t){return{type:t.type,data:await this.getEventData(t),metadata:this.getEventMetadata(t)}}async getEventData(t){const r=t.actionContext,n=this.getPlatformMetadata(),i=await this.getUserData(),a=await this.getSessionData(),o={name:this.options.productName,version:this.options.productVersion};this.options.productVariant&&(o.variant=this.options.productVariant);const l={user:i,action:r,platform:n,product:o,session:a};this.utmParameters&&(l.utm=this.utmParameters);const u=this.extractData(t),f=Object.keys(l).map(h=>h.toLowerCase()),d=Object.keys(u).map(h=>h.toLowerCase());return f.forEach(h=>{d.includes(h)&&this.logError(new Error(`${h} is a reserved key.`),!0)}),{...l,...u}}extractData(t){return Gl.isFunction(this.options.formatData)?this.options.formatData(t):{[t.actionContext.entity]:t.data}}async getUserData(){var r,n,i;let t;try{t=await((n=(r=this.options).getProfileId)==null?void 0:n.call(r))}catch(a){this.logError(a)}try{const a=await this.options.getUser();return a!=null&&a.id?{id:a.id,role:((i=a.role)==null?void 0:i.toLowerCase())||dX,userGroup:(a.userGroup??mte.Unknown).toLowerCase(),yearGroup:this.normalizeYearGroup(a.yearGroup),profileId:t,customer:{id:a.customerId,name:a.customerName,customerGuid:a.customerGuid,crmId:a.crmId,country:a.countryCode,region:await this.getRegion(),openCustomer:!1,accessPolicy:a.accessPolicy}}:t?{profileId:t}:void 0}catch(a){this.logError(a)}}async getRegion(){let t=this.options.regionName;try{const r=await this.options.getUser();r!=null&&r.instanceRegion&&(t=r.instanceRegion)}catch(r){this.logError(r)}return t||this.logError(new Error("RegionName is not set."),!0),this.getRegionByName(t.toLowerCase())}async getSessionData(){try{const t=await this.options.getUser();return{...uX.getClientSessionData(t==null?void 0:t.id),authSessionId:t==null?void 0:t.sessionId}}catch(t){return console.error(t),uX.getClientSessionData(null)}}getPlatformMetadata(){var r,n;const t={url:window.location.href,referrer:document.referrer};return(r=this.attributionData)!=null&&r.internalReferrer&&(t.internalReferrer=this.attributionData.internalReferrer),(n=this.attributionData)!=null&&n.originalReferrer&&(t.originalReferrer=this.attributionData.originalReferrer),{browser:lX.getBrowser(),os:lX.getOperatingSystem(),request:t,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}getEventMetadata(t){return{client:{name:`${this.name}.ts`,version:sLe.version,region:this.getRegionByName(this.options.regionName)},timestamp:new Date().toISOString(),eventVersion:t.eventVersion}}getRegionByName(t){let r;return Object.values($De).forEach(n=>{n.systemName===t&&(r=n)}),r}normalizeYearGroup(t){return t?t.toLowerCase().split(" ").join("_"):dX}logError(t,r,...n){if(this.options.logError&&this.options.logError(t,...n),r)throw t}}const Hg=class Hg extends za{constructor(t){super(t)}shouldLog(t){return!0}log(t){}isType(t){return t===Hg.type}};Hg.type="BaseAnalyticsClient";let kC=Hg;class cLe extends kC{get name(){return"DebuggerClient"}shouldLog(){return zm.isDevelopment}log(t){const r=yZ(t);for(const n in t){const i=r[n];(i instanceof mu||i instanceof Hm)&&(r[n]=i.toJSON())}console.log("Event Debugger: ",r)}}const fLe={Exchange:"exchange.web"},Jr={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/(^(?!.*Edge).*Chrome)|(CriOS)/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i,tablet:/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i,mobile:/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/},uu="Unknown";function gf(e,t,r){const n=t.exec(r)||[];let[i]=n;return i||(i=uu),{browser:e,version:i}}function Ll(e,t,r){if(!t)return{os:e,version:uu};const n=t.exec(r),i=n&&n.length?n[0].trim():uu;return{os:e,version:i}}function dLe(e,t){const r={os:e};return Jr.win2000.test(t)&&(r.version="2000"),Jr.winXP.test(t)&&(r.version="XP"),Jr.winVista.test(t)&&(r.version="Vista"),Jr.win7.test(t)&&(r.version="7"),Jr.win8.test(t)&&(r.version="8"),Jr.win81.test(t)&&(r.version="8.1"),Jr.win10.test(t)&&(r.version="10"),r.version||(r.version=uu),r}const yh={getDeviceType(){const e=window.navigator.userAgent;return Jr.mobileDevice.test(e)?Jr.iphone.test(e)?"iPhone":Jr.ipad.test(e)?"iPad":Jr.android.test(e)?"Android":Jr.blackberry.test(e)?"Blackberry":Jr.windowsPhone.test(e)?"Windows Phone":uu:"Desktop"},getOperatingSystem(){const e=window.navigator.userAgent;return Jr.android.test(e)?Ll("Android",Jr.androidVersion,e):Jr.iphone.test(e)||Jr.ipad.test(e)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1?Ll("iOS",Jr.iosVersion,e):Jr.linux.test(e)?Ll("Linux",null,e):Jr.unix.test(e)?Ll("Unix",null,e):Jr.mac.test(e)?Ll("Macintosh",Jr.osxVersion,e):Jr.windows.test(e)?dLe("Windows",e):Jr.blackberry.test(e)?Ll("BlackBerry",Jr.blackberryVersion,e):Jr.windowsPhone.test(e)?Ll("Windows Phone",Jr.windowsPhoneVersion,e):{os:uu,version:uu}},getBrowser(){const e=window.navigator.userAgent;return Jr.chrome.test(e)?gf("Chrome",Jr.generalVersion,e):Jr.firefox.test(e)?gf("Firefox",Jr.generalVersion,e):Jr.safari.test(e)?gf("Safari",Jr.generalVersion,e):Jr.ie.test(e)?gf("Internet Explorer",Jr.ieVersion,e):Jr.edge.test(e)?gf("Edge",Jr.edgeVersion,e):Jr.opera.test(e)?gf("Opera",Jr.operaVersion,e):{browser:uu,version:uu}},isTouchScreen(){return!!("ontouchstart"in window||navigator.maxTouchPoints)},isTabletOrMobile(){return yh.isTouchScreen()?Jr.tablet.test(navigator.userAgent)||Jr.mobile.test(navigator.userAgent):!1},isAndroid(){return yh.getOperatingSystem().os==="Android"},isIOS(){return yh.getOperatingSystem().os==="iOS"}},zg=class zg extends za{enrich(t,r){}isType(t){return t===zg.type}};zg.type="BaseAnalyticsEnricher";let DC=zg;class hLe extends DC{constructor(t){super(t),this.productName=t.productName,this.productVersion=t.productVersion}get name(){return"CoreContextEnricher"}shouldEnrich(t){return!0}enrich(t,r){this.shouldEnrich(t)||r(t),t.enrich("coreContext",this.getCoreContext()),r(t)}getCoreContext(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}getTimestamp(){return Jl.getUtcISOString()}getProductInfo(){return{name:this.productName,version:this.productVersion}}getRequestInfo(){return{referrer:Dn.GetCurrentReferrer(),requestUrl:Dn.GetCurrentUrl()}}getClientInfo(){const t=yh.getOperatingSystem(),r=yh.getBrowser();return{os:t.os,osVersion:t.version,browser:r.browser,browserVersion:r.version,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}}class pLe extends xc{}class vLe extends pLe{get name(){return"EventTransport"}get channelName(){return"event:transport"}publish(t){this.getChannel().trigger(Cf.Outlet,t)}subscribe(t){const r=t,n=i=>{Ao.isFunction(r.shouldLog)&&!r.shouldLog(i)||t.log(i)};rn(r.listenTo)?r.listenTo(this.getChannel(),Cf.Outlet,n):this.listenTo(this.getChannel(),Cf.Outlet,n)}}const oi={passthrough(e){return e}},gr={allow:()=>!0,restrict:()=>!1},gLe={getShareData(e){var l,u,f,d;const{id:t,search:r,pagePositionIndex:n,shareId:i,shareType:a}=e,o={id:t,search:r,pagePositionIndex:n,shareId:i,shareType:a};return(l=e.video)!=null&&l.id&&(o.video={id:e.video.id}),(u=e.clip)!=null&&u.id&&(o.clip={id:e.clip.id},(f=e.clip.video)!=null&&f.id&&(o.video={id:(d=e.clip.video)==null?void 0:d.id})),e.shareCount!==void 0&&(o.shareCount=e.shareCount),e.embedDetails&&(o.embedDetails=o.embedDetails),o}},Sf={getUploadData(e,t){const{entity:r}=t.actionContext;if(r===kn.Video)return Sf.formatVideoUpload(e,t);if(r===kn.Resource||r===kn.Subtitle)return Sf.formatResourceUpload(e);if(r===kn.Banner||r===kn.Thumbnail||r===kn.MixedMedia)return e;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload(e,t){const{workflowPhase:r}=t.actionContext;if(r===el.Start)return Sf.getStartVideoUploadData(e);if(r===el.Discard)return Sf.getDiscardVideoUploadData(e);if(r===el.Complete)return Sf.getCompleteUploadData(e)},getStartVideoUploadData(e){return!e||!e.length?[]:(e instanceof FileList&&(e=Array.from(e)),e.map(t=>({fileName:t.name,size:t.size,type:t.type,count:e.length})))},getDiscardVideoUploadData(e){const t=r=>{const{type:n,name:i,status:a,cvUpload:o}=r.file,l={fileName:i,count:Array.isArray(e)?e.length:1,type:n,status:a};return r.progress&&(l.progress=r.progress.toFixed(2)),o&&(l.uploadId=o.uploadId),l};return Array.isArray(e)?e.map(r=>t(r)):[t(e)]},getCompleteUploadData(e){return!e||!e.length?[]:e.map(t=>{const{fileName:r,libraryId:n,folderId:i,autoCaption:a}=t;return{fileName:r,libraryId:n,folderId:i,autoCaption:a,count:e.length}})},formatResourceUpload(e){const{id:t,name:r}=e,n={id:t,name:r};return Gl.isObject(e.metadata)&&(n.type=e.metadata.type),n}},mLe={[jt.Navigate]:gr.restrict,[jt.Click]:gr.allow,[jt.Search]:gr.allow,[jt.InstantSearch]:gr.allow,[jt.Play]:gr.allow,[jt.Stream]:gr.allow,[jt.WebPlayerStream]:gr.allow,[jt.StreamProgress]:gr.allow,[jt.PreviewStreamProgress]:gr.allow,[jt.StreamBuffering]:gr.allow,[jt.Rename]:gr.allow,[jt.Move]:gr.allow,[jt.Create]:gr.allow,[jt.Delete]:gr.allow,[jt.Associate]:gr.allow,[jt.Dissociate]:gr.allow,[jt.Filter]:gr.allow,[jt.Sort]:gr.allow,[jt.Approve]:gr.allow,[jt.Reject]:gr.allow,[jt.Disable]:gr.allow,[jt.Upload]:gr.allow,[jt.Download]:gr.allow,[jt.SetAccess]:gr.allow,[jt.AddToLocalCache]:gr.restrict,[jt.Share]:gr.allow,[jt.Unshare]:gr.allow,[jt.Edit]:gr.allow,[jt.Suggest]:gr.allow,[jt.Favourite]:gr.allow,[jt.WorkspaceAdd]:gr.allow,[jt.ResolveWarning]:gr.allow,[jt.DismissWarning]:gr.allow,[jt.EditAssoc]:gr.allow,[jt.Follow]:gr.allow,[jt.Print]:gr.allow,[jt.Copy]:gr.allow,[jt.Activate]:gr.allow,[jt.VerifyEmail]:gr.allow,[jt.ChangePassword]:gr.allow,[jt.Export]:gr.allow,[jt.SendEmail]:gr.allow,[jt.Publish]:gr.allow,[jt.Submit]:gr.allow,[jt.Complete]:gr.allow,[jt.Archive]:gr.allow,[jt.Promote]:gr.allow,[jt.Demote]:gr.allow,[jt.BulkAction]:gr.allow,[jt.Remove]:gr.allow,[jt.Dismiss]:gr.allow,[jt.Open]:gr.allow,[jt.Hide]:gr.allow,[jt.PageView]:gr.allow,[jt.Select]:gr.allow,[jt.SwitchCustomer]:gr.allow,[jt.Focus]:gr.allow,[jt.Blur]:gr.allow,[jt.Hover]:gr.allow,[jt.Unhover]:gr.allow},yLe={[jt.Search]:oi.passthrough,[jt.InstantSearch]:oi.passthrough,[jt.Play]:oi.passthrough,[jt.Stream]:oi.passthrough,[jt.StreamProgress]:oi.passthrough,[jt.PreviewStreamProgress]:oi.passthrough,[jt.StreamBuffering]:oi.passthrough,[jt.Click]:oi.passthrough,[jt.Filter]:oi.passthrough,[jt.Sort]:oi.passthrough,[jt.SetAccess]:oi.passthrough,[jt.Approve]:oi.passthrough,[jt.Reject]:oi.passthrough,[jt.Create]:oi.passthrough,[jt.Delete]:oi.passthrough,[jt.Rename]:oi.passthrough,[jt.Move]:oi.passthrough,[jt.Edit]:oi.passthrough,[jt.Share]:gLe.getShareData,[jt.Disable]:oi.passthrough,[jt.Suggest]:oi.passthrough,[jt.Upload]:Sf.getUploadData,[jt.ResolveWarning]:oi.passthrough,[jt.DismissWarning]:oi.passthrough,[jt.Follow]:oi.passthrough,[jt.Print]:oi.passthrough,[jt.Copy]:oi.passthrough},hX={[jt.Search]:()=>"search",[jt.InstantSearch]:()=>"search",[jt.Filter]:()=>"filter",[jt.Stream]:()=>kn.Video},pX={user:"target_user",product:"target_product"},_Le={[jt.StreamProgress]:!0,[jt.WebPlayerStream]:!0,[jt.PreviewStreamProgress]:!0,[jt.StreamBuffering]:!0},vX={shouldLog(e){return!!mLe[e.type](e)},formatData(e){const t=yLe[e.type],r=Gl.isFunction(t)?t(e.data,e):e.data;if(_Le[e.type])return r;let n=e.actionContext.entity;return Gl.isFunction(hX[e.type])&&(n=hX[e.type](e)),pX[n]&&(n=pX[n]),{[n]:r}}},ELe="staff";async function SLe(e){try{return await qa(e.store,ta.accessPolicy())}catch{return null}}const Gne={async getUser(e){const t=await qa(e.store,ta.currentUser());if(!t.isAuthenticated)return null;const r=qa(e.store,Nne.customer(t.customerId)),n=qa(e.store,ta.user(t.id)),i=SLe(e);return Gne.mapCurrentUserToAnalyticsUser(t,await n,await r,await i)},mapCurrentUserToAnalyticsUser(e,t,r,n){var a;const i=jl.getUserType(t);return{id:e==null?void 0:e.id,countryCode:e==null?void 0:e.countryCode,contentRegion:e==null?void 0:e.contentRegion,instanceRegion:e==null?void 0:e.instanceRegion,customerId:e==null?void 0:e.customerId,customerGuid:r==null?void 0:r.customerGuid,customerName:e==null?void 0:e.customerName,crmId:r==null?void 0:r.crmId,role:e==null?void 0:e.role,sessionId:e==null?void 0:e.sessionId,userGroup:i,yearGroup:i===Tf.Staff?ELe:(a=t==null?void 0:t.masterYearGroup)==null?void 0:a.name,accessPolicy:n==null?void 0:n.id}}},wLe={logError(e,...t){var r;Ao.isFunction(trackJs==null?void 0:trackJs.track)&&(t&&Ao.isFunction((r=trackJs.console)==null?void 0:r.info)&&trackJs.console.info(...t),trackJs.track(e))}};async function bLe(e,t){const[r,n]=await Promise.all([qa(e.store,ta.currentUser()),qa(e.store,al.config())]),i=qa(e.store,al.version()),a=new CDe({user:r,config:n});cu.registerSingleton(a),a.registerTransport(vLe),a.registerClient(cLe);const o=await i;a.registerClient(lLe,{productName:fLe.Exchange,productVersion:o,regionName:r.instanceRegion,collectionApiUrls:n.collectionApiUrls,collectionApiClientId:n.collectionApiClientId,getUser:()=>Gne.getUser(e),shouldLog:vX.shouldLog,formatData:vX.formatData,logError:wLe.logError,logUtmParameters:!0}),a.registerEnricher(hLe,{productName:"ClickView Exchange",productVersion:o}),t(e)}async function TLe(e,t){try{const r=await qa(e.store,al.config()),n=await qa(e.store,ta.currentUser());xC.initialize({product:Yo.Primary,liteSupportSiteUrl:r.liteSupportSiteUrl,instanceRegion:n.instanceRegion})}finally{t(e)}}const gX={locale(){return{url:"/api/locale",key:"locale",bootstrapName:Zl.LOCALE}},phrases(){return{url:"/api/phrases",key:"phrases",bootstrapName:Zl.PHRASES}}};async function ALe(e,t){let r;try{r=qa(e.store,gX.phrases());const n=qa(e.store,gX.locale());Gr.setConfig({locale:await n,phrases:await r})}catch(n){console.error(n)}finally{t(e)}}class RLe extends za{constructor(t){super(),this.size=t.size,this.cache={},this.cachedkeys=[],this.store=t.store}get name(){return Bg.Fifo}removeCacheKey(t){this.cachedkeys=Vx(this.cachedkeys,t)}has(t){return!!this.cache[t]}get(t){return this.cache[t]}set(t,r){(!t||!r)&&dr.throw(new Sn("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(t)&&this.removeCacheKey(t),this.cachedkeys.push(t),this.cache[t]=r,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}getOrSet(t,r){if(this.has(t))return this.get(t);const n=r();return this.set(t,n),n}remove(t){return this.has(t)?(delete this.cache[t],this.removeCacheKey(t),!0):!1}invalidate(t,r,n=!1){const i=QZ(this.cachedkeys,this.cachedkeys);let a=[];Aa(t,o=>{i[o]&&a.push(o);const l=new RegExp(o,"i"),u=ic(i,f=>l.test(f));a.push(...u)}),a.length&&(a=Th(a),Aa(a,o=>{delete this.cache[o],rn(r)&&r(o)}),this.cachedkeys=Vx(this.cachedkeys,...a)),!(!this.store||!n)&&this.store.dispatch({type:wa.INVALIDATE,keys:t})}}function xLe(e,t){cu.registerInstance(RLe,{size:100}),t(e)}var Ul=(e=>(e[e.Unknown=0]="Unknown",e[e.BadRequest=1]="BadRequest",e[e.Unauthorized=2]="Unauthorized",e[e.Forbidden=3]="Forbidden",e[e.NotFound=4]="NotFound",e[e.InternalServer=5]="InternalServer",e))(Ul||{});const CLe={type:Ul.Unknown,message:"",code:0},OLe={parseErrorMessage(e,t,r){if(!r||!r.errorCode)return e[t];let n=`${r.errorCode}`;return r.errorSubCode&&(n+=`.${r.errorSubCode}`),e[n]||e[t]}};class ILe extends xc{constructor(t){super(t),Ah.ajaxSetup({cache:t.cacheRequests??!1,contentType:"application/json; charset=utf-8"}),this.successMiddleware={},this.errorMiddleware={},this.dataServiceErrorMessageMappings=t.dataServiceErrorMessageMappings,this.defaultErrorMessageKey=t.defaultErrorMessageKey}get name(){return Vg.Ajax}parseUrl(t){const r=document.createElement("a");return r.href=t,r.host===""&&(r.href=r.href),r}makeHttps(t){const r=this.parseUrl(t);return r.protocol==="http:"&&(r.protocol="https:"),r.href}base(t,r,n,i={}){n||(n=Vi.GET);const a=Je.defaults(i,{forceHttps:!1}),o={url:t,method:n,type:n};r&&(o.data=n===Vi.POST||n===Vi.PUT?JSON.stringify(r):r),a.forceHttps&&(o.url=this.makeHttps(o.url)),a.traditional&&(o.traditional=a.traditional);const l=Ah.ajax(o);return Je.keys(this.successMiddleware).length&&l.done(Je.values(this.successMiddleware)),Je.keys(this.errorMiddleware).length&&l.fail(Je.values(this.errorMiddleware)),l}create(t,r,n){const{channel:i,successEvent:a,errorEvent:o}=n;this.base(t,r,Vi.POST).done((l,u,f)=>i.trigger(a,l,u,f)).fail((l,u,f)=>i.trigger(o,l,u,f))}read(t,r){const{channel:n,successEvent:i,errorEvent:a}=r;this.base(t,null,Vi.GET).done((o,l,u)=>{n.trigger(i,o,l,u)}).fail((o,l,u)=>{n.trigger(a,o,l,u)})}update(t,r,n){const{channel:i,successEvent:a,errorEvent:o}=n;this.base(t,r,Vi.PUT).done((l,u,f)=>i.trigger(a,l,u,f)).fail((l,u,f)=>i.trigger(o,l,u,f))}delete(t,r){const{channel:n,successEvent:i,errorEvent:a}=r;this.base(t,null,Vi.DELETE).done((o,l,u)=>n.trigger(i,o,l,u)).fail((o,l,u)=>n.trigger(a,o,l,u))}useMiddleware(t,r){this.successMiddleware[t]||(this.successMiddleware[t]=r)}useErrorMiddleware(t,r){this.errorMiddleware[t]||(this.errorMiddleware[t]=r)}parseError(t){const r=t.responseJSON,n=CLe;switch(n.code=t.status,n.message=OLe.parseErrorMessage(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,r),t.status){case 400:n.type=Ul.BadRequest;break;case 401:n.type=Ul.Unauthorized;break;case 403:n.type=Ul.Forbidden;break;case 404:n.type=Ul.NotFound;break;case 500:n.type=Ul.InternalServer;break}return n}}function PLe(e,t){cu.registerSingleton(new ILe({dataServiceErrorMessageMappings:{temp:"Error"},defaultErrorMessageKey:"temp",cacheRequests:!0})),t(e)}const _P=new $ye({region:"#app",layoutService:new Nye({})});_P.addInitializationStep(tke).addInitializationStep(xLe).addInitializationStep(PLe).addInitializationStep(RDe).addInitializationStep(ALe).addInitializationStep(Gke).addInitializationStep(bLe).addInitializationStep(UIe).addInitializationStep(GAe).addInitializationStep(TLe);_P.addStartUpStep(rke);_P.start();export{Uye as $,Ai as A,Nh as B,OI as C,Dc as D,zre as E,Ao as F,oc as G,Vi as H,du as I,jl as J,Ql as K,Gr as L,Wre as M,fy as N,Tf as O,Zre as P,abe as Q,Dr as R,WY as S,kG as T,Xo as U,nPe as V,$we as W,Ic as X,i0e as Y,ys as Z,oPe as _,So as a,Gwe as a$,hf as a0,vIe as a1,NLe as a2,ea as a3,Nne as a4,ta as a5,Yo as a6,tRe as a7,Mr as a8,ah as a9,QIe as aA,Jl as aB,oSe as aC,al as aD,oy as aE,yh as aF,Sn as aG,MLe as aH,Swe as aI,CC as aJ,IY as aK,lP as aL,g1e as aM,mEe as aN,QI as aO,mn as aP,Ml as aQ,ms as aR,bwe as aS,rI as aT,Ine as aU,Eo as aV,$l as aW,lPe as aX,BPe as aY,Lne as aZ,ywe as a_,ZI as aa,Ba as ab,el as ac,Ta as ad,kn as ae,jt as af,Dn as ag,XI as ah,fu as ai,LLe as aj,wIe as ak,ks as al,OAe as am,HK as an,vs as ao,yy as ap,Ro as aq,Ju as ar,Hi as as,iPe as at,iu as au,vte as av,Yl as aw,Ite as ax,Twe as ay,VLe as az,ki as b,ld as b$,Kwe as b0,Wx as b1,Gee as b2,Jee as b3,Ls as b4,DLe as b5,Rh as b6,gte as b7,uX as b8,lLe as b9,hC as bA,UI as bB,hu as bC,ix as bD,NIe as bE,Are as bF,io as bG,ch as bH,yr as bI,eRe as bJ,Rf as bK,RC as bL,WIe as bM,iy as bN,$f as bO,pte as bP,bIe as bQ,TIe as bR,ULe as bS,dEe as bT,E_e as bU,cd as bV,w_e as bW,kee as bX,hEe as bY,tEe as bZ,up as b_,vX as ba,Ewe as bb,tC as bc,RI as bd,xke as be,_we as bf,wwe as bg,Oae as bh,Wce as bi,wae as bj,nm as bk,xse as bl,eue as bm,nue as bn,RQ as bo,qce as bp,Gce as bq,jae as br,Roe as bs,lO as bt,ple as bu,Ele as bv,sp as bw,Xx as bx,Vee as by,Awe as bz,ac as c,lEe as c0,lI as c1,Km as c2,k_e as c3,dI as c4,Nee as c5,Cee as c6,V_e as c7,Tee as c8,M_e as c9,v_e as ca,Pee as cb,T_e as cc,lp as cd,vEe as ce,aEe as cf,pEe as cg,Oee as ch,fEe as ci,_i as cj,Lke as ck,BLe as cl,qLe as cm,cu as cn,KAe as co,ry as cp,yn as d,v0e as e,nn as f,xte as g,Hwe as h,Ih as i,de as j,Oh as k,CAe as l,HLe as m,fP as n,Sp as o,wLe as p,dr as q,Se as r,UY as s,$v as t,XIe as u,Ko as v,eC as w,ec as x,Mn as y,Hr as z};
|
|
219
|
-
//# sourceMappingURL=app-
|
|
218
|
+
Expect errors in decoding.`),M=M.replace(/[^A-Za-z0-9\+\/\=]/g,"");pe=this.KEY_STR.indexOf(M.charAt(Ce++)),ce=this.KEY_STR.indexOf(M.charAt(Ce++)),be=this.KEY_STR.indexOf(M.charAt(Ce++)),_e=this.KEY_STR.indexOf(M.charAt(Ce++)),Z=pe<<2|ce>>4,L=(ce&15)<<4|be>>2,G=(be&3)<<6|_e,Me.push(Z),be!==64&&Me.push(L),_e!==64&&Me.push(G),Z=L=G="",pe=ce=be=_e="",Ce<M.length;);return Me}}]),I})();ke.initClass();var Be=function(N,M){var Z=!1,L=!0,G=N.document,pe=G.documentElement,ce=G.addEventListener?"addEventListener":"attachEvent",be=G.addEventListener?"removeEventListener":"detachEvent",_e=G.addEventListener?"":"on",Ce=function fe(me){if(!(me.type==="readystatechange"&&G.readyState!=="complete")&&((me.type==="load"?N:G)[be](_e+me.type,fe,!1),!Z&&(Z=!0)))return M.call(N,me.type||me)},Me=function fe(){try{pe.doScroll("left")}catch{setTimeout(fe,50);return}return Ce("poll")};if(G.readyState!=="complete"){if(G.createEventObject&&pe.doScroll){try{L=!N.frameElement}catch{}L&&Me()}return G[ce](_e+"DOMContentLoaded",Ce,!1),G[ce](_e+"readystatechange",Ce,!1),N[ce](_e+"load",Ce,!1)}};H._autoDiscoverFunction=function(){if(H.autoDiscover)return H.discover()},Be(window,H._autoDiscoverFunction);function nt(I,N){return typeof I<"u"&&I!==null?N(I):void 0}function rt(I,N,M){if(typeof I<"u"&&I!==null&&typeof I[N]=="function")return M(I,N)}window.Dropzone=H;var q=H})(),a})()})})(Sx)),Sx.exports}var vke=pke();const UY=Mn(vke),Fv="upload.internetConnectivityError";class gke extends Dc{constructor(){super(Gr.getPhrase(Fv,"title"))}get name(){return"InternetConnectivityError"}get dialogOptions(){return{title:Gr.getPhrase(Fv,"heading"),text:Gr.getPhrase(Fv,"body"),buttons:[{text:Gr.getPhrase(Fv,"okay"),className:"btn btn-outline-dark",success:!0}]}}}const jv="upload.slowInternetError";class mke extends Dc{constructor(){super(Gr.getPhrase(jv,"title"))}get name(){return"SlowInternetError"}get dialogOptions(){return{title:Gr.getPhrase(jv,"heading"),text:Gr.getPhrase(jv,"body"),buttons:[{text:Gr.getPhrase(jv,"okay"),className:"btn btn-outline-dark",success:!0}]}}}const yke=[];class qY extends za{constructor(t){super(t),this.slowInternetTimeout={},this.showSlowInternetTimeout=!0}get name(){return"DropzoneWrapper"}initialize(t){const{loggingEnabled:r}=this.options,n=Mr.Radio.channel(t.channelName),i=this;this.dropzone=new UY(document.createElement("div"),{url:(a=>{const o=a[0],{ingestUrl:l}=o.cvUpload;return l}),chunking:this.options.chunkingEnabled,chunkSize:this.options.chunkSize,forceChunking:!0,autoProcessQueue:!0,maxFilesize:this.options.maxFileSize,acceptedFiles:this.options.acceptedFiles,paramName:"content",timeout:18e4,init:function(){r&&(Je.each(yke,a=>{this.on(a,(...o)=>{const l=o[0]instanceof File?o[0].name:o[0];console.info(a,l,o)})}),this.on("uploadprogress",(a,o,l)=>{const u=l/a.size*100;n.trigger("progress",i.getId(a),u,l)}),this.on("success",a=>{const o=a.upload.chunks,l=Je.last(o);let u=l.xhr;u||(u=l.file.xhr);const f=JSON.parse(u.response);a.cvUpload.fileId=f.id,n.trigger(fu.UPLOAD_SUCCESS,a,f)}),this.on("error",(a,o,l)=>{if(l&&l.status===0){dr.throw(new gke);return}a.status!=="canceled"&&dr.throw(new Jre(Gr.getPhrase("upload.services","uploadError",{fileName:a.name,message:o.message})))}),this.on("sending",a=>{window.clearTimeout(i.slowInternetTimeout[a.path]),i.showSlowInternetTimeout&&(i.slowInternetTimeout[a.path]=window.setTimeout(()=>{i.showSlowInternetTimeout&&dr.throw(new mke),i.showSlowInternetTimeout=!1},3e4))}),this.on("complete",a=>window.clearTimeout(i.slowInternetTimeout[a.path])))},params:(a,o,l)=>{if(l)return{chunk_index:l.index,upload_length:l.file.size}},addedfile:()=>{},thumbnail:()=>{},uploadprogress:()=>{}})}getId(t){return t.upload.uuid}addFile(t){this.dropzone.addFile(t)}removeFile(t){this.dropzone.removeFile(t)}start(){this.dropzone.processQueue()}destroy(){this.dropzone.destroy()}static isValidFile(t,r){return UY.isValidFile(t,r)}}class _ke extends nke{constructor(){super({dataProvider:cu.getInstance(Vg.Ajax),cache:cu.getInstance(Bg.Fifo),alertService:cu.getInstance(ry.ALERT)}),this.incrementingUploadId=0}get name(){return"UploadDataService"}get channelName(){return"private:upload:data:service"}requestUploads(t,r,n,i,a){const o=this.chain();Aa(r,l=>{this.incrementingUploadId++,o.create({resource:t,eventPrefix:`request:upload:${this.incrementingUploadId}`,data:this.getFileUploadRequest(l,n),callback:u=>{i(l,u)},errorHandler:this.alertService.error("Something went wrong while we were uploading your video. Please try again.")})}),o.func(()=>{a()}).run()}cancelUpload(t,r,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:t,ingestUrl:r},callback:n})}getFileUploadRequest(t,r){const n=t.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:t.size,fileLifestyle:r}}onDestroy(){cu.releaseInstance(Vg.Ajax).releaseInstance(Bg.Fifo)}}const Eke={0:$v.VIDEO,1:$v.RESOURCES,2:$v.SUBTITLES,3:$v.MIXED_MEDIA},Ske={0:ah.VIDEO_UPLOAD,1:ah.RESOURCE_UPLOAD,2:ah.SUBTITLE_UPLOAD,3:ah.MIXED_MEDIA_UPLOAD},wke=1024*1024*4,bke=1024*1024*1024*50;class Tke extends za{initialize(){this.uploadDataService=new _ke,this.progressViewModel=$ne.get(`upload:progress:${this.uploadType}`),this.bindListeners()}get channelName(){return Ske[this.uploadType]}get lang(){return"uploadShared.services"}initUploader(t,r){if(this.uploader)return;let n=wke;t&&n<t&&(n=t),r&&n>r&&(n=r),this.uploader=new qY({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:bke,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}bindListeners(){this.listenTo(this.channelName,"progress",this.onProgress),this.listenTo(this.channelName,fu.UPLOAD_SUCCESS,this.onSuccess)}onProgress(t,r,n){const i=this.collection.get(t);i&&(i.set({progress:r>100?100:r,totalUploaded:n}),this.setOverallProgress())}isUploading(){return!!this.getCollection().length}getCollection(){return this.collection?this.collection:(this.collection=new Hm,this.collection)}setOverallProgress(){let t=0,r=0;const n=this.getCollection();if(!n.length){this.progressViewModel.set({progress:0});return}n.each(l=>{t+=l.get("totalUploaded")||0,r+=l.get("file").size||0});const i=t/r*100,a=i>=100,o=()=>{this.progressViewModel.set({progress:a?100:i,done:a})};if(!a){o();return}window.setTimeout(o,2e3)}isValidFile(t){return qY.isValidFile(t,this.getAcceptedFiles())}addFiles(t,r){if(qx(t,n=>!this.isValidFile(n))){dr.throw(new ake(Gr.getPhrase(this.lang,"invalidFileType")));return}this.requestUploads(t,r)}async requestUploads(t,r){const n=this.isUploading(),i=this.getCollection();for(const o of t){const l=await ete(this.options.store.dispatch,hke.requestUpload(o,this.fileLifestyle));"minChunkSize"in l&&"maxChunkSize"in l&&this.initUploader(l.minChunkSize,l.maxChunkSize),o.cvUpload={uploadId:l.uploadId,ingestUrl:l.uploadUrl},this.uploader.addFile(o);let u=o.name;this.uploadType===0&&(u=u.replace(/\.[^/.]+$/,""));const f=this.uploader.getId(o);i.add({id:f,file:o,name:u,...this.getAdditionalFileInfo(o,l)},{at:i.length-1})}r&&Ba.logUserAction({uploadCount:t.length},r),Mr.Radio.channel(this.channelName).trigger(fu.FILES_ADDED,t,n)}addFile(t,r){this.addFiles([t],r)}cancelUpload(t){const r=this.getCollection(),n=r.get(t);if(!n)return;const i=n.get("file");this.uploader.removeFile(i),r.remove(n),this.uploadDataService.cancelUpload(i.cvUpload.uploadId,i.cvUpload.ingestUrl,()=>{Ba.logUserAction(n.toJSON(),{entity:kn.Video,actionType:jt.Upload,workflowPhase:el.Discard,descriptor:Qx.Single,location:Ta.MyUploads}),Mr.Radio.channel(this.channelName).trigger(fu.UPLOAD_CANCELLED)}),this.setOverallProgress()}onSuccess(t,r){const n=this.uploader.getId(t),i=this.getCollection().get(n);i.set("fileInfo",r),Ba.logUserAction({id:t.cvUpload.uploadId},{entity:kn.Video,actionType:jt.Upload,workflowPhase:el.Complete,descriptor:Qx.Single,location:Ta.VideoUpload}),Mr.Radio.channel(this.channelName).trigger(fu.UPLOAD_COMPLETE,i)}cancelAllUploads(){const t=this.getCollection().map(r=>r.get("id"));Aa(t,r=>this.cancelUpload(r))}getUpload(t){const r=this.uploader.getId(t);return this.getCollection().get(r)}getAcceptedFiles(){return Eke[this.uploadType]}getAdditionalFileInfo(t,r){return{}}}class Ake extends Tke{get uploadType(){return 3}get name(){return XI.MixedMediaUpload}get fileLifestyle(){return dP.Temporary}}var Rke=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return dre(t,n)})},wx=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return hre(t,n)})},hP=(function(e){RI(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(l,u){var f=n.resolveArguments(l,u),d=f[0],h=f[1];n.removeClasses(d,"exit"),n.addClass(d,h?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(l,u)},n.onEntering=function(l,u){var f=n.resolveArguments(l,u),d=f[0],h=f[1],p=h?"appear":"enter";n.addClass(d,p,"active"),n.props.onEntering&&n.props.onEntering(l,u)},n.onEntered=function(l,u){var f=n.resolveArguments(l,u),d=f[0],h=f[1],p=h?"appear":"enter";n.removeClasses(d,p),n.addClass(d,p,"done"),n.props.onEntered&&n.props.onEntered(l,u)},n.onExit=function(l){var u=n.resolveArguments(l),f=u[0];n.removeClasses(f,"appear"),n.removeClasses(f,"enter"),n.addClass(f,"exit","base"),n.props.onExit&&n.props.onExit(l)},n.onExiting=function(l){var u=n.resolveArguments(l),f=u[0];n.addClass(f,"exit","active"),n.props.onExiting&&n.props.onExiting(l)},n.onExited=function(l){var u=n.resolveArguments(l),f=u[0];n.removeClasses(f,"exit"),n.addClass(f,"exit","done"),n.props.onExited&&n.props.onExited(l)},n.resolveArguments=function(l,u){return n.props.nodeRef?[n.props.nodeRef.current,l]:[l,u]},n.getClassNames=function(l){var u=n.props.classNames,f=typeof u=="string",d=f&&u?u+"-":"",h=f?""+d+l:u[l],p=f?h+"-active":u[l+"Active"],y=f?h+"-done":u[l+"Done"];return{baseClassName:h,activeClassName:p,doneClassName:y}},n}var r=t.prototype;return r.addClass=function(i,a,o){var l=this.getClassNames(a)[o+"ClassName"],u=this.getClassNames("enter"),f=u.doneClassName;a==="appear"&&o==="done"&&f&&(l+=" "+f),o==="active"&&i&&Ste(i),l&&(this.appliedClasses[a][o]=l,Rke(i,l))},r.removeClasses=function(i,a){var o=this.appliedClasses[a],l=o.base,u=o.active,f=o.done;this.appliedClasses[a]={},l&&wx(i,l),u&&wx(i,u),f&&wx(i,f)},r.render=function(){var i=this.props;i.classNames;var a=Jm(i,["classNames"]);return Dr.createElement(Vs,Rh({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(Dr.Component);hP.defaultProps={classNames:""};hP.propTypes={};function xke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pP(e,t){var r=function(a){return t&&Se.isValidElement(a)?t(a):a},n=Object.create(null);return e&&Se.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function Cke(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,l={};for(var u in t){if(n[u])for(o=0;o<n[u].length;o++){var f=n[u][o];l[n[u][o]]=r(f)}l[u]=r(u)}for(o=0;o<i.length;o++)l[i[o]]=r(i[o]);return l}function zl(e,t,r){return r[t]!=null?r[t]:e.props[t]}function Oke(e,t){return pP(e.children,function(r){return Se.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:zl(r,"appear",e),enter:zl(r,"enter",e),exit:zl(r,"exit",e)})})}function Ike(e,t,r){var n=pP(e.children),i=Cke(t,n);return Object.keys(i).forEach(function(a){var o=i[a];if(Se.isValidElement(o)){var l=a in t,u=a in n,f=t[a],d=Se.isValidElement(f)&&!f.props.in;u&&(!l||d)?i[a]=Se.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:zl(o,"exit",e),enter:zl(o,"enter",e)}):!u&&l&&!d?i[a]=Se.cloneElement(o,{in:!1}):u&&l&&Se.isValidElement(f)&&(i[a]=Se.cloneElement(o,{onExited:r.bind(null,o),in:f.props.in,exit:zl(o,"exit",e),enter:zl(o,"enter",e)}))}}),i}var Pke=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},kke={component:"div",childFactory:function(t){return t}},vP=(function(e){RI(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=a.handleExited.bind(xke(a));return a.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var o=a.children,l=a.handleExited,u=a.firstRender;return{children:u?Oke(i,l):Ike(i,o,l),firstRender:!1}},r.handleExited=function(i,a){var o=pP(this.props.children);i.key in o||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(l){var u=Rh({},l.children);return delete u[i.key],{children:u}}))},r.render=function(){var i=this.props,a=i.component,o=i.childFactory,l=Jm(i,["component","childFactory"]),u=this.state.contextValue,f=Pke(this.state.children).map(o);return delete l.appear,delete l.enter,delete l.exit,a===null?Dr.createElement(Og.Provider,{value:u},f):Dr.createElement(Og.Provider,{value:u},Dr.createElement(a,l,f))},t})(Dr.Component);vP.propTypes={};vP.defaultProps=kke;function Dke(e){return de.jsx("svg",{...e,children:de.jsx("path",{fill:"currentColor",d:"M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9m0 1.212c-2.081 0-4.037.809-5.508 2.28A7.74 7.74 0 0 0 4.212 12c0 2.081.809 4.037 2.28 5.508A7.74 7.74 0 0 0 12 19.788c2.081 0 4.037-.809 5.508-2.28A7.74 7.74 0 0 0 19.788 12c0-2.081-.809-4.037-2.28-5.508A7.74 7.74 0 0 0 12 4.212m4.244 4.366a.7.7 0 0 1 .07 1.016l-5.25 5.76a.77.77 0 0 1-1.094.035l-2.25-2.16a.7.7 0 0 1 0-1.018.77.77 0 0 1 1.06 0l1.684 1.616 4.722-5.181a.77.77 0 0 1 1.058-.068"})})}function Lke(e){return de.jsx("svg",{...e,children:de.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0m-1 0a7 7 0 1 0-14 0 7 7 0 0 0 14 0m-6.25-.75a.75.75 0 0 0-1.5 0v5a.75.75 0 0 0 1.5 0zm0-3a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0",clipRule:"evenodd"})})}function Nke(e){return de.jsx("svg",{...e,children:de.jsx("path",{fill:"currentColor",d:"m13.882 20.807.619 2.935q-.803.17-3.028.258l.176-.008-.175-.004.133-2.997.28.008.154.001a9 9 0 0 0 1.841-.194m-5.888-.75a9 9 0 0 0 2.12.744l-.63 2.933a12 12 0 0 1-2.832-.992zm9.274-.746 1.754 2.436a12 12 0 0 1-2.638 1.433l-1.093-2.793a9 9 0 0 0 1.977-1.076M5.06 17.724A9 9 0 0 0 6.7 19.271l-1.773 2.42a12 12 0 0 1-2.184-2.057zm14.736-1.187 2.592 1.515a12 12 0 0 1-1.828 2.38l-2.137-2.108a9 9 0 0 0 1.373-1.787M3.31 14.344a9 9 0 0 0 .852 2.078L1.55 17.899a12 12 0 0 1-1.138-2.776zm17.661-1.39 2.987.313a12 12 0 0 1-.686 2.92l-2.814-1.046c.261-.7.434-1.434.513-2.187M.135 10.197l2.97.447a9.2 9.2 0 0 0-.056 2.27l-2.988.3Q.02 12.813 0 12l.009-.457q.026-.684.126-1.346m23.299-1.925c.306.937.5 1.924.566 2.947l-2.997.192a9 9 0 0 0-.424-2.208zM1.892 5.532l2.529 1.62a9 9 0 0 0-.967 2.027L.6 8.24c.318-.962.754-1.87 1.291-2.708m19.06-1.548c.668.744 1.245 1.57 1.713 2.464l-2.661 1.39a9 9 0 0 0-1.286-1.849zM5.407 1.976 7.06 4.48a9 9 0 0 0-1.714 1.465l-2.221-2.02a12 12 0 0 1 2.28-1.95m11.503-.937c.923.412 1.784.937 2.566 1.558L17.61 4.946a9 9 0 0 0-1.926-1.168zM10.03.163l.492 2.96a9 9 0 0 0-2.153.643L7.153 1.023C8.058.622 9.023.33 10.03.163M12.013 0l.439.008a12 12 0 0 1 2.541.364L14.25 3.28A9 9 0 0 0 12.012 3z"})})}function Mke(e){return de.jsx("svg",{...e,children:de.jsx("path",{d:"m13.026 4.377 8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0M12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2m.75-3.677V8.677a.69.69 0 0 0-.7-.677c-.387 0-.7.303-.7.677v5.646c0 .374.313.677.7.677s.7-.303.7-.677",fill:"currentColor"})})}const $ke="_alertItem_i5y1z_1",Fke="_alertBox_i5y1z_11",jke="_alertList_i5y1z_11",Uke="_icon_i5y1z_28",qke="_alertContent_i5y1z_32",Bke="_heading_i5y1z_40",Wl={alertItem:$ke,alertBox:Fke,alertList:jke,icon:Uke,alertContent:qke,heading:Bke};function Vke(e){const{alert:t,svg:r,svgClassName:n,closeAlert:i}=e,{message:a,heading:o,appLink:l,appLinkText:u,appLinkClassName:f="",extLink:d,extLinkText:h,extLinkClassName:p}=t;return de.jsxs(de.Fragment,{children:[de.jsx("div",{className:`d-inline-block ${Wl.icon}`,children:de.jsx(oc,{svg:r,className:`svg-container ${n}`})}),de.jsxs("div",{role:t.type===ms.Fail?"alert":"status",className:`ps-2 d-inline-block ${Wl.alertContent}`,children:[de.jsx("p",{className:`p-0 m-0 pb-1 ${Wl.heading}`,children:o}),de.jsx("p",{className:`p-0 text-break clamp-4 ${Wl.message}`,dangerouslySetInnerHTML:{__html:a}}),!!l&&de.jsx(Ro,{className:f,appLink:l,children:de.jsx("span",{dangerouslySetInnerHTML:{__html:u}})}),!!d&&h&&de.jsx("a",{href:d,className:p,target:"_blank",children:h})]}),de.jsx("div",{className:"btn-close d-inline-block cursor-pointer",role:"button","aria-label":"Close",onClick:i})]})}const Hke=e=>{switch(e.type){case ms.Success:return Dke;case ms.Fail:case ms.Warning:return Mke;case ms.Pending:return Nke;case ms.Info:default:return Lke}},zke=e=>e.type===ms.Pending?"text-info":`text-${e.type}`;Fne.defaultProps={timeout:3e3};function Fne({alert:e,closeAlert:t,timeout:r}){const[n,i]=Se.useState(!0),a=Se.useRef(null);return Se.useEffect(()=>{if(!n){clearTimeout(a.current);return}a.current=window.setTimeout(t,r)},[n]),de.jsx("li",{className:`bg-white mt-2 p-2 show clearfix ${Wl.alertItem}`,onMouseEnter:()=>i(!1),onMouseLeave:()=>i(!0),children:de.jsx(Vke,{alert:e,svg:Hke(e),svgClassName:zke(e),closeAlert:t})})}function Wke({alerts:e,removeAlert:t}){return de.jsx("div",{className:Wl.alertBox,children:de.jsx(vP,{component:"ul",className:`${Wl.alertList} list-unstyled`,children:e&&e.map((r,n)=>de.jsx(hP,{timeout:200,classNames:"alert",children:de.jsx(Fne,{alert:r,closeAlert:()=>t(r.id),timeout:r.timeout})},n))})})}async function Gke(e,t){try{const r={maxAlerts:3,defaultSuccessAlert:{heading:RC.Success,type:ms.Success},defaultErrorAlert:{heading:RC.Fail,type:ms.Fail},alertViewCtor:Wke};cu.registerSingleton(new YAe(r)).registerInstance(Ake,{store:e.store}),t(e)}catch{dr.throw(new $f)}}function Kke(e){var t,r=e.Symbol;return typeof r=="function"?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}var Ef;typeof self<"u"?Ef=self:typeof window<"u"?Ef=window:typeof globalThis<"u"?Ef=globalThis:typeof module<"u"?Ef=module:Ef=Function("return this")();var BY=Kke(Ef),bx=function(){return Math.random().toString(36).substring(7).split("").join(".")},mh={INIT:"@@redux/INIT"+bx(),REPLACE:"@@redux/REPLACE"+bx(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+bx()}};function Yke(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function jne(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error("Expected the enhancer to be a function.");return r(jne)(e,t)}if(typeof e!="function")throw new Error("Expected the reducer to be a function.");var i=e,a=t,o=[],l=o,u=!1;function f(){l===o&&(l=o.slice())}function d(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function h(E){if(typeof E!="function")throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var S=!0;return f(),l.push(E),function(){if(S){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");S=!1,f();var T=l.indexOf(E);l.splice(T,1)}}}function p(E){if(!Yke(E))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(typeof E.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,a=i(a,E)}finally{u=!1}for(var S=o=l,w=0;w<S.length;w++){var T=S[w];T()}return E}function y(E){if(typeof E!="function")throw new Error("Expected the nextReducer to be a function.");i=E,p({type:mh.REPLACE})}function _(){var E,S=h;return E={subscribe:function(T){if(typeof T!="object"||T===null)throw new TypeError("Expected the observer to be an object.");function C(){T.next&&T.next(d())}C();var x=S(C);return{unsubscribe:x}}},E[BY]=function(){return this},E}return p({type:mh.INIT}),n={dispatch:p,subscribe:h,getState:d,replaceReducer:y},n[BY]=_,n}function Xke(e,t){var r=t&&t.type,n=r&&'action "'+String(r)+'"'||"an action";return"Given "+n+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function Qke(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:mh.INIT});if(typeof n>"u")throw new Error('Reducer "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:mh.PROBE_UNKNOWN_ACTION()})>"u")throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+mh.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function Jke(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),o;try{Qke(r)}catch(l){o=l}return function(u,f){if(u===void 0&&(u={}),o)throw o;for(var d=!1,h={},p=0;p<a.length;p++){var y=a[p],_=r[y],E=u[y],S=_(E,f);if(typeof S>"u"){var w=Xke(y,f);throw new Error(w)}h[y]=S,d=d||S!==E}return d?h:u}}function Zke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VY(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r}function eDe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VY(r,!0).forEach(function(n){Zke(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VY(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tDe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function rDe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(u){return u(o)});return a=tDe.apply(void 0,l)(i.dispatch),eDe({},i,{dispatch:a})}}}const Une={X_APP_VERSION:"X-App-Version"};function nDe(e){const{oldVersionError:t,authenticationError:r}=e;return function(i){return a=>o=>{var h,p;const l=o;if(o.type===wa.API_ERROR&&r&&((h=l==null?void 0:l.xhr)==null?void 0:h.status)===rI.Unauthorized)return dr.throw(new r("dark"));if(o.type!==wa.API_RESPONSE){a(o);return}const f=i.getState().applicationData.version,d=(p=l==null?void 0:l.xhr)==null?void 0:p.getResponseHeader(Une.X_APP_VERSION);t&&f&&d&&d!==f&&dr.throw(new t(f,d)),a(o)}}}function iDe(e,t){if(!ys.isObject(t.xhr))return e;const r=t.xhr.getResponseHeader(Une.X_APP_VERSION);return r?{...e,version:r}:e}const aDe={version:null};function oDe(e=aDe,t){switch(t.type){case wa.API_RESPONSE:return iDe(e,t)}return e}function sDe(e,t){return typeof t.payload.dataOrKey=="string"&&t.payload.keyData!==void 0?{...e,[t.payload.viewModelKey]:{...e[t.payload.viewModelKey],[t.payload.dataOrKey]:t.payload.keyData}}:typeof t.payload.dataOrKey=="object"&&Array.isArray(t.payload.dataOrKey)?{...e,[t.payload.viewModelKey]:t.payload.dataOrKey}:{...e,[t.payload.viewModelKey]:t.payload.dataOrKey}}function uDe(e={},t){switch(t.type){case cP.UPDATE:return sDe(e,t)}return e}const lDe={STANDARD:600},Uv="shared.authentication";class cDe extends Dc{constructor(t){super(Gr.getPhrase(Uv,"title")),this.btnVariant=t}get name(){return"AuthenticationError"}get dialogOptions(){return{title:Gr.getPhrase(Uv,"heading"),text:Gr.getPhrase(Uv,"body"),buttons:[{text:Gr.getPhrase(Uv,"reload"),className:`btn btn-${this.btnVariant}`,success:!0}]}}onDone(){Dn.Reload()}}class fDe extends cDe{onDone(){Dn.PageLoad(`/login?returnUrl=${encodeURIComponent(Dn.GetCurrentUrl())}`)}}const If={hasTokenExpired(e){return typeof(e==null?void 0:e.localTTL)!="number"?!1:new Date().getTime()>e.localTTL},getToken(e,t){var a,o,l,u;const r=Jee(e.getState(),Zl.TOKEN),n=If.hasTokenExpired(r.data);if((r.shouldFetch||n)&&!r.isFetching){fd(e.dispatch,t);return}if(r.isFetching){let f=!1;const d=e.subscribe(()=>{d(),!f&&(f=!0,If.getToken(e,t))});return}r.hasError?((a=t.error)==null||a.call(t,{status:r.statusCode,getResponseHeader:null}),(o=t.always)==null||o.call(t)):((l=t.success)==null||l.call(t,r.data),(u=t.always)==null||u.call(t))},async getTokenAsync(e){const t=qne.getToken();return t||new Promise((r,n)=>{const i=o=>r(o),a=o=>n(o);If.getToken(e,ta.token(i,a))})}},dDe=Fi.Router.prototype._routeToRegExp("share/embed/:id(/)"),hDe=Fi.Router.prototype._routeToRegExp("videos/embed/:id(/)"),qne={applyToken(e){const t=QI.getCurrentRoute().appLink,r=Ai.getHref({...t,params:{...typeof t.params=="object"?t.params:{},embedToken:e==null?void 0:e.value,localTTL:e==null?void 0:e.localTTL,a:!0}});Dn.PageLoad(r)},getToken(){const e=Fi.history.getFragment(Dn.GetCurrentPath()),t=dDe.test(e),r=hDe.test(e);if(!t&&!r||!window.URLSearchParams)return null;const n=new URLSearchParams(window.location.search),i=n.get("embedToken"),a=parseInt(n.get("localTTL"));if(!i||!a)return null;const o={value:i,localTTL:isNaN(a)?null:a};return If.hasTokenExpired(o)?null:o}};function pDe(){const e=qne.getToken();return e?function(r,n){if(!r.resource.startsWith("/"))return n(r);If.hasTokenExpired(e)||(r.headers={...r.headers??{},authorization:`Bearer ${e.value}`}),n(r)}:(t,r)=>r(t)}const CC={safeUrlConcat(e,t){if(!e)return;let r=e;return e.endsWith("/")||(r+="/"),t&&(r+=t.startsWith("/")?t.slice(1):t),r}},HY={"{gateway}":"gatewayApiUrl","{image}":"imageCdnUrl","{integrations}":"integrationsApiUrl","{player}":"playerApiUrl"};function vDe(e){return async function(r,n){const i=Object.keys(HY).find(o=>r.resource.startsWith(o));if(!i)return n(r);function a(o,l){const u=o[HY[i]],f={...r,resource:CC.safeUrlConcat(u,r.resource.split(`${i}/`)[1])};l!=null&&l.value&&(f.headers={...f.headers??{},authorization:`Bearer ${l.value}`}),n(f)}try{const o=await qa(e,al.config());if(!(await qa(e,ta.currentUser())).isAuthenticated){a(o);return}const u=await If.getTokenAsync(e);a(o,u)}catch{n(r)}}}const zY=/\(([^()]*)\)/g;function gDe(e,t){return function(n,i){i({...n,resource:n.resource.replace(e,t)})}}function mDe(e,t){function r(n){return function(a){const o=t[a];if(typeof o=="string"){n.useAsync(gDe(a,o));return}o&&n.useAsync(o)}}return function(i,a){var p;const o=new xf,l=new xf,u={resource:i.resource,store:e},f={resource:null,store:e},d=(p=i.data)==null?void 0:p.ogql;if(decodeURIComponent(i.resource).replace(zY,r(o)),d){const y=JSON.stringify(i.data.ogql);f.resource=y,y.replace(zY,r(l))}o.goAsync(u,y=>{l.goAsync(f,_=>{a({...i,resource:y.resource,data:d?{...i.data,ogql:JSON.parse(_.resource)}:i.data})})})}}function yDe(e,t){return function(n){const i=new xf;i.useAsync(vDe(e.store)),i.useAsync(mDe(e.store,t)),i.useAsync(pDe()),i.goAsync(n,a=>{Uye(a)})}}const WY={VIDEO_COLLECTION:"(videoCollection)",SERIES:"tallposter,_rating,banner",CLASSIFICATION_COLLECTION:"banner,cover,tallPoster,_theme[banner,cover,tallPoster,thumbnail,icon]",CLASSIFICATION:e=>`banner,cover,tallPoster,thumbnail,_theme[banner,cover,tallPoster,thumbnail,icon],followers{id:${e}},pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0},tags{tagType:curation}`,VIDEO:"channel,series,season,_rating,producers,glance,distributors[partnerprofiles[_slug,count()]{status:1}],owner,subjectPresentationAudiences,resources[thumbnail,pdf],tags,productionCompanies[partnerprofiles[_slug,count()]{status:1}],directors,links,thumbnail,_canUpdate,_videoProgress,_canBeConsumed,categories[libraries],libraries,_canAddToLibrary,_restrictions,_canDownload,_isClickViewCurated,contentLicences,_canCreateChild",PLAYLIST:"cover,banner,owner,followers[count()]{limit:0}",PLAYLIST_COLLECTION:"videos[count()]{status:[1,2],limit:0},interactives[count()]{status:[1,2],limit:0},clips[count()]{status:[1,2],limit:0},cover",CLIP:"(clip)",CLIP_COLLECTION:"(clipCollection)",INTERACTIVE:"(interactive)",INTERACTIVE_COLLECTION:"(interactiveCollection)",LIBRARY_COLLECTION:"owner[logo]",LIBRARY:"owner[logo],categorytree",PARTNER_PROFILE:"company[banner,logo,partnerprofiles[count()]],person[partnerprofiles[count()]],_slug,contentregions,_logo,_banner,_cover,_colour,_videobanner,links"},HLe={CLASSIFICATION:"banner,cover,tallPoster,_theme[banner,cover,tallPoster,thumbnail,icon],pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0},tags{tagType:curation}",CLASSIFICATION_COLLECTION:"banner,cover,tallPoster,_theme[banner,cover,tallPoster,thumbnail,icon]",VIDEO:"series,season,_rating,producers,glance,distributors[partnerprofiles[_slug,count()]{status:1}],subjectPresentationAudiences,resources[thumbnail,pdf],tags,productionCompanies[partnerprofiles[_slug,count()]{status:1}],directors,links,thumbnail,interactives[thumbnail,_canBeConsumed,_isClickViewCurated],clips[_canBeConsumed,_isClickViewCurated,_thumbnail],_canBeConsumed,_isClickViewCurated,categories,libraries",VIDEO_COLLECTION:"thumbnail,_rating,series,season,subjectPresentationAudiences,subtitles{limit:1},_canBeConsumed"},_De=[yr.ExchangeTvProductOption,yr.TvRegion,yr.LiteUpgradeTypeCustomer];function EDe(e){return function(r,n){const i=_De.map(o=>`type=${o}`).join("&"),a=r.resource.replace(e,i);n({...r,resource:a})}}const SDe=[yr.HasCompletedOnboardingV1];function wDe(e){return function(r,n){const i=SDe.map(o=>`type=${o}`).join("&"),a=r.resource.replace(e,i);n({...r,resource:a})}}const bDe="thumbnail,_rating,series,season,subtitles{limit:1}";function TDe(e){return function(r,n){mI(r.store,ta.currentUser(i=>{let a=`${bDe}`;i.isAuthenticated&&(a+=`,favouritedby{id:${i.id}}`);const o=r.resource.replace(e,a);n({...r,resource:o})},()=>n(r)))}}const ADe={[WY.VIDEO_COLLECTION]:TDe(WY.VIDEO_COLLECTION),"(customerSettings)":EDe("(customerSettings)"),"(userSettings)":wDe("(userSettings)")};async function RDe(e,t){const r=Jke({flightData:hSe,viewModelData:uDe,applicationData:oDe}),n=sSe({fetchData:yDe(e,ADe),bootstrappedData:window.bootstrapData||{},defaultCacheDuration:lDe.STANDARD}),i=nDe({authenticationError:fDe,oldVersionError:Qre});async function a(l){e.registerStore(l),t(e),delete window.bootstrapData}const o=jne(r,rDe(n,i));await a(o)}const xDe="application:options";class CDe extends za{constructor(t){super(),this.clients={},this.enrichers={},$ne.get(xDe).set(t??{})}get name(){return AI.Analytics}registerTransport(t,r){return this.transport=new t(r),this.bindTransportListeners(),this}bindTransportListeners(){this.listenTo(_te.ANALYTICS,Cf.Inlet,this.onEvent)}registerClient(t,r){return this.validateConstructor(t),this.clients[t.prototype.name]=t.prototype.name,this.transport.subscribe(new t(r)),this}registerEnricher(t,r){this.validateConstructor(t);const n=new t(r);return this.enrichers[n.name]=n,this.registerMiddleware(au(n.enrich,n)),this}hasEnricher(t){return!!this.enrichers[t.prototype.name]}onEvent(t){this.executeMiddleware(t,r=>{this.transport.publish(r)})}validateConstructor(t){const r=t.prototype.name;r||dr.throw(new Sn(`Classes registered with ${this.name} must have a unique name property.`));const n=i=>Ao.isFunction(t.prototype.isType)&&t.prototype.isType(i);(n("BaseAnalyticsClient")||r==="CollectionApiClient")&&this.clients[r]&&dr.throw(new Sn(`A client class with the name: ${r} has already been registered with ${this.name}`)),n("BaseAnalyticsEnricher")&&this.enrichers[r]&&dr.throw(new Sn(`An enricher class named: ${r} has already been registered with ${this.name}`))}registerMiddleware(t){this.executeMiddleware=(r=>(n,i)=>r(n,()=>t(n,i)))(this.executeMiddleware)}executeMiddleware(t,r){r(t)}}const Bne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function GY(e,t,r,n){let i,a,o;const l=t||[0],u=(r=r||0)>>>3,f=n===-1?3:0;for(i=0;i<e.length;i+=1)o=i+u,a=o>>>2,l.length<=a&&l.push(0),l[a]|=e[i]<<8*(f+n*(o%4));return{value:l,binLen:8*e.length+r}}function Tx(e,t,r){switch(t){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(n,i,a){return(function(o,l,u,f){let d,h,p,y;if(o.length%2!=0)throw new Error("String of HEX type must be in byte increments");const _=l||[0],E=(u=u||0)>>>3,S=f===-1?3:0;for(d=0;d<o.length;d+=2){if(h=parseInt(o.substr(d,2),16),isNaN(h))throw new Error("String of HEX type contains invalid characters");for(y=(d>>>1)+E,p=y>>>2;_.length<=p;)_.push(0);_[p]|=h<<8*(S+f*(y%4))}return{value:_,binLen:4*o.length+u}})(n,i,a,r)};case"TEXT":return function(n,i,a){return(function(o,l,u,f,d){let h,p,y,_,E,S,w,T,C=0;const x=u||[0],R=(f=f||0)>>>3;if(l==="UTF8")for(w=d===-1?3:0,y=0;y<o.length;y+=1)for(h=o.charCodeAt(y),p=[],128>h?p.push(h):2048>h?(p.push(192|h>>>6),p.push(128|63&h)):55296>h||57344<=h?p.push(224|h>>>12,128|h>>>6&63,128|63&h):(y+=1,h=65536+((1023&h)<<10|1023&o.charCodeAt(y)),p.push(240|h>>>18,128|h>>>12&63,128|h>>>6&63,128|63&h)),_=0;_<p.length;_+=1){for(S=C+R,E=S>>>2;x.length<=E;)x.push(0);x[E]|=p[_]<<8*(w+d*(S%4)),C+=1}else for(w=d===-1?2:0,T=l==="UTF16LE"&&d!==1||l!=="UTF16LE"&&d===1,y=0;y<o.length;y+=1){for(h=o.charCodeAt(y),T===!0&&(_=255&h,h=_<<8|h>>>8),S=C+R,E=S>>>2;x.length<=E;)x.push(0);x[E]|=h<<8*(w+d*(S%4)),C+=2}return{value:x,binLen:8*C+f}})(n,t,i,a,r)};case"B64":return function(n,i,a){return(function(o,l,u,f){let d,h,p,y,_,E,S,w=0;const T=l||[0],C=(u=u||0)>>>3,x=f===-1?3:0,R=o.indexOf("=");if(o.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(o=o.replace(/=/g,""),R!==-1&&R<o.length)throw new Error("Invalid '=' found in base-64 string");for(h=0;h<o.length;h+=4){for(_=o.substr(h,4),y=0,p=0;p<_.length;p+=1)d=Bne.indexOf(_.charAt(p)),y|=d<<18-6*p;for(p=0;p<_.length-1;p+=1){for(S=w+C,E=S>>>2;T.length<=E;)T.push(0);T[E]|=(y>>>16-8*p&255)<<8*(x+f*(S%4)),w+=1}}return{value:T,binLen:8*w+u}})(n,i,a,r)};case"BYTES":return function(n,i,a){return(function(o,l,u,f){let d,h,p,y;const _=l||[0],E=(u=u||0)>>>3,S=f===-1?3:0;for(h=0;h<o.length;h+=1)d=o.charCodeAt(h),y=h+E,p=y>>>2,_.length<=p&&_.push(0),_[p]|=d<<8*(S+f*(y%4));return{value:_,binLen:8*o.length+u}})(n,i,a,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error("ARRAYBUFFER not supported by this environment")}return function(n,i,a){return(function(o,l,u,f){return GY(new Uint8Array(o),l,u,f)})(n,i,a,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error("UINT8ARRAY not supported by this environment")}return function(n,i,a){return GY(n,i,a,r)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function KY(e,t,r,n){switch(e){case"HEX":return function(i){return(function(a,o,l,u){let f,d,h="";const p=o/8,y=l===-1?3:0;for(f=0;f<p;f+=1)d=a[f>>>2]>>>8*(y+l*(f%4)),h+="0123456789abcdef".charAt(d>>>4&15)+"0123456789abcdef".charAt(15&d);return u.outputUpper?h.toUpperCase():h})(i,t,r,n)};case"B64":return function(i){return(function(a,o,l,u){let f,d,h,p,y,_="";const E=o/8,S=l===-1?3:0;for(f=0;f<E;f+=3)for(p=f+1<E?a[f+1>>>2]:0,y=f+2<E?a[f+2>>>2]:0,h=(a[f>>>2]>>>8*(S+l*(f%4))&255)<<16|(p>>>8*(S+l*((f+1)%4))&255)<<8|y>>>8*(S+l*((f+2)%4))&255,d=0;d<4;d+=1)_+=8*f+6*d<=o?Bne.charAt(h>>>6*(3-d)&63):u.b64Pad;return _})(i,t,r,n)};case"BYTES":return function(i){return(function(a,o,l){let u,f,d="";const h=o/8,p=l===-1?3:0;for(u=0;u<h;u+=1)f=a[u>>>2]>>>8*(p+l*(u%4))&255,d+=String.fromCharCode(f);return d})(i,t,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error("ARRAYBUFFER not supported by this environment")}return function(i){return(function(a,o,l){let u;const f=o/8,d=new ArrayBuffer(f),h=new Uint8Array(d),p=l===-1?3:0;for(u=0;u<f;u+=1)h[u]=a[u>>>2]>>>8*(p+l*(u%4))&255;return d})(i,t,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error("UINT8ARRAY not supported by this environment")}return function(i){return(function(a,o,l){let u;const f=o/8,d=l===-1?3:0,h=new Uint8Array(f);for(u=0;u<f;u+=1)h[u]=a[u>>>2]>>>8*(d+l*(u%4))&255;return h})(i,t,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function YY(e){const t={outputUpper:!1,b64Pad:"=",outputLen:-1},r=e||{},n="Output length must be a multiple of 8";if(t.outputUpper=r.outputUpper||!1,r.b64Pad&&(t.b64Pad=r.b64Pad),r.outputLen){if(r.outputLen%8!=0)throw new Error(n);t.outputLen=r.outputLen}else if(r.shakeLen){if(r.shakeLen%8!=0)throw new Error(n);t.outputLen=r.shakeLen}if(typeof t.outputUpper!="boolean")throw new Error("Invalid outputUpper formatting option");if(typeof t.b64Pad!="string")throw new Error("Invalid b64Pad formatting option");return t}function pf(e,t){return e<<t|e>>>32-t}function XY(e,t,r){return e^t^r}function ODe(e,t,r){return e&t^e&r^t&r}function Zd(e,t){const r=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(r>>>16))<<16|65535&r}function qv(e,t,r,n,i){const a=(65535&e)+(65535&t)+(65535&r)+(65535&n)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(r>>>16)+(n>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function IDe(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function Vne(e,t){let r,n,i,a,o,l,u;const f=[];for(r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],u=0;u<80;u+=1)f[u]=u<16?e[u]:pf(f[u-3]^f[u-8]^f[u-14]^f[u-16],1),l=u<20?qv(pf(r,5),(d=n)&i^~d&a,o,1518500249,f[u]):u<40?qv(pf(r,5),XY(n,i,a),o,1859775393,f[u]):u<60?qv(pf(r,5),ODe(n,i,a),o,2400959708,f[u]):qv(pf(r,5),XY(n,i,a),o,3395469782,f[u]),o=a,a=i,i=pf(n,30),n=r,r=l;var d;return t[0]=Zd(r,t[0]),t[1]=Zd(n,t[1]),t[2]=Zd(i,t[2]),t[3]=Zd(a,t[3]),t[4]=Zd(o,t[4]),t}function PDe(e,t,r,n){let i;const a=15+(t+65>>>9<<4),o=t+r;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&o,e[a-1]=o/4294967296|0,i=0;i<e.length;i+=16)n=Vne(e.slice(i,i+16),n);return n}class kDe extends class{constructor(t,r,n){const i=n||{};if(this.t=r,this.i=i.encoding||"UTF8",this.numRounds=i.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.s=t,this.o=[],this.h=0,this.u=!1,this.l=0,this.A=!1,this.p=[],this.R=[]}update(t){let r,n=0;const i=this.U>>>5,a=this.T(t,this.o,this.h),o=a.binLen,l=a.value,u=o>>>5;for(r=0;r<u;r+=i)n+this.U<=o&&(this.F=this.m(l.slice(r,r+i),this.F),n+=this.U);this.l+=n,this.o=l.slice(n>>>5),this.h=o%this.U,this.u=!0}getHash(t,r){let n,i,a=this.g;const o=YY(r);if(this.B){if(o.outputLen===-1)throw new Error("Output length must be specified in options");a=o.outputLen}const l=KY(t,a,this.v,o);if(this.A&&this.Y)return l(this.Y(o));for(i=this.H(this.o.slice(),this.h,this.l,this.C(this.F),a),n=1;n<this.numRounds;n+=1)this.B&&a%32!=0&&(i[i.length-1]&=16777215>>>24-a%32),i=this.H(i,a,0,this.I(this.s),a);return l(i)}setHMACKey(t,r,n){if(!this.L)throw new Error("Variant does not support HMAC");if(this.u)throw new Error("Cannot set MAC key after calling update");const i=Tx(r,(n||{}).encoding||"UTF8",this.v);this.M(i(t))}M(t){const r=this.U>>>3,n=r/4-1;let i;if(this.numRounds!==1)throw new Error("Cannot set numRounds with MAC");if(this.A)throw new Error("MAC key already set");for(r<t.binLen/8&&(t.value=this.H(t.value,t.binLen,0,this.I(this.s),this.g));t.value.length<=n;)t.value.push(0);for(i=0;i<=n;i+=1)this.p[i]=909522486^t.value[i],this.R[i]=1549556828^t.value[i];this.F=this.m(this.p,this.F),this.l=this.U,this.A=!0}getHMAC(t,r){const n=YY(r);return KY(t,this.g,this.v,n)(this.N())}N(){let t;if(!this.A)throw new Error("Cannot call getHMAC without first setting MAC key");const r=this.H(this.o.slice(),this.h,this.l,this.C(this.F),this.g);return t=this.m(this.R,this.I(this.s)),t=this.H(r,this.g,this.U,t,this.g),t}}{constructor(t,r,n){if(t!=="SHA-1")throw new Error("Chosen SHA variant is not supported");super(t,r,n);const i=n||{};this.L=!0,this.Y=this.N,this.v=-1,this.T=Tx(this.t,this.i,this.v),this.m=Vne,this.C=function(a){return a.slice()},this.I=IDe,this.H=PDe,this.F=[1732584193,4023233417,2562383102,271733878,3285377520],this.U=512,this.g=160,this.B=!1,i.hmacKey&&this.M((function(a,o,l,u){const f=a+" must include a value and format";if(!o)throw new Error(f);if(o.value===void 0||!o.format)throw new Error(f);return Tx(o.format,o.encoding||"UTF8",l)(o.value)})("hmacKey",i.hmacKey,this.v))}}var hu=(e=>(e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1",e.CvNaWest1="cv-na-west-1",e))(hu||{});const DDe={systemName:hu.CvApSoutheast1},LDe={systemName:hu.CvApSoutheast2},NDe={systemName:hu.CvEuWest1},MDe={systemName:hu.CvNaWest1},$De={CvApSoutheast1:DDe,CvApSoutheast2:LDe,CvEuWest1:NDe,CvNaWest1:MDe},QY="r",_y="cv:r",Ey="cv:r:e",Bv="referrer",JY="cv:originalReferrer",OC=28800,ZY=["internalReferrer"],gP={getDecodedAttributionData(){const e=Hi.cacheGet(_y);if(e&&Object.keys(e).length>0)return e;const t=eX();return t==null?void 0:t.decoded},getEncodedAttributionData(){const e=Hi.cacheGet(Ey);return e!=null&&e.length?e:eX().encoded},getProfileId(){const e=gP.getDecodedAttributionData();return(e==null?void 0:e.profileId)??null},setAttributionData(e){if(!e)return;const t=Hne(e);IC(t,e)},decodeRValue(e){if(e)try{const t=atob(e),r=JSON.parse(t);if(!mP(r))throw Error(`Decoded R value is invalid: ${JSON.stringify(r)}`);return r}catch(t){const r=t instanceof Error?t.message:t==null?void 0:t.toString();console.error(r)}}};function eX(){const e=Hi.cacheGet(_y),t=Hi.cacheGet(Ey);return mP(e)?{encoded:t,decoded:e}:FDe()}function FDe(){Hi.cacheRemove(_y),Hi.cacheRemove(Ey);const e=UDe(),t=gP.decodeRValue(e);if(t)return IC(e,t),{decoded:t,encoded:e};const r={internalReferrer:window.location.origin+window.location.pathname,originalReferrer:jDe()},n=Hne(r);return IC(n,r),{decoded:r,encoded:n}}function mP(e){return!e||typeof e!="object"||Object.keys(e).length<ZY.length?!1:ZY.every(t=>typeof e[t]=="string")}function jDe(){const e=Hi.cacheGet(JY);if(e&&typeof e=="string")return e;let t=document.referrer??"";if(window.URLSearchParams){const r=new URLSearchParams(window.location.search),n=r.has(Bv)&&r.get(Bv);r.has(Bv)&&r.get(Bv)&&(t=n)}return t&&Hi.cacheSet(JY,t,OC),t}function UDe(){if(!window.URLSearchParams)return;const e=new URLSearchParams(window.location.search);if(e.has(QY))return e.get(QY)}function Hne(e){if(mP(e))try{return btoa(JSON.stringify(e))}catch{console.error(`R value could not be encoded: ${JSON.stringify(e)}`)}}function IC(e,t){try{Hi.cacheSet(_y,t,OC),Hi.cacheSet(Ey,e,OC)}catch{console.error("Could not store attribution data in session storage")}}const tX=3,qDe=5e3,BDe=6,Ax={};class VDe{constructor(t){this.key=t.toString()}getCount(){return Ax[this.key]||0}increment(){Ax[this.key]=this.getCount()+1}reset(){delete Ax[this.key]}shouldBreak(){return this.getCount()>=BDe}}class HDe{constructor(){this.attempt=0}async wait(){await new Promise(t=>setTimeout(t,qDe*Math.pow(2,this.attempt))),this.attempt++}}async function zDe(e,t){const r=new HDe,n=new VDe(e);async function i(){const a=await fetch(e,t);if(a.status>=500&&!n.shouldBreak())throw new Error(`Server error: ${a.status}`);return a.ok&&n.reset(),a}for(let a=1;a<=tX;a++)try{return await i()}catch(o){if(a>=tX||n.shouldBreak())throw o;n.increment(),await r.wait()}}var Vv,WDe=new Uint8Array(16);function GDe(){if(!Vv&&(Vv=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Vv))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Vv(WDe)}const KDe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function yP(e){return typeof e=="string"&&KDe.test(e)}var oa=[];for(var Rx=0;Rx<256;++Rx)oa.push((Rx+256).toString(16).substr(1));function YDe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(oa[e[t+0]]+oa[e[t+1]]+oa[e[t+2]]+oa[e[t+3]]+"-"+oa[e[t+4]]+oa[e[t+5]]+"-"+oa[e[t+6]]+oa[e[t+7]]+"-"+oa[e[t+8]]+oa[e[t+9]]+"-"+oa[e[t+10]]+oa[e[t+11]]+oa[e[t+12]]+oa[e[t+13]]+oa[e[t+14]]+oa[e[t+15]]).toLowerCase();if(!yP(r))throw TypeError("Stringified UUID is invalid");return r}function XDe(e,t,r){e=e||{};var n=e.random||(e.rng||GDe)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,YDe(n)}function QDe(e){if(!yP(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const rX="cv:session:",nX="cv:window:",JDe=new Date(864e13).getTime(),iX=18e5,ZDe=4;function zne(e){if(e===Ls.LocalStorage)return Hi.isAvailable()?Hi:VK;if(e===Ls.SessionStorage)return jg.isAvailable()?jg:VK}function aX(e){return e===!1?JDe:new Date().getTime()+e}function eLe(){return XDe()}function tLe(e){return e?new Date().getTime()>e:!1}function rLe(e){return!(typeof e!="object"||typeof(e==null?void 0:e.id)!="string"||!yP(e.id)||QDe(e.id)!==ZDe||typeof(e==null?void 0:e.ttl)!="number"||(e==null?void 0:e.ttl)<=0||isNaN(e==null?void 0:e.ttl))}function oX(e,t,r){const n=zne(r);if(!(n!=null&&n.isAvailable()))return;const i=e+(t||"0");n.remove(i)}function sX(e,t,r,n){const i=zne(r),a=e+(t||"0"),o=i.get(a);if(!rLe(o)||tLe(o==null?void 0:o.ttl)){const u={id:eLe(),ttl:aX(n)};return i.set(a,u),u.id}const l={id:o.id,ttl:aX(n)};return i.set(a,l),o.id}let xx=!1;const uX={getClientSessionData(e){const t=sX(rX,e,Ls.LocalStorage,iX),r=sX(nX,e,Ls.SessionStorage,xx?!1:iX);return!t&&!r?null:{id:t,windowId:r}},resetClientSession(e){oX(rX,e,Ls.LocalStorage),oX(nX,e,Ls.SessionStorage)},lockWindowSession(){xx=!0},unlockWindowSession(){xx=!1}},Gl={isObject(e){const t=typeof e;return t==="function"||t==="object"&&!!e},isFunction(e){return typeof e=="function"}},tn={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},su="Unknown";function vf(e,t,r){const n=t.exec(r)||[];let[i]=n;return i||(i=su),{name:e,version:i}}function Dl(e,t,r){if(!t)return{name:e,version:su};const n=t.exec(r),i=n&&n.length?n[0].trim():su;return{name:e,version:i}}function nLe(e,t){const r={name:e,version:null};return tn.win2000.test(t)&&(r.version="2000"),tn.winXP.test(t)&&(r.version="XP"),tn.winVista.test(t)&&(r.version="Vista"),tn.win7.test(t)&&(r.version="7"),tn.win8.test(t)&&(r.version="8"),tn.win81.test(t)&&(r.version="8.1"),tn.win10.test(t)&&(r.version="10"),r.version||(r.version=su),r}const lX={getDeviceType(){const e=window.navigator.userAgent;return tn.mobileDevice.test(e)?tn.iphone.test(e)?"iPhone":tn.ipad.test(e)?"iPad":tn.android.test(e)?"Android":tn.blackberry.test(e)?"Blackberry":tn.windowsPhone.test(e)?"Windows Phone":su:"Desktop"},getOperatingSystem(){const e=window.navigator.userAgent;return tn.android.test(e)?Dl("Android",tn.androidVersion,e):tn.iphone.test(e)||tn.ipad.test(e)?Dl("iOS",tn.iosVersion,e):tn.linux.test(e)?Dl("Linux",null,e):tn.unix.test(e)?Dl("Unix",null,e):tn.mac.test(e)?Dl("Macintosh",tn.osxVersion,e):tn.windows.test(e)?nLe("Windows",e):tn.blackberry.test(e)?Dl("BlackBerry",tn.blackberryVersion,e):tn.windowsPhone.test(e)?Dl("Windows Phone",tn.windowsPhoneVersion,e):{name:su,version:su}},getBrowser(){const e=window.navigator.userAgent;return tn.chrome.test(e)?vf("Chrome",tn.generalVersion,e):tn.firefox.test(e)?vf("Firefox",tn.generalVersion,e):tn.safari.test(e)?vf("Safari",tn.generalVersion,e):tn.ie.test(e)?vf("Internet Explorer",tn.ieVersion,e):tn.edge.test(e)?vf("Edge",tn.edgeVersion,e):tn.opera.test(e)?vf("Opera",tn.operaVersion,e):{name:su,version:su}},isTouchScreen(){return!!("ontouchstart"in window||navigator.maxTouchPoints)}},iLe=28800,cX="cv:utmparams",PC=[["source","utm_source"],["medium","utm_medium"],["campaign","utm_campaign"],["term","utm_term"],["content","utm_content"]],aLe=PC.reduce((e,[t])=>({...e,[t]:t}),{}),Wne={getUtmParameters(){if(!window.URLSearchParams)return null;const e=new URLSearchParams(window.location.search),t={},r=([n,i])=>{e.has(i)&&(t[n]=e.get(i))};return PC.forEach(r),fX(t)},setUtmParameters(e){if(!e)return;const t={},r=n=>{aLe[n]&&(t[n]=e[n])};return Object.keys(e).forEach(r),fX(t)},getURLSearchParams(){if(!window.URLSearchParams)return null;const e=new URLSearchParams,t=Wne.getUtmParameters();return t?(PC.forEach(([r,n])=>{t[r]&&e.set(n,t[r])}),e):null}};function fX(e){if(Object.keys(e).length)return Hi.cacheSet(cX,e,iLe),e;const t=Hi.cacheGet(cX);return t&&typeof t=="object"&&Object.keys(t).length?t:null}const oLe="2.3.0",sLe={version:oLe},uLe="zXJL9nOHxzDlMUDjiP41",dX="unknown";class lLe{constructor(t){this.options=t,this.initialize()}initialize(){this.validateOptions(),this.options.logUtmParameters&&(this.utmParameters=Wne.getUtmParameters()),this.options.logAttributionData&&(this.attributionData=gP.getDecodedAttributionData())}get name(){return"CollectionApiClient"}async log(t){if(Array.isArray(t))return this.logBulk(t);this.shouldLog(t)&&(this.validateEvent(t),await this.postData(await this.formatData(t)))}async logBulk(t){const r=t.filter(i=>this.shouldLog(i));if(!r.length)return;r.forEach(i=>this.validateEvent(i));const n=await Promise.all(r.map(i=>this.formatData(i)));await this.postData(n)}validateOptions(){if(!Gl.isFunction(this.options.getUser))throw new Error("getUser option is required.")}shouldLog(t){return Gl.isFunction(this.options.shouldLog)?this.options.shouldLog(t):!0}async postData(t){const r=await this.getRegionalUrl(this.options.collectionApiUrls),n=JSON.stringify(t),i={"Content-Type":"application/json",...this.getSignatureHeader(n)};let a=CC.safeUrlConcat(r,"/v1/ingest");Array.isArray(t)&&(a=CC.safeUrlConcat(a,"/bulk"));try{const o=await zDe(a,{method:"POST",mode:"cors",headers:i,body:n});o.ok||this.logError(new Error(`CollectionApiClient failed to log event. Status: ${o.status} ${o.statusText}`),!1,this.getResponseAsObject(o))}catch(o){this.logError(o)}}getResponseAsObject(t){return{headers:t.headers,ok:t.ok,redirected:t.redirected,status:t.status,statusText:t.statusText,type:t.type,url:t.url,body:t.text()}}getSignatureHeader(t){const r=new kDe("SHA-1","TEXT",{hmacKey:{value:uLe,format:"TEXT",encoding:"UTF8"}});return r.update(t),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${r.getHash("B64")}`}}async getRegionalUrl(t){switch((await this.getRegion()).systemName){case hu.CvEuWest1:return t.cvEuWest1;case hu.CvApSoutheast2:return t.cvApSoutheast2;case hu.CvNaWest1:return t.cvNaWest1;case hu.CvApSoutheast1:default:return t.cvApSoutheast1}}validateEvent(t){typeof t.type!="string"&&this.logError(new Error("Event type is required."),!0),Gl.isObject(t.actionContext)||this.logError(new Error("Event actionContext is required."),!0),t.actionContext.entity||this.logError(new Error("Event actionContext entity is required."),!0)}async formatData(t){return{type:t.type,data:await this.getEventData(t),metadata:this.getEventMetadata(t)}}async getEventData(t){const r=t.actionContext,n=this.getPlatformMetadata(),i=await this.getUserData(),a=await this.getSessionData(),o={name:this.options.productName,version:this.options.productVersion};this.options.productVariant&&(o.variant=this.options.productVariant);const l={user:i,action:r,platform:n,product:o,session:a};this.utmParameters&&(l.utm=this.utmParameters);const u=this.extractData(t),f=Object.keys(l).map(h=>h.toLowerCase()),d=Object.keys(u).map(h=>h.toLowerCase());return f.forEach(h=>{d.includes(h)&&this.logError(new Error(`${h} is a reserved key.`),!0)}),{...l,...u}}extractData(t){return Gl.isFunction(this.options.formatData)?this.options.formatData(t):{[t.actionContext.entity]:t.data}}async getUserData(){var r,n,i;let t;try{t=await((n=(r=this.options).getProfileId)==null?void 0:n.call(r))}catch(a){this.logError(a)}try{const a=await this.options.getUser();return a!=null&&a.id?{id:a.id,role:((i=a.role)==null?void 0:i.toLowerCase())||dX,userGroup:(a.userGroup??mte.Unknown).toLowerCase(),yearGroup:this.normalizeYearGroup(a.yearGroup),profileId:t,customer:{id:a.customerId,name:a.customerName,customerGuid:a.customerGuid,crmId:a.crmId,country:a.countryCode,region:await this.getRegion(),openCustomer:!1,accessPolicy:a.accessPolicy}}:t?{profileId:t}:void 0}catch(a){this.logError(a)}}async getRegion(){let t=this.options.regionName;try{const r=await this.options.getUser();r!=null&&r.instanceRegion&&(t=r.instanceRegion)}catch(r){this.logError(r)}return t||this.logError(new Error("RegionName is not set."),!0),this.getRegionByName(t.toLowerCase())}async getSessionData(){try{const t=await this.options.getUser();return{...uX.getClientSessionData(t==null?void 0:t.id),authSessionId:t==null?void 0:t.sessionId}}catch(t){return console.error(t),uX.getClientSessionData(null)}}getPlatformMetadata(){var r,n;const t={url:window.location.href,referrer:document.referrer};return(r=this.attributionData)!=null&&r.internalReferrer&&(t.internalReferrer=this.attributionData.internalReferrer),(n=this.attributionData)!=null&&n.originalReferrer&&(t.originalReferrer=this.attributionData.originalReferrer),{browser:lX.getBrowser(),os:lX.getOperatingSystem(),request:t,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}getEventMetadata(t){return{client:{name:`${this.name}.ts`,version:sLe.version,region:this.getRegionByName(this.options.regionName)},timestamp:new Date().toISOString(),eventVersion:t.eventVersion}}getRegionByName(t){let r;return Object.values($De).forEach(n=>{n.systemName===t&&(r=n)}),r}normalizeYearGroup(t){return t?t.toLowerCase().split(" ").join("_"):dX}logError(t,r,...n){if(this.options.logError&&this.options.logError(t,...n),r)throw t}}const Hg=class Hg extends za{constructor(t){super(t)}shouldLog(t){return!0}log(t){}isType(t){return t===Hg.type}};Hg.type="BaseAnalyticsClient";let kC=Hg;class cLe extends kC{get name(){return"DebuggerClient"}shouldLog(){return zm.isDevelopment}log(t){const r=yZ(t);for(const n in t){const i=r[n];(i instanceof mu||i instanceof Hm)&&(r[n]=i.toJSON())}console.log("Event Debugger: ",r)}}const fLe={Exchange:"exchange.web"},Jr={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/(^(?!.*Edge).*Chrome)|(CriOS)/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i,tablet:/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i,mobile:/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/},uu="Unknown";function gf(e,t,r){const n=t.exec(r)||[];let[i]=n;return i||(i=uu),{browser:e,version:i}}function Ll(e,t,r){if(!t)return{os:e,version:uu};const n=t.exec(r),i=n&&n.length?n[0].trim():uu;return{os:e,version:i}}function dLe(e,t){const r={os:e};return Jr.win2000.test(t)&&(r.version="2000"),Jr.winXP.test(t)&&(r.version="XP"),Jr.winVista.test(t)&&(r.version="Vista"),Jr.win7.test(t)&&(r.version="7"),Jr.win8.test(t)&&(r.version="8"),Jr.win81.test(t)&&(r.version="8.1"),Jr.win10.test(t)&&(r.version="10"),r.version||(r.version=uu),r}const yh={getDeviceType(){const e=window.navigator.userAgent;return Jr.mobileDevice.test(e)?Jr.iphone.test(e)?"iPhone":Jr.ipad.test(e)?"iPad":Jr.android.test(e)?"Android":Jr.blackberry.test(e)?"Blackberry":Jr.windowsPhone.test(e)?"Windows Phone":uu:"Desktop"},getOperatingSystem(){const e=window.navigator.userAgent;return Jr.android.test(e)?Ll("Android",Jr.androidVersion,e):Jr.iphone.test(e)||Jr.ipad.test(e)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1?Ll("iOS",Jr.iosVersion,e):Jr.linux.test(e)?Ll("Linux",null,e):Jr.unix.test(e)?Ll("Unix",null,e):Jr.mac.test(e)?Ll("Macintosh",Jr.osxVersion,e):Jr.windows.test(e)?dLe("Windows",e):Jr.blackberry.test(e)?Ll("BlackBerry",Jr.blackberryVersion,e):Jr.windowsPhone.test(e)?Ll("Windows Phone",Jr.windowsPhoneVersion,e):{os:uu,version:uu}},getBrowser(){const e=window.navigator.userAgent;return Jr.chrome.test(e)?gf("Chrome",Jr.generalVersion,e):Jr.firefox.test(e)?gf("Firefox",Jr.generalVersion,e):Jr.safari.test(e)?gf("Safari",Jr.generalVersion,e):Jr.ie.test(e)?gf("Internet Explorer",Jr.ieVersion,e):Jr.edge.test(e)?gf("Edge",Jr.edgeVersion,e):Jr.opera.test(e)?gf("Opera",Jr.operaVersion,e):{browser:uu,version:uu}},isTouchScreen(){return!!("ontouchstart"in window||navigator.maxTouchPoints)},isTabletOrMobile(){return yh.isTouchScreen()?Jr.tablet.test(navigator.userAgent)||Jr.mobile.test(navigator.userAgent):!1},isAndroid(){return yh.getOperatingSystem().os==="Android"},isIOS(){return yh.getOperatingSystem().os==="iOS"}},zg=class zg extends za{enrich(t,r){}isType(t){return t===zg.type}};zg.type="BaseAnalyticsEnricher";let DC=zg;class hLe extends DC{constructor(t){super(t),this.productName=t.productName,this.productVersion=t.productVersion}get name(){return"CoreContextEnricher"}shouldEnrich(t){return!0}enrich(t,r){this.shouldEnrich(t)||r(t),t.enrich("coreContext",this.getCoreContext()),r(t)}getCoreContext(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}getTimestamp(){return Jl.getUtcISOString()}getProductInfo(){return{name:this.productName,version:this.productVersion}}getRequestInfo(){return{referrer:Dn.GetCurrentReferrer(),requestUrl:Dn.GetCurrentUrl()}}getClientInfo(){const t=yh.getOperatingSystem(),r=yh.getBrowser();return{os:t.os,osVersion:t.version,browser:r.browser,browserVersion:r.version,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}}class pLe extends xc{}class vLe extends pLe{get name(){return"EventTransport"}get channelName(){return"event:transport"}publish(t){this.getChannel().trigger(Cf.Outlet,t)}subscribe(t){const r=t,n=i=>{Ao.isFunction(r.shouldLog)&&!r.shouldLog(i)||t.log(i)};rn(r.listenTo)?r.listenTo(this.getChannel(),Cf.Outlet,n):this.listenTo(this.getChannel(),Cf.Outlet,n)}}const oi={passthrough(e){return e}},gr={allow:()=>!0,restrict:()=>!1},gLe={getShareData(e){var l,u,f,d;const{id:t,search:r,pagePositionIndex:n,shareId:i,shareType:a}=e,o={id:t,search:r,pagePositionIndex:n,shareId:i,shareType:a};return(l=e.video)!=null&&l.id&&(o.video={id:e.video.id}),(u=e.clip)!=null&&u.id&&(o.clip={id:e.clip.id},(f=e.clip.video)!=null&&f.id&&(o.video={id:(d=e.clip.video)==null?void 0:d.id})),e.shareCount!==void 0&&(o.shareCount=e.shareCount),e.embedDetails&&(o.embedDetails=e.embedDetails),o}},Sf={getUploadData(e,t){const{entity:r}=t.actionContext;if(r===kn.Video)return Sf.formatVideoUpload(e,t);if(r===kn.Resource||r===kn.Subtitle)return Sf.formatResourceUpload(e);if(r===kn.Banner||r===kn.Thumbnail||r===kn.MixedMedia)return e;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload(e,t){const{workflowPhase:r}=t.actionContext;if(r===el.Start)return Sf.getStartVideoUploadData(e);if(r===el.Discard)return Sf.getDiscardVideoUploadData(e);if(r===el.Complete)return Sf.getCompleteUploadData(e)},getStartVideoUploadData(e){return!e||!e.length?[]:(e instanceof FileList&&(e=Array.from(e)),e.map(t=>({fileName:t.name,size:t.size,type:t.type,count:e.length})))},getDiscardVideoUploadData(e){const t=r=>{const{type:n,name:i,status:a,cvUpload:o}=r.file,l={fileName:i,count:Array.isArray(e)?e.length:1,type:n,status:a};return r.progress&&(l.progress=r.progress.toFixed(2)),o&&(l.uploadId=o.uploadId),l};return Array.isArray(e)?e.map(r=>t(r)):[t(e)]},getCompleteUploadData(e){return!e||!e.length?[]:e.map(t=>{const{fileName:r,libraryId:n,folderId:i,autoCaption:a}=t;return{fileName:r,libraryId:n,folderId:i,autoCaption:a,count:e.length}})},formatResourceUpload(e){const{id:t,name:r}=e,n={id:t,name:r};return Gl.isObject(e.metadata)&&(n.type=e.metadata.type),n}},mLe={[jt.Navigate]:gr.restrict,[jt.Click]:gr.allow,[jt.Search]:gr.allow,[jt.InstantSearch]:gr.allow,[jt.Play]:gr.allow,[jt.Stream]:gr.allow,[jt.WebPlayerStream]:gr.allow,[jt.StreamProgress]:gr.allow,[jt.PreviewStreamProgress]:gr.allow,[jt.StreamBuffering]:gr.allow,[jt.Rename]:gr.allow,[jt.Move]:gr.allow,[jt.Create]:gr.allow,[jt.Delete]:gr.allow,[jt.Associate]:gr.allow,[jt.Dissociate]:gr.allow,[jt.Filter]:gr.allow,[jt.Sort]:gr.allow,[jt.Approve]:gr.allow,[jt.Reject]:gr.allow,[jt.Disable]:gr.allow,[jt.Upload]:gr.allow,[jt.Download]:gr.allow,[jt.SetAccess]:gr.allow,[jt.AddToLocalCache]:gr.restrict,[jt.Share]:gr.allow,[jt.Unshare]:gr.allow,[jt.Edit]:gr.allow,[jt.Suggest]:gr.allow,[jt.Favourite]:gr.allow,[jt.WorkspaceAdd]:gr.allow,[jt.ResolveWarning]:gr.allow,[jt.DismissWarning]:gr.allow,[jt.EditAssoc]:gr.allow,[jt.Follow]:gr.allow,[jt.Print]:gr.allow,[jt.Copy]:gr.allow,[jt.Activate]:gr.allow,[jt.VerifyEmail]:gr.allow,[jt.ChangePassword]:gr.allow,[jt.Export]:gr.allow,[jt.SendEmail]:gr.allow,[jt.Publish]:gr.allow,[jt.Submit]:gr.allow,[jt.Complete]:gr.allow,[jt.Archive]:gr.allow,[jt.Promote]:gr.allow,[jt.Demote]:gr.allow,[jt.BulkAction]:gr.allow,[jt.Remove]:gr.allow,[jt.Dismiss]:gr.allow,[jt.Open]:gr.allow,[jt.Hide]:gr.allow,[jt.PageView]:gr.allow,[jt.Select]:gr.allow,[jt.SwitchCustomer]:gr.allow,[jt.Focus]:gr.allow,[jt.Blur]:gr.allow,[jt.Hover]:gr.allow,[jt.Unhover]:gr.allow},yLe={[jt.Search]:oi.passthrough,[jt.InstantSearch]:oi.passthrough,[jt.Play]:oi.passthrough,[jt.Stream]:oi.passthrough,[jt.StreamProgress]:oi.passthrough,[jt.PreviewStreamProgress]:oi.passthrough,[jt.StreamBuffering]:oi.passthrough,[jt.Click]:oi.passthrough,[jt.Filter]:oi.passthrough,[jt.Sort]:oi.passthrough,[jt.SetAccess]:oi.passthrough,[jt.Approve]:oi.passthrough,[jt.Reject]:oi.passthrough,[jt.Create]:oi.passthrough,[jt.Delete]:oi.passthrough,[jt.Rename]:oi.passthrough,[jt.Move]:oi.passthrough,[jt.Edit]:oi.passthrough,[jt.Share]:gLe.getShareData,[jt.Disable]:oi.passthrough,[jt.Suggest]:oi.passthrough,[jt.Upload]:Sf.getUploadData,[jt.ResolveWarning]:oi.passthrough,[jt.DismissWarning]:oi.passthrough,[jt.Follow]:oi.passthrough,[jt.Print]:oi.passthrough,[jt.Copy]:oi.passthrough},hX={[jt.Search]:()=>"search",[jt.InstantSearch]:()=>"search",[jt.Filter]:()=>"filter",[jt.Stream]:()=>kn.Video},pX={user:"target_user",product:"target_product"},_Le={[jt.StreamProgress]:!0,[jt.WebPlayerStream]:!0,[jt.PreviewStreamProgress]:!0,[jt.StreamBuffering]:!0},vX={shouldLog(e){return!!mLe[e.type](e)},formatData(e){const t=yLe[e.type],r=Gl.isFunction(t)?t(e.data,e):e.data;if(_Le[e.type])return r;let n=e.actionContext.entity;return Gl.isFunction(hX[e.type])&&(n=hX[e.type](e)),pX[n]&&(n=pX[n]),{[n]:r}}},ELe="staff";async function SLe(e){try{return await qa(e.store,ta.accessPolicy())}catch{return null}}const Gne={async getUser(e){const t=await qa(e.store,ta.currentUser());if(!t.isAuthenticated)return null;const r=qa(e.store,Nne.customer(t.customerId)),n=qa(e.store,ta.user(t.id)),i=SLe(e);return Gne.mapCurrentUserToAnalyticsUser(t,await n,await r,await i)},mapCurrentUserToAnalyticsUser(e,t,r,n){var a;const i=jl.getUserType(t);return{id:e==null?void 0:e.id,countryCode:e==null?void 0:e.countryCode,contentRegion:e==null?void 0:e.contentRegion,instanceRegion:e==null?void 0:e.instanceRegion,customerId:e==null?void 0:e.customerId,customerGuid:r==null?void 0:r.customerGuid,customerName:e==null?void 0:e.customerName,crmId:r==null?void 0:r.crmId,role:e==null?void 0:e.role,sessionId:e==null?void 0:e.sessionId,userGroup:i,yearGroup:i===Tf.Staff?ELe:(a=t==null?void 0:t.masterYearGroup)==null?void 0:a.name,accessPolicy:n==null?void 0:n.id}}},wLe={logError(e,...t){var r;Ao.isFunction(trackJs==null?void 0:trackJs.track)&&(t&&Ao.isFunction((r=trackJs.console)==null?void 0:r.info)&&trackJs.console.info(...t),trackJs.track(e))}};async function bLe(e,t){const[r,n]=await Promise.all([qa(e.store,ta.currentUser()),qa(e.store,al.config())]),i=qa(e.store,al.version()),a=new CDe({user:r,config:n});cu.registerSingleton(a),a.registerTransport(vLe),a.registerClient(cLe);const o=await i;a.registerClient(lLe,{productName:fLe.Exchange,productVersion:o,regionName:r.instanceRegion,collectionApiUrls:n.collectionApiUrls,collectionApiClientId:n.collectionApiClientId,getUser:()=>Gne.getUser(e),shouldLog:vX.shouldLog,formatData:vX.formatData,logError:wLe.logError,logUtmParameters:!0}),a.registerEnricher(hLe,{productName:"ClickView Exchange",productVersion:o}),t(e)}async function TLe(e,t){try{const r=await qa(e.store,al.config()),n=await qa(e.store,ta.currentUser());xC.initialize({product:Yo.Primary,liteSupportSiteUrl:r.liteSupportSiteUrl,instanceRegion:n.instanceRegion})}finally{t(e)}}const gX={locale(){return{url:"/api/locale",key:"locale",bootstrapName:Zl.LOCALE}},phrases(){return{url:"/api/phrases",key:"phrases",bootstrapName:Zl.PHRASES}}};async function ALe(e,t){let r;try{r=qa(e.store,gX.phrases());const n=qa(e.store,gX.locale());Gr.setConfig({locale:await n,phrases:await r})}catch(n){console.error(n)}finally{t(e)}}class RLe extends za{constructor(t){super(),this.size=t.size,this.cache={},this.cachedkeys=[],this.store=t.store}get name(){return Bg.Fifo}removeCacheKey(t){this.cachedkeys=Vx(this.cachedkeys,t)}has(t){return!!this.cache[t]}get(t){return this.cache[t]}set(t,r){(!t||!r)&&dr.throw(new Sn("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(t)&&this.removeCacheKey(t),this.cachedkeys.push(t),this.cache[t]=r,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}getOrSet(t,r){if(this.has(t))return this.get(t);const n=r();return this.set(t,n),n}remove(t){return this.has(t)?(delete this.cache[t],this.removeCacheKey(t),!0):!1}invalidate(t,r,n=!1){const i=QZ(this.cachedkeys,this.cachedkeys);let a=[];Aa(t,o=>{i[o]&&a.push(o);const l=new RegExp(o,"i"),u=ic(i,f=>l.test(f));a.push(...u)}),a.length&&(a=Th(a),Aa(a,o=>{delete this.cache[o],rn(r)&&r(o)}),this.cachedkeys=Vx(this.cachedkeys,...a)),!(!this.store||!n)&&this.store.dispatch({type:wa.INVALIDATE,keys:t})}}function xLe(e,t){cu.registerInstance(RLe,{size:100}),t(e)}var Ul=(e=>(e[e.Unknown=0]="Unknown",e[e.BadRequest=1]="BadRequest",e[e.Unauthorized=2]="Unauthorized",e[e.Forbidden=3]="Forbidden",e[e.NotFound=4]="NotFound",e[e.InternalServer=5]="InternalServer",e))(Ul||{});const CLe={type:Ul.Unknown,message:"",code:0},OLe={parseErrorMessage(e,t,r){if(!r||!r.errorCode)return e[t];let n=`${r.errorCode}`;return r.errorSubCode&&(n+=`.${r.errorSubCode}`),e[n]||e[t]}};class ILe extends xc{constructor(t){super(t),Ah.ajaxSetup({cache:t.cacheRequests??!1,contentType:"application/json; charset=utf-8"}),this.successMiddleware={},this.errorMiddleware={},this.dataServiceErrorMessageMappings=t.dataServiceErrorMessageMappings,this.defaultErrorMessageKey=t.defaultErrorMessageKey}get name(){return Vg.Ajax}parseUrl(t){const r=document.createElement("a");return r.href=t,r.host===""&&(r.href=r.href),r}makeHttps(t){const r=this.parseUrl(t);return r.protocol==="http:"&&(r.protocol="https:"),r.href}base(t,r,n,i={}){n||(n=Vi.GET);const a=Je.defaults(i,{forceHttps:!1}),o={url:t,method:n,type:n};r&&(o.data=n===Vi.POST||n===Vi.PUT?JSON.stringify(r):r),a.forceHttps&&(o.url=this.makeHttps(o.url)),a.traditional&&(o.traditional=a.traditional);const l=Ah.ajax(o);return Je.keys(this.successMiddleware).length&&l.done(Je.values(this.successMiddleware)),Je.keys(this.errorMiddleware).length&&l.fail(Je.values(this.errorMiddleware)),l}create(t,r,n){const{channel:i,successEvent:a,errorEvent:o}=n;this.base(t,r,Vi.POST).done((l,u,f)=>i.trigger(a,l,u,f)).fail((l,u,f)=>i.trigger(o,l,u,f))}read(t,r){const{channel:n,successEvent:i,errorEvent:a}=r;this.base(t,null,Vi.GET).done((o,l,u)=>{n.trigger(i,o,l,u)}).fail((o,l,u)=>{n.trigger(a,o,l,u)})}update(t,r,n){const{channel:i,successEvent:a,errorEvent:o}=n;this.base(t,r,Vi.PUT).done((l,u,f)=>i.trigger(a,l,u,f)).fail((l,u,f)=>i.trigger(o,l,u,f))}delete(t,r){const{channel:n,successEvent:i,errorEvent:a}=r;this.base(t,null,Vi.DELETE).done((o,l,u)=>n.trigger(i,o,l,u)).fail((o,l,u)=>n.trigger(a,o,l,u))}useMiddleware(t,r){this.successMiddleware[t]||(this.successMiddleware[t]=r)}useErrorMiddleware(t,r){this.errorMiddleware[t]||(this.errorMiddleware[t]=r)}parseError(t){const r=t.responseJSON,n=CLe;switch(n.code=t.status,n.message=OLe.parseErrorMessage(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,r),t.status){case 400:n.type=Ul.BadRequest;break;case 401:n.type=Ul.Unauthorized;break;case 403:n.type=Ul.Forbidden;break;case 404:n.type=Ul.NotFound;break;case 500:n.type=Ul.InternalServer;break}return n}}function PLe(e,t){cu.registerSingleton(new ILe({dataServiceErrorMessageMappings:{temp:"Error"},defaultErrorMessageKey:"temp",cacheRequests:!0})),t(e)}const _P=new $ye({region:"#app",layoutService:new Nye({})});_P.addInitializationStep(tke).addInitializationStep(xLe).addInitializationStep(PLe).addInitializationStep(RDe).addInitializationStep(ALe).addInitializationStep(Gke).addInitializationStep(bLe).addInitializationStep(UIe).addInitializationStep(GAe).addInitializationStep(TLe);_P.addStartUpStep(rke);_P.start();export{Uye as $,Ai as A,Nh as B,OI as C,Dc as D,zre as E,Ao as F,oc as G,Vi as H,du as I,jl as J,Ql as K,Gr as L,Wre as M,fy as N,Tf as O,Zre as P,abe as Q,Dr as R,WY as S,kG as T,Xo as U,nPe as V,$we as W,Ic as X,i0e as Y,ys as Z,oPe as _,So as a,Gwe as a$,hf as a0,vIe as a1,NLe as a2,ea as a3,Nne as a4,ta as a5,Yo as a6,tRe as a7,Mr as a8,ah as a9,QIe as aA,Jl as aB,oSe as aC,al as aD,oy as aE,yh as aF,Sn as aG,MLe as aH,Swe as aI,CC as aJ,IY as aK,lP as aL,g1e as aM,mEe as aN,QI as aO,mn as aP,Ml as aQ,ms as aR,bwe as aS,rI as aT,Ine as aU,Eo as aV,$l as aW,lPe as aX,BPe as aY,Lne as aZ,ywe as a_,ZI as aa,Ba as ab,el as ac,Ta as ad,kn as ae,jt as af,Dn as ag,XI as ah,fu as ai,LLe as aj,wIe as ak,ks as al,OAe as am,HK as an,vs as ao,yy as ap,Ro as aq,Ju as ar,Hi as as,iPe as at,iu as au,vte as av,Yl as aw,Ite as ax,Twe as ay,VLe as az,ki as b,ld as b$,Kwe as b0,Wx as b1,Gee as b2,Jee as b3,Ls as b4,DLe as b5,Rh as b6,gte as b7,uX as b8,lLe as b9,hC as bA,UI as bB,hu as bC,ix as bD,NIe as bE,Are as bF,io as bG,ch as bH,yr as bI,eRe as bJ,Rf as bK,RC as bL,WIe as bM,iy as bN,$f as bO,pte as bP,bIe as bQ,TIe as bR,ULe as bS,dEe as bT,E_e as bU,cd as bV,w_e as bW,kee as bX,hEe as bY,tEe as bZ,up as b_,vX as ba,Ewe as bb,tC as bc,RI as bd,xke as be,_we as bf,wwe as bg,Oae as bh,Wce as bi,wae as bj,nm as bk,xse as bl,eue as bm,nue as bn,RQ as bo,qce as bp,Gce as bq,jae as br,Roe as bs,lO as bt,ple as bu,Ele as bv,sp as bw,Xx as bx,Vee as by,Awe as bz,ac as c,lEe as c0,lI as c1,Km as c2,k_e as c3,dI as c4,Nee as c5,Cee as c6,V_e as c7,Tee as c8,M_e as c9,v_e as ca,Pee as cb,T_e as cc,lp as cd,vEe as ce,aEe as cf,pEe as cg,Oee as ch,fEe as ci,_i as cj,Lke as ck,BLe as cl,qLe as cm,cu as cn,KAe as co,ry as cp,yn as d,v0e as e,nn as f,xte as g,Hwe as h,Ih as i,de as j,Oh as k,CAe as l,HLe as m,fP as n,Sp as o,wLe as p,dr as q,Se as r,UY as s,$v as t,XIe as u,Ko as v,eC as w,ec as x,Mn as y,Hr as z};
|
|
219
|
+
//# sourceMappingURL=app-DlxnnX-Y.js.map
|