@clickview/streamable-learning 0.48.0-rc.0 → 0.48.0-rc.1
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/.vite/manifest.json +646 -646
- package/dist/bundles.json +1 -1
- package/dist/css/DU3tPCD_.chunk.css +12 -0
- package/dist/en.json +1 -1
- package/dist/scripts/{m9QbGES0.chunk.js → ACTQklJQ.chunk.js} +2 -2
- package/dist/scripts/{m9QbGES0.chunk.js.map → ACTQklJQ.chunk.js.map} +1 -1
- package/dist/scripts/{B7if0Lk52.chunk.js → B-qOny0I2.chunk.js} +2 -2
- package/dist/scripts/{B7if0Lk52.chunk.js.map → B-qOny0I2.chunk.js.map} +1 -1
- package/dist/scripts/{BSjm_rCE.chunk.js → B5jBIPaP.chunk.js} +2 -2
- package/dist/scripts/{BSjm_rCE.chunk.js.map → B5jBIPaP.chunk.js.map} +1 -1
- package/dist/scripts/{CPkKuTSK2.chunk.js → B703cBe72.chunk.js} +2 -2
- package/dist/scripts/{CPkKuTSK2.chunk.js.map → B703cBe72.chunk.js.map} +1 -1
- package/dist/scripts/{DNNNPLMp.chunk.js → B7iwtSij.chunk.js} +2 -2
- package/dist/scripts/{DNNNPLMp.chunk.js.map → B7iwtSij.chunk.js.map} +1 -1
- package/dist/scripts/{CXNve4Wq2.chunk.js → BCBfXCYM2.chunk.js} +2 -2
- package/dist/scripts/{CXNve4Wq2.chunk.js.map → BCBfXCYM2.chunk.js.map} +1 -1
- package/dist/scripts/{CoYNU7We2.chunk.js → BKnxYKDu2.chunk.js} +2 -2
- package/dist/scripts/{CoYNU7We2.chunk.js.map → BKnxYKDu2.chunk.js.map} +1 -1
- package/dist/scripts/{BoxedFO8.chunk.js → BLrjbrp8.chunk.js} +2 -2
- package/dist/scripts/{BoxedFO8.chunk.js.map → BLrjbrp8.chunk.js.map} +1 -1
- package/dist/scripts/{CibcLNJP2.chunk.js → BTYwcYPL2.chunk.js} +2 -2
- package/dist/scripts/{CibcLNJP2.chunk.js.map → BTYwcYPL2.chunk.js.map} +1 -1
- package/dist/scripts/{CwI-7tep2.chunk.js → BXJetawx2.chunk.js} +2 -2
- package/dist/scripts/{CwI-7tep2.chunk.js.map → BXJetawx2.chunk.js.map} +1 -1
- package/dist/scripts/{BV74ZRR22.chunk.js → BZOcEcTA2.chunk.js} +2 -2
- package/dist/scripts/{BV74ZRR22.chunk.js.map → BZOcEcTA2.chunk.js.map} +1 -1
- package/dist/scripts/{DxsW8K0n2.chunk.js → BaMNOAYj2.chunk.js} +2 -2
- package/dist/scripts/{DxsW8K0n2.chunk.js.map → BaMNOAYj2.chunk.js.map} +1 -1
- package/dist/scripts/{DrDQfaFN2.chunk.js → BihZ4r0z2.chunk.js} +3 -3
- package/dist/scripts/{DrDQfaFN2.chunk.js.map → BihZ4r0z2.chunk.js.map} +1 -1
- package/dist/scripts/{CK6c6uHp2.chunk.js → BpgHKWR52.chunk.js} +2 -2
- package/dist/scripts/{CK6c6uHp2.chunk.js.map → BpgHKWR52.chunk.js.map} +1 -1
- package/dist/scripts/{JtFbyaXc.chunk.js → Br0Uc4GG.chunk.js} +2 -2
- package/dist/scripts/{JtFbyaXc.chunk.js.map → Br0Uc4GG.chunk.js.map} +1 -1
- package/dist/scripts/{Dd8r1SE32.chunk.js → BsAo7Lri2.chunk.js} +2 -2
- package/dist/scripts/{Dd8r1SE32.chunk.js.map → BsAo7Lri2.chunk.js.map} +1 -1
- package/dist/scripts/{BMjES83N2.chunk.js → BvJXPFoz2.chunk.js} +2 -2
- package/dist/scripts/{BMjES83N2.chunk.js.map → BvJXPFoz2.chunk.js.map} +1 -1
- package/dist/scripts/{CpFOQcL7.chunk.js → BxypZGPK.chunk.js} +2 -2
- package/dist/scripts/{CpFOQcL7.chunk.js.map → BxypZGPK.chunk.js.map} +1 -1
- package/dist/scripts/C4MLxDS-.chunk.js +1 -0
- package/dist/scripts/{DLp7yHzT2.chunk.js → C5i1HsPp2.chunk.js} +2 -2
- package/dist/scripts/{DLp7yHzT2.chunk.js.map → C5i1HsPp2.chunk.js.map} +1 -1
- package/dist/scripts/{Bkv1Tbyu.chunk.js → CCoZQmgX.chunk.js} +2 -2
- package/dist/scripts/{Bkv1Tbyu.chunk.js.map → CCoZQmgX.chunk.js.map} +1 -1
- package/dist/scripts/{Clh6wBrg.chunk.js → CGxa1Jzq.chunk.js} +2 -2
- package/dist/scripts/{Clh6wBrg.chunk.js.map → CGxa1Jzq.chunk.js.map} +1 -1
- package/dist/scripts/{DAvXFgC62.chunk.js → CKdklY2o2.chunk.js} +2 -2
- package/dist/scripts/{DAvXFgC62.chunk.js.map → CKdklY2o2.chunk.js.map} +1 -1
- package/dist/scripts/{CeWjJPIz.chunk.js → CN8PeBwg.chunk.js} +2 -2
- package/dist/scripts/{CeWjJPIz.chunk.js.map → CN8PeBwg.chunk.js.map} +1 -1
- package/dist/scripts/{B1jitqYS2.chunk.js → CNJrD44-2.chunk.js} +2 -2
- package/dist/scripts/{B1jitqYS2.chunk.js.map → CNJrD44-2.chunk.js.map} +1 -1
- package/dist/scripts/{DIHDe4Sg.chunk.js → CNmmq34f.chunk.js} +2 -2
- package/dist/scripts/{DIHDe4Sg.chunk.js.map → CNmmq34f.chunk.js.map} +1 -1
- package/dist/scripts/{CikSQKH-.chunk.js → CUUUI6pl.chunk.js} +2 -2
- package/dist/scripts/{CikSQKH-.chunk.js.map → CUUUI6pl.chunk.js.map} +1 -1
- package/dist/scripts/{DNO0KpY72.chunk.js → CWFInhB82.chunk.js} +2 -2
- package/dist/scripts/{DNO0KpY72.chunk.js.map → CWFInhB82.chunk.js.map} +1 -1
- package/dist/scripts/{i2-k6ULv2.chunk.js → CbLL7dIz2.chunk.js} +2 -2
- package/dist/scripts/{i2-k6ULv2.chunk.js.map → CbLL7dIz2.chunk.js.map} +1 -1
- package/dist/scripts/{KCdpQ8qv2.chunk.js → Ce1TZZdV2.chunk.js} +2 -2
- package/dist/scripts/{KCdpQ8qv2.chunk.js.map → Ce1TZZdV2.chunk.js.map} +1 -1
- package/dist/scripts/{NV4_mMU8.chunk.js → Ces-KTwe.chunk.js} +2 -2
- package/dist/scripts/{NV4_mMU8.chunk.js.map → Ces-KTwe.chunk.js.map} +1 -1
- package/dist/scripts/{0xQRFMBY.chunk.js → CkYqp83j.chunk.js} +2 -2
- package/dist/scripts/{0xQRFMBY.chunk.js.map → CkYqp83j.chunk.js.map} +1 -1
- package/dist/scripts/{DvL3J2BU.chunk.js → CrCAJmt6.chunk.js} +2 -2
- package/dist/scripts/{DvL3J2BU.chunk.js.map → CrCAJmt6.chunk.js.map} +1 -1
- package/dist/scripts/{CcDgbmw52.chunk.js → CsC3VVvE2.chunk.js} +2 -2
- package/dist/scripts/{CcDgbmw52.chunk.js.map → CsC3VVvE2.chunk.js.map} +1 -1
- package/dist/scripts/{C9UjF0q6.chunk.js → D0SYGnyF.chunk.js} +2 -2
- package/dist/scripts/{C9UjF0q6.chunk.js.map → D0SYGnyF.chunk.js.map} +1 -1
- package/dist/scripts/{BqO6i89w2.chunk.js → D7tastET2.chunk.js} +2 -2
- package/dist/scripts/{BqO6i89w2.chunk.js.map → D7tastET2.chunk.js.map} +1 -1
- package/dist/scripts/{CeI-LCE-.chunk.js → DIavEegC.chunk.js} +2 -2
- package/dist/scripts/{CeI-LCE-.chunk.js.map → DIavEegC.chunk.js.map} +1 -1
- package/dist/scripts/{BKbKu9Rp.chunk.js → DK3xia1t.chunk.js} +2 -2
- package/dist/scripts/{BKbKu9Rp.chunk.js.map → DK3xia1t.chunk.js.map} +1 -1
- package/dist/scripts/{BCdnm1Nn.chunk.js → DKnZ8BaN.chunk.js} +2 -2
- package/dist/scripts/{BCdnm1Nn.chunk.js.map → DKnZ8BaN.chunk.js.map} +1 -1
- package/dist/scripts/{awemA_vU2.chunk.js → DO8_mR5i2.chunk.js} +2 -2
- package/dist/scripts/{awemA_vU2.chunk.js.map → DO8_mR5i2.chunk.js.map} +1 -1
- package/dist/scripts/{DlQrdOls.chunk.js → DR80oZtZ.chunk.js} +2 -2
- package/dist/scripts/{DlQrdOls.chunk.js.map → DR80oZtZ.chunk.js.map} +1 -1
- package/dist/scripts/{DMq5Gp-U2.chunk.js → DU1SE31v2.chunk.js} +2 -2
- package/dist/scripts/{DMq5Gp-U2.chunk.js.map → DU1SE31v2.chunk.js.map} +1 -1
- package/dist/scripts/{XnBhLH-02.chunk.js → Dj4AeYQQ2.chunk.js} +2 -2
- package/dist/scripts/{XnBhLH-02.chunk.js.map → Dj4AeYQQ2.chunk.js.map} +1 -1
- package/dist/scripts/{CmrPRojb.chunk.js → DnSy_Myx.chunk.js} +2 -2
- package/dist/scripts/{CmrPRojb.chunk.js.map → DnSy_Myx.chunk.js.map} +1 -1
- package/dist/scripts/{D0vsmyva.chunk.js → Dr1flAez.chunk.js} +2 -2
- package/dist/scripts/{D0vsmyva.chunk.js.map → Dr1flAez.chunk.js.map} +1 -1
- package/dist/scripts/{BXT8nHry2.chunk.js → DwzBzBlI2.chunk.js} +2 -2
- package/dist/scripts/{BXT8nHry2.chunk.js.map → DwzBzBlI2.chunk.js.map} +1 -1
- package/dist/scripts/{CvqqZmNo2.chunk.js → DyT1OGvP2.chunk.js} +2 -2
- package/dist/scripts/{CvqqZmNo2.chunk.js.map → DyT1OGvP2.chunk.js.map} +1 -1
- package/dist/scripts/{E9tNds1l.chunk.js → Llxar-VU.chunk.js} +2 -2
- package/dist/scripts/{E9tNds1l.chunk.js.map → Llxar-VU.chunk.js.map} +1 -1
- package/dist/scripts/{app-B1XBsz23.js → app-BIigh9wv.js} +4 -4
- package/dist/scripts/{app-B1XBsz23.js.map → app-BIigh9wv.js.map} +1 -1
- package/dist/scripts/{BMl02f_62.chunk.js → bycmewy72.chunk.js} +2 -2
- package/dist/scripts/{BMl02f_62.chunk.js.map → bycmewy72.chunk.js.map} +1 -1
- package/dist/scripts/{DmfbtOlu.chunk.js → jWpq99N3.chunk.js} +2 -2
- package/dist/scripts/{DmfbtOlu.chunk.js.map → jWpq99N3.chunk.js.map} +1 -1
- package/dist/scripts/{BDliRFoa.chunk.js → oTYyWWB-.chunk.js} +2 -2
- package/dist/scripts/{BDliRFoa.chunk.js.map → oTYyWWB-.chunk.js.map} +1 -1
- package/dist/scripts/{lokG7Sha2.chunk.js → qcrBN1zR2.chunk.js} +2 -2
- package/dist/scripts/{lokG7Sha2.chunk.js.map → qcrBN1zR2.chunk.js.map} +1 -1
- package/dist/scripts/{UAcFqQzZ.chunk.js → smdLElLq.chunk.js} +2 -2
- package/dist/scripts/{UAcFqQzZ.chunk.js.map → smdLElLq.chunk.js.map} +1 -1
- package/dist/scripts/{D8_5yfHY2.chunk.js → tYi-sUb22.chunk.js} +2 -2
- package/dist/scripts/{D8_5yfHY2.chunk.js.map → tYi-sUb22.chunk.js.map} +1 -1
- package/package.json +1 -1
- package/dist/scripts/D5Jnyjf8.chunk.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["scripts/
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["scripts/Br0Uc4GG.chunk.js","scripts/Dp9qJj1C.chunk.js","scripts/Dun43GrB.chunk.js","scripts/BJvPfCvt.chunk.js","scripts/B3l7OlNe.chunk.js","scripts/ImQRQGZr.chunk.js","scripts/CFXUbsBS.chunk.js","scripts/BQ5XMoHG.chunk.js","scripts/B7tm2CBz.chunk.js","scripts/DjIdG9LL2.chunk.js","scripts/CAEQvGr_.chunk.js","scripts/C6L8Y-TQ.chunk.js","css/DXwbT8Tl.chunk.css","scripts/B20k2DA32.chunk.js","scripts/CEsevkum.chunk.js","scripts/CL1ST5J62.chunk.js","scripts/DO8_mR5i2.chunk.js","scripts/CyxOxJjg2.chunk.js","scripts/BbCIyIf_2.chunk.js","css/Cbi3KYBa.chunk.css","scripts/BsAo7Lri2.chunk.js","scripts/XBXkyvJG.chunk.js","scripts/Ca1QPe-q2.chunk.js","css/9awfngRG.chunk.css","scripts/Bt57Tmef2.chunk.js","scripts/CZ1r1Jgm2.chunk.js","css/CC5F5C8O.chunk.css","scripts/B-6uVsUw2.chunk.js","scripts/DXfGdqxs.chunk.js","css/BM1mrJH4.chunk.css","scripts/DrgVCnQA2.chunk.js","scripts/iuoIcGAm2.chunk.js","scripts/CE6Tgu462.chunk.js","css/QZyMlaR2.chunk.css","scripts/CKdklY2o2.chunk.js","scripts/DpDQnXqh2.chunk.js","scripts/LdxNQaUZ2.chunk.js","scripts/D2om474U2.chunk.js","css/CVEhXg1o.chunk.css","scripts/D7d5XFW82.chunk.js","scripts/C9tPKnK22.chunk.js","scripts/C5i1HsPp2.chunk.js","scripts/EF7Q4oN02.chunk.js","scripts/BF6BdGN-.chunk.js","scripts/BYYiNmLB.chunk.js","scripts/DeldjYRc.chunk.js","scripts/B-OL6Vs7.chunk.js","css/Cfuki2xQ.chunk.css","scripts/BaMNOAYj2.chunk.js","scripts/CMND6rmE.chunk.js","scripts/D6DqfSqx.chunk.js","scripts/D-InOh2-.chunk.js","scripts/B4Gws0mi.chunk.js","scripts/DfC3LfsK.chunk.js","scripts/D86qrFLE.chunk.js","scripts/8W5MLvcf.chunk.js","scripts/DBuCq5ws.chunk.js","scripts/H6wjCesG.chunk.js","scripts/C_llN0lX.chunk.js","scripts/B4z8dIrI2.chunk.js","scripts/B9ir5kiH2.chunk.js","scripts/DDn2E2a72.chunk.js","scripts/DlVp8-h62.chunk.js","css/FUAcQhsk.chunk.css","scripts/DvkIVzAf2.chunk.js","scripts/DygtVvI42.chunk.js","scripts/Bonea1G32.chunk.js","scripts/DUNFBIIl2.chunk.js","scripts/BDNPpv0K2.chunk.js","scripts/X4vTaPlk.chunk.js","scripts/CN1th_9f.chunk.js","scripts/GyXfxwOI.chunk.js","scripts/B_Nk4a8M.chunk.js","scripts/DOjVjWkc.chunk.js","css/9C8NtD22.chunk.css","scripts/CVaCZDos2.chunk.js","scripts/DnwEQ4qU2.chunk.js","css/BtfuP1Ql.chunk.css","scripts/CrCAJmt6.chunk.js","scripts/DK3xia1t.chunk.js","scripts/B8R4YVaF2.chunk.js","scripts/Bx_V3too2.chunk.js","scripts/CnDOpuFK.chunk.js","css/0ZqRj7up.chunk.css","scripts/B7iwtSij.chunk.js","scripts/B13dpWxS2.chunk.js","scripts/CE7XVl4t.chunk.js","css/Csd1uRZB.chunk.css","scripts/CxwN2xIE.chunk.js","scripts/epZn2FwZ.chunk.js","css/bAmLQLSh.chunk.css","scripts/Ces-KTwe.chunk.js","scripts/CCoZQmgX.chunk.js","scripts/CeyqMjfq.chunk.js","scripts/BoeUzfPw2.chunk.js","css/ovkTsYMl.chunk.css","scripts/NrXAMmgy2.chunk.js","scripts/m0EcLr2F.chunk.js","scripts/A9b1YA0E.chunk.js","css/DlOtoSz0.chunk.css","scripts/CoualKDX.chunk.js","css/CoeowyqG.chunk.css","scripts/DlFudnBx.chunk.js","scripts/LVrVQvKT.chunk.js","scripts/CZb3E982.chunk.js","scripts/DhknOwAy.chunk.js","scripts/BVWg3YHX.chunk.js","scripts/Bg4Ri2TO.chunk.js","scripts/iTHYgnO8.chunk.js","scripts/Cz6swPXe2.chunk.js","css/zFl67mql.chunk.css","css/B27vnbEi.chunk.css","scripts/C9ET3pjZ.chunk.js","scripts/BRiYVLuz.chunk.js","scripts/BEYV13jP2.chunk.js","scripts/BTqtjOL02.chunk.js","scripts/BlBCp_pE.chunk.js","css/BugV1Bpa.chunk.css","scripts/CGxa1Jzq.chunk.js","css/D-kQKsZN.chunk.css","scripts/DU1SE31v2.chunk.js","scripts/oTYyWWB-.chunk.js","scripts/DKnZ8BaN.chunk.js","scripts/fs-4GtPf.chunk.js","scripts/ClfNVaoj2.chunk.js","css/D87gfWFV.chunk.css","scripts/BpgHKWR52.chunk.js","scripts/Da5tDmIW2.chunk.js","scripts/BYFGYmGx2.chunk.js","scripts/BOTX-kIq.chunk.js","scripts/CUUUI6pl.chunk.js","css/BPdg7JW4.chunk.css","scripts/DIavEegC.chunk.js","scripts/DobKejA8.chunk.js","css/M2jceIC_.chunk.css","scripts/DDKwae_D2.chunk.js","scripts/Ct5auYPr2.chunk.js","css/C1NkrNqQ.chunk.css","scripts/ClGIvvk6.chunk.js","scripts/BBWlVBxr.chunk.js","css/QlN9xNpq.chunk.css","scripts/-l0at5Ll.chunk.js","css/Btbdn9Hu.chunk.css","scripts/DR80oZtZ.chunk.js","css/C8Yzn6dp.chunk.css","scripts/smdLElLq.chunk.js","scripts/CIGsvs1s.chunk.js","scripts/U5OcS9vN.chunk.js","css/W-kt2nNQ.chunk.css","css/DQWtrDQ9.chunk.css","css/XD2hD8t1.chunk.css","scripts/gbgcwRX-.chunk.js","css/Bc0GWb1N.chunk.css","scripts/BTWCXqXm.chunk.js","scripts/BUAY-UlU2.chunk.js","scripts/D0SYGnyF.chunk.js","css/BuYrqi9E.chunk.css","scripts/Llxar-VU.chunk.js","scripts/BxypZGPK.chunk.js","css/D5JKYURg.chunk.css","scripts/BK011l4Q2.chunk.js","css/Bk9_BKTx.chunk.css","scripts/CwttNCGZ.chunk.js","scripts/DkuROpKb2.chunk.js","css/BNYuoSt8.chunk.css","scripts/bycmewy72.chunk.js","scripts/CUOEhUTb2.chunk.js","css/CMZMhdbI.chunk.css","scripts/CNmmq34f.chunk.js","scripts/B5jBIPaP.chunk.js","scripts/etRy6yC_.chunk.js","scripts/xFUSLNcp.chunk.js","css/n2o1aWTK.chunk.css","scripts/DnSy_Myx.chunk.js","scripts/BgJGBaQ7.chunk.js","css/D2rScvIt.chunk.css","scripts/Dr1flAez.chunk.js","scripts/Xo0rk19-.chunk.js","scripts/BjxC-sgo.chunk.js","scripts/CN8PeBwg.chunk.js","scripts/BA8QDRzp.chunk.js","scripts/Cdw1vkxV.chunk.js","css/DDnpOnVB.chunk.css","scripts/jWpq99N3.chunk.js","scripts/Blj1z_g2.chunk.js","scripts/xtnkiLCr.chunk.js","css/VZd8qGtK.chunk.css","scripts/BLrjbrp8.chunk.js","scripts/D6RH5IPj.chunk.js","scripts/DIVzVtlg.chunk.js","scripts/ibuOpDkQ.chunk.js","scripts/usire0zo.chunk.js","css/8N0GA_tr.chunk.css","scripts/CsC3VVvE2.chunk.js","scripts/CWFInhB82.chunk.js","css/wIkvB_Ad.chunk.css","scripts/CkYqp83j.chunk.js","scripts/UEJgtRox.chunk.js","scripts/9kT3dWcK.chunk.js","scripts/BZOcEcTA2.chunk.js","scripts/BlQ4coEt.chunk.js","scripts/B703cBe72.chunk.js","scripts/DZUGjRSP.chunk.js","scripts/DrjwL4ct.chunk.js","css/CjnRLH1d.chunk.css","css/k6BasXOp.chunk.css","scripts/BXJetawx2.chunk.js","scripts/BKnxYKDu2.chunk.js","css/3EICPRU7.chunk.css","scripts/BCBfXCYM2.chunk.js","css/JvnP55wx.chunk.css","scripts/DwzBzBlI2.chunk.js","scripts/CbLL7dIz2.chunk.js","css/BYEPtcOv.chunk.css","scripts/B-qOny0I2.chunk.js","scripts/tYi-sUb22.chunk.js","css/DFeE90To.chunk.css","scripts/CNJrD44-2.chunk.js","css/CnFRtFKM.chunk.css","scripts/BTYwcYPL2.chunk.js","css/DwduQat7.chunk.css","scripts/qcrBN1zR2.chunk.js","scripts/D7tastET2.chunk.js","css/x0HbHVYS.chunk.css","scripts/BihZ4r0z2.chunk.js","scripts/BfT-O7-i2.chunk.js","css/B7G2skCz.chunk.css","scripts/BvJXPFoz2.chunk.js","css/Tj9-Ovax.chunk.css","scripts/DyT1OGvP2.chunk.js","css/DXAtSRBa.chunk.css","scripts/Ce1TZZdV2.chunk.js","scripts/Dj4AeYQQ2.chunk.js","css/Hj-pf8Rg.chunk.css","scripts/ACTQklJQ.chunk.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{$ as e,C as t,D as n,E as r,K as i,M as a,S as o,T as s,W as c,_ as l,a as u,b as d,c as f,d as p,dt as m,f as h,ft as g,gt as _,h as v,ht as y,i as b,j as x,k as S,l as C,m as w,mt as T,n as E,o as D,p as O,q as k,r as A,rt as j,s as M,st as N,t as P,tt as F,u as I,ut as L,v as R,w as ee,x as z,y as te}from"./Dp9qJj1C.chunk.js";import{$ as ne,A as re,B as ie,C as ae,D as oe,E as se,F as ce,G as le,H as ue,I as de,J as fe,K as pe,L as me,M as he,N as ge,O as _e,P as ve,Q as ye,R as be,S as xe,T as Se,U as Ce,V as we,W as Te,X as Ee,Y as De,Z as Oe,_ as ke,b as Ae,c as je,g as Me,i as Ne,j as Pe,k as Fe,n as Ie,o as Le,p as Re,q as ze,r as Be,s as Ve,t as He,u as Ue,v as We,w as Ge,x as Ke,y as qe,z as Je}from"./BJvPfCvt.chunk.js";import{n as Ye,t as Xe}from"./ImQRQGZr.chunk.js";import{A as Ze,C as B,D as Qe,E as $e,M as et,a as tt,c as nt,dt as rt,h as it,i as at,j as ot,k as st,l as ct,lt,m as ut,n as dt,r as ft,t as pt,u as mt,ut as ht,x as gt}from"./Dun43GrB.chunk.js";import{n as _t,t as vt}from"./Xo0rk19-.chunk.js";import{n as yt,t as bt}from"./CFXUbsBS.chunk.js";import{t as V}from"./B-OL6Vs7.chunk.js";import{a as xt,b as St,c as Ct,h as wt,i as Tt,l as Et,m as Dt,n as Ot,o as kt,p as At,r as jt,s as Mt,t as Nt,v as Pt,y as Ft}from"./BQ5XMoHG.chunk.js";import{t as It}from"./B7tm2CBz.chunk.js";import{t as Lt}from"./XBXkyvJG.chunk.js";import{n as Rt,t as zt}from"./C9ET3pjZ.chunk.js";import{t as Bt}from"./CN1th_9f.chunk.js";import{n as Vt,t as Ht}from"./CAEQvGr_.chunk.js";import{n as Ut}from"./LVrVQvKT.chunk.js";import{t as Wt}from"./usire0zo.chunk.js";import{t as Gt}from"./ibuOpDkQ.chunk.js";import{t as Kt}from"./epZn2FwZ.chunk.js";import{t as qt}from"./CxwN2xIE.chunk.js";import{t as Jt}from"./DeldjYRc.chunk.js";import{t as Yt}from"./BVWg3YHX.chunk.js";import{a as Xt,i as Zt,n as Qt,r as $t,t as en}from"./CEsevkum.chunk.js";import{t as tn}from"./BYYiNmLB.chunk.js";import{i as nn,r as rn}from"./H6wjCesG.chunk.js";import{r as an}from"./C_llN0lX.chunk.js";import{A as on,C as sn,D as cn,E as ln,I as un,M as dn,T as fn,f as pn,g as mn,h as hn,i as gn,j as _n,l as vn,m as yn,o as bn,p as xn,r as Sn,t as Cn,v as wn,w as Tn}from"./B3l7OlNe.chunk.js";import{n as En,t as Dn}from"./9kT3dWcK.chunk.js";import{t as On}from"./B4Gws0mi.chunk.js";import{n as kn}from"./D86qrFLE.chunk.js";import{c as An,n as jn,t as Mn}from"./8W5MLvcf.chunk.js";import{t as Nn}from"./DBuCq5ws.chunk.js";import{n as Pn,t as Fn}from"./DfC3LfsK.chunk.js";import{t as In}from"./CMND6rmE.chunk.js";import{t as Ln}from"./B20k2DA32.chunk.js";import{n as Rn,t as zn}from"./Ca1QPe-q2.chunk.js";import{t as Bn}from"./Cz6swPXe2.chunk.js";import{c as Vn,o as Hn,t as Un}from"./ClfNVaoj2.chunk.js";import{n as Wn}from"./D7d5XFW82.chunk.js";import{t as Gn}from"./BUAY-UlU2.chunk.js";import{t as Kn}from"./DygtVvI42.chunk.js";import{a as qn,n as Jn,o as Yn,t as Xn}from"./DjIdG9LL2.chunk.js";import{n as Zn,r as Qn,t as $n}from"./BYFGYmGx2.chunk.js";import{n as er,t as tr}from"./iuoIcGAm2.chunk.js";import{t as nr}from"./B13dpWxS2.chunk.js";import{n as rr,r as ir,t as ar}from"./CL1ST5J62.chunk.js";import{r as or,t as sr}from"./D2om474U2.chunk.js";import{t as cr}from"./DlVp8-h62.chunk.js";import{t as lr}from"./B4z8dIrI2.chunk.js";import{n as ur}from"./B9ir5kiH2.chunk.js";import{t as dr}from"./CoualKDX.chunk.js";import{t as fr}from"./iTHYgnO8.chunk.js";import{t as pr}from"./DIVzVtlg.chunk.js";import{t as mr}from"./DrjwL4ct.chunk.js";import{t as hr}from"./DZUGjRSP.chunk.js";var gr=T(((e,t)=>{var n=function(e){var t=Object.prototype,n=t.hasOwnProperty,r,i=typeof Symbol==`function`?Symbol:{},a=i.iterator||`@@iterator`,o=i.asyncIterator||`@@asyncIterator`,s=i.toStringTag||`@@toStringTag`;function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},``)}catch{c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype);return a._invoke=T(e,n,new k(r||[])),a}e.wrap=l;function u(e,t,n){try{return{type:`normal`,arg:e.call(t,n)}}catch(e){return{type:`throw`,arg:e}}}var d=`suspendedStart`,f=`suspendedYield`,p=`executing`,m=`completed`,h={};function g(){}function _(){}function v(){}var y={};c(y,a,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(A([])));x&&x!==t&&n.call(x,a)&&(y=x);var S=v.prototype=g.prototype=Object.create(y);_.prototype=v,c(S,`constructor`,v),c(v,`constructor`,_),_.displayName=c(v,s,`GeneratorFunction`);function C(e){[`next`,`throw`,`return`].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}e.isGeneratorFunction=function(e){var t=typeof e==`function`&&e.constructor;return t?t===_||(t.displayName||t.name)===`GeneratorFunction`:!1},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,`GeneratorFunction`)),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}};function w(e,t){function r(i,a,o,s){var c=u(e[i],e,a);if(c.type===`throw`)s(c.arg);else{var l=c.arg,d=l.value;return d&&typeof d==`object`&&n.call(d,`__await`)?t.resolve(d.__await).then(function(e){r(`next`,e,o,s)},function(e){r(`throw`,e,o,s)}):t.resolve(d).then(function(e){l.value=e,o(l)},function(e){return r(`throw`,e,o,s)})}}var i;function a(e,n){function a(){return new t(function(t,i){r(e,n,t,i)})}return i=i?i.then(a,a):a()}this._invoke=a}C(w.prototype),c(w.prototype,o,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,i,a){a===void 0&&(a=Promise);var o=new w(l(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})};function T(e,t,n){var r=d;return function(i,a){if(r===p)throw Error(`Generator is already running`);if(r===m){if(i===`throw`)throw a;return j()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=E(o,n);if(s){if(s===h)continue;return s}}if(n.method===`next`)n.sent=n._sent=n.arg;else if(n.method===`throw`){if(r===d)throw r=m,n.arg;n.dispatchException(n.arg)}else n.method===`return`&&n.abrupt(`return`,n.arg);r=p;var c=u(e,t,n);if(c.type===`normal`){if(r=n.done?m:f,c.arg===h)continue;return{value:c.arg,done:n.done}}else c.type===`throw`&&(r=m,n.method=`throw`,n.arg=c.arg)}}}function E(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,t.method===`throw`){if(e.iterator.return&&(t.method=`return`,t.arg=r,E(e,t),t.method===`throw`))return h;t.method=`throw`,t.arg=TypeError(`The iterator does not provide a 'throw' method`)}return h}var i=u(n,e.iterator,t.arg);if(i.type===`throw`)return t.method=`throw`,t.arg=i.arg,t.delegate=null,h;var a=i.arg;if(!a)return t.method=`throw`,t.arg=TypeError(`iterator result is not an object`),t.delegate=null,h;if(a.done)t[e.resultName]=a.value,t.next=e.nextLoc,t.method!==`return`&&(t.method=`next`,t.arg=r);else return a;return t.delegate=null,h}C(S),c(S,s,`Generator`),c(S,a,function(){return this}),c(S,`toString`,function(){return`[object Generator]`});function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type=`normal`,delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:`root`}],e.forEach(D,this),this.reset(!0)}e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}};function A(e){if(e){var t=e[a];if(t)return t.call(e);if(typeof e.next==`function`)return e;if(!isNaN(e.length)){var i=-1,o=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=r,t.done=!0,t};return o.next=o}}return{next:j}}e.values=A;function j(){return{value:r,done:!0}}return k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method=`next`,this.arg=r,this.tryEntries.forEach(O),!e)for(var t in this)t.charAt(0)===`t`&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type===`throw`)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return s.type=`throw`,s.arg=e,t.next=n,i&&(t.method=`next`,t.arg=r),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(o.tryLoc===`root`)return i(`end`);if(o.tryLoc<=this.prev){var c=n.call(o,`catchLoc`),l=n.call(o,`finallyLoc`);if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else if(l){if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else throw Error(`try statement without catch or finally`)}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,`finallyLoc`)&&this.prev<i.finallyLoc){var a=i;break}}a&&(e===`break`||e===`continue`)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method=`next`,this.next=a.finallyLoc,h):this.complete(o)},complete:function(e,t){if(e.type===`throw`)throw e.arg;return e.type===`break`||e.type===`continue`?this.next=e.arg:e.type===`return`?(this.rval=this.arg=e.arg,this.method=`return`,this.next=`end`):e.type===`normal`&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if(r.type===`throw`){var i=r.arg;O(n)}return i}}throw Error(`illegal catch attempt`)},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},this.method===`next`&&(this.arg=r),h}},e}(typeof t==`object`?t.exports:{});try{regeneratorRuntime=n}catch{typeof globalThis==`object`?globalThis.regeneratorRuntime=n:Function(`r`,`regeneratorRuntime = r`)(n)}})),H=T(((e,t)=>{var n=function(e){return e&&e.Math===Math&&e};t.exports=n(typeof globalThis==`object`&&globalThis)||n(typeof window==`object`&&window)||n(typeof self==`object`&&self)||n(typeof globalThis==`object`&&globalThis)||n(typeof e==`object`&&e)||(function(){return this})()||Function(`return this`)()})),U=T(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),W=T(((e,t)=>{t.exports=!U()(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})})),_r=T(((e,t)=>{t.exports=!U()(function(){var e=(function(){}).bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)})})),G=T(((e,t)=>{var n=_r(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}})),vr=T((e=>{var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;e.f=n&&!t.call({1:2},1)?function(e){var t=n(this,e);return!!t&&t.enumerable}:t})),yr=T(((e,t)=>{t.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}})),K=T(((e,t)=>{var n=_r(),r=Function.prototype,i=r.call,a=n&&r.bind.bind(i,i);t.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}})),br=T(((e,t)=>{var n=K(),r=n({}.toString),i=n(``.slice);t.exports=function(e){return i(r(e),8,-1)}})),xr=T(((e,t)=>{var n=K(),r=U(),i=br(),a=Object,o=n(``.split);t.exports=r(function(){return!a(`z`).propertyIsEnumerable(0)})?function(e){return i(e)===`String`?o(e,``):a(e)}:a})),Sr=T(((e,t)=>{t.exports=function(e){return e==null}})),Cr=T(((e,t)=>{var n=Sr(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`Can't call method on `+e);return e}})),wr=T(((e,t)=>{var n=xr(),r=Cr();t.exports=function(e){return n(r(e))}})),Tr=T(((e,t)=>{var n=typeof document==`object`&&document.all;t.exports=n===void 0&&n!==void 0?function(e){return typeof e==`function`||e===n}:function(e){return typeof e==`function`}})),Er=T(((e,t)=>{var n=Tr();t.exports=function(e){return typeof e==`object`?e!==null:n(e)}})),Dr=T(((e,t)=>{var n=H(),r=Tr(),i=function(e){return r(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}})),Or=T(((e,t)=>{t.exports=K()({}.isPrototypeOf)})),kr=T(((e,t)=>{var n=H().navigator,r=n&&n.userAgent;t.exports=r?String(r):``})),Ar=T(((e,t)=>{var n=H(),r=kr(),i=n.process,a=n.Deno,o=i&&i.versions||a&&a.version,s=o&&o.v8,c,l;s&&(c=s.split(`.`),l=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!l&&r&&(c=r.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=r.match(/Chrome\/(\d+)/),c&&(l=+c[1]))),t.exports=l})),jr=T(((e,t)=>{var n=Ar(),r=U(),i=H().String;t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol(`symbol detection`);return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})})),Mr=T(((e,t)=>{t.exports=jr()&&!Symbol.sham&&typeof Symbol.iterator==`symbol`})),Nr=T(((e,t)=>{var n=Dr(),r=Tr(),i=Or(),a=Mr(),o=Object;t.exports=a?function(e){return typeof e==`symbol`}:function(e){var t=n(`Symbol`);return r(t)&&i(t.prototype,o(e))}})),Pr=T(((e,t)=>{var n=String;t.exports=function(e){try{return n(e)}catch{return`Object`}}})),Fr=T(((e,t)=>{var n=Tr(),r=Pr(),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not a function`)}})),Ir=T(((e,t)=>{var n=Fr(),r=Sr();t.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}})),Lr=T(((e,t)=>{var n=G(),r=Tr(),i=Er(),a=TypeError;t.exports=function(e,t){var o,s;if(t===`string`&&r(o=e.toString)&&!i(s=n(o,e))||r(o=e.valueOf)&&!i(s=n(o,e))||t!==`string`&&r(o=e.toString)&&!i(s=n(o,e)))return s;throw new a(`Can't convert object to primitive value`)}})),Rr=T(((e,t)=>{t.exports=!1})),zr=T(((e,t)=>{var n=H(),r=Object.defineProperty;t.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}})),Br=T(((e,t)=>{var n=Rr(),r=H(),i=zr(),a=`__core-js_shared__`,o=t.exports=r[a]||i(a,{});(o.versions||=[]).push({version:`3.45.1`,mode:n?`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`})})),Vr=T(((e,t)=>{var n=Br();t.exports=function(e,t){return n[e]||(n[e]=t||{})}})),Hr=T(((e,t)=>{var n=Cr(),r=Object;t.exports=function(e){return r(n(e))}})),Ur=T(((e,t)=>{var n=K(),r=Hr(),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(r(e),t)}})),Wr=T(((e,t)=>{var n=K(),r=0,i=Math.random(),a=n(1.1.toString);t.exports=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+a(++r+i,36)}})),Gr=T(((e,t)=>{var n=H(),r=Vr(),i=Ur(),a=Wr(),o=jr(),s=Mr(),c=n.Symbol,l=r(`wks`),u=s?c.for||c:c&&c.withoutSetter||a;t.exports=function(e){return i(l,e)||(l[e]=o&&i(c,e)?c[e]:u(`Symbol.`+e)),l[e]}})),Kr=T(((e,t)=>{var n=G(),r=Er(),i=Nr(),a=Ir(),o=Lr(),s=Gr(),c=TypeError,l=s(`toPrimitive`);t.exports=function(e,t){if(!r(e)||i(e))return e;var s=a(e,l),u;if(s){if(t===void 0&&(t=`default`),u=n(s,e,t),!r(u)||i(u))return u;throw new c(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),o(e,t)}})),qr=T(((e,t)=>{var n=Kr(),r=Nr();t.exports=function(e){var t=n(e,`string`);return r(t)?t:t+``}})),Jr=T(((e,t)=>{var n=H(),r=Er(),i=n.document,a=r(i)&&r(i.createElement);t.exports=function(e){return a?i.createElement(e):{}}})),Yr=T(((e,t)=>{var n=W(),r=U(),i=Jr();t.exports=!n&&!r(function(){return Object.defineProperty(i(`div`),`a`,{get:function(){return 7}}).a!==7})})),Xr=T((e=>{var t=W(),n=G(),r=vr(),i=yr(),a=wr(),o=qr(),s=Ur(),c=Yr(),l=Object.getOwnPropertyDescriptor;e.f=t?l:function(e,t){if(e=a(e),t=o(t),c)try{return l(e,t)}catch{}if(s(e,t))return i(!n(r.f,e,t),e[t])}})),Zr=T(((e,t)=>{var n=W(),r=U();t.exports=n&&r(function(){return Object.defineProperty(function(){},`prototype`,{value:42,writable:!1}).prototype!==42})})),q=T(((e,t)=>{var n=Er(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not an object`)}})),Qr=T((e=>{var t=W(),n=Yr(),r=Zr(),i=q(),a=qr(),o=TypeError,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=`enumerable`,u=`configurable`,d=`writable`;e.f=t?r?function(e,t,n){if(i(e),t=a(t),i(n),typeof e==`function`&&t===`prototype`&&`value`in n&&d in n&&!n[d]){var r=c(e,t);r&&r[d]&&(e[t]=n.value,n={configurable:u in n?n[u]:r[u],enumerable:l in n?n[l]:r[l],writable:!1})}return s(e,t,n)}:s:function(e,t,r){if(i(e),t=a(t),i(r),n)try{return s(e,t,r)}catch{}if(`get`in r||`set`in r)throw new o(`Accessors not supported`);return`value`in r&&(e[t]=r.value),e}})),$r=T(((e,t)=>{var n=W(),r=Qr(),i=yr();t.exports=n?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}})),ei=T(((e,t)=>{var n=W(),r=Ur(),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,o=r(i,`name`);t.exports={EXISTS:o,PROPER:o&&(function(){}).name===`something`,CONFIGURABLE:o&&(!n||n&&a(i,`name`).configurable)}})),ti=T(((e,t)=>{var n=K(),r=Tr(),i=Br(),a=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),t.exports=i.inspectSource})),ni=T(((e,t)=>{var n=H(),r=Tr(),i=n.WeakMap;t.exports=r(i)&&/native code/.test(String(i))})),ri=T(((e,t)=>{var n=Vr(),r=Wr(),i=n(`keys`);t.exports=function(e){return i[e]||(i[e]=r(e))}})),ii=T(((e,t)=>{t.exports={}})),ai=T(((e,t)=>{var n=ni(),r=H(),i=Er(),a=$r(),o=Ur(),s=Br(),c=ri(),l=ii(),u=`Object already initialized`,d=r.TypeError,f=r.WeakMap,p,m,h,g=function(e){return h(e)?m(e):p(e,{})},_=function(e){return function(t){var n;if(!i(t)||(n=m(t)).type!==e)throw new d(`Incompatible receiver, `+e+` required`);return n}};if(n||s.state){var v=s.state||=new f;v.get=v.get,v.has=v.has,v.set=v.set,p=function(e,t){if(v.has(e))throw new d(u);return t.facade=e,v.set(e,t),t},m=function(e){return v.get(e)||{}},h=function(e){return v.has(e)}}else{var y=c(`state`);l[y]=!0,p=function(e,t){if(o(e,y))throw new d(u);return t.facade=e,a(e,y,t),t},m=function(e){return o(e,y)?e[y]:{}},h=function(e){return o(e,y)}}t.exports={set:p,get:m,has:h,enforce:g,getterFor:_}})),oi=T(((e,t)=>{var n=K(),r=U(),i=Tr(),a=Ur(),o=W(),s=ei().CONFIGURABLE,c=ti(),l=ai(),u=l.enforce,d=l.get,f=String,p=Object.defineProperty,m=n(``.slice),h=n(``.replace),g=n([].join),_=o&&!r(function(){return p(function(){},`length`,{value:8}).length!==8}),v=String(String).split(`String`),y=t.exports=function(e,t,n){m(f(t),0,7)===`Symbol(`&&(t=`[`+h(f(t),/^Symbol\(([^)]*)\).*$/,`$1`)+`]`),n&&n.getter&&(t=`get `+t),n&&n.setter&&(t=`set `+t),(!a(e,`name`)||s&&e.name!==t)&&(o?p(e,`name`,{value:t,configurable:!0}):e.name=t),_&&n&&a(n,`arity`)&&e.length!==n.arity&&p(e,`length`,{value:n.arity});try{n&&a(n,`constructor`)&&n.constructor?o&&p(e,`prototype`,{writable:!1}):e.prototype&&=void 0}catch{}var r=u(e);return a(r,`source`)||(r.source=g(v,typeof t==`string`?t:``)),e};Function.prototype.toString=y(function(){return i(this)&&d(this).source||c(this)},`toString`)})),si=T(((e,t)=>{var n=Tr(),r=Qr(),i=oi(),a=zr();t.exports=function(e,t,o,s){s||={};var c=s.enumerable,l=s.name===void 0?t:s.name;if(n(o)&&i(o,l,s),s.global)c?e[t]=o:a(t,o);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch{}c?e[t]=o:r.f(e,t,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}})),ci=T(((e,t)=>{var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}})),li=T(((e,t)=>{var n=ci();t.exports=function(e){var t=+e;return t!==t||t===0?0:n(t)}})),ui=T(((e,t)=>{var n=li(),r=Math.max,i=Math.min;t.exports=function(e,t){var a=n(e);return a<0?r(a+t,0):i(a,t)}})),di=T(((e,t)=>{var n=li(),r=Math.min;t.exports=function(e){var t=n(e);return t>0?r(t,9007199254740991):0}})),fi=T(((e,t)=>{var n=di();t.exports=function(e){return n(e.length)}})),pi=T(((e,t)=>{var n=wr(),r=ui(),i=fi(),a=function(e){return function(t,a,o){var s=n(t),c=i(s);if(c===0)return!e&&-1;var l=r(o,c),u;if(e&&a!==a){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===a)return e||l||0;return!e&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}})),mi=T(((e,t)=>{var n=K(),r=Ur(),i=wr(),a=pi().indexOf,o=ii(),s=n([].push);t.exports=function(e,t){var n=i(e),c=0,l=[],u;for(u in n)!r(o,u)&&r(n,u)&&s(l,u);for(;t.length>c;)r(n,u=t[c++])&&(~a(l,u)||s(l,u));return l}})),hi=T(((e,t)=>{t.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]})),gi=T((e=>{var t=mi(),n=hi().concat(`length`,`prototype`);e.f=Object.getOwnPropertyNames||function(e){return t(e,n)}})),_i=T((e=>{e.f=Object.getOwnPropertySymbols})),vi=T(((e,t)=>{var n=Dr(),r=K(),i=gi(),a=_i(),o=q(),s=r([].concat);t.exports=n(`Reflect`,`ownKeys`)||function(e){var t=i.f(o(e)),n=a.f;return n?s(t,n(e)):t}})),yi=T(((e,t)=>{var n=Ur(),r=vi(),i=Xr(),a=Qr();t.exports=function(e,t,o){for(var s=r(t),c=a.f,l=i.f,u=0;u<s.length;u++){var d=s[u];!n(e,d)&&!(o&&n(o,d))&&c(e,d,l(t,d))}}})),bi=T(((e,t)=>{var n=U(),r=Tr(),i=/#|\.prototype\./,a=function(e,t){var i=s[o(e)];return i===l?!0:i===c?!1:r(t)?n(t):!!t},o=a.normalize=function(e){return String(e).replace(i,`.`).toLowerCase()},s=a.data={},c=a.NATIVE=`N`,l=a.POLYFILL=`P`;t.exports=a})),J=T(((e,t)=>{var n=H(),r=Xr().f,i=$r(),a=si(),o=zr(),s=yi(),c=bi();t.exports=function(e,t){var l=e.target,u=e.global,d=e.stat,f,p=u?n:d?n[l]||o(l,{}):n[l]&&n[l].prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.dontCallGetSet?(_=r(p,m),h=_&&_.value):h=p[m],f=c(u?m:l+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;s(g,h)}(e.sham||h&&h.sham)&&i(g,`sham`,!0),a(p,m,g,e)}}})),xi=T(((e,t)=>{var n=Gr()(`toStringTag`),r={};r[n]=`z`,t.exports=String(r)===`[object z]`})),Si=T(((e,t)=>{var n=xi(),r=Tr(),i=br(),a=Gr()(`toStringTag`),o=Object,s=i(function(){return arguments}())===`Arguments`,c=function(e,t){try{return e[t]}catch{}};t.exports=n?i:function(e){var t,n,l;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=c(t=o(e),a))==`string`?n:s?i(t):(l=i(t))===`Object`&&r(t.callee)?`Arguments`:l}})),Ci=T(((e,t)=>{var n=Si(),r=String;t.exports=function(e){if(n(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return r(e)}})),wi=T(((e,t)=>{var n=mi(),r=hi();t.exports=Object.keys||function(e){return n(e,r)}})),Ti=T((e=>{var t=W(),n=Zr(),r=Qr(),i=q(),a=wr(),o=wi();e.f=t&&!n?Object.defineProperties:function(e,t){i(e);for(var n=a(t),s=o(t),c=s.length,l=0,u;c>l;)r.f(e,u=s[l++],n[u]);return e}})),Ei=T(((e,t)=>{t.exports=Dr()(`document`,`documentElement`)})),Di=T(((e,t)=>{var n=q(),r=Ti(),i=hi(),a=ii(),o=Ei(),s=Jr(),c=ri(),l=`>`,u=`<`,d=`prototype`,f=`script`,p=c(`IE_PROTO`),m=function(){},h=function(e){return u+f+l+e+u+`/`+f+l},g=function(e){e.write(h(``)),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e=s(`iframe`),t=`java`+f+`:`,n;return e.style.display=`none`,o.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(h(`document.F=Object`)),n.close(),n.F},v,y=function(){try{v=new ActiveXObject(`htmlfile`)}catch{}y=typeof document<`u`?document.domain&&v?g(v):_():g(v);for(var e=i.length;e--;)delete y[d][i[e]];return y()};a[p]=!0,t.exports=Object.create||function(e,t){var i;return e===null?i=y():(m[d]=n(e),i=new m,m[d]=null,i[p]=e),t===void 0?i:r.f(i,t)}})),Oi=T(((e,t)=>{t.exports=K()([].slice)})),ki=T(((e,t)=>{var n=br(),r=wr(),i=gi().f,a=Oi(),o=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch{return a(o)}};t.exports.f=function(e){return o&&n(e)===`Window`?s(e):i(r(e))}})),Ai=T(((e,t)=>{var n=oi(),r=Qr();t.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),r.f(e,t,i)}})),ji=T((e=>{e.f=Gr()})),Mi=T(((e,t)=>{t.exports=H()})),Ni=T(((e,t)=>{var n=Mi(),r=Ur(),i=ji(),a=Qr().f;t.exports=function(e){var t=n.Symbol||={};r(t,e)||a(t,e,{value:i.f(e)})}})),Pi=T(((e,t)=>{var n=G(),r=Dr(),i=Gr(),a=si();t.exports=function(){var e=r(`Symbol`),t=e&&e.prototype,o=t&&t.valueOf,s=i(`toPrimitive`);t&&!t[s]&&a(t,s,function(e){return n(o,this)},{arity:1})}})),Fi=T(((e,t)=>{var n=Qr().f,r=Ur(),i=Gr()(`toStringTag`);t.exports=function(e,t,a){e&&!a&&(e=e.prototype),e&&!r(e,i)&&n(e,i,{configurable:!0,value:t})}})),Ii=T(((e,t)=>{var n=br(),r=K();t.exports=function(e){if(n(e)===`Function`)return r(e)}})),Li=T(((e,t)=>{var n=Ii(),r=Fr(),i=_r(),a=n(n.bind);t.exports=function(e,t){return r(e),t===void 0?e:i?a(e,t):function(){return e.apply(t,arguments)}}})),Ri=T(((e,t)=>{var n=br();t.exports=Array.isArray||function(e){return n(e)===`Array`}})),zi=T(((e,t)=>{var n=K(),r=U(),i=Tr(),a=Si(),o=Dr(),s=ti(),c=function(){},l=o(`Reflect`,`construct`),u=/^\s*(?:class|function)\b/,d=n(u.exec),f=!u.test(c),p=function(e){if(!i(e))return!1;try{return l(c,[],e),!0}catch{return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}try{return f||!!d(u,s(e))}catch{return!0}};m.sham=!0,t.exports=!l||r(function(){var e;return p(p.call)||!p(Object)||!p(function(){e=!0})||e})?m:p})),Bi=T(((e,t)=>{var n=Ri(),r=zi(),i=Er(),a=Gr()(`species`),o=Array;t.exports=function(e){var t;return n(e)&&(t=e.constructor,r(t)&&(t===o||n(t.prototype))?t=void 0:i(t)&&(t=t[a],t===null&&(t=void 0))),t===void 0?o:t}})),Vi=T(((e,t)=>{var n=Bi();t.exports=function(e,t){return new(n(e))(t===0?0:t)}})),Hi=T(((e,t)=>{var n=Li(),r=K(),i=xr(),a=Hr(),o=fi(),s=Vi(),c=r([].push),l=function(e){var t=e===1,r=e===2,l=e===3,u=e===4,d=e===6,f=e===7,p=e===5||d;return function(m,h,g,_){for(var v=a(m),y=i(v),b=o(y),x=n(h,g),S=0,C=_||s,w=t?C(m,b):r||f?C(m,0):void 0,T,E;b>S;S++)if((p||S in y)&&(T=y[S],E=x(T,S,v),e))if(t)w[S]=E;else if(E)switch(e){case 3:return!0;case 5:return T;case 6:return S;case 2:c(w,T)}else switch(e){case 4:return!1;case 7:c(w,T)}return d?-1:l||u?u:w}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}})),Ui=T((()=>{var e=J(),t=H(),n=G(),r=K(),i=Rr(),a=W(),o=jr(),s=U(),c=Ur(),l=Or(),u=q(),d=wr(),f=qr(),p=Ci(),m=yr(),h=Di(),g=wi(),_=gi(),v=ki(),y=_i(),b=Xr(),x=Qr(),S=Ti(),C=vr(),w=si(),T=Ai(),E=Vr(),D=ri(),O=ii(),k=Wr(),A=Gr(),j=ji(),M=Ni(),N=Pi(),P=Fi(),F=ai(),I=Hi().forEach,L=D(`hidden`),R=`Symbol`,ee=`prototype`,z=F.set,te=F.getterFor(R),ne=Object[ee],re=t.Symbol,ie=re&&re[ee],ae=t.RangeError,oe=t.TypeError,se=t.QObject,ce=b.f,le=x.f,ue=v.f,de=C.f,fe=r([].push),pe=E(`symbols`),me=E(`op-symbols`),he=E(`wks`),ge=!se||!se[ee]||!se[ee].findChild,_e=function(e,t,n){var r=ce(ne,t);r&&delete ne[t],le(e,t,n),r&&e!==ne&&le(ne,t,r)},ve=a&&s(function(){return h(le({},`a`,{get:function(){return le(this,`a`,{value:7}).a}})).a!==7})?_e:le,ye=function(e,t){var n=pe[e]=h(ie);return z(n,{type:R,tag:e,description:t}),a||(n.description=t),n},be=function(e,t,n){e===ne&&be(me,t,n),u(e);var r=f(t);return u(n),c(pe,r)?(n.enumerable?(c(e,L)&&e[L][r]&&(e[L][r]=!1),n=h(n,{enumerable:m(0,!1)})):(c(e,L)||le(e,L,m(1,h(null))),e[L][r]=!0),ve(e,r,n)):le(e,r,n)},xe=function(e,t){u(e);var r=d(t);return I(g(r).concat(Ee(r)),function(t){(!a||n(Ce,r,t))&&be(e,t,r[t])}),e},Se=function(e,t){return t===void 0?h(e):xe(h(e),t)},Ce=function(e){var t=f(e),r=n(de,this,t);return this===ne&&c(pe,t)&&!c(me,t)?!1:r||!c(this,t)||!c(pe,t)||c(this,L)&&this[L][t]?r:!0},we=function(e,t){var n=d(e),r=f(t);if(!(n===ne&&c(pe,r)&&!c(me,r))){var i=ce(n,r);return i&&c(pe,r)&&!(c(n,L)&&n[L][r])&&(i.enumerable=!0),i}},Te=function(e){var t=ue(d(e)),n=[];return I(t,function(e){!c(pe,e)&&!c(O,e)&&fe(n,e)}),n},Ee=function(e){var t=e===ne,n=ue(t?me:d(e)),r=[];return I(n,function(e){c(pe,e)&&(!t||c(ne,e))&&fe(r,pe[e])}),r};o||(re=function(){if(l(ie,this))throw new oe(`Symbol is not a constructor`);var e=!arguments.length||arguments[0]===void 0?void 0:p(arguments[0]),r=k(e),i=function(e){var a=this===void 0?t:this;a===ne&&n(i,me,e),c(a,L)&&c(a[L],r)&&(a[L][r]=!1);var o=m(1,e);try{ve(a,r,o)}catch(e){if(!(e instanceof ae))throw e;_e(a,r,o)}};return a&&ge&&ve(ne,r,{configurable:!0,set:i}),ye(r,e)},ie=re[ee],w(ie,`toString`,function(){return te(this).tag}),w(re,`withoutSetter`,function(e){return ye(k(e),e)}),C.f=Ce,x.f=be,S.f=xe,b.f=we,_.f=v.f=Te,y.f=Ee,j.f=function(e){return ye(A(e),e)},a&&(T(ie,`description`,{configurable:!0,get:function(){return te(this).description}}),i||w(ne,`propertyIsEnumerable`,Ce,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!o,sham:!o},{Symbol:re}),I(g(he),function(e){M(e)}),e({target:R,stat:!0,forced:!o},{useSetter:function(){ge=!0},useSimple:function(){ge=!1}}),e({target:`Object`,stat:!0,forced:!o,sham:!a},{create:Se,defineProperty:be,defineProperties:xe,getOwnPropertyDescriptor:we}),e({target:`Object`,stat:!0,forced:!o},{getOwnPropertyNames:Te}),N(),P(re,R),O[L]=!0})),Wi=T(((e,t)=>{t.exports=jr()&&!!Symbol.for&&!!Symbol.keyFor})),Gi=T((()=>{var e=J(),t=Dr(),n=Ur(),r=Ci(),i=Vr(),a=Wi(),o=i(`string-to-symbol-registry`),s=i(`symbol-to-string-registry`);e({target:`Symbol`,stat:!0,forced:!a},{for:function(e){var i=r(e);if(n(o,i))return o[i];var a=t(`Symbol`)(i);return o[i]=a,s[a]=i,a}})})),Ki=T((()=>{var e=J(),t=Ur(),n=Nr(),r=Pr(),i=Vr(),a=Wi(),o=i(`symbol-to-string-registry`);e({target:`Symbol`,stat:!0,forced:!a},{keyFor:function(e){if(!n(e))throw TypeError(r(e)+` is not a symbol`);if(t(o,e))return o[e]}})})),qi=T(((e,t)=>{var n=_r(),r=Function.prototype,i=r.apply,a=r.call;t.exports=typeof Reflect==`object`&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})})),Ji=T(((e,t)=>{var n=K(),r=Ri(),i=Tr(),a=br(),o=Ci(),s=n([].push);t.exports=function(e){if(i(e))return e;if(r(e)){for(var t=e.length,n=[],c=0;c<t;c++){var l=e[c];typeof l==`string`?s(n,l):(typeof l==`number`||a(l)===`Number`||a(l)===`String`)&&s(n,o(l))}var u=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(r(this))return t;for(var i=0;i<u;i++)if(n[i]===e)return t}}}})),Yi=T((()=>{var e=J(),t=Dr(),n=qi(),r=G(),i=K(),a=U(),o=Tr(),s=Nr(),c=Oi(),l=Ji(),u=jr(),d=String,f=t(`JSON`,`stringify`),p=i(/./.exec),m=i(``.charAt),h=i(``.charCodeAt),g=i(``.replace),_=i(1.1.toString),v=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,b=/^[\uDC00-\uDFFF]$/,x=!u||a(function(){var e=t(`Symbol`)(`stringify detection`);return f([e])!==`[null]`||f({a:e})!==`{}`||f(Object(e))!==`{}`}),S=a(function(){return f(`\udf06\ud834`)!==`"\\udf06\\ud834"`||f(`\udead`)!==`"\\udead"`}),C=function(e,t){var i=c(arguments),a=l(t);if(!(!o(a)&&(e===void 0||s(e))))return i[1]=function(e,t){if(o(a)&&(t=r(a,this,d(e),t)),!s(t))return t},n(f,null,i)},w=function(e,t,n){var r=m(n,t-1),i=m(n,t+1);return p(y,e)&&!p(b,i)||p(b,e)&&!p(y,r)?`\\u`+_(h(e,0),16):e};f&&e({target:`JSON`,stat:!0,arity:3,forced:x||S},{stringify:function(e,t,r){var i=c(arguments),a=n(x?C:f,null,i);return S&&typeof a==`string`?g(a,v,w):a}})})),Xi=T((()=>{var e=J(),t=jr(),n=U(),r=_i(),i=Hr();e({target:`Object`,stat:!0,forced:!t||n(function(){r.f(1)})},{getOwnPropertySymbols:function(e){var t=r.f;return t?t(i(e)):[]}})})),Zi=T((()=>{Ui(),Gi(),Ki(),Yi(),Xi()})),Qi=T((()=>{var e=J(),t=W(),n=H(),r=K(),i=Ur(),a=Tr(),o=Or(),s=Ci(),c=Ai(),l=yi(),u=n.Symbol,d=u&&u.prototype;if(t&&a(u)&&(!(`description`in d)||u().description!==void 0)){var f={},p=function(){var e=arguments.length<1||arguments[0]===void 0?void 0:s(arguments[0]),t=o(d,this)?new u(e):e===void 0?u():u(e);return e===``&&(f[t]=!0),t};l(p,u),p.prototype=d,d.constructor=p;var m=String(u(`description detection`))===`Symbol(description detection)`,h=r(d.valueOf),g=r(d.toString),_=/^Symbol\((.*)\)[^)]+$/,v=r(``.replace),y=r(``.slice);c(d,`description`,{configurable:!0,get:function(){var e=h(this);if(i(f,e))return``;var t=g(e),n=m?y(t,7,-1):v(t,_,`$1`);return n===``?void 0:n}}),e({global:!0,constructor:!0,forced:!0},{Symbol:p})}})),$i=T((()=>{var e=H(),t=Ni(),n=Qr().f,r=Xr().f,i=e.Symbol;if(t(`asyncDispose`),i){var a=r(i,`asyncDispose`);a.enumerable&&a.configurable&&a.writable&&n(i,`asyncDispose`,{value:a.value,enumerable:!1,configurable:!1,writable:!1})}})),ea=T((()=>{Ni()(`asyncIterator`)})),ta=T((()=>{var e=H(),t=Ni(),n=Qr().f,r=Xr().f,i=e.Symbol;if(t(`dispose`),i){var a=r(i,`dispose`);a.enumerable&&a.configurable&&a.writable&&n(i,`dispose`,{value:a.value,enumerable:!1,configurable:!1,writable:!1})}})),na=T((()=>{Ni()(`hasInstance`)})),ra=T((()=>{Ni()(`isConcatSpreadable`)})),ia=T((()=>{Ni()(`iterator`)})),aa=T((()=>{Ni()(`match`)})),oa=T((()=>{Ni()(`matchAll`)})),sa=T((()=>{Ni()(`replace`)})),ca=T((()=>{Ni()(`search`)})),la=T((()=>{Ni()(`species`)})),ua=T((()=>{Ni()(`split`)})),da=T((()=>{var e=Ni(),t=Pi();e(`toPrimitive`),t()})),fa=T((()=>{var e=Dr(),t=Ni(),n=Fi();t(`toStringTag`),n(e(`Symbol`),`Symbol`)})),pa=T((()=>{Ni()(`unscopables`)})),ma=T(((e,t)=>{var n=K(),r=Fr();t.exports=function(e,t,i){try{return n(r(Object.getOwnPropertyDescriptor(e,t)[i]))}catch{}}})),ha=T(((e,t)=>{var n=Er();t.exports=function(e){return n(e)||e===null}})),ga=T(((e,t)=>{var n=ha(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(`Can't set `+r(e)+` as a prototype`)}})),_a=T(((e,t)=>{var n=ma(),r=Er(),i=Cr(),a=ga();t.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},o;try{o=n(Object.prototype,`__proto__`,`set`),o(t,[]),e=t instanceof Array}catch{}return function(t,n){return i(t),a(n),r(t)&&(e?o(t,n):t.__proto__=n),t}}():void 0)})),va=T(((e,t)=>{var n=Qr().f;t.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}})),ya=T(((e,t)=>{var n=Tr(),r=Er(),i=_a();t.exports=function(e,t,a){var o,s;return i&&n(o=t.constructor)&&o!==a&&r(s=o.prototype)&&s!==a.prototype&&i(e,s),e}})),ba=T(((e,t)=>{var n=Ci();t.exports=function(e,t){return e===void 0?arguments.length<2?``:t:n(e)}})),xa=T(((e,t)=>{var n=Er(),r=$r();t.exports=function(e,t){n(t)&&`cause`in t&&r(e,`cause`,t.cause)}})),Sa=T(((e,t)=>{var n=K(),r=Error,i=n(``.replace),a=(function(e){return String(new r(e).stack)})(`zxcasd`),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(a);t.exports=function(e,t){if(s&&typeof e==`string`&&!r.prepareStackTrace)for(;t--;)e=i(e,o,``);return e}})),Ca=T(((e,t)=>{var n=U(),r=yr();t.exports=!n(function(){var e=Error(`a`);return`stack`in e?(Object.defineProperty(e,`stack`,r(1,7)),e.stack!==7):!0})})),wa=T(((e,t)=>{var n=$r(),r=Sa(),i=Ca(),a=Error.captureStackTrace;t.exports=function(e,t,o,s){i&&(a?a(e,t):n(e,`stack`,r(o,s)))}})),Ta=T(((e,t)=>{var n=Dr(),r=Ur(),i=$r(),a=Or(),o=_a(),s=yi(),c=va(),l=ya(),u=ba(),d=xa(),f=wa(),p=W(),m=Rr();t.exports=function(e,t,h,g){var _=`stackTraceLimit`,v=g?2:1,y=e.split(`.`),b=y[y.length-1],x=n.apply(null,y);if(x){var S=x.prototype;if(!m&&r(S,`cause`)&&delete S.cause,!h)return x;var C=n(`Error`),w=t(function(e,t){var n=u(g?t:e,void 0),r=g?new x(e):new x;return n!==void 0&&i(r,`message`,n),f(r,w,r.stack,2),this&&a(S,this)&&l(r,this,w),arguments.length>v&&d(r,arguments[v]),r});if(w.prototype=S,b===`Error`?p&&_ in x&&(c(w,x,_),c(w,x,`prepareStackTrace`)):o?o(w,C):s(w,C,{name:!0}),s(w,x),!m)try{S.name!==b&&i(S,`name`,b),S.constructor=w}catch{}return w}}})),Ea=T((()=>{var e=J(),t=H(),n=qi(),r=Ta(),i=`WebAssembly`,a=t[i],o=Error(`e`,{cause:7}).cause!==7,s=function(t,n){var i={};i[t]=r(t,n,o),e({global:!0,constructor:!0,arity:1,forced:o},i)},c=function(t,n){if(a&&a[t]){var s={};s[t]=r(i+`.`+t,n,o),e({target:i,stat:!0,constructor:!0,arity:1,forced:o},s)}};s(`Error`,function(e){return function(t){return n(e,this,arguments)}}),s(`EvalError`,function(e){return function(t){return n(e,this,arguments)}}),s(`RangeError`,function(e){return function(t){return n(e,this,arguments)}}),s(`ReferenceError`,function(e){return function(t){return n(e,this,arguments)}}),s(`SyntaxError`,function(e){return function(t){return n(e,this,arguments)}}),s(`TypeError`,function(e){return function(t){return n(e,this,arguments)}}),s(`URIError`,function(e){return function(t){return n(e,this,arguments)}}),c(`CompileError`,function(e){return function(t){return n(e,this,arguments)}}),c(`LinkError`,function(e){return function(t){return n(e,this,arguments)}}),c(`RuntimeError`,function(e){return function(t){return n(e,this,arguments)}})})),Da=T((()=>{var e=J(),t=Dr(),n=Er(),r=Si(),i=U(),a=`Error`,o=`DOMException`,s=Object.setPrototypeOf||{}.__proto__,c=t(o),l=Error,u=l.isError;e({target:`Error`,stat:!0,sham:!0,forced:!u||!s||i(function(){return c&&!u(new c(o))||!u(new l(a,{cause:function(){}}))||u(t(`Object`,`create`)(l.prototype))})},{isError:function(e){if(!n(e))return!1;var t=r(e);return t===a||t===o}})})),Oa=T(((e,t)=>{var n=W(),r=U(),i=q(),a=ba(),o=Error.prototype.toString;t.exports=r(function(){if(n){var e=Object.create(Object.defineProperty({},`name`,{get:function(){return this===e}}));if(o.call(e)!==`true`)return!0}return o.call({message:1,name:2})!==`2: 1`||o.call({})!==`Error`})?function(){var e=i(this),t=a(e.name,`Error`),n=a(e.message);return t?n?t+`: `+n:t:n}:o})),ka=T((()=>{var e=si(),t=Oa(),n=Error.prototype;n.toString!==t&&e(n,`toString`,t)})),Aa=T(((e,t)=>{t.exports=!U()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})})),ja=T(((e,t)=>{var n=Ur(),r=Tr(),i=Hr(),a=ri(),o=Aa(),s=a(`IE_PROTO`),c=Object,l=c.prototype;t.exports=o?c.getPrototypeOf:function(e){var t=i(e);if(n(t,s))return t[s];var a=t.constructor;return r(a)&&t instanceof a?a.prototype:t instanceof c?l:null}})),Ma=T(((e,t)=>{t.exports={}})),Na=T(((e,t)=>{var n=Gr(),r=Ma(),i=n(`iterator`),a=Array.prototype;t.exports=function(e){return e!==void 0&&(r.Array===e||a[i]===e)}})),Pa=T(((e,t)=>{var n=Si(),r=Ir(),i=Sr(),a=Ma(),o=Gr()(`iterator`);t.exports=function(e){if(!i(e))return r(e,o)||r(e,`@@iterator`)||a[n(e)]}})),Fa=T(((e,t)=>{var n=G(),r=Fr(),i=q(),a=Pr(),o=Pa(),s=TypeError;t.exports=function(e,t){var c=arguments.length<2?o(e):t;if(r(c))return i(n(c,e));throw new s(a(e)+` is not iterable`)}})),Ia=T(((e,t)=>{var n=G(),r=q(),i=Ir();t.exports=function(e,t,a){var o,s;r(e);try{if(o=i(e,`return`),!o){if(t===`throw`)throw a;return a}o=n(o,e)}catch(e){s=!0,o=e}if(t===`throw`)throw a;if(s)throw o;return r(o),a}})),La=T(((e,t)=>{var n=Li(),r=G(),i=q(),a=Pr(),o=Na(),s=fi(),c=Or(),l=Fa(),u=Pa(),d=Ia(),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;t.exports=function(e,t,h){var g=h&&h.that,_=!!(h&&h.AS_ENTRIES),v=!!(h&&h.IS_RECORD),y=!!(h&&h.IS_ITERATOR),b=!!(h&&h.INTERRUPTED),x=n(t,g),S,C,w,T,E,D,O,k=function(e){return S&&d(S,`normal`),new p(!0,e)},A=function(e){return _?(i(e),b?x(e[0],e[1],k):x(e[0],e[1])):b?x(e,k):x(e)};if(v)S=e.iterator;else if(y)S=e;else{if(C=u(e),!C)throw new f(a(e)+` is not iterable`);if(o(C)){for(w=0,T=s(e);T>w;w++)if(E=A(e[w]),E&&c(m,E))return E;return new p(!1)}S=l(e,C)}for(D=v?e.next:S.next;!(O=r(D,S)).done;){try{E=A(O.value)}catch(e){d(S,`throw`,e)}if(typeof E==`object`&&E&&c(m,E))return E}return new p(!1)}})),Ra=T((()=>{var e=J(),t=Or(),n=ja(),r=_a(),i=yi(),a=Di(),o=$r(),s=yr(),c=xa(),l=wa(),u=La(),d=ba(),f=Gr()(`toStringTag`),p=Error,m=[].push,h=function(e,i){var s=t(g,this),_;r?_=r(new p,s?n(this):g):(_=s?this:a(g),o(_,f,`Error`)),i!==void 0&&o(_,`message`,d(i)),l(_,h,_.stack,1),arguments.length>2&&c(_,arguments[2]);var v=[];return u(e,m,{that:v}),o(_,`errors`,v),_};r?r(h,p):i(h,p,{name:!0});var g=h.prototype=a(p.prototype,{constructor:s(1,h),message:s(1,``),name:s(1,`AggregateError`)});e({global:!0,constructor:!0,arity:2},{AggregateError:h})})),za=T((()=>{Ra()})),Ba=T((()=>{var e=J(),t=Dr(),n=qi(),r=U(),i=Ta(),a=`AggregateError`,o=t(a),s=!r(function(){return o([1]).errors[0]!==1})&&r(function(){return o([1],a,{cause:7}).cause!==7});e({global:!0,constructor:!0,arity:2,forced:s},{AggregateError:i(a,function(e){return function(t,r){return n(e,this,arguments)}},s,!0)})})),Va=T((()=>{var e=J(),t=H(),n=Or(),r=ja(),i=_a(),a=yi(),o=Di(),s=$r(),c=yr(),l=wa(),u=ba(),d=Gr(),f=U(),p=Rr(),m=t.SuppressedError,h=d(`toStringTag`),g=Error,_=!!m&&m.length!==3,v=!!m&&f(function(){return new m(1,2,3,{cause:4}).cause===4}),y=_||v,b=function(e,t,a){var c=n(x,this),d;return i?d=y&&(!c||r(this)===x)?new m:i(new g,c?r(this):x):(d=c?this:o(x),s(d,h,`Error`)),a!==void 0&&s(d,`message`,u(a)),l(d,b,d.stack,1),s(d,`error`,e),s(d,`suppressed`,t),d};i?i(b,g):a(b,g,{name:!0});var x=b.prototype=y?m.prototype:o(g.prototype,{constructor:c(1,b),message:c(1,``),name:c(1,`SuppressedError`)});y&&!p&&(x.constructor=b),e({global:!0,constructor:!0,arity:3,forced:y},{SuppressedError:b})})),Ha=T(((e,t)=>{var n=Gr(),r=Di(),i=Qr().f,a=n(`unscopables`),o=Array.prototype;o[a]===void 0&&i(o,a,{configurable:!0,value:r(null)}),t.exports=function(e){o[a][e]=!0}})),Ua=T((()=>{var e=J(),t=Hr(),n=fi(),r=li(),i=Ha();e({target:`Array`,proto:!0},{at:function(e){var i=t(this),a=n(i),o=r(e),s=o>=0?o:a+o;return s<0||s>=a?void 0:i[s]}}),i(`at`)})),Wa=T(((e,t)=>{var n=TypeError,r=9007199254740991;t.exports=function(e){if(e>r)throw n(`Maximum allowed index exceeded`);return e}})),Ga=T(((e,t)=>{var n=W(),r=Qr(),i=yr();t.exports=function(e,t,a){n?r.f(e,t,i(0,a)):e[t]=a}})),Ka=T(((e,t)=>{var n=U(),r=Gr(),i=Ar(),a=r(`species`);t.exports=function(e){return i>=51||!n(function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},t[e](Boolean).foo!==1})}})),qa=T((()=>{var e=J(),t=U(),n=Ri(),r=Er(),i=Hr(),a=fi(),o=Wa(),s=Ga(),c=Vi(),l=Ka(),u=Gr(),d=Ar(),f=u(`isConcatSpreadable`),p=d>=51||!t(function(){var e=[];return e[f]=!1,e.concat()[0]!==e}),m=function(e){if(!r(e))return!1;var t=e[f];return t===void 0?n(e):!!t};e({target:`Array`,proto:!0,arity:1,forced:!p||!l(`concat`)},{concat:function(e){var t=i(this),n=c(t,0),r=0,l,u,d,f,p;for(l=-1,d=arguments.length;l<d;l++)if(p=l===-1?t:arguments[l],m(p))for(f=a(p),o(r+f),u=0;u<f;u++,r++)u in p&&s(n,r,p[u]);else o(r+1),s(n,r++,p);return n.length=r,n}})})),Ja=T(((e,t)=>{var n=Pr(),r=TypeError;t.exports=function(e,t){if(!delete e[t])throw new r(`Cannot delete property `+n(t)+` of `+n(e))}})),Ya=T(((e,t)=>{var n=Hr(),r=ui(),i=fi(),a=Ja(),o=Math.min;t.exports=[].copyWithin||function(e,t){var s=n(this),c=i(s),l=r(e,c),u=r(t,c),d=arguments.length>2?arguments[2]:void 0,f=o((d===void 0?c:r(d,c))-u,c-l),p=1;for(u<l&&l<u+f&&(p=-1,u+=f-1,l+=f-1);f-- >0;)u in s?s[l]=s[u]:a(s,l),l+=p,u+=p;return s}})),Xa=T((()=>{var e=J(),t=Ya(),n=Ha();e({target:`Array`,proto:!0},{copyWithin:t}),n(`copyWithin`)})),Za=T(((e,t)=>{var n=U();t.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){return 1},1)})}})),Qa=T((()=>{var e=J(),t=Hi().every;e({target:`Array`,proto:!0,forced:!Za()(`every`)},{every:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),$a=T(((e,t)=>{var n=Hr(),r=ui(),i=fi();t.exports=function(e){for(var t=n(this),a=i(t),o=arguments.length,s=r(o>1?arguments[1]:void 0,a),c=o>2?arguments[2]:void 0,l=c===void 0?a:r(c,a);l>s;)t[s++]=e;return t}})),eo=T((()=>{var e=J(),t=$a(),n=Ha();e({target:`Array`,proto:!0},{fill:t}),n(`fill`)})),to=T((()=>{var e=J(),t=Hi().filter;e({target:`Array`,proto:!0,forced:!Ka()(`filter`)},{filter:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),no=T((()=>{var e=J(),t=Hi().find,n=Ha(),r=`find`,i=!0;r in[]&&[,][r](function(){i=!1}),e({target:`Array`,proto:!0,forced:i},{find:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(r)})),ro=T((()=>{var e=J(),t=Hi().findIndex,n=Ha(),r=`findIndex`,i=!0;r in[]&&[,][r](function(){i=!1}),e({target:`Array`,proto:!0,forced:i},{findIndex:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(r)})),io=T(((e,t)=>{var n=Li(),r=xr(),i=Hr(),a=fi(),o=function(e){var t=e===1;return function(o,s,c){for(var l=i(o),u=r(l),d=a(u),f=n(s,c),p,m;d-- >0;)if(p=u[d],m=f(p,d,l),m)switch(e){case 0:return p;case 1:return d}return t?-1:void 0}};t.exports={findLast:o(0),findLastIndex:o(1)}})),ao=T((()=>{var e=J(),t=io().findLast,n=Ha();e({target:`Array`,proto:!0},{findLast:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(`findLast`)})),oo=T((()=>{var e=J(),t=io().findLastIndex,n=Ha();e({target:`Array`,proto:!0},{findLastIndex:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(`findLastIndex`)})),so=T(((e,t)=>{var n=Ri(),r=fi(),i=Wa(),a=Li(),o=function(e,t,s,c,l,u,d,f){for(var p=l,m=0,h=d?a(d,f):!1,g,_;m<c;)m in s&&(g=h?h(s[m],m,t):s[m],u>0&&n(g)?(_=r(g),p=o(e,t,g,_,p,u-1)-1):(i(p+1),e[p]=g),p++),m++;return p};t.exports=o})),co=T((()=>{var e=J(),t=so(),n=Hr(),r=fi(),i=li(),a=Vi();e({target:`Array`,proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,o=n(this),s=r(o),c=a(o,0);return c.length=t(c,o,o,s,0,e===void 0?1:i(e)),c}})})),lo=T((()=>{var e=J(),t=so(),n=Fr(),r=Hr(),i=fi(),a=Vi();e({target:`Array`,proto:!0},{flatMap:function(e){var o=r(this),s=i(o),c;return n(e),c=a(o,0),c.length=t(c,o,o,s,0,1,e,arguments.length>1?arguments[1]:void 0),c}})})),uo=T(((e,t)=>{var n=Hi().forEach;t.exports=Za()(`forEach`)?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})),fo=T((()=>{var e=J(),t=uo();e({target:`Array`,proto:!0,forced:[].forEach!==t},{forEach:t})})),po=T(((e,t)=>{var n=q(),r=Ia();t.exports=function(e,t,i,a){try{return a?t(n(i)[0],i[1]):t(i)}catch(t){r(e,`throw`,t)}}})),mo=T(((e,t)=>{var n=Li(),r=G(),i=Hr(),a=po(),o=Na(),s=zi(),c=fi(),l=Ga(),u=Fa(),d=Pa(),f=Array;t.exports=function(e){var t=i(e),p=s(this),m=arguments.length,h=m>1?arguments[1]:void 0,g=h!==void 0;g&&(h=n(h,m>2?arguments[2]:void 0));var _=d(t),v=0,y,b,x,S,C,w;if(_&&!(this===f&&o(_)))for(b=p?new this:[],S=u(t,_),C=S.next;!(x=r(C,S)).done;v++)w=g?a(S,h,[x.value,v],!0):x.value,l(b,v,w);else for(y=c(t),b=p?new this(y):f(y);y>v;v++)w=g?h(t[v],v):t[v],l(b,v,w);return b.length=v,b}})),ho=T(((e,t)=>{var n=Gr()(`iterator`),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[n]=function(){return this},Array.from(a,function(){throw 2})}catch{}t.exports=function(e,t){try{if(!t&&!r)return!1}catch{return!1}var i=!1;try{var a={};a[n]=function(){return{next:function(){return{done:i=!0}}}},e(a)}catch{}return i}})),go=T((()=>{var e=J(),t=mo();e({target:`Array`,stat:!0,forced:!ho()(function(e){Array.from(e)})},{from:t})})),_o=T((()=>{var e=J(),t=pi().includes,n=U(),r=Ha();e({target:`Array`,proto:!0,forced:n(function(){return![,].includes()})},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r(`includes`)})),vo=T((()=>{var e=J(),t=Ii(),n=pi().indexOf,r=Za(),i=t([].indexOf),a=!!i&&1/i([1],1,-0)<0;e({target:`Array`,proto:!0,forced:a||!r(`indexOf`)},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return a?i(this,e,t)||0:n(this,e,t)}})})),yo=T((()=>{J()({target:`Array`,stat:!0},{isArray:Ri()})})),bo=T(((e,t)=>{var n=U(),r=Tr(),i=Er(),a=Di(),o=ja(),s=si(),c=Gr(),l=Rr(),u=c(`iterator`),d=!1,f,p,m;[].keys&&(m=[].keys(),`next`in m?(p=o(o(m)),p!==Object.prototype&&(f=p)):d=!0),!i(f)||n(function(){var e={};return f[u].call(e)!==e})?f={}:l&&(f=a(f)),r(f[u])||s(f,u,function(){return this}),t.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:d}})),xo=T(((e,t)=>{var n=bo().IteratorPrototype,r=Di(),i=yr(),a=Fi(),o=Ma(),s=function(){return this};t.exports=function(e,t,c,l){var u=t+` Iterator`;return e.prototype=r(n,{next:i(+!l,c)}),a(e,u,!1,!0),o[u]=s,e}})),So=T(((e,t)=>{var n=J(),r=G(),i=Rr(),a=ei(),o=Tr(),s=xo(),c=ja(),l=_a(),u=Fi(),d=$r(),f=si(),p=Gr(),m=Ma(),h=bo(),g=a.PROPER,_=a.CONFIGURABLE,v=h.IteratorPrototype,y=h.BUGGY_SAFARI_ITERATORS,b=p(`iterator`),x=`keys`,S=`values`,C=`entries`,w=function(){return this};t.exports=function(e,t,a,p,h,T,E){s(a,t,p);var D=function(e){if(e===h&&M)return M;if(!y&&e&&e in A)return A[e];switch(e){case x:return function(){return new a(this,e)};case S:return function(){return new a(this,e)};case C:return function(){return new a(this,e)}}return function(){return new a(this)}},O=t+` Iterator`,k=!1,A=e.prototype,j=A[b]||A[`@@iterator`]||h&&A[h],M=!y&&j||D(h),N=t===`Array`&&A.entries||j,P,F,I;if(N&&(P=c(N.call(new e)),P!==Object.prototype&&P.next&&(!i&&c(P)!==v&&(l?l(P,v):o(P[b])||f(P,b,w)),u(P,O,!0,!0),i&&(m[O]=w))),g&&h===S&&j&&j.name!==S&&(!i&&_?d(A,`name`,S):(k=!0,M=function(){return r(j,this)})),h)if(F={values:D(S),keys:T?M:D(x),entries:D(C)},E)for(I in F)(y||k||!(I in A))&&f(A,I,F[I]);else n({target:t,proto:!0,forced:y||k},F);return(!i||E)&&A[b]!==M&&f(A,b,M,{name:h}),m[t]=M,F}})),Co=T(((e,t)=>{t.exports=function(e,t){return{value:e,done:t}}})),wo=T(((e,t)=>{var n=wr(),r=Ha(),i=Ma(),a=ai(),o=Qr().f,s=So(),c=Co(),l=Rr(),u=W(),d=`Array Iterator`,f=a.set,p=a.getterFor(d);t.exports=s(Array,`Array`,function(e,t){f(this,{type:d,target:n(e),index:0,kind:t})},function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case`keys`:return c(n,!1);case`values`:return c(t[n],!1)}return c([n,t[n]],!1)},`values`);var m=i.Arguments=i.Array;if(r(`keys`),r(`values`),r(`entries`),!l&&u&&m.name!==`values`)try{o(m,`name`,{value:`values`})}catch{}})),To=T((()=>{var e=J(),t=K(),n=xr(),r=wr(),i=Za(),a=t([].join);e({target:`Array`,proto:!0,forced:n!==Object||!i(`join`,`,`)},{join:function(e){return a(r(this),e===void 0?`,`:e)}})})),Eo=T(((e,t)=>{var n=qi(),r=wr(),i=li(),a=fi(),o=Za(),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,u=o(`lastIndexOf`);t.exports=l||!u?function(e){if(l)return n(c,this,arguments)||0;var t=r(this),o=a(t);if(o===0)return-1;var u=o-1;for(arguments.length>1&&(u=s(u,i(arguments[1]))),u<0&&(u=o+u);u>=0;u--)if(u in t&&t[u]===e)return u||0;return-1}:c})),Do=T((()=>{var e=J(),t=Eo();e({target:`Array`,proto:!0,forced:t!==[].lastIndexOf},{lastIndexOf:t})})),Oo=T((()=>{var e=J(),t=Hi().map;e({target:`Array`,proto:!0,forced:!Ka()(`map`)},{map:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),ko=T((()=>{var e=J(),t=U(),n=zi(),r=Ga(),i=Array;e({target:`Array`,stat:!0,forced:t(function(){function e(){}return!(i.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,a=new(n(this)?this:i)(t);t>e;)r(a,e,arguments[e++]);return a.length=t,a}})})),Ao=T(((e,t)=>{var n=W(),r=Ri(),i=TypeError,a=Object.getOwnPropertyDescriptor;t.exports=n&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],`length`,{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(r(e)&&!a(e,`length`).writable)throw new i(`Cannot set read only .length`);return e.length=t}:function(e,t){return e.length=t}})),jo=T((()=>{var e=J(),t=Hr(),n=fi(),r=Ao(),i=Wa();e({target:`Array`,proto:!0,arity:1,forced:U()(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],`length`,{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var a=t(this),o=n(a),s=arguments.length;i(o+s);for(var c=0;c<s;c++)a[o]=arguments[c],o++;return r(a,o),o}})})),Mo=T(((e,t)=>{var n=Fr(),r=Hr(),i=xr(),a=fi(),o=TypeError,s=`Reduce of empty array with no initial value`,c=function(e){return function(t,c,l,u){var d=r(t),f=i(d),p=a(d);if(n(c),p===0&&l<2)throw new o(s);var m=e?p-1:0,h=e?-1:1;if(l<2)for(;;){if(m in f){u=f[m],m+=h;break}if(m+=h,e?m<0:p<=m)throw new o(s)}for(;e?m>=0:p>m;m+=h)m in f&&(u=c(u,f[m],m,d));return u}};t.exports={left:c(!1),right:c(!0)}})),No=T(((e,t)=>{var n=H(),r=kr(),i=br(),a=function(e){return r.slice(0,e.length)===e};t.exports=(function(){return a(`Bun/`)?`BUN`:a(`Cloudflare-Workers`)?`CLOUDFLARE`:a(`Deno/`)?`DENO`:a(`Node.js/`)?`NODE`:n.Bun&&typeof Bun.version==`string`?`BUN`:n.Deno&&typeof Deno.version==`object`?`DENO`:i(n.process)===`process`?`NODE`:n.window&&n.document?`BROWSER`:`REST`})()})),Po=T(((e,t)=>{t.exports=No()===`NODE`})),Fo=T((()=>{var e=J(),t=Mo().left,n=Za(),r=Ar();e({target:`Array`,proto:!0,forced:!Po()&&r>79&&r<83||!n(`reduce`)},{reduce:function(e){var n=arguments.length;return t(this,e,n,n>1?arguments[1]:void 0)}})})),Io=T((()=>{var e=J(),t=Mo().right,n=Za(),r=Ar();e({target:`Array`,proto:!0,forced:!Po()&&r>79&&r<83||!n(`reduceRight`)},{reduceRight:function(e){return t(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})})),Lo=T((()=>{var e=J(),t=K(),n=Ri(),r=t([].reverse),i=[1,2];e({target:`Array`,proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r(this)}})})),Ro=T((()=>{var e=J(),t=Ri(),n=zi(),r=Er(),i=ui(),a=fi(),o=wr(),s=Ga(),c=Gr(),l=Ka(),u=Oi(),d=l(`slice`),f=c(`species`),p=Array,m=Math.max;e({target:`Array`,proto:!0,forced:!d},{slice:function(e,c){var l=o(this),d=a(l),h=i(e,d),g=i(c===void 0?d:c,d),_,v,y;if(t(l)&&(_=l.constructor,n(_)&&(_===p||t(_.prototype))?_=void 0:r(_)&&(_=_[f],_===null&&(_=void 0)),_===p||_===void 0))return u(l,h,g);for(v=new(_===void 0?p:_)(m(g-h,0)),y=0;h<g;h++,y++)h in l&&s(v,y,l[h]);return v.length=y,v}})})),zo=T((()=>{var e=J(),t=Hi().some;e({target:`Array`,proto:!0,forced:!Za()(`some`)},{some:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),Bo=T(((e,t)=>{var n=Oi(),r=Math.floor,i=function(e,t){var a=e.length;if(a<8)for(var o=1,s,c;o<a;){for(c=o,s=e[o];c&&t(e[c-1],s)>0;)e[c]=e[--c];c!==o++&&(e[c]=s)}else for(var l=r(a/2),u=i(n(e,0,l),t),d=i(n(e,l),t),f=u.length,p=d.length,m=0,h=0;m<f||h<p;)e[m+h]=m<f&&h<p?t(u[m],d[h])<=0?u[m++]:d[h++]:m<f?u[m++]:d[h++];return e};t.exports=i})),Vo=T(((e,t)=>{var n=kr().match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]})),Ho=T(((e,t)=>{var n=kr();t.exports=/MSIE|Trident/.test(n)})),Uo=T(((e,t)=>{var n=kr().match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]})),Wo=T((()=>{var e=J(),t=K(),n=Fr(),r=Hr(),i=fi(),a=Ja(),o=Ci(),s=U(),c=Bo(),l=Za(),u=Vo(),d=Ho(),f=Ar(),p=Uo(),m=[],h=t(m.sort),g=t(m.push),_=s(function(){m.sort(void 0)}),v=s(function(){m.sort(null)}),y=l(`sort`),b=!s(function(){if(f)return f<70;if(!(u&&u>3)){if(d)return!0;if(p)return p<603;var e=``,t,n,r,i;for(t=65;t<76;t++){switch(n=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(i=0;i<47;i++)m.push({k:n+i,v:r})}for(m.sort(function(e,t){return t.v-e.v}),i=0;i<m.length;i++)n=m[i].k.charAt(0),e.charAt(e.length-1)!==n&&(e+=n);return e!==`DGBEFHACIJK`}}),x=_||!v||!y||!b,S=function(e){return function(t,n){return n===void 0?-1:t===void 0?1:e===void 0?o(t)>o(n)?1:-1:+e(t,n)||0}};e({target:`Array`,proto:!0,forced:x},{sort:function(e){e!==void 0&&n(e);var t=r(this);if(b)return e===void 0?h(t):h(t,e);var o=[],s=i(t),l,u;for(u=0;u<s;u++)u in t&&g(o,t[u]);for(c(o,S(e)),l=i(o),u=0;u<l;)t[u]=o[u++];for(;u<s;)a(t,u++);return t}})})),Go=T(((e,t)=>{var n=Dr(),r=Ai(),i=Gr(),a=W(),o=i(`species`);t.exports=function(e){var t=n(e);a&&t&&!t[o]&&r(t,o,{configurable:!0,get:function(){return this}})}})),Ko=T((()=>{Go()(`Array`)})),qo=T((()=>{var e=J(),t=Hr(),n=ui(),r=li(),i=fi(),a=Ao(),o=Wa(),s=Vi(),c=Ga(),l=Ja(),u=Ka()(`splice`),d=Math.max,f=Math.min;e({target:`Array`,proto:!0,forced:!u},{splice:function(e,u){var p=t(this),m=i(p),h=n(e,m),g=arguments.length,_,v,y,b,x,S;for(g===0?_=v=0:g===1?(_=0,v=m-h):(_=g-2,v=f(d(r(u),0),m-h)),o(m+_-v),y=s(p,v),b=0;b<v;b++)x=h+b,x in p&&c(y,b,p[x]);if(y.length=v,_<v){for(b=h;b<m-v;b++)x=b+v,S=b+_,x in p?p[S]=p[x]:l(p,S);for(b=m;b>m-v+_;b--)l(p,b-1)}else if(_>v)for(b=m-v;b>h;b--)x=b+v-1,S=b+_-1,x in p?p[S]=p[x]:l(p,S);for(b=0;b<_;b++)p[b+h]=arguments[b+2];return a(p,m-v+_),y}})})),Jo=T(((e,t)=>{var n=fi();t.exports=function(e,t){for(var r=n(e),i=new t(r),a=0;a<r;a++)i[a]=e[r-a-1];return i}})),Yo=T((()=>{var e=J(),t=Jo(),n=wr(),r=Ha(),i=Array;e({target:`Array`,proto:!0},{toReversed:function(){return t(n(this),i)}}),r(`toReversed`)})),Xo=T(((e,t)=>{var n=fi();t.exports=function(e,t,r){for(var i=0,a=arguments.length>2?r:n(t),o=new e(a);a>i;)o[i]=t[i++];return o}})),Zo=T(((e,t)=>{var n=H();t.exports=function(e,t){var r=n[e],i=r&&r.prototype;return i&&i[t]}})),Qo=T((()=>{var e=J(),t=K(),n=Fr(),r=wr(),i=Xo(),a=Zo(),o=Ha(),s=Array,c=t(a(`Array`,`sort`));e({target:`Array`,proto:!0},{toSorted:function(e){return e!==void 0&&n(e),c(i(s,r(this)),e)}}),o(`toSorted`)})),$o=T((()=>{var e=J(),t=Ha(),n=Wa(),r=fi(),i=ui(),a=wr(),o=li(),s=Array,c=Math.max,l=Math.min;e({target:`Array`,proto:!0},{toSpliced:function(e,t){var u=a(this),d=r(u),f=i(e,d),p=arguments.length,m=0,h,g,_,v;for(p===0?h=g=0:p===1?(h=0,g=d-f):(h=p-2,g=l(c(o(t),0),d-f)),_=n(d+h-g),v=s(_);m<f;m++)v[m]=u[m];for(;m<f+h;m++)v[m]=arguments[m-f+2];for(;m<_;m++)v[m]=u[m+g-h];return v}}),t(`toSpliced`)})),es=T((()=>{Ha()(`flat`)})),ts=T((()=>{Ha()(`flatMap`)})),ns=T((()=>{var e=J(),t=Hr(),n=fi(),r=Ao(),i=Ja(),a=Wa();e({target:`Array`,proto:!0,arity:1,forced:[].unshift(0)!==1||!function(){try{Object.defineProperty([],`length`,{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var o=t(this),s=n(o),c=arguments.length;if(c){a(s+c);for(var l=s;l--;){var u=l+c;l in o?o[u]=o[l]:i(o,u)}for(var d=0;d<c;d++)o[d]=arguments[d]}return r(o,s+c)}})})),rs=T(((e,t)=>{var n=fi(),r=li(),i=RangeError;t.exports=function(e,t,a,o){var s=n(e),c=r(a),l=c<0?s+c:c;if(l>=s||l<0)throw new i(`Incorrect index`);for(var u=new t(s),d=0;d<s;d++)u[d]=d===l?o:e[d];return u}})),is=T((()=>{var e=J(),t=rs(),n=wr(),r=Array;e({target:`Array`,proto:!0,forced:(function(){try{[].with({valueOf:function(){throw 4}},null)}catch(e){return e!==4}})()},{with:function(e,i){return t(n(this),r,e,i)}})})),as=T(((e,t)=>{t.exports=typeof ArrayBuffer<`u`&&typeof DataView<`u`})),os=T(((e,t)=>{var n=si();t.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}})),ss=T(((e,t)=>{var n=Or(),r=TypeError;t.exports=function(e,t){if(n(t,e))return e;throw new r(`Incorrect invocation`)}})),cs=T(((e,t)=>{var n=li(),r=di(),i=RangeError;t.exports=function(e){if(e===void 0)return 0;var t=n(e),a=r(t);if(t!==a)throw new i(`Wrong length or index`);return a}})),ls=T(((e,t)=>{t.exports=Math.sign||function(e){var t=+e;return t===0||t!==t?t:t<0?-1:1}})),us=T(((e,t)=>{var n=1/2220446049250313e-31;t.exports=function(e){return e+n-n}})),ds=T(((e,t)=>{var n=ls(),r=us(),i=Math.abs,a=2220446049250313e-31;t.exports=function(e,t,o,s){var c=+e,l=i(c),u=n(c);if(l<s)return u*r(l/s/t)*s*t;var d=(1+t/a)*l,f=d-(d-l);return f>o||f!==f?u*(1/0):u*f}})),fs=T(((e,t)=>{var n=ds(),r=1.1920928955078125e-7,i=34028234663852886e22,a=11754943508222875e-54;t.exports=Math.fround||function(e){return n(e,r,i,a)}})),ps=T(((e,t)=>{var n=Array,r=Math.abs,i=Math.pow,a=Math.floor,o=Math.log,s=Math.LN2;t.exports={pack:function(e,t,c){var l=n(c),u=c*8-t-1,d=(1<<u)-1,f=d>>1,p=t===23?i(2,-24)-i(2,-77):0,m=e<0||e===0&&1/e<0?1:0,h=0,g,_,v;for(e=r(e),e!==e||e===1/0?(_=e===e?0:1,g=d):(g=a(o(e)/s),v=i(2,-g),e*v<1&&(g--,v*=2),g+f>=1?e+=p/v:e+=p*i(2,1-f),e*v>=2&&(g++,v/=2),g+f>=d?(_=0,g=d):g+f>=1?(_=(e*v-1)*i(2,t),g+=f):(_=e*i(2,f-1)*i(2,t),g=0));t>=8;)l[h++]=_&255,_/=256,t-=8;for(g=g<<t|_,u+=t;u>0;)l[h++]=g&255,g/=256,u-=8;return l[h-1]|=m*128,l},unpack:function(e,t){var n=e.length,r=n*8-t-1,a=(1<<r)-1,o=a>>1,s=r-7,c=n-1,l=e[c--],u=l&127,d;for(l>>=7;s>0;)u=u*256+e[c--],s-=8;for(d=u&(1<<-s)-1,u>>=-s,s+=t;s>0;)d=d*256+e[c--],s-=8;if(u===0)u=1-o;else if(u===a)return d?NaN:l?-1/0:1/0;else d+=i(2,t),u-=o;return(l?-1:1)*d*i(2,u-t)}}})),ms=T(((e,t)=>{var n=H(),r=K(),i=W(),a=as(),o=ei(),s=$r(),c=Ai(),l=os(),u=U(),d=ss(),f=li(),p=di(),m=cs(),h=fs(),g=ps(),_=ja(),v=_a(),y=$a(),b=Oi(),x=ya(),S=yi(),C=Fi(),w=ai(),T=o.PROPER,E=o.CONFIGURABLE,D=`ArrayBuffer`,O=`DataView`,k=`prototype`,A=`Wrong length`,j=`Wrong index`,M=w.getterFor(D),N=w.getterFor(O),P=w.set,F=n[D],I=F,L=I&&I[k],R=n[O],ee=R&&R[k],z=Object.prototype,te=n.Array,ne=n.RangeError,re=r(y),ie=r([].reverse),ae=g.pack,oe=g.unpack,se=function(e){return[e&255]},ce=function(e){return[e&255,e>>8&255]},le=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},ue=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},de=function(e){return ae(h(e),23,4)},fe=function(e){return ae(e,52,8)},pe=function(e,t,n){c(e[k],t,{configurable:!0,get:function(){return n(this)[t]}})},me=function(e,t,n,r){var i=N(e),a=m(n),o=!!r;if(a+t>i.byteLength)throw new ne(j);var s=i.bytes,c=a+i.byteOffset,l=b(s,c,c+t);return o?l:ie(l)},he=function(e,t,n,r,i,a){var o=N(e),s=m(n),c=r(+i),l=!!a;if(s+t>o.byteLength)throw new ne(j);for(var u=o.bytes,d=s+o.byteOffset,f=0;f<t;f++)u[d+f]=c[l?f:t-f-1]};if(!a)I=function(e){d(this,L);var t=m(e);P(this,{type:D,bytes:re(te(t),0),byteLength:t}),i||(this.byteLength=t,this.detached=!1)},L=I[k],R=function(e,t,n){d(this,ee),d(e,L);var r=M(e),a=r.byteLength,o=f(t);if(o<0||o>a)throw new ne(`Wrong offset`);if(n=n===void 0?a-o:p(n),o+n>a)throw new ne(A);P(this,{type:O,buffer:e,byteLength:n,byteOffset:o,bytes:r.bytes}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},ee=R[k],i&&(pe(I,`byteLength`,M),pe(R,`buffer`,N),pe(R,`byteLength`,N),pe(R,`byteOffset`,N)),l(ee,{getInt8:function(e){return me(this,1,e)[0]<<24>>24},getUint8:function(e){return me(this,1,e)[0]},getInt16:function(e){var t=me(this,2,e,arguments.length>1?arguments[1]:!1);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=me(this,2,e,arguments.length>1?arguments[1]:!1);return t[1]<<8|t[0]},getInt32:function(e){return ue(me(this,4,e,arguments.length>1?arguments[1]:!1))},getUint32:function(e){return ue(me(this,4,e,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(e){return oe(me(this,4,e,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(e){return oe(me(this,8,e,arguments.length>1?arguments[1]:!1),52)},setInt8:function(e,t){he(this,1,e,se,t)},setUint8:function(e,t){he(this,1,e,se,t)},setInt16:function(e,t){he(this,2,e,ce,t,arguments.length>2?arguments[2]:!1)},setUint16:function(e,t){he(this,2,e,ce,t,arguments.length>2?arguments[2]:!1)},setInt32:function(e,t){he(this,4,e,le,t,arguments.length>2?arguments[2]:!1)},setUint32:function(e,t){he(this,4,e,le,t,arguments.length>2?arguments[2]:!1)},setFloat32:function(e,t){he(this,4,e,de,t,arguments.length>2?arguments[2]:!1)},setFloat64:function(e,t){he(this,8,e,fe,t,arguments.length>2?arguments[2]:!1)}});else{var ge=T&&F.name!==D;!u(function(){F(1)})||!u(function(){new F(-1)})||u(function(){return new F,new F(1.5),new F(NaN),F.length!==1||ge&&!E})?(I=function(e){return d(this,L),x(new F(m(e)),this,I)},I[k]=L,L.constructor=I,S(I,F)):ge&&E&&s(F,`name`,D),v&&_(ee)!==z&&v(ee,z);var _e=new R(new I(2)),ve=r(ee.setInt8);_e.setInt8(0,2147483648),_e.setInt8(1,2147483649),(_e.getInt8(0)||!_e.getInt8(1))&&l(ee,{setInt8:function(e,t){ve(this,e,t<<24>>24)},setUint8:function(e,t){ve(this,e,t<<24>>24)}},{unsafe:!0})}C(I,D),C(R,O),t.exports={ArrayBuffer:I,DataView:R}})),hs=T((()=>{var e=J(),t=H(),n=ms(),r=Go(),i=`ArrayBuffer`,a=n[i],o=t[i];e({global:!0,constructor:!0,forced:o!==a},{ArrayBuffer:a}),r(i)})),gs=T(((e,t)=>{var n=as(),r=W(),i=H(),a=Tr(),o=Er(),s=Ur(),c=Si(),l=Pr(),u=$r(),d=si(),f=Ai(),p=Or(),m=ja(),h=_a(),g=Gr(),_=Wr(),v=ai(),y=v.enforce,b=v.get,x=i.Int8Array,S=x&&x.prototype,C=i.Uint8ClampedArray,w=C&&C.prototype,T=x&&m(x),E=S&&m(S),D=Object.prototype,O=i.TypeError,k=g(`toStringTag`),A=_(`TYPED_ARRAY_TAG`),j=`TypedArrayConstructor`,M=n&&!!h&&c(i.opera)!==`Opera`,N=!1,P,F,I,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R={BigInt64Array:8,BigUint64Array:8},ee=function(e){if(!o(e))return!1;var t=c(e);return t===`DataView`||s(L,t)||s(R,t)},z=function(e){var t=m(e);if(o(t)){var n=b(t);return n&&s(n,j)?n[j]:z(t)}},te=function(e){if(!o(e))return!1;var t=c(e);return s(L,t)||s(R,t)},ne=function(e){if(te(e))return e;throw new O(`Target is not a typed array`)},re=function(e){if(a(e)&&(!h||p(T,e)))return e;throw new O(l(e)+` is not a typed array constructor`)},ie=function(e,t,n,a){if(r){if(n)for(var o in L){var c=i[o];if(c&&s(c.prototype,e))try{delete c.prototype[e]}catch{try{c.prototype[e]=t}catch{}}}(!E[e]||n)&&d(E,e,n?t:M&&S[e]||t,a)}},ae=function(e,t,n){var a,o;if(r){if(h){if(n){for(a in L)if(o=i[a],o&&s(o,e))try{delete o[e]}catch{}}if(!T[e]||n)try{return d(T,e,n?t:M&&T[e]||t)}catch{}else return}for(a in L)o=i[a],o&&(!o[e]||n)&&d(o,e,t)}};for(P in L)F=i[P],I=F&&F.prototype,I?y(I)[j]=F:M=!1;for(P in R)F=i[P],I=F&&F.prototype,I&&(y(I)[j]=F);if((!M||!a(T)||T===Function.prototype)&&(T=function(){throw new O(`Incorrect invocation`)},M))for(P in L)i[P]&&h(i[P],T);if((!M||!E||E===D)&&(E=T.prototype,M))for(P in L)i[P]&&h(i[P].prototype,E);if(M&&m(w)!==E&&h(w,E),r&&!s(E,k))for(P in N=!0,f(E,k,{configurable:!0,get:function(){return o(this)?this[A]:void 0}}),L)i[P]&&u(i[P],A,P);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:N&&A,aTypedArray:ne,aTypedArrayConstructor:re,exportTypedArrayMethod:ie,exportTypedArrayStaticMethod:ae,getTypedArrayConstructor:z,isView:ee,isTypedArray:te,TypedArray:T,TypedArrayPrototype:E}})),_s=T((()=>{var e=J(),t=gs(),n=t.NATIVE_ARRAY_BUFFER_VIEWS;e({target:`ArrayBuffer`,stat:!0,forced:!n},{isView:t.isView})})),vs=T((()=>{var e=J(),t=Ii(),n=U(),r=ms(),i=q(),a=ui(),o=di(),s=r.ArrayBuffer,c=r.DataView,l=c.prototype,u=t(s.prototype.slice),d=t(l.getUint8),f=t(l.setUint8);e({target:`ArrayBuffer`,proto:!0,unsafe:!0,forced:n(function(){return!new s(2).slice(1,void 0).byteLength})},{slice:function(e,t){if(u&&t===void 0)return u(i(this),e);for(var n=i(this).byteLength,r=a(e,n),l=a(t===void 0?n:t,n),p=new s(o(l-r)),m=new c(this),h=new c(p),g=0;r<l;)f(h,g++,d(m,r++));return p}})})),ys=T((()=>{var e=J(),t=ms();e({global:!0,constructor:!0,forced:!as()},{DataView:t.DataView})})),bs=T((()=>{ys()})),xs=T((()=>{var e=J(),t=K(),n=Math.pow,r=31,i=1023,a=n(2,-24),o=.0009765625,s=function(e){var t=e>>>15,s=e>>>10&r,c=e&i;return s===r?c===0?t===0?1/0:-1/0:NaN:s===0?c*(t===0?a:-a):n(2,s-15)*(t===0?1+c*o:-1-c*o)},c=t(DataView.prototype.getUint16);e({target:`DataView`,proto:!0},{getFloat16:function(e){return s(c(this,e,arguments.length>1?arguments[1]:!1))}})})),Ss=T(((e,t)=>{var n=Si(),r=TypeError;t.exports=function(e){if(n(e)===`DataView`)return e;throw new r(`Argument is not a DataView`)}})),Cs=T(((e,t)=>{var n=Math.log,r=Math.LN2;t.exports=Math.log2||function(e){return n(e)/r}})),ws=T((()=>{var e=J(),t=K(),n=Ss(),r=cs(),i=Cs(),a=us(),o=Math.pow,s=65520,c=61005353927612305e-21,l=16777216,u=1024,d=function(e){if(e!==e)return 32256;if(e===0)return(1/e==-1/0)<<15;var t=e<0;if(t&&(e=-e),e>=s)return t<<15|31744;if(e<c)return t<<15|a(e*l);var n=i(e)|0;if(n===-15)return t<<15|u;var r=a((e*o(2,-n)-1)*u);return r===u?t<<15|n+16<<10:t<<15|n+15<<10|r},f=t(DataView.prototype.setUint16);e({target:`DataView`,proto:!0},{setFloat16:function(e,t){f(n(this),r(e),d(+t),arguments.length>2?arguments[2]:!1)}})})),Ts=T(((e,t)=>{var n=H(),r=ma(),i=br(),a=n.ArrayBuffer,o=n.TypeError;t.exports=a&&r(a.prototype,`byteLength`,`get`)||function(e){if(i(e)!==`ArrayBuffer`)throw new o(`ArrayBuffer expected`);return e.byteLength}})),Es=T(((e,t)=>{var n=H(),r=as(),i=Ts(),a=n.DataView;t.exports=function(e){if(!r||i(e)!==0)return!1;try{return new a(e),!1}catch{return!0}}})),Ds=T((()=>{var e=W(),t=Ai(),n=Es(),r=ArrayBuffer.prototype;e&&!(`detached`in r)&&t(r,`detached`,{configurable:!0,get:function(){return n(this)}})})),Os=T(((e,t)=>{var n=Es(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`ArrayBuffer is detached`);return e}})),ks=T(((e,t)=>{var n=H(),r=Po();t.exports=function(e){if(r){try{return n.process.getBuiltinModule(e)}catch{}try{return Function(`return require("`+e+`")`)()}catch{}}}})),As=T(((e,t)=>{var n=H(),r=U(),i=Ar(),a=No(),o=n.structuredClone;t.exports=!!o&&!r(function(){if(a===`DENO`&&i>92||a===`NODE`&&i>94||a===`BROWSER`&&i>97)return!1;var e=new ArrayBuffer(8),t=o(e,{transfer:[e]});return e.byteLength!==0||t.byteLength!==8})})),js=T(((e,t)=>{var n=H(),r=ks(),i=As(),a=n.structuredClone,o=n.ArrayBuffer,s=n.MessageChannel,c=!1,l,u,d,f;if(i)c=function(e){a(e,{transfer:[e]})};else if(o)try{s||(l=r(`worker_threads`),l&&(s=l.MessageChannel)),s&&(u=new s,d=new o(2),f=function(e){u.port1.postMessage(null,[e])},d.byteLength===2&&(f(d),d.byteLength===0&&(c=f)))}catch{}t.exports=c})),Ms=T(((e,t)=>{var n=H(),r=K(),i=ma(),a=cs(),o=Os(),s=Ts(),c=js(),l=As(),u=n.structuredClone,d=n.ArrayBuffer,f=n.DataView,p=Math.min,m=d.prototype,h=f.prototype,g=r(m.slice),_=i(m,`resizable`,`get`),v=i(m,`maxByteLength`,`get`),y=r(h.getInt8),b=r(h.setInt8);t.exports=(l||c)&&function(e,t,n){var r=s(e),i=t===void 0?r:a(t),m=!_||!_(e),h;if(o(e),l&&(e=u(e,{transfer:[e]}),r===i&&(n||m)))return e;if(r>=i&&(!n||m))h=g(e,0,i);else{h=new d(i,n&&!m&&v?{maxByteLength:v(e)}:void 0);for(var x=new f(e),S=new f(h),C=p(i,r),w=0;w<C;w++)b(S,w,y(x,w))}return l||c(e),h}})),Ns=T((()=>{var e=J(),t=Ms();t&&e({target:`ArrayBuffer`,proto:!0},{transfer:function(){return t(this,arguments.length?arguments[0]:void 0,!0)}})})),Ps=T((()=>{var e=J(),t=Ms();t&&e({target:`ArrayBuffer`,proto:!0},{transferToFixedLength:function(){return t(this,arguments.length?arguments[0]:void 0,!1)}})})),Fs=T((()=>{var e=J(),t=K(),n=U()(function(){return new Date(16e11).getYear()!==120}),r=t(Date.prototype.getFullYear);e({target:`Date`,proto:!0,forced:n},{getYear:function(){return r(this)-1900}})})),Is=T((()=>{var e=J(),t=K(),n=Date,r=t(n.prototype.getTime);e({target:`Date`,stat:!0},{now:function(){return r(new n)}})})),Ls=T((()=>{var e=J(),t=K(),n=li(),r=Date.prototype,i=t(r.getTime),a=t(r.setFullYear);e({target:`Date`,proto:!0},{setYear:function(e){i(this);var t=n(e),r=t>=0&&t<=99?t+1900:t;return a(this,r)}})})),Rs=T((()=>{J()({target:`Date`,proto:!0},{toGMTString:Date.prototype.toUTCString})})),zs=T(((e,t)=>{var n=li(),r=Ci(),i=Cr(),a=RangeError;t.exports=function(e){var t=r(i(this)),o=``,s=n(e);if(s<0||s===1/0)throw new a(`Wrong number of repetitions`);for(;s>0;(s>>>=1)&&(t+=t))s&1&&(o+=t);return o}})),Bs=T(((e,t)=>{var n=K(),r=di(),i=Ci(),a=zs(),o=Cr(),s=n(a),c=n(``.slice),l=Math.ceil,u=function(e){return function(t,n,a){var u=i(o(t)),d=r(n),f=u.length,p=a===void 0?` `:i(a),m,h;return d<=f||p===``?u:(m=d-f,h=s(p,l(m/p.length)),h.length>m&&(h=c(h,0,m)),e?u+h:h+u)}};t.exports={start:u(!1),end:u(!0)}})),Vs=T(((e,t)=>{var n=K(),r=U(),i=Bs().start,a=RangeError,o=isFinite,s=Math.abs,c=Date.prototype,l=c.toISOString,u=n(c.getTime),d=n(c.getUTCDate),f=n(c.getUTCFullYear),p=n(c.getUTCHours),m=n(c.getUTCMilliseconds),h=n(c.getUTCMinutes),g=n(c.getUTCMonth),_=n(c.getUTCSeconds);t.exports=r(function(){return l.call(new Date(-50000000000001))!==`0385-07-25T07:06:39.999Z`})||!r(function(){l.call(new Date(NaN))})?function(){if(!o(u(this)))throw new a(`Invalid time value`);var e=this,t=f(e),n=m(e),r=t<0?`-`:t>9999?`+`:``;return r+i(s(t),r?6:4,0)+`-`+i(g(e)+1,2,0)+`-`+i(d(e),2,0)+`T`+i(p(e),2,0)+`:`+i(h(e),2,0)+`:`+i(_(e),2,0)+`.`+i(n,3,0)+`Z`}:l})),Hs=T((()=>{var e=J(),t=Vs();e({target:`Date`,proto:!0,forced:Date.prototype.toISOString!==t},{toISOString:t})})),Us=T((()=>{var e=J(),t=U(),n=Hr(),r=Kr();e({target:`Date`,proto:!0,arity:1,forced:t(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1})},{toJSON:function(e){var t=n(this),i=r(t,`number`);return typeof i==`number`&&!isFinite(i)?null:t.toISOString()}})})),Ws=T(((e,t)=>{var n=q(),r=Lr(),i=TypeError;t.exports=function(e){if(n(this),e===`string`||e===`default`)e=`string`;else if(e!==`number`)throw new i(`Incorrect hint`);return r(this,e)}})),Gs=T((()=>{var e=Ur(),t=si(),n=Ws(),r=Gr()(`toPrimitive`),i=Date.prototype;e(i,r)||t(i,r,n)})),Ks=T((()=>{var e=K(),t=si(),n=Date.prototype,r=`Invalid Date`,i=`toString`,a=e(n[i]),o=e(n.getTime);String(new Date(NaN))!==r&&t(n,i,function(){var e=o(this);return e===e?a(this):r})})),qs=T(((e,t)=>{var n=Dr(),r=G(),i=K(),a=Li(),o=q(),s=Fr(),c=Sr(),l=Ir(),u=Gr(),d=u(`asyncDispose`),f=u(`dispose`),p=i([].push),m=function(e,t){if(t===`async-dispose`){var i=l(e,d);return i!==void 0||(i=l(e,f),i===void 0)?i:function(){var e=this;return new(n(`Promise`))(function(t){r(i,e),t(void 0)})}}return l(e,f)},h=function(e,t,n){return arguments.length<3&&!c(e)&&(n=s(m(o(e),t))),n===void 0?function(){}:a(n,e)};t.exports=function(e,t,n,r){var i;if(arguments.length<4){if(c(t)&&n===`sync-dispose`)return;i=h(t,n)}else i=h(void 0,n,r);p(e.stack,i)}})),Js=T((()=>{var e=J(),t=W(),n=Dr(),r=Fr(),i=ss(),a=si(),o=os(),s=Ai(),c=Gr(),l=ai(),u=qs(),d=n(`SuppressedError`),f=ReferenceError,p=c(`dispose`),m=c(`toStringTag`),h=`DisposableStack`,g=l.set,_=l.getterFor(h),v=`sync-dispose`,y=`disposed`,b=`pending`,x=function(e){var t=_(e);if(t.state===y)throw new f(h+` already disposed`);return t},S=function(){g(i(this,C),{type:h,state:b,stack:[]}),t||(this.disposed=!1)},C=S.prototype;o(C,{dispose:function(){var e=_(this);if(e.state!==y){e.state=y,t||(this.disposed=!0);for(var n=e.stack,r=n.length,i=!1,a;r;){var o=n[--r];n[r]=null;try{o()}catch(e){i?a=new d(e,a):(i=!0,a=e)}}if(e.stack=null,i)throw a}},use:function(e){return u(x(this),e,v),e},adopt:function(e,t){var n=x(this);return r(t),u(n,void 0,v,function(){t(e)}),e},defer:function(e){var t=x(this);r(e),u(t,void 0,v,e)},move:function(){var e=x(this),n=new S;return _(n).stack=e.stack,e.stack=[],e.state=y,t||(this.disposed=!0),n}}),t&&s(C,`disposed`,{configurable:!0,get:function(){return _(this).state===y}}),a(C,p,C.dispose,{name:`dispose`}),a(C,m,h,{nonWritable:!0}),e({global:!0,constructor:!0},{DisposableStack:S})})),Ys=T((()=>{var e=J(),t=K(),n=Ci(),r=t(``.charAt),i=t(``.charCodeAt),a=t(/./.exec),o=t(1.1.toString),s=t(``.toUpperCase),c=/[\w*+\-./@]/,l=function(e,t){for(var n=o(e,16);n.length<t;)n=`0`+n;return n};e({global:!0},{escape:function(e){for(var t=n(e),o=``,u=t.length,d=0,f,p;d<u;)f=r(t,d++),a(c,f)?o+=f:(p=i(f,0),p<256?o+=`%`+l(p,2):o+=`%u`+s(l(p,4)));return o}})})),Xs=T(((e,t)=>{var n=K(),r=Fr(),i=Er(),a=Ur(),o=Oi(),s=_r(),c=Function,l=n([].concat),u=n([].join),d={},f=function(e,t,n){if(!a(d,t)){for(var r=[],i=0;i<t;i++)r[i]=`a[`+i+`]`;d[t]=c(`C,a`,`return new C(`+u(r,`,`)+`)`)}return d[t](e,n)};t.exports=s?c.bind:function(e){var t=r(this),n=t.prototype,a=o(arguments,1),s=function(){var n=l(a,o(arguments));return this instanceof s?f(t,n.length,n):t.apply(e,n)};return i(n)&&(s.prototype=n),s}})),Zs=T((()=>{var e=J(),t=Xs();e({target:`Function`,proto:!0,forced:Function.bind!==t},{bind:t})})),Qs=T((()=>{var e=Tr(),t=Er(),n=Qr(),r=Or(),i=Gr(),a=oi(),o=i(`hasInstance`),s=Function.prototype;o in s||n.f(s,o,{value:a(function(n){if(!e(this)||!t(n))return!1;var i=this.prototype;return t(i)?r(i,n):n instanceof this},o)})})),$s=T((()=>{var e=W(),t=ei().EXISTS,n=K(),r=Ai(),i=Function.prototype,a=n(i.toString),o=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=n(o.exec);e&&!t&&r(i,`name`,{configurable:!0,get:function(){try{return s(o,a(this))[1]}catch{return``}}})})),ec=T((()=>{var e=J(),t=H();e({global:!0,forced:t.globalThis!==t},{globalThis:t})})),tc=T((()=>{var e=J(),t=H(),n=ss(),r=q(),i=Tr(),a=ja(),o=Ai(),s=Ga(),c=U(),l=Ur(),u=Gr(),d=bo().IteratorPrototype,f=W(),p=Rr(),m=`constructor`,h=`Iterator`,g=u(`toStringTag`),_=TypeError,v=t[h],y=p||!i(v)||v.prototype!==d||!c(function(){v({})}),b=function(){if(n(this,d),a(this)===d)throw new _(`Abstract class Iterator not directly constructable`)},x=function(e,t){f?o(d,e,{configurable:!0,get:function(){return t},set:function(t){if(r(this),this===d)throw new _(`You can't redefine this property`);l(this,e)?this[e]=t:s(this,e,t)}}):d[e]=t};l(d,g)||x(g,h),(y||!l(d,m)||d[m]===Object)&&x(m,b),b.prototype=d,e({global:!0,constructor:!0,forced:y},{Iterator:b})})),nc=T((()=>{var e=G(),t=si(),n=Ir(),r=Ur(),i=Gr(),a=bo().IteratorPrototype,o=i(`dispose`);r(a,o)||t(a,o,function(){var t=n(this,`return`);t&&e(t,this)})})),rc=T(((e,t)=>{t.exports=function(e){return{iterator:e,next:e.next,done:!1}}})),ic=T(((e,t)=>{var n=RangeError;t.exports=function(e){if(e===e)return e;throw new n(`NaN is not allowed`)}})),ac=T(((e,t)=>{var n=li(),r=RangeError;t.exports=function(e){var t=n(e);if(t<0)throw new r(`The argument can't be less than 0`);return t}})),oc=T(((e,t)=>{var n=Ia();t.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(e[i]!==void 0)try{r=n(e[i].iterator,t,r)}catch(e){t=`throw`,r=e}if(t===`throw`)throw r;return r}})),sc=T(((e,t)=>{var n=G(),r=Di(),i=$r(),a=os(),o=Gr(),s=ai(),c=Ir(),l=bo().IteratorPrototype,u=Co(),d=Ia(),f=oc(),p=o(`toStringTag`),m=`IteratorHelper`,h=`WrapForValidIterator`,g=`normal`,_=`throw`,v=s.set,y=function(e){var t=s.getterFor(e?h:m);return a(r(l),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return u(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:u(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var r=t(this),i=r.iterator;if(r.done=!0,e){var a=c(i,`return`);return a?n(a,i):u(void 0,!0)}if(r.inner)try{d(r.inner.iterator,g)}catch(e){return d(i,_,e)}if(r.openIters)try{f(r.openIters,g)}catch(e){return d(i,_,e)}return i&&d(i,g),u(void 0,!0)}})},b=y(!0),x=y(!1);i(x,p,`Iterator Helper`),t.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?h:m,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,v(this,i)};return r.prototype=t?b:x,r}})),cc=T(((e,t)=>{t.exports=function(e,t){var n=typeof Iterator==`function`&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch{return!0}}})),lc=T(((e,t)=>{var n=H();t.exports=function(e,t){var r=n.Iterator,i=r&&r.prototype,a=i&&i[e],o=!1;if(a)try{a.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return a}})),uc=T((()=>{var e=J(),t=G(),n=q(),r=rc(),i=ic(),a=ac(),o=Ia(),s=sc(),c=cc(),l=lc(),u=Rr(),d=!u&&!c(`drop`,0),f=!u&&!d&&l(`drop`,RangeError),p=u||d||f,m=s(function(){for(var e=this.iterator,r=this.next,i,a;this.remaining;)if(this.remaining--,i=n(t(r,e)),a=this.done=!!i.done,a)return;if(i=n(t(r,e)),a=this.done=!!i.done,!a)return i.value});e({target:`Iterator`,proto:!0,real:!0,forced:p},{drop:function(e){n(this);var s;try{s=a(i(+e))}catch(e){o(this,`throw`,e)}return f?t(f,this,s):new m(r(this),{remaining:s})}})})),dc=T((()=>{var e=J(),t=G(),n=La(),r=Fr(),i=q(),a=rc(),o=Ia(),s=lc()(`every`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:s},{every:function(e){i(this);try{r(e)}catch(e){o(this,`throw`,e)}if(s)return t(s,this,e);var c=a(this),l=0;return!n(c,function(t,n){if(!e(t,l++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})})),fc=T((()=>{var e=J(),t=G(),n=Fr(),r=q(),i=rc(),a=sc(),o=po(),s=Rr(),c=Ia(),l=cc(),u=lc(),d=!s&&!l(`filter`,function(){}),f=!s&&!d&&u(`filter`,TypeError),p=s||d||f,m=a(function(){for(var e=this.iterator,n=this.predicate,i=this.next,a,s,c;;){if(a=r(t(i,e)),s=this.done=!!a.done,s)return;if(c=a.value,o(e,n,[c,this.counter++],!0))return c}});e({target:`Iterator`,proto:!0,real:!0,forced:p},{filter:function(e){r(this);try{n(e)}catch(e){c(this,`throw`,e)}return f?t(f,this,e):new m(i(this),{predicate:e})}})})),pc=T((()=>{var e=J(),t=G(),n=La(),r=Fr(),i=q(),a=rc(),o=Ia(),s=lc()(`find`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:s},{find:function(e){i(this);try{r(e)}catch(e){o(this,`throw`,e)}if(s)return t(s,this,e);var c=a(this),l=0;return n(c,function(t,n){if(e(t,l++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})})),mc=T(((e,t)=>{var n=G(),r=q(),i=rc(),a=Pa();t.exports=function(e,t){(!t||typeof e!=`string`)&&r(e);var o=a(e);return i(r(o===void 0?e:n(o,e)))}})),hc=T((()=>{var e=J(),t=G(),n=Fr(),r=q(),i=rc(),a=mc(),o=sc(),s=Ia(),c=Rr(),l=cc(),u=lc(),d=!c&&!l(`flatMap`,function(){}),f=!c&&!d&&u(`flatMap`,TypeError),p=c||d||f,m=o(function(){for(var e=this.iterator,n=this.mapper,i,o;;){if(o=this.inner)try{if(i=r(t(o.next,o.iterator)),!i.done)return i.value;this.inner=null}catch(t){s(e,`throw`,t)}if(i=r(t(this.next,e)),this.done=!!i.done)return;try{this.inner=a(n(i.value,this.counter++),!1)}catch(t){s(e,`throw`,t)}}});e({target:`Iterator`,proto:!0,real:!0,forced:p},{flatMap:function(e){r(this);try{n(e)}catch(e){s(this,`throw`,e)}return f?t(f,this,e):new m(i(this),{mapper:e,inner:null})}})})),gc=T((()=>{var e=J(),t=G(),n=La(),r=Fr(),i=q(),a=rc(),o=Ia(),s=lc()(`forEach`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:s},{forEach:function(e){i(this);try{r(e)}catch(e){o(this,`throw`,e)}if(s)return t(s,this,e);var c=a(this),l=0;n(c,function(t){e(t,l++)},{IS_RECORD:!0})}})})),_c=T((()=>{var e=J(),t=G(),n=Hr(),r=Or(),i=bo().IteratorPrototype,a=sc(),o=mc(),s=Rr()||function(){try{Iterator.from({return:null}).return()}catch{return!0}}(),c=a(function(){return t(this.next,this.iterator)},!0);e({target:`Iterator`,stat:!0,forced:s},{from:function(e){var t=o(typeof e==`string`?n(e):e,!0);return r(i,t.iterator)?t.iterator:new c(t)}})})),vc=T((()=>{var e=J(),t=G(),n=Fr(),r=q(),i=rc(),a=sc(),o=po(),s=Ia(),c=cc(),l=lc(),u=Rr(),d=!u&&!c(`map`,function(){}),f=!u&&!d&&l(`map`,TypeError),p=u||d||f,m=a(function(){var e=this.iterator,n=r(t(this.next,e));if(!(this.done=!!n.done))return o(e,this.mapper,[n.value,this.counter++],!0)});e({target:`Iterator`,proto:!0,real:!0,forced:p},{map:function(e){r(this);try{n(e)}catch(e){s(this,`throw`,e)}return f?t(f,this,e):new m(i(this),{mapper:e})}})})),yc=T((()=>{var e=J(),t=La(),n=Fr(),r=q(),i=rc(),a=Ia(),o=lc(),s=qi(),c=U(),l=TypeError,u=c(function(){[].keys().reduce(function(){},void 0)}),d=!u&&o(`reduce`,l);e({target:`Iterator`,proto:!0,real:!0,forced:u||d},{reduce:function(e){r(this);try{n(e)}catch(e){a(this,`throw`,e)}var o=arguments.length<2,c=o?void 0:arguments[1];if(d)return s(d,this,o?[e]:[e,c]);var u=i(this),f=0;if(t(u,function(t){o?(o=!1,c=t):c=e(c,t,f),f++},{IS_RECORD:!0}),o)throw new l(`Reduce of empty iterator with no initial value`);return c}})})),bc=T((()=>{var e=J(),t=G(),n=La(),r=Fr(),i=q(),a=rc(),o=Ia(),s=lc()(`some`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:s},{some:function(e){i(this);try{r(e)}catch(e){o(this,`throw`,e)}if(s)return t(s,this,e);var c=a(this),l=0;return n(c,function(t,n){if(e(t,l++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})})),xc=T((()=>{var e=J(),t=G(),n=q(),r=rc(),i=ic(),a=ac(),o=sc(),s=Ia(),c=lc(),l=Rr(),u=!l&&c(`take`,RangeError),d=o(function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,s(e,`normal`,void 0);var r=n(t(this.next,e));if(!(this.done=!!r.done))return r.value});e({target:`Iterator`,proto:!0,real:!0,forced:l||u},{take:function(e){n(this);var o;try{o=a(i(+e))}catch(e){s(this,`throw`,e)}return u?t(u,this,o):new d(r(this),{remaining:o})}})})),Sc=T((()=>{var e=J(),t=q(),n=La(),r=rc(),i=[].push;e({target:`Iterator`,proto:!0,real:!0},{toArray:function(){var e=[];return n(r(t(this)),i,{that:e,IS_RECORD:!0}),e}})})),Cc=T((()=>{var e=H();Fi()(e.JSON,`JSON`,!0)})),wc=T(((e,t)=>{t.exports=U()(function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})})),Tc=T(((e,t)=>{var n=U(),r=Er(),i=br(),a=wc(),o=Object.isExtensible;t.exports=n(function(){o(1)})||a?function(e){return!r(e)||a&&i(e)===`ArrayBuffer`?!1:o?o(e):!0}:o})),Ec=T(((e,t)=>{t.exports=!U()(function(){return Object.isExtensible(Object.preventExtensions({}))})})),Dc=T(((e,t)=>{var n=J(),r=K(),i=ii(),a=Er(),o=Ur(),s=Qr().f,c=gi(),l=ki(),u=Tc(),d=Wr(),f=Ec(),p=!1,m=d(`meta`),h=0,g=function(e){s(e,m,{value:{objectID:`O`+ h++,weakData:{}}})},_=t.exports={enable:function(){_.enable=function(){},p=!0;var e=c.f,t=r([].splice),i={};i[m]=1,e(i).length&&(c.f=function(n){for(var r=e(n),i=0,a=r.length;i<a;i++)if(r[i]===m){t(r,i,1);break}return r},n({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!o(e,m)){if(!u(e))return`F`;if(!t)return`E`;g(e)}return e[m].objectID},getWeakData:function(e,t){if(!o(e,m)){if(!u(e))return!0;if(!t)return!1;g(e)}return e[m].weakData},onFreeze:function(e){return f&&p&&u(e)&&!o(e,m)&&g(e),e}};i[m]=!0})),Oc=T(((e,t)=>{var n=J(),r=H(),i=K(),a=bi(),o=si(),s=Dc(),c=La(),l=ss(),u=Tr(),d=Sr(),f=Er(),p=U(),m=ho(),h=Fi(),g=ya();t.exports=function(e,t,_){var v=e.indexOf(`Map`)!==-1,y=e.indexOf(`Weak`)!==-1,b=v?`set`:`add`,x=r[e],S=x&&x.prototype,C=x,w={},T=function(e){var t=i(S[e]);o(S,e,e===`add`?function(e){return t(this,e===0?0:e),this}:e===`delete`?function(e){return y&&!f(e)?!1:t(this,e===0?0:e)}:e===`get`?function(e){return y&&!f(e)?void 0:t(this,e===0?0:e)}:e===`has`?function(e){return y&&!f(e)?!1:t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(a(e,!u(x)||!(y||S.forEach&&!p(function(){new x().entries().next()}))))C=_.getConstructor(t,e,v,b),s.enable();else if(a(e,!0)){var E=new C,D=E[b](y?{}:-0,1)!==E,O=p(function(){E.has(1)}),k=m(function(e){new x(e)}),A=!y&&p(function(){for(var e=new x,t=5;t--;)e[b](t,t);return!e.has(-0)});k||(C=t(function(e,t){l(e,S);var n=g(new x,e,C);return d(t)||c(t,n[b],{that:n,AS_ENTRIES:v}),n}),C.prototype=S,S.constructor=C),(O||A)&&(T(`delete`),T(`has`),v&&T(`get`)),(A||D)&&T(b),y&&S.clear&&delete S.clear}return w[e]=C,n({global:!0,constructor:!0,forced:C!==x},w),h(C,e),y||_.setStrong(C,e,v),C}})),kc=T(((e,t)=>{var n=Di(),r=Ai(),i=os(),a=Li(),o=ss(),s=Sr(),c=La(),l=So(),u=Co(),d=Go(),f=W(),p=Dc().fastKey,m=ai(),h=m.set,g=m.getterFor;t.exports={getConstructor:function(e,t,l,u){var d=e(function(e,r){o(e,m),h(e,{type:t,index:n(null),first:null,last:null,size:0}),f||(e.size=0),s(r)||c(r,e[u],{that:e,AS_ENTRIES:l})}),m=d.prototype,_=g(t),v=function(e,t,n){var r=_(e),i=y(e,t),a,o;return i?i.value=n:(r.last=i={index:o=p(t,!0),key:t,value:n,previous:a=r.last,next:null,removed:!1},r.first||=i,a&&(a.next=i),f?r.size++:e.size++,o!==`F`&&(r.index[o]=i)),e},y=function(e,t){var n=_(e),r=p(t),i;if(r!==`F`)return n.index[r];for(i=n.first;i;i=i.next)if(i.key===t)return i};return i(m,{clear:function(){for(var e=this,t=_(e),r=t.first;r;)r.removed=!0,r.previous&&=r.previous.next=null,r=r.next;t.first=t.last=null,t.index=n(null),f?t.size=0:e.size=0},delete:function(e){var t=this,n=_(t),r=y(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first===r&&(n.first=i),n.last===r&&(n.last=a),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t=_(this),n=a(e,arguments.length>1?arguments[1]:void 0),r;r=r?r.next:t.first;)for(n(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(e){return!!y(this,e)}}),i(m,l?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return v(this,e===0?0:e,t)}}:{add:function(e){return v(this,e=e===0?0:e,e)}}),f&&r(m,`size`,{configurable:!0,get:function(){return _(this).size}}),d},setStrong:function(e,t,n){var r=t+` Iterator`,i=g(t),a=g(r);l(e,t,function(e,t){h(this,{type:r,target:e,state:i(e),kind:t,last:null})},function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return!e.target||!(e.last=n=n?n.next:e.state.first)?(e.target=null,u(void 0,!0)):u(t===`keys`?n.key:t===`values`?n.value:[n.key,n.value],!1)},n?`entries`:`values`,!n,!0),d(t)}}})),Ac=T((()=>{Oc()(`Map`,function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},kc())})),jc=T((()=>{Ac()})),Mc=T(((e,t)=>{var n=K(),r=Map.prototype;t.exports={Map,set:n(r.set),get:n(r.get),has:n(r.has),remove:n(r.delete),proto:r}})),Nc=T((()=>{var e=J(),t=K(),n=Fr(),r=Cr(),i=La(),a=Mc(),o=Rr(),s=U(),c=a.Map,l=a.has,u=a.get,d=a.set,f=t([].push),p=o||s(function(){return c.groupBy(`ab`,function(e){return e}).get(`a`).length!==1});e({target:`Map`,stat:!0,forced:o||p},{groupBy:function(e,t){r(e),n(t);var a=new c,o=0;return i(e,function(e){var n=t(e,o++);l(a,n)?f(u(a,n),e):d(a,n,[e])}),a}})})),Pc=T(((e,t)=>{var n=Math.log;t.exports=Math.log1p||function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:n(1+t)}})),Fc=T((()=>{var e=J(),t=Pc(),n=Math.acosh,r=Math.log,i=Math.sqrt,a=Math.LN2;e({target:`Math`,stat:!0,forced:!n||Math.floor(n(Number.MAX_VALUE))!==710||n(1/0)!==1/0},{acosh:function(e){var n=+e;return n<1?NaN:n>94906265.62425156?r(n)+a:t(n-1+i(n-1)*i(n+1))}})})),Ic=T((()=>{var e=J(),t=Math.asinh,n=Math.log,r=Math.sqrt;function i(e){var t=+e;return!isFinite(t)||t===0?t:t<0?-i(-t):n(t+r(t*t+1))}e({target:`Math`,stat:!0,forced:!(t&&1/t(0)>0)},{asinh:i})})),Lc=T((()=>{var e=J(),t=Math.atanh,n=Math.log;e({target:`Math`,stat:!0,forced:!(t&&1/t(-0)<0)},{atanh:function(e){var t=+e;return t===0?t:n((1+t)/(1-t))/2}})})),Rc=T((()=>{var e=J(),t=ls(),n=Math.abs,r=Math.pow;e({target:`Math`,stat:!0},{cbrt:function(e){var i=+e;return t(i)*r(n(i),1/3)}})})),zc=T((()=>{var e=J(),t=Math.floor,n=Math.log,r=Math.LOG2E;e({target:`Math`,stat:!0},{clz32:function(e){var i=e>>>0;return i?31-t(n(i+.5)*r):32}})})),Bc=T(((e,t)=>{var n=Math.expm1,r=Math.exp;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!==-2e-17?function(e){var t=+e;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:r(t)-1}:n})),Vc=T((()=>{var e=J(),t=Bc(),n=Math.cosh,r=Math.abs,i=Math.E;e({target:`Math`,stat:!0,forced:!n||n(710)===1/0},{cosh:function(e){var n=t(r(e)-1)+1;return(n+1/(n*i*i))*(i/2)}})})),Hc=T((()=>{var e=J(),t=Bc();e({target:`Math`,stat:!0,forced:t!==Math.expm1},{expm1:t})})),Uc=T((()=>{J()({target:`Math`,stat:!0},{fround:fs()})})),Wc=T((()=>{var e=J(),t=ds(),n=.0009765625,r=65504,i=6103515625e-14;e({target:`Math`,stat:!0},{f16round:function(e){return t(e,n,r,i)}})})),Gc=T((()=>{var e=J(),t=Math.hypot,n=Math.abs,r=Math.sqrt;e({target:`Math`,stat:!0,arity:2,forced:!!t&&t(1/0,NaN)!==1/0},{hypot:function(e,t){for(var i=0,a=0,o=arguments.length,s=0,c,l;a<o;)c=n(arguments[a++]),s<c?(l=s/c,i=i*l*l+1,s=c):c>0?(l=c/s,i+=l*l):i+=c;return s===1/0?1/0:s*r(i)}})})),Kc=T((()=>{var e=J(),t=U(),n=Math.imul;e({target:`Math`,stat:!0,forced:t(function(){return n(4294967295,5)!==-5||n.length!==2})},{imul:function(e,t){var n=65535,r=+e,i=+t,a=n&r,o=n&i;return 0|a*o+((n&r>>>16)*o+a*(n&i>>>16)<<16>>>0)}})})),qc=T(((e,t)=>{var n=Math.log,r=Math.LOG10E;t.exports=Math.log10||function(e){return n(e)*r}})),Jc=T((()=>{J()({target:`Math`,stat:!0},{log10:qc()})})),Yc=T((()=>{J()({target:`Math`,stat:!0},{log1p:Pc()})})),Xc=T((()=>{J()({target:`Math`,stat:!0},{log2:Cs()})})),Zc=T((()=>{J()({target:`Math`,stat:!0},{sign:ls()})})),Qc=T((()=>{var e=J(),t=U(),n=Bc(),r=Math.abs,i=Math.exp,a=Math.E;e({target:`Math`,stat:!0,forced:t(function(){return Math.sinh(-2e-17)!==-2e-17})},{sinh:function(e){var t=+e;return r(t)<1?(n(t)-n(-t))/2:(i(t-1)-i(-t-1))*(a/2)}})})),$c=T((()=>{var e=J(),t=K(),n=La(),r=RangeError,i=TypeError,a=1/0,o=NaN,s=Math.abs,c=Math.pow,l=t([].push),u=c(2,1023),d=c(2,53)-1,f=Number.MAX_VALUE,p=c(2,971),m={},h={},g={},_={},v={},y=function(e,t){var n=e+t;return{hi:n,lo:t-(n-e)}};e({target:`Math`,stat:!0},{sumPrecise:function(e){var t=[],c=0,b=_;switch(n(e,function(e){if(++c>=d)throw new r(`Maximum allowed index exceeded`);if(typeof e!=`number`)throw new i(`Value is not a number`);b!==m&&(e===e?e===a?b=b===h?m:g:e===-a?b=b===g?m:h:(e!==0||1/e===a)&&(b===_||b===v)&&(b=v,l(t,e)):b=m)}),b){case m:return o;case h:return-a;case g:return a;case _:return-0}for(var x=[],S=0,C,w,T,E,D,O,k=0;k<t.length;k++){C=t[k];for(var A=0,j=0;j<x.length;j++){if(w=x[j],s(C)<s(w)&&(O=C,C=w,w=O),T=y(C,w),E=T.hi,D=T.lo,s(E)===a){var M=E===a?1:-1;S+=M,C=C-M*u-M*u,s(C)<s(w)&&(O=C,C=w,w=O),T=y(C,w),E=T.hi,D=T.lo}D!==0&&(x[A++]=D),C=E}x.length=A,C!==0&&l(x,C)}var N=x.length-1;if(E=0,D=0,S!==0){var P=N>=0?x[N]:0;if(N--,s(S)>1||S>0&&P>0||S<0&&P<0)return S>0?a:-a;if(T=y(S*u,P/2),E=T.hi,D=T.lo,D*=2,s(2*E)===a)return E>0?E===u&&D===-(p/2)&&N>=0&&x[N]<0?f:a:E===-u&&D===p/2&&N>=0&&x[N]>0?-f:-a;D!==0&&(x[++N]=D,D=0),E*=2}for(;N>=0&&(T=y(E,x[N--]),E=T.hi,D=T.lo,D===0););return N>=0&&(D<0&&x[N]<0||D>0&&x[N]>0)&&(w=D*2,C=E+w,w===C-E&&(E=C)),E}})})),el=T((()=>{var e=J(),t=Bc(),n=Math.exp;e({target:`Math`,stat:!0},{tanh:function(e){var r=+e,i=t(r),a=t(-r);return i===1/0?1:a===1/0?-1:(i-a)/(n(r)+n(-r))}})})),tl=T((()=>{Fi()(Math,`Math`,!0)})),nl=T((()=>{J()({target:`Math`,stat:!0},{trunc:ci()})})),rl=T(((e,t)=>{t.exports=K()(1.1.valueOf)})),il=T(((e,t)=>{t.exports=`
|
|
3
3
|
\v\f\r \xA0 \u2028\u2029`})),al=T(((e,t)=>{var n=K(),r=Cr(),i=Ci(),a=il(),o=n(``.replace),s=RegExp(`^[`+a+`]+`),c=RegExp(`(^|[^`+a+`])[`+a+`]+$`),l=function(e){return function(t){var n=i(r(t));return e&1&&(n=o(n,s,``)),e&2&&(n=o(n,c,`$1`)),n}};t.exports={start:l(1),end:l(2),trim:l(3)}})),ol=T((()=>{var e=J(),t=Rr(),n=W(),r=H(),i=Mi(),a=K(),o=bi(),s=Ur(),c=ya(),l=Or(),u=Nr(),d=Kr(),f=U(),p=gi().f,m=Xr().f,h=Qr().f,g=rl(),_=al().trim,v=`Number`,y=r[v],b=i[v],x=y.prototype,S=r.TypeError,C=a(``.slice),w=a(``.charCodeAt),T=function(e){var t=d(e,`number`);return typeof t==`bigint`?t:E(t)},E=function(e){var t=d(e,`number`),n,r,i,a,o,s,c,l;if(u(t))throw new S(`Cannot convert a Symbol value to a number`);if(typeof t==`string`&&t.length>2){if(t=_(t),n=w(t,0),n===43||n===45){if(r=w(t,2),r===88||r===120)return NaN}else if(n===48){switch(w(t,1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+t}for(o=C(t,2),s=o.length,c=0;c<s;c++)if(l=w(o,c),l<48||l>a)return NaN;return parseInt(o,i)}}return+t},D=o(v,!y(` 0o1`)||!y(`0b1`)||y(`+0x1`)),O=function(e){return l(x,e)&&f(function(){g(e)})},k=function(e){var t=arguments.length<1?0:y(T(e));return O(this)?c(Object(t),this,k):t};k.prototype=x,D&&!t&&(x.constructor=k),e({global:!0,constructor:!0,wrap:!0,forced:D},{Number:k});var A=function(e,t){for(var r=n?p(t):`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(`,`),i=0,a;r.length>i;i++)s(t,a=r[i])&&!s(e,a)&&h(e,a,m(t,a))};t&&b&&A(i[v],b),(D||t)&&A(i[v],y)})),sl=T((()=>{J()({target:`Number`,stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:2**-52})})),cl=T(((e,t)=>{var n=H().isFinite;t.exports=Number.isFinite||function(e){return typeof e==`number`&&n(e)}})),ll=T((()=>{J()({target:`Number`,stat:!0},{isFinite:cl()})})),ul=T(((e,t)=>{var n=Er(),r=Math.floor;t.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&r(e)===e}})),dl=T((()=>{J()({target:`Number`,stat:!0},{isInteger:ul()})})),fl=T((()=>{J()({target:`Number`,stat:!0},{isNaN:function(e){return e!==e}})})),pl=T((()=>{var e=J(),t=ul(),n=Math.abs;e({target:`Number`,stat:!0},{isSafeInteger:function(e){return t(e)&&n(e)<=9007199254740991}})})),ml=T((()=>{J()({target:`Number`,stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})})),hl=T((()=>{J()({target:`Number`,stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})})),gl=T(((e,t)=>{var n=H(),r=U(),i=K(),a=Ci(),o=al().trim,s=il(),c=i(``.charAt),l=n.parseFloat,u=n.Symbol,d=u&&u.iterator;t.exports=1/l(s+`-0`)!=-1/0||d&&!r(function(){l(Object(d))})?function(e){var t=o(a(e)),n=l(t);return n===0&&c(t,0)===`-`?-0:n}:l})),_l=T((()=>{var e=J(),t=gl();e({target:`Number`,stat:!0,forced:Number.parseFloat!==t},{parseFloat:t})})),vl=T(((e,t)=>{var n=H(),r=U(),i=K(),a=Ci(),o=al().trim,s=il(),c=n.parseInt,l=n.Symbol,u=l&&l.iterator,d=/^[+-]?0x/i,f=i(d.exec);t.exports=c(s+`08`)!==8||c(s+`0x16`)!==22||u&&!r(function(){c(Object(u))})?function(e,t){var n=o(a(e));return c(n,t>>>0||(f(d,n)?16:10))}:c})),yl=T((()=>{var e=J(),t=vl();e({target:`Number`,stat:!0,forced:Number.parseInt!==t},{parseInt:t})})),bl=T((()=>{var e=J(),t=K(),n=li(),r=rl(),i=zs(),a=qc(),o=U(),s=RangeError,c=String,l=isFinite,u=Math.abs,d=Math.floor,f=Math.pow,p=Math.round,m=t(1.1.toExponential),h=t(i),g=t(``.slice),_=m(-69e-12,4)===`-6.9000e-11`&&m(1.255,2)===`1.25e+0`&&m(12345,3)===`1.235e+4`&&m(25,0)===`3e+1`;e({target:`Number`,proto:!0,forced:!_||!function(){return o(function(){m(1,1/0)})&&o(function(){m(1,-1/0)})}()||!function(){return!o(function(){m(1/0,1/0),m(NaN,1/0)})}()},{toExponential:function(e){var t=r(this);if(e===void 0)return m(t);var i=n(e);if(!l(t))return String(t);if(i<0||i>20)throw new s(`Incorrect fraction digits`);if(_)return m(t,i);var o=``,v,y,b,x;if(t<0&&(o=`-`,t=-t),t===0)y=0,v=h(`0`,i+1);else{y=d(a(t));var S=f(10,y-i),C=p(t/S);2*t>=(2*C+1)*S&&(C+=1),C>=f(10,i+1)&&(C/=10,y+=1),v=c(C)}return i!==0&&(v=g(v,0,1)+`.`+g(v,1)),y===0?(b=`+`,x=`0`):(b=y>0?`+`:`-`,x=c(u(y))),v+=`e`+b+x,o+v}})})),xl=T((()=>{var e=J(),t=K(),n=li(),r=rl(),i=zs(),a=U(),o=RangeError,s=String,c=Math.floor,l=t(i),u=t(``.slice),d=t(1.1.toFixed),f=function(e,t,n){return t===0?n:t%2==1?f(e,t-1,n*e):f(e*e,t/2,n)},p=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t},m=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=c(i/1e7)},h=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=c(r/t),r=r%t*1e7},g=function(e){for(var t=6,n=``;--t>=0;)if(n!==``||t===0||e[t]!==0){var r=s(e[t]);n=n===``?r:n+l(`0`,7-r.length)+r}return n};e({target:`Number`,proto:!0,forced:a(function(){return d(8e-5,3)!==`0.000`||d(.9,0)!==`1`||d(1.255,2)!==`1.25`||d(0xde0b6b3a7640080,0)!==`1000000000000000128`})||!a(function(){d({})})},{toFixed:function(e){var t=r(this),i=n(e),a=[0,0,0,0,0,0],c=``,d=`0`,_,v,y,b;if(i<0||i>20)throw new o(`Incorrect fraction digits`);if(t!==t)return`NaN`;if(t<=-1e21||t>=1e21)return s(t);if(t<0&&(c=`-`,t=-t),t>1e-21)if(_=p(t*f(2,69,1))-69,v=_<0?t*f(2,-_,1):t/f(2,_,1),v*=4503599627370496,_=52-_,_>0){for(m(a,0,v),y=i;y>=7;)m(a,1e7,0),y-=7;for(m(a,f(10,y,1),0),y=_-1;y>=23;)h(a,1<<23),y-=23;h(a,1<<y),m(a,1,1),h(a,2),d=g(a)}else m(a,0,v),m(a,1<<-_,0),d=g(a)+l(`0`,i);return i>0?(b=d.length,d=c+(b<=i?`0.`+l(`0`,i-b)+d:u(d,0,b-i)+`.`+u(d,b-i))):d=c+d,d}})})),Sl=T((()=>{var e=J(),t=K(),n=U(),r=rl(),i=t(1.1.toPrecision);e({target:`Number`,proto:!0,forced:n(function(){return i(1,void 0)!==`1`})||!n(function(){i({})})},{toPrecision:function(e){return e===void 0?i(r(this)):i(r(this),e)}})})),Cl=T(((e,t)=>{var n=W(),r=K(),i=G(),a=U(),o=wi(),s=_i(),c=vr(),l=Hr(),u=xr(),d=Object.assign,f=Object.defineProperty,p=r([].concat);t.exports=!d||a(function(){if(n&&d({b:1},d(f({},`a`,{enumerable:!0,get:function(){f(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(`assign detection`),i=`abcdefghijklmnopqrst`;return e[r]=7,i.split(``).forEach(function(e){t[e]=e}),d({},e)[r]!==7||o(d({},t)).join(``)!==i})?function(e,t){for(var r=l(e),a=arguments.length,d=1,f=s.f,m=c.f;a>d;)for(var h=u(arguments[d++]),g=f?p(o(h),f(h)):o(h),_=g.length,v=0,y;_>v;)y=g[v++],(!n||i(m,h,y))&&(r[y]=h[y]);return r}:d})),wl=T((()=>{var e=J(),t=Cl();e({target:`Object`,stat:!0,arity:2,forced:Object.assign!==t},{assign:t})})),Tl=T((()=>{var e=J(),t=W(),n=Di();e({target:`Object`,stat:!0,sham:!t},{create:n})})),El=T(((e,t)=>{var n=Rr(),r=H(),i=U(),a=Uo();t.exports=n||!i(function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete r[e]}})})),Dl=T((()=>{var e=J(),t=W(),n=El(),r=Fr(),i=Hr(),a=Qr();t&&e({target:`Object`,proto:!0,forced:n},{__defineGetter__:function(e,t){a.f(i(this),e,{get:r(t),enumerable:!0,configurable:!0})}})})),Ol=T((()=>{var e=J(),t=W(),n=Ti().f;e({target:`Object`,stat:!0,forced:Object.defineProperties!==n,sham:!t},{defineProperties:n})})),kl=T((()=>{var e=J(),t=W(),n=Qr().f;e({target:`Object`,stat:!0,forced:Object.defineProperty!==n,sham:!t},{defineProperty:n})})),Al=T((()=>{var e=J(),t=W(),n=El(),r=Fr(),i=Hr(),a=Qr();t&&e({target:`Object`,proto:!0,forced:n},{__defineSetter__:function(e,t){a.f(i(this),e,{set:r(t),enumerable:!0,configurable:!0})}})})),jl=T(((e,t)=>{var n=W(),r=U(),i=K(),a=ja(),o=wi(),s=wr(),c=vr().f,l=i(c),u=i([].push),d=n&&r(function(){var e=Object.create(null);return e[2]=2,!l(e,2)}),f=function(e){return function(t){for(var r=s(t),i=o(r),c=d&&a(r)===null,f=i.length,p=0,m=[],h;f>p;)h=i[p++],(!n||(c?h in r:l(r,h)))&&u(m,e?[h,r[h]]:r[h]);return m}};t.exports={entries:f(!0),values:f(!1)}})),Ml=T((()=>{var e=J(),t=jl().entries;e({target:`Object`,stat:!0},{entries:function(e){return t(e)}})})),Nl=T((()=>{var e=J(),t=Ec(),n=U(),r=Er(),i=Dc().onFreeze,a=Object.freeze;e({target:`Object`,stat:!0,forced:n(function(){a(1)}),sham:!t},{freeze:function(e){return a&&r(e)?a(i(e)):e}})})),Pl=T((()=>{var e=J(),t=La(),n=Ga();e({target:`Object`,stat:!0},{fromEntries:function(e){var r={};return t(e,function(e,t){n(r,e,t)},{AS_ENTRIES:!0}),r}})})),Fl=T((()=>{var e=J(),t=U(),n=wr(),r=Xr().f,i=W();e({target:`Object`,stat:!0,forced:!i||t(function(){r(1)}),sham:!i},{getOwnPropertyDescriptor:function(e,t){return r(n(e),t)}})})),Il=T((()=>{var e=J(),t=W(),n=vi(),r=wr(),i=Xr(),a=Ga();e({target:`Object`,stat:!0,sham:!t},{getOwnPropertyDescriptors:function(e){for(var t=r(e),o=i.f,s=n(t),c={},l=0,u,d;s.length>l;)d=o(t,u=s[l++]),d!==void 0&&a(c,u,d);return c}})})),Ll=T((()=>{var e=J(),t=U(),n=ki().f;e({target:`Object`,stat:!0,forced:t(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:n})})),Rl=T((()=>{var e=J(),t=U(),n=Hr(),r=ja(),i=Aa();e({target:`Object`,stat:!0,forced:t(function(){r(1)}),sham:!i},{getPrototypeOf:function(e){return r(n(e))}})})),zl=T((()=>{var e=J(),t=Dr(),n=K(),r=Fr(),i=Cr(),a=qr(),o=La(),s=U(),c=Object.groupBy,l=t(`Object`,`create`),u=n([].push);e({target:`Object`,stat:!0,forced:!c||s(function(){return c(`ab`,function(e){return e}).a.length!==1})},{groupBy:function(e,t){i(e),r(t);var n=l(null),s=0;return o(e,function(e){var r=a(t(e,s++));r in n?u(n[r],e):n[r]=[e]}),n}})})),Bl=T((()=>{J()({target:`Object`,stat:!0},{hasOwn:Ur()})})),Vl=T(((e,t)=>{t.exports=Object.is||function(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}})),Hl=T((()=>{J()({target:`Object`,stat:!0},{is:Vl()})})),Ul=T((()=>{var e=J(),t=Tc();e({target:`Object`,stat:!0,forced:Object.isExtensible!==t},{isExtensible:t})})),Wl=T((()=>{var e=J(),t=U(),n=Er(),r=br(),i=wc(),a=Object.isFrozen;e({target:`Object`,stat:!0,forced:i||t(function(){a(1)})},{isFrozen:function(e){return!n(e)||i&&r(e)===`ArrayBuffer`?!0:a?a(e):!1}})})),Gl=T((()=>{var e=J(),t=U(),n=Er(),r=br(),i=wc(),a=Object.isSealed;e({target:`Object`,stat:!0,forced:i||t(function(){a(1)})},{isSealed:function(e){return!n(e)||i&&r(e)===`ArrayBuffer`?!0:a?a(e):!1}})})),Kl=T((()=>{var e=J(),t=Hr(),n=wi();e({target:`Object`,stat:!0,forced:U()(function(){n(1)})},{keys:function(e){return n(t(e))}})})),ql=T((()=>{var e=J(),t=W(),n=El(),r=Hr(),i=qr(),a=ja(),o=Xr().f;t&&e({target:`Object`,proto:!0,forced:n},{__lookupGetter__:function(e){var t=r(this),n=i(e),s;do if(s=o(t,n))return s.get;while(t=a(t))}})})),Jl=T((()=>{var e=J(),t=W(),n=El(),r=Hr(),i=qr(),a=ja(),o=Xr().f;t&&e({target:`Object`,proto:!0,forced:n},{__lookupSetter__:function(e){var t=r(this),n=i(e),s;do if(s=o(t,n))return s.set;while(t=a(t))}})})),Yl=T((()=>{var e=J(),t=Er(),n=Dc().onFreeze,r=Ec(),i=U(),a=Object.preventExtensions;e({target:`Object`,stat:!0,forced:i(function(){a(1)}),sham:!r},{preventExtensions:function(e){return a&&t(e)?a(n(e)):e}})})),Xl=T((()=>{var e=W(),t=Ai(),n=Er(),r=ha(),i=Hr(),a=Cr(),o=Object.getPrototypeOf,s=Object.setPrototypeOf,c=Object.prototype,l=`__proto__`;if(e&&o&&s&&!(l in c))try{t(c,l,{configurable:!0,get:function(){return o(i(this))},set:function(e){var t=a(this);r(e)&&n(t)&&s(t,e)}})}catch{}})),Zl=T((()=>{var e=J(),t=Er(),n=Dc().onFreeze,r=Ec(),i=U(),a=Object.seal;e({target:`Object`,stat:!0,forced:i(function(){a(1)}),sham:!r},{seal:function(e){return a&&t(e)?a(n(e)):e}})})),Ql=T((()=>{J()({target:`Object`,stat:!0},{setPrototypeOf:_a()})})),$l=T(((e,t)=>{var n=xi(),r=Si();t.exports=n?{}.toString:function(){return`[object `+r(this)+`]`}})),eu=T((()=>{var e=xi(),t=si(),n=$l();e||t(Object.prototype,`toString`,n,{unsafe:!0})})),tu=T((()=>{var e=J(),t=jl().values;e({target:`Object`,stat:!0},{values:function(e){return t(e)}})})),nu=T((()=>{var e=J(),t=gl();e({global:!0,forced:parseFloat!==t},{parseFloat:t})})),ru=T((()=>{var e=J(),t=vl();e({global:!0,forced:parseInt!==t},{parseInt:t})})),iu=T(((e,t)=>{var n=zi(),r=Pr(),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not a constructor`)}})),au=T(((e,t)=>{var n=q(),r=iu(),i=Sr(),a=Gr()(`species`);t.exports=function(e,t){var o=n(e).constructor,s;return o===void 0||i(s=n(o)[a])?t:r(s)}})),ou=T(((e,t)=>{var n=TypeError;t.exports=function(e,t){if(e<t)throw new n(`Not enough arguments`);return e}})),su=T(((e,t)=>{var n=kr();t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)})),cu=T(((e,t)=>{var n=H(),r=qi(),i=Li(),a=Tr(),o=Ur(),s=U(),c=Ei(),l=Oi(),u=Jr(),d=ou(),f=su(),p=Po(),m=n.setImmediate,h=n.clearImmediate,g=n.process,_=n.Dispatch,v=n.Function,y=n.MessageChannel,b=n.String,x=0,S={},C=`onreadystatechange`,w,T,E,D;s(function(){w=n.location});var O=function(e){if(o(S,e)){var t=S[e];delete S[e],t()}},k=function(e){return function(){O(e)}},A=function(e){O(e.data)},j=function(e){n.postMessage(b(e),w.protocol+`//`+w.host)};(!m||!h)&&(m=function(e){d(arguments.length,1);var t=a(e)?e:v(e),n=l(arguments,1);return S[++x]=function(){r(t,void 0,n)},T(x),x},h=function(e){delete S[e]},p?T=function(e){g.nextTick(k(e))}:_&&_.now?T=function(e){_.now(k(e))}:y&&!f?(E=new y,D=E.port2,E.port1.onmessage=A,T=i(D.postMessage,D)):n.addEventListener&&a(n.postMessage)&&!n.importScripts&&w&&w.protocol!==`file:`&&!s(j)?(T=j,n.addEventListener(`message`,A,!1)):T=C in u(`script`)?function(e){c.appendChild(u(`script`))[C]=function(){c.removeChild(this),O(e)}}:function(e){setTimeout(k(e),0)}),t.exports={set:m,clear:h}})),lu=T(((e,t)=>{var n=H(),r=W(),i=Object.getOwnPropertyDescriptor;t.exports=function(e){if(!r)return n[e];var t=i(n,e);return t&&t.value}})),uu=T(((e,t)=>{var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return(this.head=e.next)===null&&(this.tail=null),e.item}},t.exports=n})),du=T(((e,t)=>{var n=kr();t.exports=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<`u`})),fu=T(((e,t)=>{var n=kr();t.exports=/web0s(?!.*chrome)/i.test(n)})),pu=T(((e,t)=>{var n=H(),r=lu(),i=Li(),a=cu().set,o=uu(),s=su(),c=du(),l=fu(),u=Po(),d=n.MutationObserver||n.WebKitMutationObserver,f=n.document,p=n.process,m=n.Promise,h=r(`queueMicrotask`),g,_,v,y,b;if(!h){var x=new o,S=function(){var e,t;for(u&&(e=p.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&g(),e}e&&e.enter()};!s&&!u&&!l&&d&&f?(_=!0,v=f.createTextNode(``),new d(S).observe(v,{characterData:!0}),g=function(){v.data=_=!_}):!c&&m&&m.resolve?(y=m.resolve(void 0),y.constructor=m,b=i(y.then,y),g=function(){b(S)}):u?g=function(){p.nextTick(S)}:(a=i(a,n),g=function(){a(S)}),h=function(e){x.head||g(),x.add(e)}}t.exports=h})),mu=T(((e,t)=>{t.exports=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}}})),hu=T(((e,t)=>{t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}})),gu=T(((e,t)=>{t.exports=H().Promise})),_u=T(((e,t)=>{var n=H(),r=gu(),i=Tr(),a=bi(),o=ti(),s=Gr(),c=No(),l=Rr(),u=Ar(),d=r&&r.prototype,f=s(`species`),p=!1,m=i(n.PromiseRejectionEvent);t.exports={CONSTRUCTOR:a(`Promise`,function(){var e=o(r),t=e!==String(r);if(!t&&u===66||l&&!(d.catch&&d.finally))return!0;if(!u||u<51||!/native code/.test(e)){var n=new r(function(e){e(1)}),i=function(e){e(function(){},function(){})},a=n.constructor={};if(a[f]=i,p=n.then(function(){})instanceof i,!p)return!0}return!t&&(c===`BROWSER`||c===`DENO`)&&!m}),REJECTION_EVENT:m,SUBCLASSING:p}})),vu=T(((e,t)=>{var n=Fr(),r=TypeError,i=function(e){var t,i;this.promise=new e(function(e,n){if(t!==void 0||i!==void 0)throw new r(`Bad Promise constructor`);t=e,i=n}),this.resolve=n(t),this.reject=n(i)};t.exports.f=function(e){return new i(e)}})),yu=T((()=>{var e=J(),t=Rr(),n=Po(),r=H(),i=Mi(),a=G(),o=si(),s=_a(),c=Fi(),l=Go(),u=Fr(),d=Tr(),f=Er(),p=ss(),m=au(),h=cu().set,g=pu(),_=mu(),v=hu(),y=uu(),b=ai(),x=gu(),S=_u(),C=vu(),w=`Promise`,T=S.CONSTRUCTOR,E=S.REJECTION_EVENT,D=S.SUBCLASSING,O=b.getterFor(w),k=b.set,A=x&&x.prototype,j=x,M=A,N=r.TypeError,P=r.document,F=r.process,I=C.f,L=I,R=!!(P&&P.createEvent&&r.dispatchEvent),ee=`unhandledrejection`,z=`rejectionhandled`,te=0,ne=1,re=2,ie=1,ae=2,oe,se,ce,le,ue=function(e){var t;return f(e)&&d(t=e.then)?t:!1},de=function(e,t){var n=t.value,r=t.state===ne,i=r?e.ok:e.fail,o=e.resolve,s=e.reject,c=e.domain,l,u,d;try{i?(r||(t.rejection===ae&&ge(t),t.rejection=ie),i===!0?l=n:(c&&c.enter(),l=i(n),c&&(c.exit(),d=!0)),l===e.promise?s(new N(`Promise-chain cycle`)):(u=ue(l))?a(u,l,o,s):o(l)):s(n)}catch(e){c&&!d&&c.exit(),s(e)}},fe=function(e,t){e.notified||(e.notified=!0,g(function(){for(var n=e.reactions,r;r=n.get();)de(r,e);e.notified=!1,t&&!e.rejection&&me(e)}))},pe=function(e,t,n){var i,a;R?(i=P.createEvent(`Event`),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),r.dispatchEvent(i)):i={promise:t,reason:n},!E&&(a=r[`on`+e])?a(i):e===ee&&_(`Unhandled promise rejection`,n)},me=function(e){a(h,r,function(){var t=e.facade,r=e.value,i=he(e),a;if(i&&(a=v(function(){n?F.emit(`unhandledRejection`,r,t):pe(ee,t,r)}),e.rejection=n||he(e)?ae:ie,a.error))throw a.value})},he=function(e){return e.rejection!==ie&&!e.parent},ge=function(e){a(h,r,function(){var t=e.facade;n?F.emit(`rejectionHandled`,t):pe(z,t,e.value)})},_e=function(e,t,n){return function(r){e(t,r,n)}},ve=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=re,fe(e,!0))},ye=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new N(`Promise can't be resolved itself`);var r=ue(t);r?g(function(){var n={done:!1};try{a(r,t,_e(ye,n,e),_e(ve,n,e))}catch(t){ve(n,t,e)}}):(e.value=t,e.state=ne,fe(e,!1))}catch(t){ve({done:!1},t,e)}}};if(T&&(j=function(e){p(this,M),u(e),a(oe,this);var t=O(this);try{e(_e(ye,t),_e(ve,t))}catch(e){ve(t,e)}},M=j.prototype,oe=function(e){k(this,{type:w,done:!1,notified:!1,parent:!1,reactions:new y,rejection:!1,state:te,value:null})},oe.prototype=o(M,`then`,function(e,t){var r=O(this),i=I(m(this,j));return r.parent=!0,i.ok=d(e)?e:!0,i.fail=d(t)&&t,i.domain=n?F.domain:void 0,r.state===te?r.reactions.add(i):g(function(){de(i,r)}),i.promise}),se=function(){var e=new oe,t=O(e);this.promise=e,this.resolve=_e(ye,t),this.reject=_e(ve,t)},C.f=I=function(e){return e===j||e===ce?new se(e):L(e)},!t&&d(x)&&A!==Object.prototype)){le=A.then,D||o(A,`then`,function(e,t){var n=this;return new j(function(e,t){a(le,n,e,t)}).then(e,t)},{unsafe:!0});try{delete A.constructor}catch{}s&&s(A,M)}e({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:j}),ce=i.Promise,c(j,w,!1,!0),l(w)})),bu=T(((e,t)=>{var n=gu(),r=ho();t.exports=_u().CONSTRUCTOR||!r(function(e){n.all(e).then(void 0,function(){})})})),xu=T((()=>{var e=J(),t=G(),n=Fr(),r=vu(),i=hu(),a=La();e({target:`Promise`,stat:!0,forced:bu()},{all:function(e){var o=this,s=r.f(o),c=s.resolve,l=s.reject,u=i(function(){var r=n(o.resolve),i=[],s=0,u=1;a(e,function(e){var n=s++,a=!1;u++,t(r,o,e).then(function(e){a||(a=!0,i[n]=e,--u||c(i))},l)}),--u||c(i)});return u.error&&l(u.value),s.promise}})})),Su=T((()=>{var e=J(),t=Rr(),n=_u().CONSTRUCTOR,r=gu(),i=Dr(),a=Tr(),o=si(),s=r&&r.prototype;if(e({target:`Promise`,proto:!0,forced:n,real:!0},{catch:function(e){return this.then(void 0,e)}}),!t&&a(r)){var c=i(`Promise`).prototype.catch;s.catch!==c&&o(s,`catch`,c,{unsafe:!0})}})),Cu=T((()=>{var e=J(),t=G(),n=Fr(),r=vu(),i=hu(),a=La();e({target:`Promise`,stat:!0,forced:bu()},{race:function(e){var o=this,s=r.f(o),c=s.reject,l=i(function(){var r=n(o.resolve);a(e,function(e){t(r,o,e).then(s.resolve,c)})});return l.error&&c(l.value),s.promise}})})),wu=T((()=>{var e=J(),t=vu(),n=_u().CONSTRUCTOR;e({target:`Promise`,stat:!0,forced:n},{reject:function(e){var n=t.f(this),r=n.reject;return r(e),n.promise}})})),Tu=T(((e,t)=>{var n=q(),r=Er(),i=vu();t.exports=function(e,t){if(n(e),r(t)&&t.constructor===e)return t;var a=i.f(e),o=a.resolve;return o(t),a.promise}})),Eu=T((()=>{var e=J(),t=Dr(),n=Rr(),r=gu(),i=_u().CONSTRUCTOR,a=Tu(),o=t(`Promise`),s=n&&!i;e({target:`Promise`,stat:!0,forced:n||i},{resolve:function(e){return a(s&&this===o?r:this,e)}})})),Du=T((()=>{yu(),xu(),Su(),Cu(),wu(),Eu()})),Ou=T((()=>{var e=J(),t=G(),n=Fr(),r=vu(),i=hu(),a=La();e({target:`Promise`,stat:!0,forced:bu()},{allSettled:function(e){var o=this,s=r.f(o),c=s.resolve,l=s.reject,u=i(function(){var r=n(o.resolve),i=[],s=0,l=1;a(e,function(e){var n=s++,a=!1;l++,t(r,o,e).then(function(e){a||(a=!0,i[n]={status:`fulfilled`,value:e},--l||c(i))},function(e){a||(a=!0,i[n]={status:`rejected`,reason:e},--l||c(i))})}),--l||c(i)});return u.error&&l(u.value),s.promise}})})),ku=T((()=>{var e=J(),t=G(),n=Fr(),r=Dr(),i=vu(),a=hu(),o=La(),s=bu(),c=`No one promise resolved`;e({target:`Promise`,stat:!0,forced:s},{any:function(e){var s=this,l=r(`AggregateError`),u=i.f(s),d=u.resolve,f=u.reject,p=a(function(){var r=n(s.resolve),i=[],a=0,u=1,p=!1;o(e,function(e){var n=a++,o=!1;u++,t(r,s,e).then(function(e){o||p||(p=!0,d(e))},function(e){o||p||(o=!0,i[n]=e,--u||f(new l(i,c)))})}),--u||f(new l(i,c))});return p.error&&f(p.value),u.promise}})})),Au=T((()=>{var e=J(),t=Rr(),n=gu(),r=U(),i=Dr(),a=Tr(),o=au(),s=Tu(),c=si(),l=n&&n.prototype;if(e({target:`Promise`,proto:!0,real:!0,forced:!!n&&r(function(){l.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=o(this,i(`Promise`)),n=a(e);return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}}),!t&&a(n)){var u=i(`Promise`).prototype.finally;l.finally!==u&&c(l,`finally`,u,{unsafe:!0})}})),ju=T((()=>{var e=J(),t=H(),n=qi(),r=Oi(),i=vu(),a=Fr(),o=hu(),s=t.Promise,c=!1;e({target:`Promise`,stat:!0,forced:!s||!s.try||o(function(){s.try(function(e){c=e===8},8)}).error||!c},{try:function(e){var t=arguments.length>1?r(arguments,1):[],s=i.f(this),c=o(function(){return n(a(e),void 0,t)});return(c.error?s.reject:s.resolve)(c.value),s.promise}})})),Mu=T((()=>{var e=J(),t=vu();e({target:`Promise`,stat:!0},{withResolvers:function(){var e=t.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})})),Nu=T(((e,t)=>{var n=H(),r=Br(),i=Tr(),a=Di(),o=ja(),s=si(),c=Gr(),l=Rr(),u=`USE_FUNCTION_CONSTRUCTOR`,d=c(`asyncIterator`),f=n.AsyncIterator,p=r.AsyncIteratorPrototype,m,h;if(p)m=p;else if(i(f))m=f.prototype;else if(r[u]||n[u])try{h=o(o(o(Function(`return async function*(){}()`)()))),o(h)===Object.prototype&&(m=h)}catch{}m?l&&(m=a(m)):m={},i(m[d])||s(m,d,function(){return this}),t.exports=m})),Pu=T(((e,t)=>{var n=G(),r=q(),i=Di(),a=Ir(),o=os(),s=ai(),c=Ia(),l=Dr(),u=Nu(),d=Co(),f=l(`Promise`),p=`AsyncFromSyncIterator`,m=s.set,h=s.getterFor(p),g=function(e,t,n,r,i){var a=e.done;f.resolve(e.value).then(function(e){t(d(e,a))},function(e){if(!a&&i)try{c(r,`throw`,e)}catch(t){e=t}n(e)})},_=function(e){e.type=p,m(this,e)};_.prototype=o(i(u),{next:function(){var e=h(this);return new f(function(t,i){g(r(n(e.next,e.iterator)),t,i,e.iterator,!0)})},return:function(){var e=h(this).iterator;return new f(function(t,i){var o=a(e,`return`);if(o===void 0)return t(d(void 0,!0));g(r(n(o,e)),t,i,e)})}}),t.exports=_})),Fu=T(((e,t)=>{var n=G(),r=Pu(),i=q(),a=Fa(),o=rc(),s=Ir(),c=Gr()(`asyncIterator`);t.exports=function(e,t){var l=arguments.length<2?s(e,c):t;return l?i(n(l,e)):new r(o(a(e)))}})),Iu=T(((e,t)=>{var n=G(),r=Dr(),i=Ir();t.exports=function(e,t,a,o){try{var s=i(e,`return`);if(s)return r(`Promise`).resolve(n(s,e)).then(function(){t(a)},function(e){o(e)})}catch(e){return o(e)}t(a)}})),Lu=T(((e,t)=>{var n=G(),r=Fr(),i=q(),a=Er(),o=Wa(),s=Dr(),c=rc(),l=Iu(),u=function(e){var t=e===0,u=e===1,d=e===2,f=e===3;return function(e,p,m){i(e);var h=p!==void 0;(h||!t)&&r(p);var g=c(e),_=s(`Promise`),v=g.iterator,y=g.next,b=0;return new _(function(e,r){var s=function(e){l(v,r,e,r)},c=function(){try{if(h)try{o(b)}catch(e){s(e)}_.resolve(i(n(y,v))).then(function(n){try{if(i(n).done)t?(m.length=b,e(m)):e(f?!1:d||void 0);else{var o=n.value;try{if(h){var g=p(o,b),y=function(n){if(u)c();else if(d)n?c():l(v,e,!1,r);else if(t)try{m[b++]=n,c()}catch(e){s(e)}else n?l(v,e,f||o,r):c()};a(g)?_.resolve(g).then(y,s):y(g)}else m[b++]=o,c()}catch(e){s(e)}}}catch(e){r(e)}},r)}catch(e){r(e)}};c()})}};t.exports={toArray:u(0),forEach:u(1),every:u(2),some:u(3),find:u(4)}})),Ru=T(((e,t)=>{var n=Li(),r=K(),i=Hr(),a=zi(),o=Fu(),s=Fa(),c=rc(),l=Pa(),u=Ir(),d=Dr(),f=Zo(),p=Gr(),m=Pu(),h=Lu().toArray,g=p(`asyncIterator`),_=r(f(`Array`,`values`)),v=r(_([]).next),y=function(){return new b(this)},b=function(e){this.iterator=_(e)};b.prototype.next=function(){return v(this.iterator)},t.exports=function(e){var t=this,r=arguments.length,f=r>1?arguments[1]:void 0,p=r>2?arguments[2]:void 0;return new(d(`Promise`))(function(r){var d=i(e);f!==void 0&&(f=n(f,p));var _=u(d,g),v=_?void 0:l(d)||y,b=a(t)?new t:[];r(h(_?o(d,_):new m(c(s(d,v))),f,b))})}})),zu=T((()=>{var e=J(),t=Ru(),n=U(),r=Array.fromAsync;e({target:`Array`,stat:!0,forced:!r||n(function(){var e=0;return r.call(function(){return e++,[]},{length:0}),e!==1})},{fromAsync:t})})),Bu=T((()=>{var e=J(),t=W(),n=Dr(),r=Fr(),i=ss(),a=si(),o=os(),s=Ai(),c=Gr(),l=ai(),u=qs(),d=Ar(),f=n(`Promise`),p=n(`SuppressedError`),m=ReferenceError,h=c(`asyncDispose`),g=c(`toStringTag`),_=`AsyncDisposableStack`,v=l.set,y=l.getterFor(_),b=`async-dispose`,x=`disposed`,S=`pending`,C=function(e){var t=y(e);if(t.state===x)throw new m(_+` already disposed`);return t},w=function(){v(i(this,T),{type:_,state:S,stack:[]}),t||(this.disposed=!1)},T=w.prototype;o(T,{disposeAsync:function(){var e=this;return new f(function(n,r){var i=y(e);if(i.state===x)return n(void 0);i.state=x,t||(e.disposed=!0);var a=i.stack,o=a.length,s=!1,c,l=function(e){s?c=new p(e,c):(s=!0,c=e),u()},u=function(){if(o){var e=a[--o];a[o]=null;try{f.resolve(e()).then(u,l)}catch(e){l(e)}}else i.stack=null,s?r(c):n(void 0)};u()})},use:function(e){return u(C(this),e,b),e},adopt:function(e,t){var n=C(this);return r(t),u(n,void 0,b,function(){return t(e)}),e},defer:function(e){var t=C(this);r(e),u(t,void 0,b,e)},move:function(){var e=C(this),n=new w;return y(n).stack=e.stack,e.stack=[],e.state=x,t||(this.disposed=!0),n}}),t&&s(T,`disposed`,{configurable:!0,get:function(){return y(this).state===x}}),a(T,h,T.disposeAsync,{name:`disposeAsync`}),a(T,g,_,{nonWritable:!0}),e({global:!0,constructor:!0,forced:d&&d<136},{AsyncDisposableStack:w})})),Vu=T((()=>{var e=G(),t=si(),n=Dr(),r=Ir(),i=Ur(),a=Gr(),o=Nu(),s=a(`asyncDispose`),c=n(`Promise`);i(o,s)||t(o,s,function(){var t=this;return new c(function(n,i){var a=r(t,`return`);a?c.resolve(e(a,t)).then(function(){n(void 0)},i):n(void 0)})})})),Hu=T((()=>{var e=J(),t=qi(),n=Fr(),r=q();e({target:`Reflect`,stat:!0,forced:!U()(function(){Reflect.apply(function(){})})},{apply:function(e,i,a){return t(n(e),i,r(a))}})})),Uu=T((()=>{var e=J(),t=Dr(),n=qi(),r=Xs(),i=iu(),a=q(),o=Er(),s=Di(),c=U(),l=t(`Reflect`,`construct`),u=Object.prototype,d=[].push,f=c(function(){function e(){}return!(l(function(){},[],e)instanceof e)}),p=!c(function(){l(function(){})}),m=f||p;e({target:`Reflect`,stat:!0,forced:m,sham:m},{construct:function(e,t){i(e),a(t);var c=arguments.length<3?e:i(arguments[2]);if(p&&!f)return l(e,t,c);if(e===c){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var m=[null];return n(d,m,t),new(n(r,e,m))}var h=c.prototype,g=s(o(h)?h:u),_=n(e,g,t);return o(_)?_:g}})})),Wu=T((()=>{var e=J(),t=W(),n=q(),r=qr(),i=Qr();e({target:`Reflect`,stat:!0,forced:U()(function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})}),sham:!t},{defineProperty:function(e,t,a){n(e);var o=r(t);n(a);try{return i.f(e,o,a),!0}catch{return!1}}})})),Gu=T((()=>{var e=J(),t=q(),n=Xr().f;e({target:`Reflect`,stat:!0},{deleteProperty:function(e,r){var i=n(t(e),r);return i&&!i.configurable?!1:delete e[r]}})})),Ku=T(((e,t)=>{var n=Ur();t.exports=function(e){return e!==void 0&&(n(e,`value`)||n(e,`writable`))}})),qu=T((()=>{var e=J(),t=G(),n=Er(),r=q(),i=Ku(),a=Xr(),o=ja();function s(e,c){var l=arguments.length<3?e:arguments[2],u,d;if(r(e)===l)return e[c];if(u=a.f(e,c),u)return i(u)?u.value:u.get===void 0?void 0:t(u.get,l);if(n(d=o(e)))return s(d,c,l)}e({target:`Reflect`,stat:!0},{get:s})})),Ju=T((()=>{var e=J(),t=W(),n=q(),r=Xr();e({target:`Reflect`,stat:!0,sham:!t},{getOwnPropertyDescriptor:function(e,t){return r.f(n(e),t)}})})),Yu=T((()=>{var e=J(),t=q(),n=ja();e({target:`Reflect`,stat:!0,sham:!Aa()},{getPrototypeOf:function(e){return n(t(e))}})})),Xu=T((()=>{J()({target:`Reflect`,stat:!0},{has:function(e,t){return t in e}})})),Zu=T((()=>{var e=J(),t=q(),n=Tc();e({target:`Reflect`,stat:!0},{isExtensible:function(e){return t(e),n(e)}})})),Qu=T((()=>{J()({target:`Reflect`,stat:!0},{ownKeys:vi()})})),$u=T((()=>{var e=J(),t=Dr(),n=q();e({target:`Reflect`,stat:!0,sham:!Ec()},{preventExtensions:function(e){n(e);try{var r=t(`Object`,`preventExtensions`);return r&&r(e),!0}catch{return!1}}})})),ed=T((()=>{var e=J(),t=G(),n=q(),r=Er(),i=Ku(),a=U(),o=Qr(),s=Xr(),c=ja(),l=yr();function u(e,a,d){var f=arguments.length<4?e:arguments[3],p=s.f(n(e),a),m,h,g;if(!p){if(r(h=c(e)))return u(h,a,d,f);p=l(0)}if(i(p)){if(p.writable===!1||!r(f))return!1;if(m=s.f(f,a)){if(m.get||m.set||m.writable===!1)return!1;m.value=d,o.f(f,a,m)}else o.f(f,a,l(0,d))}else{if(g=p.set,g===void 0)return!1;t(g,f,d)}return!0}e({target:`Reflect`,stat:!0,forced:a(function(){var e=function(){},t=o.f(new e,`a`,{configurable:!0});return Reflect.set(e.prototype,`a`,1,t)!==!1})},{set:u})})),td=T((()=>{var e=J(),t=q(),n=ga(),r=_a();r&&e({target:`Reflect`,stat:!0},{setPrototypeOf:function(e,i){t(e),n(i);try{return r(e,i),!0}catch{return!1}}})})),nd=T((()=>{var e=J(),t=H(),n=Fi();e({global:!0},{Reflect:{}}),n(t.Reflect,`Reflect`,!0)})),rd=T(((e,t)=>{var n=Er(),r=br(),i=Gr()(`match`);t.exports=function(e){var t;return n(e)&&((t=e[i])===void 0?r(e)===`RegExp`:!!t)}})),id=T(((e,t)=>{var n=H(),r=U(),i=n.RegExp;t.exports={correct:!r(function(){var e=!0;try{i(`.`,`d`)}catch{e=!1}var t={},n=``,r=e?`dgimsy`:`gimsy`,a=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:`s`,global:`g`,ignoreCase:`i`,multiline:`m`,sticky:`y`};for(var s in e&&(o.hasIndices=`d`),o)a(s,o[s]);return Object.getOwnPropertyDescriptor(i.prototype,`flags`).get.call(t)!==r||n!==r})}})),ad=T(((e,t)=>{var n=q();t.exports=function(){var e=n(this),t=``;return e.hasIndices&&(t+=`d`),e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.unicodeSets&&(t+=`v`),e.sticky&&(t+=`y`),t}})),od=T(((e,t)=>{var n=G(),r=Ur(),i=Or(),a=id(),o=ad(),s=RegExp.prototype;t.exports=a.correct?function(e){return e.flags}:function(e){return!a.correct&&i(s,e)&&!r(e,`flags`)?n(o,e):e.flags}})),sd=T(((e,t)=>{var n=U(),r=H().RegExp,i=n(function(){var e=r(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!==null}),a=i||n(function(){return!r(`a`,`y`).sticky});t.exports={BROKEN_CARET:i||n(function(){var e=r(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!==null}),MISSED_STICKY:a,UNSUPPORTED_Y:i}})),cd=T(((e,t)=>{var n=U(),r=H().RegExp;t.exports=n(function(){var e=r(`.`,`s`);return!(e.dotAll&&e.test(`
|
|
4
4
|
`)&&e.flags===`s`)})})),ld=T(((e,t)=>{var n=U(),r=H().RegExp;t.exports=n(function(){var e=r(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})})),ud=T((()=>{var e=W(),t=H(),n=K(),r=bi(),i=ya(),a=$r(),o=Di(),s=gi().f,c=Or(),l=rd(),u=Ci(),d=od(),f=sd(),p=va(),m=si(),h=U(),g=Ur(),_=ai().enforce,v=Go(),y=Gr(),b=cd(),x=ld(),S=y(`match`),C=t.RegExp,w=C.prototype,T=t.SyntaxError,E=n(w.exec),D=n(``.charAt),O=n(``.replace),k=n(``.indexOf),A=n(``.slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,N=/a/g,P=new C(M)!==M,F=f.MISSED_STICKY,I=f.UNSUPPORTED_Y,L=e&&(!P||F||b||x||h(function(){return N[S]=!1,C(M)!==M||C(N)===N||String(C(M,`i`))!==`/a/i`})),R=function(e){for(var t=e.length,n=0,r=``,i=!1,a;n<=t;n++){if(a=D(e,n),a===`\\`){r+=a+D(e,++n);continue}!i&&a===`.`?r+=`[\\s\\S]`:(a===`[`?i=!0:a===`]`&&(i=!1),r+=a)}return r},ee=function(e){for(var t=e.length,n=0,r=``,i=[],a=o(null),s=!1,c=!1,l=0,u=``,d;n<=t;n++){if(d=D(e,n),d===`\\`)d+=D(e,++n);else if(d===`]`)s=!1;else if(!s)switch(!0){case d===`[`:s=!0;break;case d===`(`:if(r+=d,A(e,n+1,n+3)===`?:`)continue;E(j,A(e,n+1))&&(n+=2,c=!0),l++;continue;case d===`>`&&c:if(u===``||g(a,u))throw new T(`Invalid capture group name`);a[u]=!0,i[i.length]=[u,l],c=!1,u=``;continue}c?u+=d:r+=d}return[r,i]};if(r(`RegExp`,L)){for(var z=function(e,t){var n=c(w,this),r=l(e),o=t===void 0,s=[],f=e,p,m,h,g,v,y;if(!n&&r&&o&&e.constructor===z)return e;if((r||c(w,e))&&(e=e.source,o&&(t=d(f))),e=e===void 0?``:u(e),t=t===void 0?``:u(t),f=e,b&&`dotAll`in M&&(m=!!t&&k(t,`s`)>-1,m&&(t=O(t,/s/g,``))),p=t,F&&`sticky`in M&&(h=!!t&&k(t,`y`)>-1,h&&I&&(t=O(t,/y/g,``))),x&&(g=ee(e),e=g[0],s=g[1]),v=i(C(e,t),n?this:w,z),(m||h||s.length)&&(y=_(v),m&&(y.dotAll=!0,y.raw=z(R(e),p)),h&&(y.sticky=!0),s.length&&(y.groups=s)),e!==f)try{a(v,`source`,f===``?`(?:)`:f)}catch{}return v},te=s(C),ne=0;te.length>ne;)p(z,C,te[ne++]);w.constructor=z,z.prototype=w,m(t,`RegExp`,z,{constructor:!0})}v(`RegExp`)})),dd=T(((e,t)=>{var n=TypeError;t.exports=function(e){if(typeof e==`string`)return e;throw new n(`Argument is not a string`)}})),fd=T((()=>{var e=J(),t=K(),n=dd(),r=Ur(),i=Bs().start,a=il(),o=Array,s=RegExp.escape,c=t(``.charAt),l=t(``.charCodeAt),u=t(1.1.toString),d=t([].join),f=/^[0-9a-z]/i,p=/^[$()*+./?[\\\]^{|}]/,m=RegExp(`^[!"#%&',\\-:;<=>@\`~`+a+`]`),h=t(f.exec),g={" ":`t`,"\n":`n`,"\v":`v`,"\f":`f`,"\r":`r`},_=function(e){var t=u(l(e,0),16);return t.length<3?`\\x`+i(t,2,`0`):`\\u`+i(t,4,`0`)};e({target:`RegExp`,stat:!0,forced:!s||s(`ab`)!==`\\x61b`},{escape:function(e){n(e);for(var t=e.length,i=o(t),a=0;a<t;a++){var s=c(e,a);if(a===0&&h(f,s))i[a]=_(s);else if(r(g,s))i[a]=`\\`+g[s];else if(h(p,s))i[a]=`\\`+s;else if(h(m,s))i[a]=_(s);else{var u=l(s,0);(u&63488)==55296?u>=56320||a+1>=t||(l(e,a+1)&64512)!=56320?i[a]=_(s):(i[a]=s,i[++a]=c(e,a)):i[a]=s}}return d(i,``)}})})),pd=T((()=>{var e=W(),t=cd(),n=br(),r=Ai(),i=ai().get,a=RegExp.prototype,o=TypeError;e&&t&&r(a,`dotAll`,{configurable:!0,get:function(){if(this!==a){if(n(this)===`RegExp`)return!!i(this).dotAll;throw new o(`Incompatible receiver, RegExp required`)}}})})),md=T(((e,t)=>{var n=G(),r=K(),i=Ci(),a=ad(),o=sd(),s=Vr(),c=Di(),l=ai().get,u=cd(),d=ld(),f=s(`native-string-replace`,String.prototype.replace),p=RegExp.prototype.exec,m=p,h=r(``.charAt),g=r(``.indexOf),_=r(``.replace),v=r(``.slice),y=(function(){var e=/a/,t=/b*/g;return n(p,e,`a`),n(p,t,`a`),e.lastIndex!==0||t.lastIndex!==0})(),b=o.BROKEN_CARET,x=/()??/.exec(``)[1]!==void 0;(y||x||b||u||d)&&(m=function(e){var t=this,r=l(t),o=i(e),s=r.raw,u,d,S,C,w,T,E;if(s)return s.lastIndex=t.lastIndex,u=n(m,s,o),t.lastIndex=s.lastIndex,u;var D=r.groups,O=b&&t.sticky,k=n(a,t),A=t.source,j=0,M=o;if(O&&(k=_(k,`y`,``),g(k,`g`)===-1&&(k+=`g`),M=v(o,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&h(o,t.lastIndex-1)!==`
|
|
5
5
|
`)&&(A=`(?: `+A+`)`,M=` `+M,j++),d=RegExp(`^(?:`+A+`)`,k)),x&&(d=RegExp(`^`+A+`$(?!\\s)`,k)),y&&(S=t.lastIndex),C=n(p,O?d:t,M),O?C?(C.input=v(C.input,j),C[0]=v(C[0],j),C.index=t.lastIndex,t.lastIndex+=C[0].length):t.lastIndex=0:y&&C&&(t.lastIndex=t.global?C.index+C[0].length:S),x&&C&&C.length>1&&n(f,C[0],d,function(){for(w=1;w<arguments.length-2;w++)arguments[w]===void 0&&(C[w]=void 0)}),C&&D)for(C.groups=T=c(null),w=0;w<D.length;w++)E=D[w],T[E[0]]=C[E[1]];return C}),t.exports=m})),hd=T((()=>{var e=J(),t=md();e({target:`RegExp`,proto:!0,forced:/./.exec!==t},{exec:t})})),gd=T((()=>{var e=W(),t=Ai(),n=id(),r=ad();e&&!n.correct&&(t(RegExp.prototype,`flags`,{configurable:!0,get:r}),n.correct=!0)})),_d=T((()=>{var e=W(),t=sd().MISSED_STICKY,n=br(),r=Ai(),i=ai().get,a=RegExp.prototype,o=TypeError;e&&t&&r(a,`sticky`,{configurable:!0,get:function(){if(this!==a){if(n(this)===`RegExp`)return!!i(this).sticky;throw new o(`Incompatible receiver, RegExp required`)}}})})),vd=T((()=>{hd();var e=J(),t=G(),n=Tr(),r=q(),i=Ci(),a=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},t.test(`abc`)===!0&&e}(),o=/./.test;e({target:`RegExp`,proto:!0,forced:!a},{test:function(e){var a=r(this),s=i(e),c=a.exec;if(!n(c))return t(o,a,s);var l=t(c,a,s);return l===null?!1:(r(l),!0)}})})),yd=T((()=>{var e=ei().PROPER,t=si(),n=q(),r=Ci(),i=U(),a=od(),o=`toString`,s=RegExp.prototype,c=s[o],l=i(function(){return c.call({source:`a`,flags:`b`})!==`/a/b`}),u=e&&c.name!==o;(l||u)&&t(s,o,function(){var e=n(this),t=r(e.source),i=r(a(e));return`/`+t+`/`+i},{unsafe:!0})})),bd=T((()=>{Oc()(`Set`,function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},kc())})),xd=T((()=>{bd()})),Sd=T(((e,t)=>{var n=K(),r=Set.prototype;t.exports={Set,add:n(r.add),has:n(r.has),remove:n(r.delete),proto:r}})),Cd=T(((e,t)=>{var n=Sd().has;t.exports=function(e){return n(e),e}})),wd=T(((e,t)=>{var n=G();t.exports=function(e,t,r){for(var i=r?e:e.iterator,a=e.next,o,s;!(o=n(a,i)).done;)if(s=t(o.value),s!==void 0)return s}})),Td=T(((e,t)=>{var n=K(),r=wd(),i=Sd(),a=i.Set,o=i.proto,s=n(o.forEach),c=n(o.keys),l=c(new a).next;t.exports=function(e,t,n){return n?r({iterator:c(e),next:l},t):s(e,t)}})),Ed=T(((e,t)=>{var n=Sd(),r=Td(),i=n.Set,a=n.add;t.exports=function(e){var t=new i;return r(e,function(e){a(t,e)}),t}})),Dd=T(((e,t)=>{t.exports=ma()(Sd().proto,`size`,`get`)||function(e){return e.size}})),Od=T(((e,t)=>{var n=Fr(),r=q(),i=G(),a=li(),o=rc(),s=`Invalid size`,c=RangeError,l=TypeError,u=Math.max,d=function(e,t){this.set=e,this.size=u(t,0),this.has=n(e.has),this.keys=n(e.keys)};d.prototype={getIterator:function(){return o(r(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},t.exports=function(e){r(e);var t=+e.size;if(t!==t)throw new l(s);var n=a(t);if(n<0)throw new c(s);return new d(e,n)}})),kd=T(((e,t)=>{var n=Cd(),r=Sd(),i=Ed(),a=Dd(),o=Od(),s=Td(),c=wd(),l=r.has,u=r.remove;t.exports=function(e){var t=n(this),r=o(e),d=i(t);return a(t)<=r.size?s(t,function(e){r.includes(e)&&u(d,e)}):c(r.getIterator(),function(e){l(d,e)&&u(d,e)}),d}})),Ad=T(((e,t)=>{var n=Dr(),r=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},i=function(e){return{size:e,has:function(){return!0},keys:function(){throw Error(`e`)}}};t.exports=function(e,t){var a=n(`Set`);try{new a()[e](r(0));try{return new a()[e](r(-1)),!1}catch{if(!t)return!0;try{return new a()[e](i(-1/0)),!1}catch{var o=new a;return o.add(1),o.add(2),t(o[e](i(1/0)))}}}catch{return!1}}})),jd=T((()=>{var e=J(),t=kd(),n=U();e({target:`Set`,proto:!0,real:!0,forced:!Ad()(`difference`,function(e){return e.size===0})||n(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return t.difference(e).size!==3})},{difference:t})})),Md=T(((e,t)=>{var n=Cd(),r=Sd(),i=Dd(),a=Od(),o=Td(),s=wd(),c=r.Set,l=r.add,u=r.has;t.exports=function(e){var t=n(this),r=a(e),d=new c;return i(t)>r.size?s(r.getIterator(),function(e){u(t,e)&&l(d,e)}):o(t,function(e){r.includes(e)&&l(d,e)}),d}})),Nd=T((()=>{var e=J(),t=U(),n=Md();e({target:`Set`,proto:!0,real:!0,forced:!Ad()(`intersection`,function(e){return e.size===2&&e.has(1)&&e.has(2)})||t(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!==`3,2`})},{intersection:n})})),Pd=T(((e,t)=>{var n=Cd(),r=Sd().has,i=Dd(),a=Od(),o=Td(),s=wd(),c=Ia();t.exports=function(e){var t=n(this),l=a(e);if(i(t)<=l.size)return o(t,function(e){if(l.includes(e))return!1},!0)!==!1;var u=l.getIterator();return s(u,function(e){if(r(t,e))return c(u,`normal`,!1)})!==!1}})),Fd=T((()=>{var e=J(),t=Pd();e({target:`Set`,proto:!0,real:!0,forced:!Ad()(`isDisjointFrom`,function(e){return!e})},{isDisjointFrom:t})})),Id=T(((e,t)=>{var n=Cd(),r=Dd(),i=Td(),a=Od();t.exports=function(e){var t=n(this),o=a(e);return r(t)>o.size?!1:i(t,function(e){if(!o.includes(e))return!1},!0)!==!1}})),Ld=T((()=>{var e=J(),t=Id();e({target:`Set`,proto:!0,real:!0,forced:!Ad()(`isSubsetOf`,function(e){return e})},{isSubsetOf:t})})),Rd=T(((e,t)=>{var n=Cd(),r=Sd().has,i=Dd(),a=Od(),o=wd(),s=Ia();t.exports=function(e){var t=n(this),c=a(e);if(i(t)<c.size)return!1;var l=c.getIterator();return o(l,function(e){if(!r(t,e))return s(l,`normal`,!1)})!==!1}})),zd=T((()=>{var e=J(),t=Rd();e({target:`Set`,proto:!0,real:!0,forced:!Ad()(`isSupersetOf`,function(e){return!e})},{isSupersetOf:t})})),Bd=T(((e,t)=>{var n=Cd(),r=Sd(),i=Ed(),a=Od(),o=wd(),s=r.add,c=r.has,l=r.remove;t.exports=function(e){var t=n(this),r=a(e).getIterator(),u=i(t);return o(r,function(e){c(t,e)?l(u,e):s(u,e)}),u}})),Vd=T(((e,t)=>{t.exports=function(e){try{var t=new Set,n=t[e]({size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},`next`,{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}});return n.size===1&&n.values().next().value===4}catch{return!1}}})),Hd=T((()=>{var e=J(),t=Bd(),n=Vd();e({target:`Set`,proto:!0,real:!0,forced:!Ad()(`symmetricDifference`)||!n(`symmetricDifference`)},{symmetricDifference:t})})),Ud=T(((e,t)=>{var n=Cd(),r=Sd().add,i=Ed(),a=Od(),o=wd();t.exports=function(e){var t=n(this),s=a(e).getIterator(),c=i(t);return o(s,function(e){r(c,e)}),c}})),Wd=T((()=>{var e=J(),t=Ud(),n=Vd();e({target:`Set`,proto:!0,real:!0,forced:!Ad()(`union`)||!n(`union`)},{union:t})})),Gd=T((()=>{var e=J(),t=K(),n=Cr(),r=li(),i=Ci(),a=U(),o=t(``.charAt);e({target:`String`,proto:!0,forced:a(function(){return`𠮷`.at(-2)!==`\ud842`})},{at:function(e){var t=i(n(this)),a=t.length,s=r(e),c=s>=0?s:a+s;return c<0||c>=a?void 0:o(t,c)}})})),Kd=T(((e,t)=>{var n=K(),r=li(),i=Ci(),a=Cr(),o=n(``.charAt),s=n(``.charCodeAt),c=n(``.slice),l=function(e){return function(t,n){var l=i(a(t)),u=r(n),d=l.length,f,p;return u<0||u>=d?e?``:void 0:(f=s(l,u),f<55296||f>56319||u+1===d||(p=s(l,u+1))<56320||p>57343?e?o(l,u):f:e?c(l,u,u+2):(f-55296<<10)+(p-56320)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}})),qd=T((()=>{var e=J(),t=Kd().codeAt;e({target:`String`,proto:!0},{codePointAt:function(e){return t(this,e)}})})),Jd=T(((e,t)=>{var n=rd(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`The method doesn't accept regular expressions`);return e}})),Yd=T(((e,t)=>{var n=Gr()(`match`);t.exports=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[n]=!1,`/./`[e](t)}catch{}}return!1}})),Xd=T((()=>{var e=J(),t=Ii(),n=Xr().f,r=di(),i=Ci(),a=Jd(),o=Cr(),s=Yd(),c=Rr(),l=t(``.slice),u=Math.min,d=s(`endsWith`);e({target:`String`,proto:!0,forced:!(!c&&!d&&function(){var e=n(String.prototype,`endsWith`);return e&&!e.writable}())&&!d},{endsWith:function(e){var t=i(o(this));a(e);var n=arguments.length>1?arguments[1]:void 0,s=t.length,c=n===void 0?s:u(r(n),s),d=i(e);return l(t,c-d.length,c)===d}})})),Zd=T((()=>{var e=J(),t=K(),n=ui(),r=RangeError,i=String.fromCharCode,a=String.fromCodePoint,o=t([].join);e({target:`String`,stat:!0,arity:1,forced:!!a&&a.length!==1},{fromCodePoint:function(e){for(var t=[],a=arguments.length,s=0,c;a>s;){if(c=+arguments[s++],n(c,1114111)!==c)throw new r(c+` is not a valid code point`);t[s]=c<65536?i(c):i(((c-=65536)>>10)+55296,c%1024+56320)}return o(t,``)}})})),Qd=T((()=>{var e=J(),t=K(),n=Jd(),r=Cr(),i=Ci(),a=Yd(),o=t(``.indexOf);e({target:`String`,proto:!0,forced:!a(`includes`)},{includes:function(e){return!!~o(i(r(this)),i(n(e)),arguments.length>1?arguments[1]:void 0)}})})),$d=T((()=>{var e=J(),t=K(),n=Cr(),r=Ci(),i=t(``.charCodeAt);e({target:`String`,proto:!0},{isWellFormed:function(){for(var e=r(n(this)),t=e.length,a=0;a<t;a++){var o=i(e,a);if((o&63488)==55296&&(o>=56320||++a>=t||(i(e,a)&64512)!=56320))return!1}return!0}})})),ef=T((()=>{var e=Kd().charAt,t=Ci(),n=ai(),r=So(),i=Co(),a=`String Iterator`,o=n.set,s=n.getterFor(a);r(String,`String`,function(e){o(this,{type:a,string:t(e),index:0})},function(){var t=s(this),n=t.string,r=t.index,a;return r>=n.length?i(void 0,!0):(a=e(n,r),t.index+=a.length,i(a,!1))})})),tf=T(((e,t)=>{hd();var n=G(),r=si(),i=md(),a=U(),o=Gr(),s=$r(),c=o(`species`),l=RegExp.prototype;t.exports=function(e,t,u,d){var f=o(e),p=!a(function(){var t={};return t[f]=function(){return 7},``[e](t)!==7}),m=p&&!a(function(){var t=!1,n=/a/;return e===`split`&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags=``,n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](``),!t});if(!p||!m||u){var h=/./[f],g=t(f,``[e],function(e,t,r,a,o){var s=t.exec;return s===i||s===l.exec?p&&!o?{done:!0,value:n(h,t,r,a)}:{done:!0,value:n(e,r,t,a)}:{done:!1}});r(String.prototype,e,g[0]),r(l,f,g[1])}d&&s(l[f],`sham`,!0)}})),nf=T(((e,t)=>{var n=Kd().charAt;t.exports=function(e,t,r){return t+(r?n(e,t).length:1)}})),rf=T(((e,t)=>{var n=G(),r=q(),i=Tr(),a=br(),o=md(),s=TypeError;t.exports=function(e,t){var c=e.exec;if(i(c)){var l=n(c,e,t);return l!==null&&r(l),l}if(a(e)===`RegExp`)return n(o,e,t);throw new s(`RegExp#exec called on incompatible receiver`)}})),af=T((()=>{var e=G(),t=K(),n=tf(),r=q(),i=Er(),a=di(),o=Ci(),s=Cr(),c=Ir(),l=nf(),u=od(),d=rf(),f=t(``.indexOf);n(`match`,function(t,n,p){return[function(n){var r=s(this),a=i(n)?c(n,t):void 0;return a?e(a,n,r):new RegExp(n)[t](o(r))},function(e){var t=r(this),i=o(e),s=p(n,t,i);if(s.done)return s.value;var c=o(u(t));if(f(c,`g`)===-1)return d(t,i);var m=f(c,`u`)!==-1;t.lastIndex=0;for(var h=[],g=0,_;(_=d(t,i))!==null;){var v=o(_[0]);h[g]=v,v===``&&(t.lastIndex=l(i,a(t.lastIndex),m)),g++}return g===0?null:h}]})})),of=T((()=>{var e=J(),t=G(),n=Ii(),r=xo(),i=Co(),a=Cr(),o=di(),s=Ci(),c=q(),l=Er(),u=br(),d=rd(),f=od(),p=Ir(),m=si(),h=U(),g=Gr(),_=au(),v=nf(),y=rf(),b=ai(),x=Rr(),S=g(`matchAll`),C=`RegExp String`,w=C+` Iterator`,T=b.set,E=b.getterFor(w),D=RegExp.prototype,O=TypeError,k=n(``.indexOf),A=n(``.matchAll),j=!!A&&!h(function(){A(`a`,/./)}),M=r(function(e,t,n,r){T(this,{type:w,regexp:e,string:t,global:n,unicode:r,done:!1})},C,function(){var e=E(this);if(e.done)return i(void 0,!0);var t=e.regexp,n=e.string,r=y(t,n);return r===null?(e.done=!0,i(void 0,!0)):e.global?(s(r[0])===``&&(t.lastIndex=v(n,o(t.lastIndex),e.unicode)),i(r,!1)):(e.done=!0,i(r,!1))}),N=function(e){var t=c(this),n=s(e),r=_(t,RegExp),i=s(f(t)),a=new r(r===RegExp?t.source:t,i),l=!!~k(i,`g`),u=!!~k(i,`u`);return a.lastIndex=o(t.lastIndex),new M(a,n,l,u)};e({target:`String`,proto:!0,forced:j},{matchAll:function(e){var n=a(this),r,i,o,c;if(l(e)){if(d(e)&&(r=s(a(f(e))),!~k(r,`g`)))throw new O("`.matchAll` does not allow non-global regexes");if(j)return A(n,e);if(o=p(e,S),o===void 0&&x&&u(e)===`RegExp`&&(o=N),o)return t(o,e,n)}else if(j)return A(n,e);return i=s(n),c=new RegExp(e,`g`),x?t(N,c,i):c[S](i)}}),x||S in D||m(D,S,N)})),sf=T(((e,t)=>{var n=kr();t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)})),cf=T((()=>{var e=J(),t=Bs().end;e({target:`String`,proto:!0,forced:sf()},{padEnd:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),lf=T((()=>{var e=J(),t=Bs().start;e({target:`String`,proto:!0,forced:sf()},{padStart:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),uf=T((()=>{var e=J(),t=K(),n=wr(),r=Hr(),i=Ci(),a=fi(),o=t([].push),s=t([].join);e({target:`String`,stat:!0},{raw:function(e){var t=n(r(e).raw),c=a(t);if(!c)return``;for(var l=arguments.length,u=[],d=0;;){if(o(u,i(t[d++])),d===c)return s(u,``);d<l&&o(u,i(arguments[d]))}}})})),df=T((()=>{J()({target:`String`,proto:!0},{repeat:zs()})})),ff=T(((e,t)=>{var n=K(),r=Hr(),i=Math.floor,a=n(``.charAt),o=n(``.replace),s=n(``.slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(e,t,n,u,d,f){var p=n+e.length,m=u.length,h=l;return d!==void 0&&(d=r(d),h=c),o(f,h,function(r,o){var c;switch(a(o,0)){case`$`:return`$`;case`&`:return e;case"`":return s(t,0,n);case`'`:return s(t,p);case`<`:c=d[s(o,1,-1)];break;default:var l=+o;if(l===0)return r;if(l>m){var f=i(l/10);return f===0?r:f<=m?u[f-1]===void 0?a(o,1):u[f-1]+a(o,1):r}c=u[l-1]}return c===void 0?``:c})}})),pf=T((()=>{var e=qi(),t=G(),n=K(),r=tf(),i=U(),a=q(),o=Tr(),s=Er(),c=li(),l=di(),u=Ci(),d=Cr(),f=nf(),p=Ir(),m=ff(),h=od(),g=rf(),_=Gr()(`replace`),v=Math.max,y=Math.min,b=n([].concat),x=n([].push),S=n(``.indexOf),C=n(``.slice),w=function(e){return e===void 0?e:String(e)},T=(function(){return`a`.replace(/./,`$0`)===`$0`})(),E=(function(){return/./[_]?/./[_](`a`,`$0`)===``:!1})();r(`replace`,function(n,r,i){var T=E?`$`:`$0`;return[function(e,n){var i=d(this),a=s(e)?p(e,_):void 0;return a?t(a,e,i,n):t(r,u(i),e,n)},function(t,n){var s=a(this),d=u(t);if(typeof n==`string`&&S(n,T)===-1&&S(n,`$<`)===-1){var p=i(r,s,d,n);if(p.done)return p.value}var _=o(n);_||(n=u(n));var E=u(h(s)),D=S(E,`g`)!==-1,O;D&&(O=S(E,`u`)!==-1,s.lastIndex=0);for(var k=[],A;A=g(s,d),!(A===null||(x(k,A),!D));)u(A[0])===``&&(s.lastIndex=f(d,l(s.lastIndex),O));for(var j=``,M=0,N=0;N<k.length;N++){A=k[N];for(var P=u(A[0]),F=v(y(c(A.index),d.length),0),I=[],L,R=1;R<A.length;R++)x(I,w(A[R]));var ee=A.groups;if(_){var z=b([P],I,F,d);ee!==void 0&&x(z,ee),L=u(e(n,void 0,z))}else L=m(P,d,F,I,ee,n);F>=M&&(j+=C(d,M,F)+L,M=F+P.length)}return j+C(d,M)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`})||!T||E)})),mf=T((()=>{var e=J(),t=G(),n=K(),r=Cr(),i=Tr(),a=Er(),o=rd(),s=Ci(),c=Ir(),l=od(),u=ff(),d=Gr(),f=Rr(),p=d(`replace`),m=TypeError,h=n(``.indexOf),g=n(``.replace),_=n(``.slice),v=Math.max;e({target:`String`,proto:!0},{replaceAll:function(e,n){var d=r(this),y,b,x,S,C,w,T,E,D,O,k=0,A=``;if(a(e)){if(y=o(e),y&&(b=s(r(l(e))),!~h(b,`g`)))throw new m("`.replaceAll` does not allow non-global regexes");if(x=c(e,p),x)return t(x,e,d,n);if(f&&y)return g(s(d),e,n)}for(S=s(d),C=s(e),w=i(n),w||(n=s(n)),T=C.length,E=v(1,T),D=h(S,C);D!==-1;)O=w?s(n(C,D,S)):u(C,S,D,[],void 0,n),A+=_(S,k,D)+O,k=D+T,D=D+E>S.length?-1:h(S,C,D+E);return k<S.length&&(A+=_(S,k)),A}})})),hf=T((()=>{var e=G(),t=tf(),n=q(),r=Er(),i=Cr(),a=Vl(),o=Ci(),s=Ir(),c=rf();t(`search`,function(t,l,u){return[function(n){var a=i(this),c=r(n)?s(n,t):void 0;return c?e(c,n,a):new RegExp(n)[t](o(a))},function(e){var t=n(this),r=o(e),i=u(l,t,r);if(i.done)return i.value;var s=t.lastIndex;a(s,0)||(t.lastIndex=0);var d=c(t,r);return a(t.lastIndex,s)||(t.lastIndex=s),d===null?-1:d.index}]})})),gf=T((()=>{var e=G(),t=K(),n=tf(),r=q(),i=Er(),a=Cr(),o=au(),s=nf(),c=di(),l=Ci(),u=Ir(),d=rf(),f=sd(),p=U(),m=f.UNSUPPORTED_Y,h=4294967295,g=Math.min,_=t([].push),v=t(``.slice),y=!p(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`}),b=`abbc`.split(/(b)*/)[1]===`c`||`test`.split(/(?:)/,-1).length!==4||`ab`.split(/(?:ab)*/).length!==2||`.`.split(/(.?)(.?)/).length!==4||`.`.split(/()()/).length>1||``.split(/.?/).length;n(`split`,function(t,n,f){var p=`0`.split(void 0,0).length?function(t,r){return t===void 0&&r===0?[]:e(n,this,t,r)}:n;return[function(n,r){var o=a(this),s=i(n)?u(n,t):void 0;return s?e(s,n,o,r):e(p,l(o),n,r)},function(e,t){var i=r(this),a=l(e);if(!b){var u=f(p,i,a,t,p!==n);if(u.done)return u.value}var y=o(i,RegExp),x=i.unicode,S=(i.ignoreCase?`i`:``)+(i.multiline?`m`:``)+(i.unicode?`u`:``)+(m?`g`:`y`),C=new y(m?`^(?:`+i.source+`)`:i,S),w=t===void 0?h:t>>>0;if(w===0)return[];if(a.length===0)return d(C,a)===null?[a]:[];for(var T=0,E=0,D=[];E<a.length;){C.lastIndex=m?0:E;var O=d(C,m?v(a,E):a),k;if(O===null||(k=g(c(C.lastIndex+(m?E:0)),a.length))===T)E=s(a,E,x);else{if(_(D,v(a,T,E)),D.length===w)return D;for(var A=1;A<=O.length-1;A++)if(_(D,O[A]),D.length===w)return D;E=T=k}}return _(D,v(a,T)),D}]},b||!y,m)})),_f=T((()=>{var e=J(),t=Ii(),n=Xr().f,r=di(),i=Ci(),a=Jd(),o=Cr(),s=Yd(),c=Rr(),l=t(``.slice),u=Math.min,d=s(`startsWith`);e({target:`String`,proto:!0,forced:!(!c&&!d&&function(){var e=n(String.prototype,`startsWith`);return e&&!e.writable}())&&!d},{startsWith:function(e){var t=i(o(this));a(e);var n=r(u(arguments.length>1?arguments[1]:void 0,t.length)),s=i(e);return l(t,n,n+s.length)===s}})})),vf=T((()=>{var e=J(),t=K(),n=Cr(),r=li(),i=Ci(),a=t(``.slice),o=Math.max,s=Math.min;e({target:`String`,proto:!0,forced:!``.substr||`ab`.substr(-1)!==`b`},{substr:function(e,t){var c=i(n(this)),l=c.length,u=r(e),d,f;return u===1/0&&(u=0),u<0&&(u=o(l+u,0)),d=t===void 0?l:r(t),d<=0||d===1/0?``:(f=s(u+d,l),u>=f?``:a(c,u,f))}})})),yf=T((()=>{var e=J(),t=G(),n=K(),r=Cr(),i=Ci(),a=U(),o=Array,s=n(``.charAt),c=n(``.charCodeAt),l=n([].join),u=``.toWellFormed,d=`�`,f=u&&a(function(){return t(u,1)!==`1`});e({target:`String`,proto:!0,forced:f},{toWellFormed:function(){var e=i(r(this));if(f)return t(u,e);for(var n=e.length,a=o(n),p=0;p<n;p++){var m=c(e,p);(m&63488)==55296?m>=56320||p+1>=n||(c(e,p+1)&64512)!=56320?a[p]=d:(a[p]=s(e,p),a[++p]=s(e,p)):a[p]=s(e,p)}return l(a,``)}})})),bf=T(((e,t)=>{var n=ei().PROPER,r=U(),i=il(),a=`
`;t.exports=function(e){return r(function(){return!!i[e]()||a[e]()!==a||n&&i[e].name!==e})}})),xf=T((()=>{var e=J(),t=al().trim;e({target:`String`,proto:!0,forced:bf()(`trim`)},{trim:function(){return t(this)}})})),Sf=T(((e,t)=>{var n=al().end;t.exports=bf()(`trimEnd`)?function(){return n(this)}:``.trimEnd})),Cf=T((()=>{var e=J(),t=Sf();e({target:`String`,proto:!0,name:`trimEnd`,forced:``.trimRight!==t},{trimRight:t})})),wf=T((()=>{Cf();var e=J(),t=Sf();e({target:`String`,proto:!0,name:`trimEnd`,forced:``.trimEnd!==t},{trimEnd:t})})),Tf=T(((e,t)=>{var n=al().start;t.exports=bf()(`trimStart`)?function(){return n(this)}:``.trimStart})),Ef=T((()=>{var e=J(),t=Tf();e({target:`String`,proto:!0,name:`trimStart`,forced:``.trimLeft!==t},{trimLeft:t})})),Df=T((()=>{Ef();var e=J(),t=Tf();e({target:`String`,proto:!0,name:`trimStart`,forced:``.trimStart!==t},{trimStart:t})})),Of=T(((e,t)=>{var n=K(),r=Cr(),i=Ci(),a=/"/g,o=n(``.replace);t.exports=function(e,t,n,s){var c=i(r(e)),l=`<`+t;return n!==``&&(l+=` `+n+`="`+o(i(s),a,`"`)+`"`),l+`>`+c+`</`+t+`>`}})),kf=T(((e,t)=>{var n=U();t.exports=function(e){return n(function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3})}})),Af=T((()=>{var e=J(),t=Of();e({target:`String`,proto:!0,forced:kf()(`anchor`)},{anchor:function(e){return t(this,`a`,`name`,e)}})})),jf=T((()=>{var e=J(),t=Of();e({target:`String`,proto:!0,forced:kf()(`big`)},{big:function(){return t(this,`big`,``,``)}})})),Mf=T((()=>{var e=J(),t=Of();e({target:`String`,proto:!0,forced:kf()(`blink`)},{blink:function(){return t(this,`blink`,``,``)}})})),Nf=T((()=>{var e=J(),t=Of();e({target:`String`,proto:!0,forced:kf()(`bold`)},{bold:function(){return t(this,`b`,``,``)}})})),Pf=T((()=>{var e=J(),t=Of();e({target:`String`,proto:!0,forced:kf()(`fixed`)},{fixed:function(){return t(this,`tt`,``,``)}})})),Ff=T((()=>{var e=J(),t=Of();e({target:`String`,proto:!0,forced:kf()(`fontcolor`)},{fontcolor:function(e){return t(this,`font`,`color`,e)}})})),If=T((()=>{var e=J(),t=Of();e({target:`String`,proto:!0,forced:kf()(`fontsize`)},{fontsize:function(e){return t(this,`font`,`size`,e)}})})),Lf=T((()=>{var e=J(),t=Of();e({target:`String`,proto:!0,forced:kf()(`italics`)},{italics:function(){return t(this,`i`,``,``)}})})),Rf=T((()=>{var e=J(),t=Of();e({target:`String`,proto:!0,forced:kf()(`link`)},{link:function(e){return t(this,`a`,`href`,e)}})})),zf=T((()=>{var e=J(),t=Of();e({target:`String`,proto:!0,forced:kf()(`small`)},{small:function(){return t(this,`small`,``,``)}})})),Bf=T((()=>{var e=J(),t=Of();e({target:`String`,proto:!0,forced:kf()(`strike`)},{strike:function(){return t(this,`strike`,``,``)}})})),Vf=T((()=>{var e=J(),t=Of();e({target:`String`,proto:!0,forced:kf()(`sub`)},{sub:function(){return t(this,`sub`,``,``)}})})),Hf=T((()=>{var e=J(),t=Of();e({target:`String`,proto:!0,forced:kf()(`sup`)},{sup:function(){return t(this,`sup`,``,``)}})})),Uf=T(((e,t)=>{var n=H(),r=U(),i=ho(),a=gs().NATIVE_ARRAY_BUFFER_VIEWS,o=n.ArrayBuffer,s=n.Int8Array;t.exports=!a||!r(function(){s(1)})||!r(function(){new s(-1)})||!i(function(e){new s,new s(null),new s(1.5),new s(e)},!0)||r(function(){return new s(new o(2),1,void 0).length!==1})})),Wf=T(((e,t)=>{var n=ac(),r=RangeError;t.exports=function(e,t){var i=n(e);if(i%t)throw new r(`Wrong offset`);return i}})),Gf=T(((e,t)=>{var n=Math.round;t.exports=function(e){var t=n(e);return t<0?0:t>255?255:t&255}})),Kf=T(((e,t)=>{var n=Si();t.exports=function(e){var t=n(e);return t===`BigInt64Array`||t===`BigUint64Array`}})),qf=T(((e,t)=>{var n=Kr(),r=TypeError;t.exports=function(e){var t=n(e,`number`);if(typeof t==`number`)throw new r(`Can't convert number to bigint`);return BigInt(t)}})),Jf=T(((e,t)=>{var n=Li(),r=G(),i=iu(),a=Hr(),o=fi(),s=Fa(),c=Pa(),l=Na(),u=Kf(),d=gs().aTypedArrayConstructor,f=qf();t.exports=function(e){var t=i(this),p=a(e),m=arguments.length,h=m>1?arguments[1]:void 0,g=h!==void 0,_=c(p),v,y,b,x,S,C,w,T;if(_&&!l(_))for(w=s(p,_),T=w.next,p=[];!(C=r(T,w)).done;)p.push(C.value);for(g&&m>2&&(h=n(h,arguments[2])),y=o(p),b=new(d(t))(y),x=u(b),v=0;y>v;v++)S=g?h(p[v],v):p[v],b[v]=x?f(S):+S;return b}})),Yf=T(((e,t)=>{var n=J(),r=H(),i=G(),a=W(),o=Uf(),s=gs(),c=ms(),l=ss(),u=yr(),d=$r(),f=ul(),p=di(),m=cs(),h=Wf(),g=Gf(),_=qr(),v=Ur(),y=Si(),b=Er(),x=Nr(),S=Di(),C=Or(),w=_a(),T=gi().f,E=Jf(),D=Hi().forEach,O=Go(),k=Ai(),A=Qr(),j=Xr(),M=Xo(),N=ai(),P=ya(),F=N.get,I=N.set,L=N.enforce,R=A.f,ee=j.f,z=r.RangeError,te=c.ArrayBuffer,ne=te.prototype,re=c.DataView,ie=s.NATIVE_ARRAY_BUFFER_VIEWS,ae=s.TYPED_ARRAY_TAG,oe=s.TypedArray,se=s.TypedArrayPrototype,ce=s.isTypedArray,le=`BYTES_PER_ELEMENT`,ue=`Wrong length`,de=function(e,t){k(e,t,{configurable:!0,get:function(){return F(this)[t]}})},fe=function(e){var t;return C(ne,e)||(t=y(e))===`ArrayBuffer`||t===`SharedArrayBuffer`},pe=function(e,t){return ce(e)&&!x(t)&&t in e&&f(+t)&&t>=0},me=function(e,t){return t=_(t),pe(e,t)?u(2,e[t]):ee(e,t)},he=function(e,t,n){return t=_(t),pe(e,t)&&b(n)&&v(n,`value`)&&!v(n,`get`)&&!v(n,`set`)&&!n.configurable&&(!v(n,`writable`)||n.writable)&&(!v(n,`enumerable`)||n.enumerable)?(e[t]=n.value,e):R(e,t,n)};a?(ie||(j.f=me,A.f=he,de(se,`buffer`),de(se,`byteOffset`),de(se,`byteLength`),de(se,`length`)),n({target:`Object`,stat:!0,forced:!ie},{getOwnPropertyDescriptor:me,defineProperty:he}),t.exports=function(e,t,a){var s=e.match(/\d+/)[0]/8,c=e+(a?`Clamped`:``)+`Array`,u=`get`+e,f=`set`+e,_=r[c],v=_,y=v&&v.prototype,x={},C=function(e,t){var n=F(e);return n.view[u](t*s+n.byteOffset,!0)},k=function(e,t,n){var r=F(e);r.view[f](t*s+r.byteOffset,a?g(n):n,!0)},A=function(e,t){R(e,t,{get:function(){return C(this,t)},set:function(e){return k(this,t,e)},enumerable:!0})};ie?o&&(v=t(function(e,t,n,r){return l(e,y),P(function(){return b(t)?fe(t)?r===void 0?n===void 0?new _(t):new _(t,h(n,s)):new _(t,h(n,s),r):ce(t)?M(v,t):i(E,v,t):new _(m(t))}(),e,v)}),w&&w(v,oe),D(T(_),function(e){e in v||d(v,e,_[e])}),v.prototype=y):(v=t(function(e,t,n,r){l(e,y);var a=0,o=0,c,u,d;if(!b(t))d=m(t),u=d*s,c=new te(u);else if(fe(t)){c=t,o=h(n,s);var f=t.byteLength;if(r===void 0){if(f%s||(u=f-o,u<0))throw new z(ue)}else if(u=p(r)*s,u+o>f)throw new z(ue);d=u/s}else if(ce(t))return M(v,t);else return i(E,v,t);for(I(e,{buffer:c,byteOffset:o,byteLength:u,length:d,view:new re(c)});a<d;)A(e,a++)}),w&&w(v,oe),y=v.prototype=S(se)),y.constructor!==v&&d(y,`constructor`,v),L(y).TypedArrayConstructor=v,ae&&d(y,ae,c);var j=v!==_;x[c]=v,n({global:!0,constructor:!0,forced:j,sham:!ie},x),le in v||d(v,le,s),le in y||d(y,le,s),O(c)}):t.exports=function(){}})),Xf=T((()=>{Yf()(`Float32`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),Zf=T((()=>{Yf()(`Float64`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),Qf=T((()=>{Yf()(`Int8`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),$f=T((()=>{Yf()(`Int16`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),ep=T((()=>{Yf()(`Int32`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),tp=T((()=>{Yf()(`Uint8`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),np=T((()=>{Yf()(`Uint8`,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)})),rp=T((()=>{Yf()(`Uint16`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),ip=T((()=>{Yf()(`Uint32`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),ap=T((()=>{var e=gs(),t=fi(),n=li(),r=e.aTypedArray,i=e.exportTypedArrayMethod;i(`at`,function(e){var i=r(this),a=t(i),o=n(e),s=o>=0?o:a+o;return s<0||s>=a?void 0:i[s]})})),op=T((()=>{var e=K(),t=gs(),n=e(Ya()),r=t.aTypedArray,i=t.exportTypedArrayMethod;i(`copyWithin`,function(e,t){return n(r(this),e,t,arguments.length>2?arguments[2]:void 0)})})),sp=T((()=>{var e=gs(),t=Hi().every,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`every`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),cp=T((()=>{var e=gs(),t=$a(),n=qf(),r=Si(),i=G(),a=K(),o=U(),s=e.aTypedArray,c=e.exportTypedArrayMethod,l=a(``.slice);c(`fill`,function(e){var a=arguments.length;s(this);var o=l(r(this),0,3)===`Big`?n(e):+e;return i(t,this,o,a>1?arguments[1]:void 0,a>2?arguments[2]:void 0)},o(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),e!==1}))})),lp=T(((e,t)=>{var n=Xo(),r=gs().getTypedArrayConstructor;t.exports=function(e,t){return n(r(e),t)}})),up=T((()=>{var e=gs(),t=Hi().filter,n=lp(),r=e.aTypedArray,i=e.exportTypedArrayMethod;i(`filter`,function(e){var i=t(r(this),e,arguments.length>1?arguments[1]:void 0);return n(this,i)})})),dp=T((()=>{var e=gs(),t=Hi().find,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`find`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),fp=T((()=>{var e=gs(),t=Hi().findIndex,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`findIndex`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),pp=T((()=>{var e=gs(),t=io().findLast,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`findLast`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),mp=T((()=>{var e=gs(),t=io().findLastIndex,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`findLastIndex`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),hp=T((()=>{var e=gs(),t=Hi().forEach,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`forEach`,function(e){t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),gp=T((()=>{var e=Uf(),t=gs().exportTypedArrayStaticMethod;t(`from`,Jf(),e)})),_p=T((()=>{var e=gs(),t=pi().includes,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`includes`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),vp=T((()=>{var e=gs(),t=pi().indexOf,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`indexOf`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),yp=T((()=>{var e=H(),t=U(),n=K(),r=gs(),i=wo(),a=Gr()(`iterator`),o=e.Uint8Array,s=n(i.values),c=n(i.keys),l=n(i.entries),u=r.aTypedArray,d=r.exportTypedArrayMethod,f=o&&o.prototype,p=!t(function(){f[a].call([1])}),m=!!f&&f.values&&f[a]===f.values&&f.values.name===`values`,h=function(){return s(u(this))};d(`entries`,function(){return l(u(this))},p),d(`keys`,function(){return c(u(this))},p),d(`values`,h,p||!m,{name:`values`}),d(a,h,p||!m,{name:`values`})})),bp=T((()=>{var e=gs(),t=K(),n=e.aTypedArray,r=e.exportTypedArrayMethod,i=t([].join);r(`join`,function(e){return i(n(this),e)})})),xp=T((()=>{var e=gs(),t=qi(),n=Eo(),r=e.aTypedArray,i=e.exportTypedArrayMethod;i(`lastIndexOf`,function(e){var i=arguments.length;return t(n,r(this),i>1?[e,arguments[1]]:[e])})})),Sp=T((()=>{var e=gs(),t=Hi().map,n=e.aTypedArray,r=e.getTypedArrayConstructor,i=e.exportTypedArrayMethod;i(`map`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0,function(e,t){return new(r(e))(t)})})})),Cp=T((()=>{var e=gs(),t=Uf(),n=e.aTypedArrayConstructor,r=e.exportTypedArrayStaticMethod;r(`of`,function(){for(var e=0,t=arguments.length,r=new(n(this))(t);t>e;)r[e]=arguments[e++];return r},t)})),wp=T((()=>{var e=gs(),t=Mo().left,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`reduce`,function(e){var r=arguments.length;return t(n(this),e,r,r>1?arguments[1]:void 0)})})),Tp=T((()=>{var e=gs(),t=Mo().right,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`reduceRight`,function(e){var r=arguments.length;return t(n(this),e,r,r>1?arguments[1]:void 0)})})),Ep=T((()=>{var e=gs(),t=e.aTypedArray,n=e.exportTypedArrayMethod,r=Math.floor;n(`reverse`,function(){for(var e=this,n=t(e).length,i=r(n/2),a=0,o;a<i;)o=e[a],e[a++]=e[--n],e[n]=o;return e})})),Dp=T((()=>{var e=H(),t=G(),n=gs(),r=fi(),i=Wf(),a=Hr(),o=U(),s=e.RangeError,c=e.Int8Array,l=c&&c.prototype,u=l&&l.set,d=n.aTypedArray,f=n.exportTypedArrayMethod,p=!o(function(){var e=new Uint8ClampedArray(2);return t(u,e,{length:1,0:3},1),e[1]!==3}),m=p&&n.NATIVE_ARRAY_BUFFER_VIEWS&&o(function(){var e=new c(2);return e.set(1),e.set(`2`,1),e[0]!==0||e[1]!==2});f(`set`,function(e){d(this);var n=i(arguments.length>1?arguments[1]:void 0,1),o=a(e);if(p)return t(u,this,o,n);var c=this.length,l=r(o),f=0;if(l+n>c)throw new s(`Wrong length`);for(;f<l;)this[n+f]=o[f++]},!p||m)})),Op=T((()=>{var e=gs(),t=U(),n=Oi(),r=e.aTypedArray,i=e.getTypedArrayConstructor,a=e.exportTypedArrayMethod;a(`slice`,function(e,t){for(var a=n(r(this),e,t),o=i(this),s=0,c=a.length,l=new o(c);c>s;)l[s]=a[s++];return l},t(function(){new Int8Array(1).slice()}))})),kp=T((()=>{var e=gs(),t=Hi().some,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`some`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),Ap=T((()=>{var e=H(),t=Ii(),n=U(),r=Fr(),i=Bo(),a=gs(),o=Vo(),s=Ho(),c=Ar(),l=Uo(),u=a.aTypedArray,d=a.exportTypedArrayMethod,f=e.Uint16Array,p=f&&t(f.prototype.sort),m=!!p&&!(n(function(){p(new f(2),null)})&&n(function(){p(new f(2),{})})),h=!!p&&!n(function(){if(c)return c<74;if(o)return o<67;if(s)return!0;if(l)return l<602;var e=new f(516),t=Array(516),n,r;for(n=0;n<516;n++)r=n%4,e[n]=515-n,t[n]=n-2*r+3;for(p(e,function(e,t){return(e/4|0)-(t/4|0)}),n=0;n<516;n++)if(e[n]!==t[n])return!0}),g=function(e){return function(t,n){return e===void 0?n===n?t===t?t===0&&n===0?1/t>0&&1/n<0?1:-1:t>n:1:-1:+e(t,n)||0}};d(`sort`,function(e){return e!==void 0&&r(e),h?p(this,e):i(u(this),g(e))},!h||m)})),jp=T((()=>{var e=gs(),t=di(),n=ui(),r=e.aTypedArray,i=e.getTypedArrayConstructor,a=e.exportTypedArrayMethod;a(`subarray`,function(e,a){var o=r(this),s=o.length,c=n(e,s);return new(i(o))(o.buffer,o.byteOffset+c*o.BYTES_PER_ELEMENT,t((a===void 0?s:n(a,s))-c))})})),Mp=T((()=>{var e=H(),t=qi(),n=gs(),r=U(),i=Oi(),a=e.Int8Array,o=n.aTypedArray,s=n.exportTypedArrayMethod,c=[].toLocaleString,l=!!a&&r(function(){c.call(new a(1))});s(`toLocaleString`,function(){return t(c,l?i(o(this)):o(this),i(arguments))},r(function(){return[1,2].toLocaleString()!==new a([1,2]).toLocaleString()})||!r(function(){a.prototype.toLocaleString.call([1,2])}))})),Np=T((()=>{var e=Jo(),t=gs(),n=t.aTypedArray,r=t.exportTypedArrayMethod,i=t.getTypedArrayConstructor;r(`toReversed`,function(){return e(n(this),i(this))})})),Pp=T((()=>{var e=gs(),t=K(),n=Fr(),r=Xo(),i=e.aTypedArray,a=e.getTypedArrayConstructor,o=e.exportTypedArrayMethod,s=t(e.TypedArrayPrototype.sort);o(`toSorted`,function(e){e!==void 0&&n(e);var t=i(this);return s(r(a(t),t),e)})})),Fp=T((()=>{var e=gs().exportTypedArrayMethod,t=U(),n=H(),r=K(),i=n.Uint8Array,a=i&&i.prototype||{},o=[].toString,s=r([].join);t(function(){o.call({})})&&(o=function(){return s(this)});var c=a.toString!==o;e(`toString`,o,c)})),Ip=T((()=>{var e=rs(),t=gs(),n=Kf(),r=li(),i=qf(),a=t.aTypedArray,o=t.getTypedArrayConstructor,s=t.exportTypedArrayMethod,c=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return e===8}}(),l=c&&function(){try{new Int8Array(1).with(-.5,1)}catch{return!0}}();s(`with`,{with:function(t,s){var c=a(this),l=r(t),u=n(c)?i(s):+s;return e(c,o(c),l,u)}}.with,!c||l)})),Lp=T(((e,t)=>{var n=Er(),r=String,i=TypeError;t.exports=function(e){if(e===void 0||n(e))return e;throw new i(r(e)+` is not an object or undefined`)}})),Rp=T(((e,t)=>{var n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`,r=n+`+/`,i=n+`-_`,a=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};t.exports={i2c:r,c2i:a(r),i2cUrl:i,c2iUrl:a(i)}})),zp=T(((e,t)=>{var n=TypeError;t.exports=function(e){var t=e&&e.alphabet;if(t===void 0||t===`base64`||t===`base64url`)return t||`base64`;throw new n("Incorrect `alphabet` option")}})),Bp=T(((e,t)=>{var n=H(),r=K(),i=Lp(),a=dd(),o=Ur(),s=Rp(),c=zp(),l=Os(),u=s.c2i,d=s.c2iUrl,f=n.SyntaxError,p=n.TypeError,m=r(``.charAt),h=function(e,t){for(var n=e.length;t<n;t++){var r=m(e,t);if(r!==` `&&r!==` `&&r!==`
|
|
6
|
-
`&&r!==`\f`&&r!==`\r`)break}return t},g=function(e,t,n){var r=e.length;r<4&&(e+=r===2?`AA`:`A`);var i=(t[m(e,0)]<<18)+(t[m(e,1)]<<12)+(t[m(e,2)]<<6)+t[m(e,3)],a=[i>>16&255,i>>8&255,i&255];if(r===2){if(n&&a[1]!==0)throw new f(`Extra bits`);return[a[0]]}if(r===3){if(n&&a[2]!==0)throw new f(`Extra bits`);return[a[0],a[1]]}return a},_=function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[n+i]=t[i];return n+r};t.exports=function(e,t,n,r){a(e),i(t);var s=c(t)===`base64`?u:d,v=t?t.lastChunkHandling:void 0;if(v===void 0&&(v=`loose`),v!==`loose`&&v!==`strict`&&v!==`stop-before-partial`)throw new p("Incorrect `lastChunkHandling` option");n&&l(n.buffer);var y=e.length,b=n||[],x=0,S=0,C=``,w=0;if(r)for(;;){if(w=h(e,w),w===y){if(C.length>0){if(v===`stop-before-partial`)break;if(v===`loose`){if(C.length===1)throw new f(`Malformed padding: exactly one additional character`);x=_(b,g(C,s,!1),x)}else throw new f(`Missing padding`)}S=y;break}var T=m(e,w);if(++w,T===`=`){if(C.length<2)throw new f(`Padding is too early`);if(w=h(e,w),C.length===2){if(w===y){if(v===`stop-before-partial`)break;throw new f(`Malformed padding: only one =`)}m(e,w)===`=`&&(++w,w=h(e,w))}if(w<y)throw new f(`Unexpected character after padding`);x=_(b,g(C,s,v===`strict`),x),S=y;break}if(!o(s,T))throw new f(`Unexpected character`);var E=r-x;if(E===1&&C.length===2||E===2&&C.length===3||(C+=T,C.length===4&&(x=_(b,g(C,s,!1),x),C=``,S=w,x===r)))break}return{bytes:b,read:S,written:x}}})),Vp=T((()=>{var e=J(),t=H(),n=Xo(),r=Bp(),i=t.Uint8Array,a=!i||!i.fromBase64||!function(){try{i.fromBase64(`a`);return}catch{}try{i.fromBase64(``,null)}catch{return!0}}();i&&e({target:`Uint8Array`,stat:!0,forced:a},{fromBase64:function(e){return n(i,r(e,arguments.length>1?arguments[1]:void 0,null,9007199254740991).bytes)}})})),Hp=T(((e,t)=>{var n=H(),r=K(),i=n.Uint8Array,a=n.SyntaxError,o=n.parseInt,s=Math.min,c=/[^\da-f]/i,l=r(c.exec),u=r(``.slice);t.exports=function(e,t){var n=e.length;if(n%2!=0)throw new a(`String should be an even number of characters`);for(var r=t?s(t.length,n/2):n/2,d=t||new i(r),f=0,p=0;p<r;){var m=u(e,f,f+=2);if(l(c,m))throw new a(`String should only contain hex characters`);d[p++]=o(m,16)}return{bytes:d,read:f}}})),Up=T((()=>{var e=J(),t=H(),n=dd(),r=Hp();t.Uint8Array&&e({target:`Uint8Array`,stat:!0},{fromHex:function(e){return r(n(e)).bytes}})})),Wp=T(((e,t)=>{var n=Si(),r=TypeError;t.exports=function(e){if(n(e)===`Uint8Array`)return e;throw new r(`Argument is not an Uint8Array`)}})),Gp=T((()=>{var e=J(),t=H(),n=Bp(),r=Wp(),i=t.Uint8Array,a=!i||!i.prototype.setFromBase64||!function(){var e=new i([255,255,255,255,255]);try{e.setFromBase64(``,null);return}catch{}try{e.setFromBase64(`a`);return}catch{}try{e.setFromBase64(`MjYyZg===`)}catch{return e[0]===50&&e[1]===54&&e[2]===50&&e[3]===255&&e[4]===255}}();i&&e({target:`Uint8Array`,proto:!0,forced:a},{setFromBase64:function(e){r(this);var t=n(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})})),Kp=T((()=>{var e=J(),t=H(),n=dd(),r=Wp(),i=Os(),a=Hp();t.Uint8Array&&e({target:`Uint8Array`,proto:!0},{setFromHex:function(e){r(this),n(e),i(this.buffer);var t=a(e,this).read;return{read:t,written:t/2}}})})),qp=T((()=>{var e=J(),t=H(),n=K(),r=Lp(),i=Wp(),a=Os(),o=Rp(),s=zp(),c=o.i2c,l=o.i2cUrl,u=n(``.charAt),d=t.Uint8Array,f=!d||!d.prototype.toBase64||!function(){try{new d().toBase64(null)}catch{return!0}}();d&&e({target:`Uint8Array`,proto:!0,forced:f},{toBase64:function(){var e=i(this),t=arguments.length?r(arguments[0]):void 0,n=s(t)===`base64`?c:l,o=!!t&&!!t.omitPadding;a(this.buffer);for(var d=``,f=0,p=e.length,m,h=function(e){return u(n,m>>6*e&63)};f+2<p;f+=3)m=(e[f]<<16)+(e[f+1]<<8)+e[f+2],d+=h(3)+h(2)+h(1)+h(0);return f+2===p?(m=(e[f]<<16)+(e[f+1]<<8),d+=h(3)+h(2)+h(1)+(o?``:`=`)):f+1===p&&(m=e[f]<<16,d+=h(3)+h(2)+(o?``:`==`)),d}})})),Jp=T((()=>{var e=J(),t=H(),n=K(),r=Wp(),i=Os(),a=n(1.1.toString),o=t.Uint8Array,s=!o||!o.prototype.toHex||!(function(){try{return new o([255,255,255,255,255,255,255,255]).toHex()===`ffffffffffffffff`}catch{return!1}})();o&&e({target:`Uint8Array`,proto:!0,forced:s},{toHex:function(){r(this),i(this.buffer);for(var e=``,t=0,n=this.length;t<n;t++){var o=a(this[t],16);e+=o.length===1?`0`+o:o}return e}})})),Yp=T((()=>{var e=J(),t=K(),n=Ci(),r=String.fromCharCode,i=t(``.charAt),a=t(/./.exec),o=t(``.slice),s=/^[\da-f]{2}$/i,c=/^[\da-f]{4}$/i;e({global:!0},{unescape:function(e){for(var t=n(e),l=``,u=t.length,d=0,f,p;d<u;){if(f=i(t,d++),f===`%`){if(i(t,d)===`u`){if(p=o(t,d+1,d+5),a(c,p)){l+=r(parseInt(p,16)),d+=5;continue}}else if(p=o(t,d,d+2),a(s,p)){l+=r(parseInt(p,16)),d+=2;continue}}l+=f}return l}})})),Xp=T(((e,t)=>{var n=K(),r=os(),i=Dc().getWeakData,a=ss(),o=q(),s=Sr(),c=Er(),l=La(),u=Hi(),d=Ur(),f=ai(),p=f.set,m=f.getterFor,h=u.find,g=u.findIndex,_=n([].splice),v=0,y=function(e){return e.frozen||=new b},b=function(){this.entries=[]},x=function(e,t){return h(e.entries,function(e){return e[0]===t})};b.prototype={get:function(e){var t=x(this,e);if(t)return t[1]},has:function(e){return!!x(this,e)},set:function(e,t){var n=x(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,function(t){return t[0]===e});return~t&&_(this.entries,t,1),!!~t}},t.exports={getConstructor:function(e,t,n,u){var f=e(function(e,r){a(e,h),p(e,{type:t,id:v++,frozen:null}),s(r)||l(r,e[u],{that:e,AS_ENTRIES:n})}),h=f.prototype,g=m(t),_=function(e,t,n){var r=g(e),a=i(o(t),!0);return a===!0?y(r).set(t,n):a[r.id]=n,e};return r(h,{delete:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return n===!0?y(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return n===!0?y(t).has(e):n&&d(n,t.id)}}),r(h,n?{get:function(e){var t=g(this);if(c(e)){var n=i(e);if(n===!0)return y(t).get(e);if(n)return n[t.id]}},set:function(e,t){return _(this,e,t)}}:{add:function(e){return _(this,e,!0)}}),f}}})),Zp=T((()=>{var e=Ec(),t=H(),n=K(),r=os(),i=Dc(),a=Oc(),o=Xp(),s=Er(),c=ai().enforce,l=U(),u=ni(),d=Object,f=Array.isArray,p=d.isExtensible,m=d.isFrozen,h=d.isSealed,g=d.freeze,_=d.seal,v=!t.ActiveXObject&&`ActiveXObject`in t,y,b=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},x=a(`WeakMap`,b,o),S=x.prototype,C=n(S.set),w=function(){return e&&l(function(){var e=g([]);return C(new x,e,1),!m(e)})};if(u)if(v){y=o.getConstructor(b,`WeakMap`,!0),i.enable();var T=n(S.delete),E=n(S.has),D=n(S.get);r(S,{delete:function(e){if(s(e)&&!p(e)){var t=c(this);return t.frozen||=new y,T(this,e)||t.frozen.delete(e)}return T(this,e)},has:function(e){if(s(e)&&!p(e)){var t=c(this);return t.frozen||=new y,E(this,e)||t.frozen.has(e)}return E(this,e)},get:function(e){if(s(e)&&!p(e)){var t=c(this);return t.frozen||=new y,E(this,e)?D(this,e):t.frozen.get(e)}return D(this,e)},set:function(e,t){if(s(e)&&!p(e)){var n=c(this);n.frozen||=new y,E(this,e)?C(this,e,t):n.frozen.set(e,t)}else C(this,e,t);return this}})}else w()&&r(S,{set:function(e,t){var n;return f(e)&&(m(e)?n=g:h(e)&&(n=_)),C(this,e,t),n&&n(e),this}})})),Qp=T((()=>{Zp()})),$p=T((()=>{Oc()(`WeakSet`,function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Xp())})),em=T((()=>{$p()})),tm=T((()=>{var e=J(),t=H(),n=Dr(),r=K(),i=G(),a=U(),o=Ci(),s=ou(),c=Rp().c2i,l=/[^\d+/a-z]/i,u=/[\t\n\f\r ]+/g,d=/[=]{1,2}$/,f=n(`atob`),p=String.fromCharCode,m=r(``.charAt),h=r(``.replace),g=r(l.exec),_=!!f&&!a(function(){return f(`aGk=`)!==`hi`}),v=_&&a(function(){return f(` `)!==``}),y=_&&!a(function(){f(`a`)}),b=_&&!a(function(){f()}),x=_&&f.length!==1;e({global:!0,bind:!0,enumerable:!0,forced:!_||v||y||b||x},{atob:function(e){if(s(arguments.length,1),_&&!v&&!y)return i(f,t,e);var r=h(o(e),u,``),a=``,b=0,x=0,S,C,w;if(r.length%4==0&&(r=h(r,d,``)),S=r.length,S%4==1||g(l,r))throw new(n(`DOMException`))(`The string is not correctly encoded`,`InvalidCharacterError`);for(;b<S;)C=m(r,b++),w=x%4?w*64+c[C]:c[C],x++%4&&(a+=p(255&w>>(-2*x&6)));return a}})})),nm=T((()=>{var e=J(),t=H(),n=Dr(),r=K(),i=G(),a=U(),o=Ci(),s=ou(),c=Rp().i2c,l=n(`btoa`),u=r(``.charAt),d=r(``.charCodeAt),f=!!l&&!a(function(){return l(`hi`)!==`aGk=`}),p=f&&!a(function(){l()}),m=f&&a(function(){return l(null)!==`bnVsbA==`}),h=f&&l.length!==1;e({global:!0,bind:!0,enumerable:!0,forced:!f||p||m||h},{btoa:function(e){if(s(arguments.length,1),f)return i(l,t,o(e));for(var r=o(e),a=``,p=0,m=c,h,g;u(r,p)||(m=`=`,p%1);){if(g=d(r,p+=3/4),g>255)throw new(n(`DOMException`))(`The string contains characters outside of the Latin1 range`,`InvalidCharacterError`);h=h<<8|g,a+=u(m,63&h>>8-p%1*8)}return a}})})),rm=T(((e,t)=>{t.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}})),im=T(((e,t)=>{var n=Jr()(`span`).classList,r=n&&n.constructor&&n.constructor.prototype;t.exports=r===Object.prototype?void 0:r})),am=T((()=>{var e=H(),t=rm(),n=im(),r=uo(),i=$r(),a=function(e){if(e&&e.forEach!==r)try{i(e,`forEach`,r)}catch{e.forEach=r}};for(var o in t)t[o]&&a(e[o]&&e[o].prototype);a(n)})),om=T((()=>{var e=H(),t=rm(),n=im(),r=wo(),i=$r(),a=Fi(),o=Gr()(`iterator`),s=r.values,c=function(e,n){if(e){if(e[o]!==s)try{i(e,o,s)}catch{e[o]=s}if(a(e,n,!0),t[n]){for(var c in r)if(e[c]!==r[c])try{i(e,c,r[c])}catch{e[c]=r[c]}}}};for(var l in t)c(e[l]&&e[l].prototype,l);c(n,`DOMTokenList`)})),sm=T(((e,t)=>{t.exports={IndexSizeError:{s:`INDEX_SIZE_ERR`,c:1,m:1},DOMStringSizeError:{s:`DOMSTRING_SIZE_ERR`,c:2,m:0},HierarchyRequestError:{s:`HIERARCHY_REQUEST_ERR`,c:3,m:1},WrongDocumentError:{s:`WRONG_DOCUMENT_ERR`,c:4,m:1},InvalidCharacterError:{s:`INVALID_CHARACTER_ERR`,c:5,m:1},NoDataAllowedError:{s:`NO_DATA_ALLOWED_ERR`,c:6,m:0},NoModificationAllowedError:{s:`NO_MODIFICATION_ALLOWED_ERR`,c:7,m:1},NotFoundError:{s:`NOT_FOUND_ERR`,c:8,m:1},NotSupportedError:{s:`NOT_SUPPORTED_ERR`,c:9,m:1},InUseAttributeError:{s:`INUSE_ATTRIBUTE_ERR`,c:10,m:1},InvalidStateError:{s:`INVALID_STATE_ERR`,c:11,m:1},SyntaxError:{s:`SYNTAX_ERR`,c:12,m:1},InvalidModificationError:{s:`INVALID_MODIFICATION_ERR`,c:13,m:1},NamespaceError:{s:`NAMESPACE_ERR`,c:14,m:1},InvalidAccessError:{s:`INVALID_ACCESS_ERR`,c:15,m:1},ValidationError:{s:`VALIDATION_ERR`,c:16,m:0},TypeMismatchError:{s:`TYPE_MISMATCH_ERR`,c:17,m:1},SecurityError:{s:`SECURITY_ERR`,c:18,m:1},NetworkError:{s:`NETWORK_ERR`,c:19,m:1},AbortError:{s:`ABORT_ERR`,c:20,m:1},URLMismatchError:{s:`URL_MISMATCH_ERR`,c:21,m:1},QuotaExceededError:{s:`QUOTA_EXCEEDED_ERR`,c:22,m:1},TimeoutError:{s:`TIMEOUT_ERR`,c:23,m:1},InvalidNodeTypeError:{s:`INVALID_NODE_TYPE_ERR`,c:24,m:1},DataCloneError:{s:`DATA_CLONE_ERR`,c:25,m:1}}})),cm=T((()=>{var e=J(),t=Dr(),n=ks(),r=U(),i=Di(),a=yr(),o=Qr().f,s=si(),c=Ai(),l=Ur(),u=ss(),d=q(),f=Oa(),p=ba(),m=sm(),h=Sa(),g=ai(),_=W(),v=Rr(),y=`DOMException`,b=`DATA_CLONE_ERR`,x=t(`Error`),S=t(y)||(function(){try{new((t(`MessageChannel`))||(n(`worker_threads`)).MessageChannel)().port1.postMessage(new WeakMap)}catch(e){if(e.name===b&&e.code===25)return e.constructor}})(),C=S&&S.prototype,w=x.prototype,T=g.set,E=g.getterFor(y),D=`stack`in new x(y),O=function(e){return l(m,e)&&m[e].m?m[e].c:0},k=function(){u(this,A);var e=arguments.length,t=p(e<1?void 0:arguments[0]),n=p(e<2?void 0:arguments[1],`Error`),r=O(n);if(T(this,{type:y,name:n,message:t,code:r}),_||(this.name=n,this.message=t,this.code=r),D){var i=new x(t);i.name=y,o(this,`stack`,a(1,h(i.stack,1)))}},A=k.prototype=i(w),j=function(e){return{enumerable:!0,configurable:!0,get:e}},M=function(e){return j(function(){return E(this)[e]})};_&&(c(A,`code`,M(`code`)),c(A,`message`,M(`message`)),c(A,`name`,M(`name`))),o(A,`constructor`,a(1,k));var N=r(function(){return!(new S instanceof x)}),P=N||r(function(){return w.toString!==f||String(new S(1,2))!==`2: 1`}),F=N||r(function(){return new S(1,`DataCloneError`).code!==25}),I=N||S[b]!==25||C[b]!==25,L=v?P||F||I:N;e({global:!0,constructor:!0,forced:L},{DOMException:L?k:S});var R=t(y),ee=R.prototype;for(var z in P&&(v||S===R)&&s(ee,`toString`,f),F&&_&&S===R&&c(ee,`code`,j(function(){return O(d(this).name)})),m)if(l(m,z)){var te=m[z],ne=te.s,re=a(6,te.c);l(R,ne)||o(R,ne,re),l(ee,ne)||o(ee,ne,re)}})),lm=T((()=>{var e=J(),t=H(),n=Dr(),r=yr(),i=Qr().f,a=Ur(),o=ss(),s=ya(),c=ba(),l=sm(),u=Sa(),d=W(),f=Rr(),p=`DOMException`,m=n(`Error`),h=n(p),g=function(){o(this,_);var e=arguments.length,t=c(e<1?void 0:arguments[0]),n=new h(t,c(e<2?void 0:arguments[1],`Error`)),a=new m(t);return a.name=p,i(n,`stack`,r(1,u(a.stack,1))),s(n,this,g),n},_=g.prototype=h.prototype,v=`stack`in new m(p),y=`stack`in new h(1,2),b=h&&d&&Object.getOwnPropertyDescriptor(t,p),x=!!b&&!(b.writable&&b.configurable),S=v&&!x&&!y;e({global:!0,constructor:!0,forced:f||S},{DOMException:S?g:h});var C=n(p),w=C.prototype;if(w.constructor!==C){for(var T in f||i(w,`constructor`,r(1,C)),l)if(a(l,T)){var E=l[T],D=E.s;a(C,D)||i(C,D,r(6,E.c))}}})),um=T((()=>{var e=Dr(),t=Fi(),n=`DOMException`;t(e(n),n)})),dm=T((()=>{var e=J(),t=H(),n=cu().clear;e({global:!0,bind:!0,enumerable:!0,forced:t.clearImmediate!==n},{clearImmediate:n})})),fm=T(((e,t)=>{var n=H(),r=qi(),i=Tr(),a=No(),o=kr(),s=Oi(),c=ou(),l=n.Function,u=/MSIE .\./.test(o)||a===`BUN`&&(function(){var e=n.Bun.version.split(`.`);return e.length<3||e[0]===`0`&&(e[1]<3||e[1]===`3`&&e[2]===`0`)})();t.exports=function(e,t){var n=t?2:1;return u?function(a,o){var u=c(arguments.length,1)>n,d=i(a)?a:l(a),f=u?s(arguments,n):[],p=u?function(){r(d,this,f)}:d;return t?e(p,o):e(p)}:e}})),pm=T((()=>{var e=J(),t=H(),n=cu().set,r=fm(),i=t.setImmediate?r(n,!1):n;e({global:!0,bind:!0,enumerable:!0,forced:t.setImmediate!==i},{setImmediate:i})})),mm=T((()=>{dm(),pm()})),hm=T((()=>{var e=J(),t=H(),n=pu(),r=Fr(),i=ou(),a=U(),o=W();e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:a(function(){return o&&Object.getOwnPropertyDescriptor(t,`queueMicrotask`).value.length!==1})},{queueMicrotask:function(e){i(arguments.length,1),n(r(e))}})})),gm=T((()=>{var e=J(),t=H(),n=Ai(),r=W(),i=TypeError,a=Object.defineProperty,o=t.self!==t;try{if(r){var s=Object.getOwnPropertyDescriptor(t,`self`);(o||!s||!s.get||!s.enumerable)&&n(t,`self`,{get:function(){return t},set:function(e){if(this!==t)throw new i(`Illegal invocation`);a(t,`self`,{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else e({global:!0,simple:!0,forced:o},{self:t})}catch{}})),_m=T((()=>{var e=Rr(),t=J(),n=H(),r=Dr(),i=K(),a=U(),o=Wr(),s=Tr(),c=zi(),l=Sr(),u=Er(),d=Nr(),f=La(),p=q(),m=Si(),h=Ur(),g=Ga(),_=$r(),v=fi(),y=ou(),b=od(),x=Mc(),S=Sd(),C=Td(),w=js(),T=Ca(),E=As(),D=n.Object,O=n.Array,k=n.Date,A=n.Error,j=n.TypeError,M=n.PerformanceMark,N=r(`DOMException`),P=x.Map,F=x.has,I=x.get,L=x.set,R=S.Set,ee=S.add,z=S.has,te=r(`Object`,`keys`),ne=i([].push),re=i((!0).valueOf),ie=i(1.1.valueOf),ae=i(``.valueOf),oe=i(k.prototype.getTime),se=o(`structuredClone`),ce=`DataCloneError`,le=`Transferring`,ue=function(e){return!a(function(){var t=new n.Set([7]),r=e(t),i=e(D(7));return r===t||!r.has(7)||!u(i)||+i!=7})&&e},de=function(e,t){return!a(function(){var n=new t,r=e({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===n.stack)})},fe=function(e){return!a(function(){var t=e(new n.AggregateError([1],se,{cause:3}));return t.name!==`AggregateError`||t.errors[0]!==1||t.message!==se||t.cause!==3})},pe=n.structuredClone,me=e||!de(pe,A)||!de(pe,N)||!fe(pe),he=!pe&&ue(function(e){return new M(se,{detail:e}).detail}),ge=ue(pe)||he,_e=function(e){throw new N(`Uncloneable type: `+e,ce)},ve=function(e,t){throw new N((t||`Cloning`)+` of `+e+` cannot be properly polyfilled in this engine`,ce)},ye=function(e,t){return ge||ve(t),ge(e)},be=function(){var e;try{e=new n.DataTransfer}catch{try{e=new n.ClipboardEvent(``).clipboardData}catch{}}return e&&e.items&&e.files?e:null},xe=function(e,t,r){if(F(t,e))return I(t,e);var i=r||m(e),a,o,c,l,u,d;if(i===`SharedArrayBuffer`)a=ge?ge(e):e;else{var f=n.DataView;!f&&!s(e.slice)&&ve(`ArrayBuffer`);try{if(s(e.slice)&&!e.resizable)a=e.slice(0);else for(o=e.byteLength,c=(`maxByteLength`in e)?{maxByteLength:e.maxByteLength}:void 0,a=new ArrayBuffer(o,c),l=new f(e),u=new f(a),d=0;d<o;d++)u.setUint8(d,l.getUint8(d))}catch{throw new N(`ArrayBuffer is detached`,ce)}}return L(t,e,a),a},Se=function(e,t,r,i,a){var o=n[t];return u(o)||ve(t),new o(xe(e.buffer,a),r,i)},Ce=function(e,t){if(d(e)&&_e(`Symbol`),!u(e))return e;if(t){if(F(t,e))return I(t,e)}else t=new P;var i=m(e),a,o,c,l,f,p,y,x;switch(i){case`Array`:c=O(v(e));break;case`Object`:c={};break;case`Map`:c=new P;break;case`Set`:c=new R;break;case`RegExp`:c=new RegExp(e.source,b(e));break;case`Error`:switch(o=e.name,o){case`AggregateError`:c=new(r(o))([]);break;case`EvalError`:case`RangeError`:case`ReferenceError`:case`SuppressedError`:case`SyntaxError`:case`TypeError`:case`URIError`:c=new(r(o));break;case`CompileError`:case`LinkError`:case`RuntimeError`:c=new(r(`WebAssembly`,o));break;default:c=new A}break;case`DOMException`:c=new N(e.message,e.name);break;case`ArrayBuffer`:case`SharedArrayBuffer`:c=xe(e,t,i);break;case`DataView`:case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Int32Array`:case`Uint32Array`:case`Float16Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:p=i===`DataView`?e.byteLength:e.length,c=Se(e,i,e.byteOffset,p,t);break;case`DOMQuad`:try{c=new DOMQuad(Ce(e.p1,t),Ce(e.p2,t),Ce(e.p3,t),Ce(e.p4,t))}catch{c=ye(e,i)}break;case`File`:if(ge)try{c=ge(e),m(c)!==i&&(c=void 0)}catch{}if(!c)try{c=new File([e],e.name,e)}catch{}c||ve(i);break;case`FileList`:if(l=be(),l){for(f=0,p=v(e);f<p;f++)l.items.add(Ce(e[f],t));c=l.files}else c=ye(e,i);break;case`ImageData`:try{c=new ImageData(Ce(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch{c=ye(e,i)}break;default:if(ge)c=ge(e);else switch(i){case`BigInt`:c=D(e.valueOf());break;case`Boolean`:c=D(re(e));break;case`Number`:c=D(ie(e));break;case`String`:c=D(ae(e));break;case`Date`:c=new k(oe(e));break;case`Blob`:try{c=e.slice(0,e.size,e.type)}catch{ve(i)}break;case`DOMPoint`:case`DOMPointReadOnly`:a=n[i];try{c=a.fromPoint?a.fromPoint(e):new a(e.x,e.y,e.z,e.w)}catch{ve(i)}break;case`DOMRect`:case`DOMRectReadOnly`:a=n[i];try{c=a.fromRect?a.fromRect(e):new a(e.x,e.y,e.width,e.height)}catch{ve(i)}break;case`DOMMatrix`:case`DOMMatrixReadOnly`:a=n[i];try{c=a.fromMatrix?a.fromMatrix(e):new a(e)}catch{ve(i)}break;case`AudioData`:case`VideoFrame`:s(e.clone)||ve(i);try{c=e.clone()}catch{_e(i)}break;case`CropTarget`:case`CryptoKey`:case`FileSystemDirectoryHandle`:case`FileSystemFileHandle`:case`FileSystemHandle`:case`GPUCompilationInfo`:case`GPUCompilationMessage`:case`ImageBitmap`:case`RTCCertificate`:case`WebAssembly.Module`:ve(i);default:_e(i)}}switch(L(t,e,c),i){case`Array`:case`Object`:for(y=te(e),f=0,p=v(y);f<p;f++)x=y[f],g(c,x,Ce(e[x],t));break;case`Map`:e.forEach(function(e,n){L(c,Ce(n,t),Ce(e,t))});break;case`Set`:e.forEach(function(e){ee(c,Ce(e,t))});break;case`Error`:_(c,`message`,Ce(e.message,t)),h(e,`cause`)&&_(c,`cause`,Ce(e.cause,t)),o===`AggregateError`?c.errors=Ce(e.errors,t):o===`SuppressedError`&&(c.error=Ce(e.error,t),c.suppressed=Ce(e.suppressed,t));case`DOMException`:T&&_(c,`stack`,Ce(e.stack,t))}return c},we=function(e,t){if(!u(e))throw new j(`Transfer option cannot be converted to a sequence`);var r=[];f(e,function(e){ne(r,p(e))});for(var i=0,a=v(r),o=new R,l,d,h,g,_,y;i<a;){if(l=r[i++],d=m(l),d===`ArrayBuffer`?z(o,l):F(t,l))throw new N(`Duplicate transferable`,ce);if(d===`ArrayBuffer`){ee(o,l);continue}if(E)g=pe(l,{transfer:[l]});else switch(d){case`ImageBitmap`:h=n.OffscreenCanvas,c(h)||ve(d,le);try{_=new h(l.width,l.height),y=_.getContext(`bitmaprenderer`),y.transferFromImageBitmap(l),g=_.transferToImageBitmap()}catch{}break;case`AudioData`:case`VideoFrame`:(!s(l.clone)||!s(l.close))&&ve(d,le);try{g=l.clone(),l.close()}catch{}break;case`MediaSourceHandle`:case`MessagePort`:case`MIDIAccess`:case`OffscreenCanvas`:case`ReadableStream`:case`RTCDataChannel`:case`TransformStream`:case`WebTransportReceiveStream`:case`WebTransportSendStream`:case`WritableStream`:ve(d,le)}if(g===void 0)throw new N(`This object cannot be transferred: `+d,ce);L(t,l,g)}return o},Te=function(e){C(e,function(e){E?ge(e,{transfer:[e]}):s(e.transfer)?e.transfer():w?w(e):ve(`ArrayBuffer`,le)})};t({global:!0,enumerable:!0,sham:!E,forced:me},{structuredClone:function(e){var t=y(arguments.length,1)>1&&!l(arguments[1])?p(arguments[1]):void 0,n=t?t.transfer:void 0,r,i;n!==void 0&&(r=new P,i=we(n,r));var a=Ce(e,r);return i&&Te(i),a}})})),vm=T((()=>{var e=J(),t=H(),n=fm()(t.setInterval,!0);e({global:!0,bind:!0,forced:t.setInterval!==n},{setInterval:n})})),ym=T((()=>{var e=J(),t=H(),n=fm()(t.setTimeout,!0);e({global:!0,bind:!0,forced:t.setTimeout!==n},{setTimeout:n})})),bm=T((()=>{vm(),ym()})),xm=T(((e,t)=>{var n=U(),r=Gr(),i=W(),a=Rr(),o=r(`iterator`);t.exports=!n(function(){var e=new URL(`b?a=1&b=2&c=3`,`https://a`),t=e.searchParams,n=new URLSearchParams(`a=1&a=2&b=3`),r=``;return e.pathname=`c%20d`,t.forEach(function(e,n){t.delete(`b`),r+=n+e}),n.delete(`a`,2),n.delete(`b`,void 0),a&&(!e.toJSON||!n.has(`a`,1)||n.has(`a`,2)||!n.has(`a`,void 0)||n.has(`b`))||!t.size&&(a||!i)||!t.sort||e.href!==`https://a/c%20d?a=1&c=3`||t.get(`c`)!==`3`||String(new URLSearchParams(`?a=1`))!==`a=1`||!t[o]||new URL(`https://a@b`).username!==`a`||new URLSearchParams(new URLSearchParams(`a=b`)).get(`a`)!==`b`||new URL(`https://тест`).host!==`xn--e1aybc`||new URL(`https://a#б`).hash!==`#%D0%B1`||r!==`a1c3`||new URL(`https://x`,void 0).host!==`x`})})),Sm=T(((e,t)=>{var n=K(),r=2147483647,i=36,a=1,o=26,s=38,c=700,l=72,u=128,d=`-`,f=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,m=`Overflow: input needs wider integers to process`,h=i-a,g=RangeError,_=n(p.exec),v=Math.floor,y=String.fromCharCode,b=n(``.charCodeAt),x=n([].join),S=n([].push),C=n(``.replace),w=n(``.split),T=n(``.toLowerCase),E=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=b(e,n++);if(i>=55296&&i<=56319&&n<r){var a=b(e,n++);(a&64512)==56320?S(t,((i&1023)<<10)+(a&1023)+65536):(S(t,i),n--)}else S(t,i)}return t},D=function(e){return e+22+75*(e<26)},O=function(e,t,n){var r=0;for(e=n?v(e/c):e>>1,e+=v(e/t);e>h*o>>1;)e=v(e/h),r+=i;return v(r+(h+1)*e/(e+s))},k=function(e){var t=[];e=E(e);var n=e.length,s=u,c=0,f=l,p,h;for(p=0;p<e.length;p++)h=e[p],h<128&&S(t,y(h));var _=t.length,b=_;for(_&&S(t,d);b<n;){var C=r;for(p=0;p<e.length;p++)h=e[p],h>=s&&h<C&&(C=h);var w=b+1;if(C-s>v((r-c)/w))throw new g(m);for(c+=(C-s)*w,s=C,p=0;p<e.length;p++){if(h=e[p],h<s&&++c>r)throw new g(m);if(h===s){for(var T=c,k=i;;){var A=k<=f?a:k>=f+o?o:k-f;if(T<A)break;var j=T-A,M=i-A;S(t,y(D(A+j%M))),T=v(j/M),k+=i}S(t,y(D(T))),f=O(c,w,b===_),c=0,b++}}c++,s++}return x(t,``)};t.exports=function(e){var t=[],n=w(C(T(e),p,`.`),`.`),r,i;for(r=0;r<n.length;r++)i=n[r],S(t,_(f,i)?`xn--`+k(i):i);return x(t,`.`)}})),Cm=T(((e,t)=>{wo(),Zd();var n=J(),r=H(),i=lu(),a=Dr(),o=G(),s=K(),c=W(),l=xm(),u=si(),d=Ai(),f=os(),p=Fi(),m=xo(),h=ai(),g=ss(),_=Tr(),v=Ur(),y=Li(),b=Si(),x=q(),S=Er(),C=Ci(),w=Di(),T=yr(),E=Fa(),D=Pa(),O=Co(),k=ou(),A=Gr(),j=Bo(),M=A(`iterator`),N=`URLSearchParams`,P=N+`Iterator`,F=h.set,I=h.getterFor(N),L=h.getterFor(P),R=i(`fetch`),ee=i(`Request`),z=i(`Headers`),te=ee&&ee.prototype,ne=z&&z.prototype,re=r.TypeError,ie=r.encodeURIComponent,ae=String.fromCharCode,oe=a(`String`,`fromCodePoint`),se=parseInt,ce=s(``.charAt),le=s([].join),ue=s([].push),de=s(``.replace),fe=s([].shift),pe=s([].splice),me=s(``.split),he=s(``.slice),ge=s(/./.exec),_e=/\+/g,ve=`�`,ye=/^[0-9a-f]+$/i,be=function(e,t){var n=he(e,t,t+2);return ge(ye,n)?se(n,16):NaN},xe=function(e){for(var t=0,n=128;n>0&&(e&n)!==0;n>>=1)t++;return t},Se=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(e[0]&31)<<6|e[1]&63;break;case 3:t=(e[0]&15)<<12|(e[1]&63)<<6|e[2]&63;break;case 4:t=(e[0]&7)<<18|(e[1]&63)<<12|(e[2]&63)<<6|e[3]&63;break}return t>1114111?null:t},Ce=function(e){e=de(e,_e,` `);for(var t=e.length,n=``,r=0;r<t;){var i=ce(e,r);if(i===`%`){if(ce(e,r+1)===`%`||r+3>t){n+=`%`,r++;continue}var a=be(e,r+1);if(a!==a){n+=i,r++;continue}r+=2;var o=xe(a);if(o===0)i=ae(a);else{if(o===1||o>4){n+=ve,r++;continue}for(var s=[a],c=1;c<o&&(r++,!(r+3>t||ce(e,r)!==`%`));){var l=be(e,r+1);if(l!==l){r+=3;break}if(l>191||l<128)break;ue(s,l),r+=2,c++}if(s.length!==o){n+=ve;continue}var u=Se(s);u===null?n+=ve:i=oe(u)}}n+=i,r++}return n},we=/[!'()~]|%20/g,Te={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`},Ee=function(e){return Te[e]},De=function(e){return de(ie(e),we,Ee)},Oe=m(function(e,t){F(this,{type:P,target:I(e).entries,index:0,kind:t})},N,function(){var e=L(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,O(void 0,!0);var r=t[n];switch(e.kind){case`keys`:return O(r.key,!1);case`values`:return O(r.value,!1)}return O([r.key,r.value],!1)},!0),ke=function(e){this.entries=[],this.url=null,e!==void 0&&(S(e)?this.parseObject(e):this.parseQuery(typeof e==`string`?ce(e,0)===`?`?he(e,1):e:C(e)))};ke.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t=this.entries,n=D(e),r,i,a,s,c,l,u;if(n)for(r=E(e,n),i=r.next;!(a=o(i,r)).done;){if(s=E(x(a.value)),c=s.next,(l=o(c,s)).done||(u=o(c,s)).done||!o(c,s).done)throw new re(`Expected sequence with length 2`);ue(t,{key:C(l.value),value:C(u.value)})}else for(var d in e)v(e,d)&&ue(t,{key:d,value:C(e[d])})},parseQuery:function(e){if(e)for(var t=this.entries,n=me(e,`&`),r=0,i,a;r<n.length;)i=n[r++],i.length&&(a=me(i,`=`),ue(t,{key:Ce(fe(a)),value:Ce(le(a,`=`))}))},serialize:function(){for(var e=this.entries,t=[],n=0,r;n<e.length;)r=e[n++],ue(t,De(r.key)+`=`+De(r.value));return le(t,`&`)},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ae=function(){g(this,je);var e=arguments.length>0?arguments[0]:void 0,t=F(this,new ke(e));c||(this.size=t.entries.length)},je=Ae.prototype;if(f(je,{append:function(e,t){var n=I(this);k(arguments.length,2),ue(n.entries,{key:C(e),value:C(t)}),c||this.length++,n.updateURL()},delete:function(e){for(var t=I(this),n=k(arguments.length,1),r=t.entries,i=C(e),a=n<2?void 0:arguments[1],o=a===void 0?a:C(a),s=0;s<r.length;){var l=r[s];if(l.key===i&&(o===void 0||l.value===o)){if(pe(r,s,1),o!==void 0)break}else s++}c||(this.size=r.length),t.updateURL()},get:function(e){var t=I(this).entries;k(arguments.length,1);for(var n=C(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=I(this).entries;k(arguments.length,1);for(var n=C(e),r=[],i=0;i<t.length;i++)t[i].key===n&&ue(r,t[i].value);return r},has:function(e){for(var t=I(this).entries,n=k(arguments.length,1),r=C(e),i=n<2?void 0:arguments[1],a=i===void 0?i:C(i),o=0;o<t.length;){var s=t[o++];if(s.key===r&&(a===void 0||s.value===a))return!0}return!1},set:function(e,t){var n=I(this);k(arguments.length,1);for(var r=n.entries,i=!1,a=C(e),o=C(t),s=0,l;s<r.length;s++)l=r[s],l.key===a&&(i?pe(r,s--,1):(i=!0,l.value=o));i||ue(r,{key:a,value:o}),c||(this.size=r.length),n.updateURL()},sort:function(){var e=I(this);j(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t=I(this).entries,n=y(e,arguments.length>1?arguments[1]:void 0),r=0,i;r<t.length;)i=t[r++],n(i.value,i.key,this)},keys:function(){return new Oe(this,`keys`)},values:function(){return new Oe(this,`values`)},entries:function(){return new Oe(this,`entries`)}},{enumerable:!0}),u(je,M,je.entries,{name:`entries`}),u(je,`toString`,function(){return I(this).serialize()},{enumerable:!0}),c&&d(je,`size`,{get:function(){return I(this).entries.length},configurable:!0,enumerable:!0}),p(Ae,N),n({global:!0,constructor:!0,forced:!l},{URLSearchParams:Ae}),!l&&_(z)){var Me=s(ne.has),Ne=s(ne.set),Pe=function(e){if(S(e)){var t=e.body,n;if(b(t)===N)return n=e.headers?new z(e.headers):new z,Me(n,`content-type`)||Ne(n,`content-type`,`application/x-www-form-urlencoded;charset=UTF-8`),w(e,{body:T(0,C(t)),headers:T(0,n)})}return e};if(_(R)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return R(e,arguments.length>1?Pe(arguments[1]):{})}}),_(ee)){var Fe=function(e){return g(this,te),new ee(e,arguments.length>1?Pe(arguments[1]):{})};te.constructor=Fe,Fe.prototype=te,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Fe})}}t.exports={URLSearchParams:Ae,getState:I}})),wm=T((()=>{ef();var e=J(),t=W(),n=xm(),r=H(),i=Li(),a=K(),o=si(),s=Ai(),c=ss(),l=Ur(),u=Cl(),d=mo(),f=Oi(),p=Kd().codeAt,m=Sm(),h=Ci(),g=Fi(),_=ou(),v=Cm(),y=ai(),b=y.set,x=y.getterFor(`URL`),S=v.URLSearchParams,C=v.getState,w=r.URL,T=r.TypeError,E=r.parseInt,D=Math.floor,O=Math.pow,k=a(``.charAt),A=a(/./.exec),j=a([].join),M=a(1.1.toString),N=a([].pop),P=a([].push),F=a(``.replace),I=a([].shift),L=a(``.split),R=a(``.slice),ee=a(``.toLowerCase),z=a([].unshift),te=`Invalid authority`,ne=`Invalid scheme`,re=`Invalid host`,ie=`Invalid port`,ae=/[a-z]/i,oe=/[\d+-.a-z]/i,se=/\d/,ce=/^0x/i,le=/^[0-7]+$/,ue=/^\d+$/,de=/^[\da-f]+$/i,fe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,pe=/[\0\t\n\r #/:<>?@[\\\]^|]/,me=/^[\u0000-\u0020]+/,he=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ge=/[\t\n\r]/g,_e,ve=function(e){var t=L(e,`.`),n,r,i,a,o,s,c;if(t.length&&t[t.length-1]===``&&t.length--,n=t.length,n>4)return e;for(r=[],i=0;i<n;i++){if(a=t[i],a===``)return e;if(o=10,a.length>1&&k(a,0)===`0`&&(o=A(ce,a)?16:8,a=R(a,o===8?1:2)),a===``)s=0;else{if(!A(o===10?ue:o===8?le:de,a))return e;s=E(a,o)}P(r,s)}for(i=0;i<n;i++)if(s=r[i],i===n-1){if(s>=O(256,5-n))return null}else if(s>255)return null;for(c=N(r),i=0;i<r.length;i++)c+=r[i]*O(256,3-i);return c},ye=function(e){var t=[0,0,0,0,0,0,0,0],n=0,r=null,i=0,a,o,s,c,l,u,d,f=function(){return k(e,i)};if(f()===`:`){if(k(e,1)!==`:`)return;i+=2,n++,r=n}for(;f();){if(n===8)return;if(f()===`:`){if(r!==null)return;i++,n++,r=n;continue}for(a=o=0;o<4&&A(de,f());)a=a*16+E(f(),16),i++,o++;if(f()===`.`){if(o===0||(i-=o,n>6))return;for(s=0;f();){if(c=null,s>0)if(f()===`.`&&s<4)i++;else return;if(!A(se,f()))return;for(;A(se,f());){if(l=E(f(),10),c===null)c=l;else if(c===0)return;else c=c*10+l;if(c>255)return;i++}t[n]=t[n]*256+c,s++,(s===2||s===4)&&n++}if(s!==4)return;break}else if(f()===`:`){if(i++,!f())return}else if(f())return;t[n++]=a}if(r!==null)for(u=n-r,n=7;n!==0&&u>0;)d=t[n],t[n--]=t[r+u-1],t[r+--u]=d;else if(n!==8)return;return t},be=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)e[a]===0?(r===null&&(r=a),++i):(i>n&&(t=r,n=i),r=null,i=0);return i>n?r:t},xe=function(e){var t,n,r,i;if(typeof e==`number`){for(t=[],n=0;n<4;n++)z(t,e%256),e=D(e/256);return j(t,`.`)}if(typeof e==`object`){for(t=``,r=be(e),n=0;n<8;n++)i&&e[n]===0||(i&&=!1,r===n?(t+=n?`:`:`::`,i=!0):(t+=M(e[n],16),n<7&&(t+=`:`)));return`[`+t+`]`}return e},Se={},Ce=u({},Se,{" ":1,'"':1,"<":1,">":1,"`":1}),we=u({},Ce,{"#":1,"?":1,"{":1,"}":1}),Te=u({},we,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Ee=function(e,t){var n=p(e,0);return n>32&&n<127&&!l(t,e)?e:encodeURIComponent(e)},De={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Oe=function(e,t){var n;return e.length===2&&A(ae,k(e,0))&&((n=k(e,1))===`:`||!t&&n===`|`)},ke=function(e){var t;return e.length>1&&Oe(R(e,0,2))&&(e.length===2||(t=k(e,2))===`/`||t===`\\`||t===`?`||t===`#`)},Ae=function(e){return e===`.`||ee(e)===`%2e`},je=function(e){return e=ee(e),e===`..`||e===`%2e.`||e===`.%2e`||e===`%2e%2e`},Me={},Ne={},Pe={},Fe={},Ie={},Le={},Re={},ze={},Be={},Ve={},He={},Ue={},We={},Ge={},Ke={},qe={},Je={},Ye={},Xe={},Ze={},B={},Qe=function(e,t,n){var r=h(e),i,a,o;if(t){if(a=this.parse(r),a)throw new T(a);this.searchParams=null}else{if(n!==void 0&&(i=new Qe(n,!0)),a=this.parse(r,null,i),a)throw new T(a);o=C(new S),o.bindURL(this),this.searchParams=o}};Qe.prototype={type:`URL`,parse:function(e,t,n){var r=this,i=t||Me,a=0,o=``,s=!1,c=!1,u=!1,p,m,g,_;for(e=h(e),t||(r.scheme=``,r.username=``,r.password=``,r.host=null,r.port=null,r.path=[],r.query=null,r.fragment=null,r.cannotBeABaseURL=!1,e=F(e,me,``),e=F(e,he,`$1`)),e=F(e,ge,``),p=d(e);a<=p.length;){switch(m=p[a],i){case Me:if(m&&A(ae,m))o+=ee(m),i=Ne;else if(t)return ne;else{i=Pe;continue}break;case Ne:if(m&&(A(oe,m)||m===`+`||m===`-`||m===`.`))o+=ee(m);else if(m===`:`){if(t&&(r.isSpecial()!==l(De,o)||o===`file`&&(r.includesCredentials()||r.port!==null)||r.scheme===`file`&&!r.host))return;if(r.scheme=o,t){r.isSpecial()&&De[r.scheme]===r.port&&(r.port=null);return}o=``,r.scheme===`file`?i=Ge:r.isSpecial()&&n&&n.scheme===r.scheme?i=Fe:r.isSpecial()?i=ze:p[a+1]===`/`?(i=Ie,a++):(r.cannotBeABaseURL=!0,P(r.path,``),i=Xe)}else if(t)return ne;else{o=``,i=Pe,a=0;continue}break;case Pe:if(!n||n.cannotBeABaseURL&&m!==`#`)return ne;if(n.cannotBeABaseURL&&m===`#`){r.scheme=n.scheme,r.path=f(n.path),r.query=n.query,r.fragment=``,r.cannotBeABaseURL=!0,i=B;break}i=n.scheme===`file`?Ge:Le;continue;case Fe:if(m===`/`&&p[a+1]===`/`)i=Be,a++;else{i=Le;continue}break;case Ie:if(m===`/`){i=Ve;break}else{i=Ye;continue}case Le:if(r.scheme=n.scheme,m===_e)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.query=n.query;else if(m===`/`||m===`\\`&&r.isSpecial())i=Re;else if(m===`?`)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.query=``,i=Ze;else if(m===`#`)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.query=n.query,r.fragment=``,i=B;else{r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.path.length--,i=Ye;continue}break;case Re:if(r.isSpecial()&&(m===`/`||m===`\\`))i=Be;else if(m===`/`)i=Ve;else{r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,i=Ye;continue}break;case ze:if(i=Be,m!==`/`||k(o,a+1)!==`/`)continue;a++;break;case Be:if(m!==`/`&&m!==`\\`){i=Ve;continue}break;case Ve:if(m===`@`){s&&(o=`%40`+o),s=!0,g=d(o);for(var v=0;v<g.length;v++){var y=g[v];if(y===`:`&&!u){u=!0;continue}var b=Ee(y,Te);u?r.password+=b:r.username+=b}o=``}else if(m===_e||m===`/`||m===`?`||m===`#`||m===`\\`&&r.isSpecial()){if(s&&o===``)return te;a-=d(o).length+1,o=``,i=He}else o+=m;break;case He:case Ue:if(t&&r.scheme===`file`){i=qe;continue}else if(m===`:`&&!c){if(o===``)return re;if(_=r.parseHost(o),_)return _;if(o=``,i=We,t===Ue)return}else if(m===_e||m===`/`||m===`?`||m===`#`||m===`\\`&&r.isSpecial()){if(r.isSpecial()&&o===``)return re;if(t&&o===``&&(r.includesCredentials()||r.port!==null))return;if(_=r.parseHost(o),_)return _;if(o=``,i=Je,t)return;continue}else m===`[`?c=!0:m===`]`&&(c=!1),o+=m;break;case We:if(A(se,m))o+=m;else if(m===_e||m===`/`||m===`?`||m===`#`||m===`\\`&&r.isSpecial()||t){if(o!==``){var x=E(o,10);if(x>65535)return ie;r.port=r.isSpecial()&&x===De[r.scheme]?null:x,o=``}if(t)return;i=Je;continue}else return ie;break;case Ge:if(r.scheme=`file`,m===`/`||m===`\\`)i=Ke;else if(n&&n.scheme===`file`)switch(m){case _e:r.host=n.host,r.path=f(n.path),r.query=n.query;break;case`?`:r.host=n.host,r.path=f(n.path),r.query=``,i=Ze;break;case`#`:r.host=n.host,r.path=f(n.path),r.query=n.query,r.fragment=``,i=B;break;default:ke(j(f(p,a),``))||(r.host=n.host,r.path=f(n.path),r.shortenPath()),i=Ye;continue}else{i=Ye;continue}break;case Ke:if(m===`/`||m===`\\`){i=qe;break}n&&n.scheme===`file`&&!ke(j(f(p,a),``))&&(Oe(n.path[0],!0)?P(r.path,n.path[0]):r.host=n.host),i=Ye;continue;case qe:if(m===_e||m===`/`||m===`\\`||m===`?`||m===`#`){if(!t&&Oe(o))i=Ye;else if(o===``){if(r.host=``,t)return;i=Je}else{if(_=r.parseHost(o),_)return _;if(r.host===`localhost`&&(r.host=``),t)return;o=``,i=Je}continue}else o+=m;break;case Je:if(r.isSpecial()){if(i=Ye,m!==`/`&&m!==`\\`)continue}else if(!t&&m===`?`)r.query=``,i=Ze;else if(!t&&m===`#`)r.fragment=``,i=B;else if(m!==_e&&(i=Ye,m!==`/`))continue;break;case Ye:if(m===_e||m===`/`||m===`\\`&&r.isSpecial()||!t&&(m===`?`||m===`#`)){if(je(o)?(r.shortenPath(),m!==`/`&&!(m===`\\`&&r.isSpecial())&&P(r.path,``)):Ae(o)?m!==`/`&&!(m===`\\`&&r.isSpecial())&&P(r.path,``):(r.scheme===`file`&&!r.path.length&&Oe(o)&&(r.host&&=``,o=k(o,0)+`:`),P(r.path,o)),o=``,r.scheme===`file`&&(m===_e||m===`?`||m===`#`))for(;r.path.length>1&&r.path[0]===``;)I(r.path);m===`?`?(r.query=``,i=Ze):m===`#`&&(r.fragment=``,i=B)}else o+=Ee(m,we);break;case Xe:m===`?`?(r.query=``,i=Ze):m===`#`?(r.fragment=``,i=B):m!==_e&&(r.path[0]+=Ee(m,Se));break;case Ze:!t&&m===`#`?(r.fragment=``,i=B):m!==_e&&(m===`'`&&r.isSpecial()?r.query+=`%27`:m===`#`?r.query+=`%23`:r.query+=Ee(m,Se));break;case B:m!==_e&&(r.fragment+=Ee(m,Ce));break}a++}},parseHost:function(e){var t,n,r;if(k(e,0)===`[`){if(k(e,e.length-1)!==`]`||(t=ye(R(e,1,-1)),!t))return re;this.host=t}else if(this.isSpecial()){if(e=m(e),A(fe,e)||(t=ve(e),t===null))return re;this.host=t}else{if(A(pe,e))return re;for(t=``,n=d(e),r=0;r<n.length;r++)t+=Ee(n[r],Se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme===`file`},includesCredentials:function(){return this.username!==``||this.password!==``},isSpecial:function(){return l(De,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;t&&(this.scheme!==`file`||t!==1||!Oe(e[0],!0))&&e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,c=e.fragment,l=t+`:`;return i===null?t===`file`&&(l+=`//`):(l+=`//`,e.includesCredentials()&&(l+=n+(r?`:`+r:``)+`@`),l+=xe(i),a!==null&&(l+=`:`+a)),l+=e.cannotBeABaseURL?o[0]:o.length?`/`+j(o,`/`):``,s!==null&&(l+=`?`+s),c!==null&&(l+=`#`+c),l},setHref:function(e){var t=this.parse(e);if(t)throw new T(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if(e===`blob`)try{return new $e(e.path[0]).origin}catch{return`null`}return e===`file`||!this.isSpecial()?`null`:e+`://`+xe(this.host)+(t===null?``:`:`+t)},getProtocol:function(){return this.scheme+`:`},setProtocol:function(e){this.parse(h(e)+`:`,Me)},getUsername:function(){return this.username},setUsername:function(e){var t=d(h(e));if(!this.cannotHaveUsernamePasswordPort()){this.username=``;for(var n=0;n<t.length;n++)this.username+=Ee(t[n],Te)}},getPassword:function(){return this.password},setPassword:function(e){var t=d(h(e));if(!this.cannotHaveUsernamePasswordPort()){this.password=``;for(var n=0;n<t.length;n++)this.password+=Ee(t[n],Te)}},getHost:function(){var e=this.host,t=this.port;return e===null?``:t===null?xe(e):xe(e)+`:`+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,He)},getHostname:function(){var e=this.host;return e===null?``:xe(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ue)},getPort:function(){var e=this.port;return e===null?``:h(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=h(e),e===``?this.port=null:this.parse(e,We))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?`/`+j(e,`/`):``},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Je))},getSearch:function(){var e=this.query;return e?`?`+e:``},setSearch:function(e){e=h(e),e===``?this.query=null:(k(e,0)===`?`&&(e=R(e,1)),this.query=``,this.parse(e,Ze)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?`#`+e:``},setHash:function(e){if(e=h(e),e===``){this.fragment=null;return}k(e,0)===`#`&&(e=R(e,1)),this.fragment=``,this.parse(e,B)},update:function(){this.query=this.searchParams.serialize()||null}};var $e=function(e){var n=c(this,et),r=b(n,new Qe(e,!1,_(arguments.length,1)>1?arguments[1]:void 0));t||(n.href=r.serialize(),n.origin=r.getOrigin(),n.protocol=r.getProtocol(),n.username=r.getUsername(),n.password=r.getPassword(),n.host=r.getHost(),n.hostname=r.getHostname(),n.port=r.getPort(),n.pathname=r.getPathname(),n.search=r.getSearch(),n.searchParams=r.getSearchParams(),n.hash=r.getHash())},et=$e.prototype,tt=function(e,t){return{get:function(){return x(this)[e]()},set:t&&function(e){return x(this)[t](e)},configurable:!0,enumerable:!0}};if(t&&(s(et,`href`,tt(`serialize`,`setHref`)),s(et,`origin`,tt(`getOrigin`)),s(et,`protocol`,tt(`getProtocol`,`setProtocol`)),s(et,`username`,tt(`getUsername`,`setUsername`)),s(et,`password`,tt(`getPassword`,`setPassword`)),s(et,`host`,tt(`getHost`,`setHost`)),s(et,`hostname`,tt(`getHostname`,`setHostname`)),s(et,`port`,tt(`getPort`,`setPort`)),s(et,`pathname`,tt(`getPathname`,`setPathname`)),s(et,`search`,tt(`getSearch`,`setSearch`)),s(et,`searchParams`,tt(`getSearchParams`)),s(et,`hash`,tt(`getHash`,`setHash`))),o(et,`toJSON`,function(){return x(this).serialize()},{enumerable:!0}),o(et,`toString`,function(){return x(this).serialize()},{enumerable:!0}),w){var nt=w.createObjectURL,rt=w.revokeObjectURL;nt&&o($e,`createObjectURL`,i(nt,w)),rt&&o($e,`revokeObjectURL`,i(rt,w))}g($e,`URL`),e({global:!0,constructor:!0,forced:!n,sham:!t},{URL:$e})})),Tm=T((()=>{wm()})),Em=T((()=>{var e=J(),t=Dr(),n=U(),r=ou(),i=Ci(),a=xm(),o=t(`URL`),s=a&&n(function(){o.canParse()}),c=n(function(){return o.canParse.length!==1});e({target:`URL`,stat:!0,forced:!s||c},{canParse:function(e){var t=r(arguments.length,1),n=i(e),a=t<2||arguments[1]===void 0?void 0:i(arguments[1]);try{return!!new o(n,a)}catch{return!1}}})})),Dm=T((()=>{var e=J(),t=Dr(),n=ou(),r=Ci(),i=xm(),a=t(`URL`);e({target:`URL`,stat:!0,forced:!i},{parse:function(e){var t=n(arguments.length,1),i=r(e),o=t<2||arguments[1]===void 0?void 0:r(arguments[1]);try{return new a(i,o)}catch{return null}}})})),Om=T((()=>{var e=J(),t=G();e({target:`URL`,proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})})),km=T((()=>{Cm()})),Am=T((()=>{var e=si(),t=K(),n=Ci(),r=ou(),i=URLSearchParams,a=i.prototype,o=t(a.append),s=t(a.delete),c=t(a.forEach),l=t([].push),u=new i(`a=1&a=2&b=3`);u.delete(`a`,1),u.delete(`b`,void 0),u+``!=`a=2`&&e(a,`delete`,function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&i===void 0)return s(this,e);var a=[];c(this,function(e,t){l(a,{key:t,value:e})}),r(t,1);for(var u=n(e),d=n(i),f=0,p=0,m=!1,h=a.length,g;f<h;)g=a[f++],m||g.key===u?(m=!0,s(this,g.key)):p++;for(;p<h;)g=a[p++],g.key===u&&g.value===d||o(this,g.key,g.value)},{enumerable:!0,unsafe:!0})})),jm=T((()=>{var e=si(),t=K(),n=Ci(),r=ou(),i=URLSearchParams,a=i.prototype,o=t(a.getAll),s=t(a.has),c=new i(`a=1`);(c.has(`a`,2)||!c.has(`a`,void 0))&&e(a,`has`,function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&i===void 0)return s(this,e);var a=o(this,e);r(t,1);for(var c=n(i),l=0;l<a.length;)if(a[l++]===c)return!0;return!1},{enumerable:!0,unsafe:!0})})),Mm=T((()=>{var e=W(),t=K(),n=Ai(),r=URLSearchParams.prototype,i=t(r.forEach);e&&!(`size`in r)&&n(r,`size`,{get:function(){var e=0;return i(this,function(){e++}),e},configurable:!0,enumerable:!0})})),Nm=T(((e,t)=>{Zi(),Qi(),$i(),ea(),ta(),na(),ra(),ia(),aa(),oa(),sa(),ca(),la(),ua(),da(),fa(),pa(),Ea(),Da(),ka(),za(),Ba(),Va(),Ua(),qa(),Xa(),Qa(),eo(),to(),no(),ro(),ao(),oo(),co(),lo(),fo(),go(),_o(),vo(),yo(),wo(),To(),Do(),Oo(),ko(),jo(),Fo(),Io(),Lo(),Ro(),zo(),Wo(),Ko(),qo(),Yo(),Qo(),$o(),es(),ts(),ns(),is(),hs(),_s(),vs(),bs(),xs(),ws(),Ds(),Ns(),Ps(),Fs(),Is(),Ls(),Rs(),Hs(),Us(),Gs(),Ks(),Js(),Ys(),Zs(),Qs(),$s(),ec(),tc(),nc(),uc(),dc(),fc(),pc(),hc(),gc(),_c(),vc(),yc(),bc(),xc(),Sc(),Yi(),Cc(),jc(),Nc(),Fc(),Ic(),Lc(),Rc(),zc(),Vc(),Hc(),Uc(),Wc(),Gc(),Kc(),Jc(),Yc(),Xc(),Zc(),Qc(),$c(),el(),tl(),nl(),ol(),sl(),ll(),dl(),fl(),pl(),ml(),hl(),_l(),yl(),bl(),xl(),Sl(),wl(),Tl(),Dl(),Ol(),kl(),Al(),Ml(),Nl(),Pl(),Fl(),Il(),Ll(),Rl(),zl(),Bl(),Hl(),Ul(),Wl(),Gl(),Kl(),ql(),Jl(),Yl(),Xl(),Zl(),Ql(),eu(),tu(),nu(),ru(),Du(),Ou(),ku(),Au(),ju(),Mu(),zu(),Bu(),Vu(),Hu(),Uu(),Wu(),Gu(),qu(),Ju(),Yu(),Xu(),Zu(),Qu(),$u(),ed(),td(),nd(),ud(),fd(),pd(),hd(),gd(),_d(),vd(),yd(),xd(),jd(),Nd(),Fd(),Ld(),zd(),Hd(),Wd(),Gd(),qd(),Xd(),Zd(),Qd(),$d(),ef(),af(),of(),cf(),lf(),uf(),df(),pf(),mf(),hf(),gf(),_f(),vf(),yf(),xf(),wf(),Df(),Af(),jf(),Mf(),Nf(),Pf(),Ff(),If(),Lf(),Rf(),zf(),Bf(),Vf(),Hf(),Xf(),Zf(),Qf(),$f(),ep(),tp(),np(),rp(),ip(),ap(),op(),sp(),cp(),up(),dp(),fp(),pp(),mp(),hp(),gp(),_p(),vp(),yp(),bp(),xp(),Sp(),Cp(),wp(),Tp(),Ep(),Dp(),Op(),kp(),Ap(),jp(),Mp(),Np(),Pp(),Fp(),Ip(),Vp(),Up(),Gp(),Kp(),qp(),Jp(),Yp(),Qp(),em(),tm(),nm(),am(),om(),cm(),lm(),um(),mm(),hm(),gm(),_m(),bm(),Tm(),Em(),Dm(),Om(),km(),Am(),jm(),Mm(),t.exports=Mi()}));gr(),Nm();function Pm(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!re(i)||!Pe(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function Fm(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!re(r)||!Pe(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var Im={name:`applyStyles`,enabled:!0,phase:`write`,fn:Pm,effect:Fm,requires:[`computeStyles`]},Lm=Ae({defaultModifiers:[oe,xe,_e,Im]}),Rm=Ae({defaultModifiers:[oe,xe,_e,Im,ae,Se,Ke,Fe,Ge]}),zm=y({afterMain:()=>he,afterRead:()=>ge,afterWrite:()=>ve,applyStyles:()=>Im,arrow:()=>Fe,auto:()=>ce,basePlacements:()=>de,beforeMain:()=>me,beforeRead:()=>be,beforeWrite:()=>Je,bottom:()=>ie,clippingParents:()=>we,computeStyles:()=>_e,createPopper:()=>Rm,createPopperBase:()=>qe,createPopperLite:()=>Lm,detectOverflow:()=>se,end:()=>`end`,eventListeners:()=>oe,flip:()=>Se,hide:()=>Ge,left:()=>ue,main:()=>Ce,modifierPhases:()=>Te,offset:()=>ae,placements:()=>le,popper:()=>pe,popperGenerator:()=>Ae,popperOffsets:()=>xe,preventOverflow:()=>Ke,read:()=>ze,reference:()=>fe,right:()=>De,start:()=>Ee,top:()=>`top`,variationPlacements:()=>Oe,viewport:()=>ye,write:()=>ne}),Bm=new Map,Vm={set(e,t,n){Bm.has(e)||Bm.set(e,new Map);let r=Bm.get(e);if(!r.has(t)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(t,n)},get(e,t){return Bm.has(e)&&Bm.get(e).get(t)||null},remove(e,t){if(!Bm.has(e))return;let n=Bm.get(e);n.delete(t),n.size===0&&Bm.delete(e)}},Hm=1e6,Um=1e3,Wm=`transitionend`,Gm=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),Km=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),qm=e=>{do e+=Math.floor(Math.random()*Hm);while(document.getElementById(e));return e},Jm=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*Um)},Ym=e=>{e.dispatchEvent(new Event(Wm))},Xm=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),Zm=e=>Xm(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(Gm(e)):null,Qm=e=>{if(!Xm(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},$m=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,eh=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?eh(e.parentNode):null},th=()=>{},nh=e=>{e.offsetHeight},rh=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,ih=[],ah=e=>{document.readyState===`loading`?(ih.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of ih)e()}),ih.push(e)):e()},oh=()=>document.documentElement.dir===`rtl`,sh=e=>{ah(()=>{let t=rh();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},ch=(e,t=[],n=e)=>typeof e==`function`?e(...t):n,lh=(e,t,n=!0)=>{if(!n){ch(e);return}let r=Jm(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(Wm,a),ch(e))};t.addEventListener(Wm,a),setTimeout(()=>{i||Ym(t)},r)},uh=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},dh=/[^.]*(?=\..*)\.|.*/,fh=/\..*/,ph=/::\d+$/,mh={},hh=1,gh={mouseenter:`mouseover`,mouseleave:`mouseout`},_h=new Set(`click.dblclick.mouseup.mousedown.contextmenu.mousewheel.DOMMouseScroll.mouseover.mouseout.mousemove.selectstart.selectend.keydown.keypress.keyup.orientationchange.touchstart.touchmove.touchend.touchcancel.pointerdown.pointermove.pointerup.pointerleave.pointercancel.gesturestart.gesturechange.gestureend.focus.blur.change.reset.select.submit.focusin.focusout.load.unload.beforeunload.resize.move.DOMContentLoaded.readystatechange.error.abort.scroll`.split(`.`));function vh(e,t){return t&&`${t}::${hh++}`||e.uidEvent||hh++}function yh(e){let t=vh(e);return e.uidEvent=t,mh[t]=mh[t]||{},mh[t]}function bh(e,t){return function n(r){return Oh(r,{delegateTarget:e}),n.oneOff&&Y.off(e,r.type,t),t.apply(e,[r])}}function xh(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return Oh(i,{delegateTarget:o}),r.oneOff&&Y.off(e,i.type,t,n),n.apply(o,[i])}}function Sh(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function Ch(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=Dh(e);return _h.has(a)||(a=e),[r,i,a]}function wh(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=Ch(t,n,r);t in gh&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=yh(e),l=c[s]||(c[s]={}),u=Sh(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=vh(o,t.replace(dh,``)),f=a?xh(e,n,o):bh(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function Th(e,t,n,r,i){let a=Sh(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function Eh(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&Th(e,t,n,o.callable,o.delegationSelector)}function Dh(e){return e=e.replace(fh,``),gh[e]||e}var Y={on(e,t,n,r){wh(e,t,n,r,!1)},one(e,t,n,r){wh(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=Ch(t,n,r),s=o!==t,c=yh(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;Th(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))Eh(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(ph,``);(!s||t.includes(i))&&Th(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=rh(),i=t!==Dh(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=Oh(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function Oh(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function kh(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function Ah(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var jh={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${Ah(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${Ah(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=kh(e.dataset[r])}return t},getDataAttribute(e,t){return kh(e.getAttribute(`data-bs-${Ah(t)}`))}},Mh=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error(`You have to implement the static method "NAME", for each component!`)}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){let n=Xm(t)?jh.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...Xm(t)?jh.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],i=Xm(t)?`element`:Km(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},Nh=`5.3.2`,Ph=class extends Mh{constructor(e,t){super(),e=Zm(e),e&&(this._element=e,this._config=this._getConfig(t),Vm.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Vm.remove(this._element,this.constructor.DATA_KEY),Y.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){lh(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Vm.get(Zm(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return Nh}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},Fh=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?Gm(n.trim()):null}return t},Ih={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!$m(e)&&Qm(e))},getSelectorFromElement(e){let t=Fh(e);return t&&Ih.findOne(t)?t:null},getElementFromSelector(e){let t=Fh(e);return t?Ih.findOne(t):null},getMultipleElementsFromSelector(e){let t=Fh(e);return t?Ih.find(t):[]}},Lh=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;Y.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),$m(this))return;let i=Ih.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},Rh=`alert`,zh=`.bs.alert`,Bh=`close${zh}`,Vh=`closed${zh}`,Hh=`fade`,Uh=`show`,Wh=class e extends Ph{static get NAME(){return Rh}close(){if(Y.trigger(this._element,Bh).defaultPrevented)return;this._element.classList.remove(Uh);let e=this._element.classList.contains(Hh);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Y.trigger(this._element,Vh),this.dispose()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};Lh(Wh,`close`),sh(Wh);var Gh=`button`,Kh=`.bs.button`,qh=`.data-api`,Jh=`active`,Yh=`[data-bs-toggle="button"]`,Xh=`click${Kh}${qh}`,Zh=class e extends Ph{static get NAME(){return Gh}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(Jh))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};Y.on(document,Xh,Yh,e=>{e.preventDefault();let t=e.target.closest(Yh);Zh.getOrCreateInstance(t).toggle()}),sh(Zh);var Qh=`swipe`,$h=`.bs.swipe`,eg=`touchstart${$h}`,tg=`touchmove${$h}`,ng=`touchend${$h}`,rg=`pointerdown${$h}`,ig=`pointerup${$h}`,ag=`touch`,og=`pen`,sg=`pointer-event`,cg=40,lg={endCallback:null,leftCallback:null,rightCallback:null},ug={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},dg=class e extends Mh{constructor(t,n){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return lg}static get DefaultType(){return ug}static get NAME(){return Qh}dispose(){Y.off(this._element,$h)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),ch(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=cg)return;let t=e/this._deltaX;this._deltaX=0,t&&ch(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Y.on(this._element,rg,e=>this._start(e)),Y.on(this._element,ig,e=>this._end(e)),this._element.classList.add(sg)):(Y.on(this._element,eg,e=>this._start(e)),Y.on(this._element,tg,e=>this._move(e)),Y.on(this._element,ng,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===og||e.pointerType===ag)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},fg=`carousel`,pg=`.bs.carousel`,mg=`.data-api`,hg=`ArrowLeft`,gg=`ArrowRight`,_g=500,vg=`next`,yg=`prev`,bg=`left`,xg=`right`,Sg=`slide${pg}`,Cg=`slid${pg}`,wg=`keydown${pg}`,Tg=`mouseenter${pg}`,Eg=`mouseleave${pg}`,Dg=`dragstart${pg}`,Og=`load${pg}${mg}`,kg=`click${pg}${mg}`,Ag=`carousel`,jg=`active`,Mg=`slide`,Ng=`carousel-item-end`,Pg=`carousel-item-start`,Fg=`carousel-item-next`,Ig=`carousel-item-prev`,Lg=`.active`,Rg=`.carousel-item`,zg=Lg+Rg,Bg=`.carousel-item img`,Vg=`.carousel-indicators`,Hg=`[data-bs-slide], [data-bs-slide-to]`,Ug=`[data-bs-ride="carousel"]`,Wg={[hg]:xg,[gg]:bg},Gg={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},Kg={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},qg=class e extends Ph{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ih.findOne(Vg,this._element),this._addEventListeners(),this._config.ride===Ag&&this.cycle()}static get Default(){return Gg}static get DefaultType(){return Kg}static get NAME(){return fg}next(){this._slide(vg)}nextWhenVisible(){!document.hidden&&Qm(this._element)&&this.next()}prev(){this._slide(yg)}pause(){this._isSliding&&Ym(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Y.one(this._element,Cg,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){Y.one(this._element,Cg,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?vg:yg;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Y.on(this._element,wg,e=>this._keydown(e)),this._config.pause===`hover`&&(Y.on(this._element,Tg,()=>this.pause()),Y.on(this._element,Eg,()=>this._maybeEnableCycle())),this._config.touch&&dg.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of Ih.find(Bg,this._element))Y.on(e,Dg,e=>e.preventDefault());this._swipeHelper=new dg(this._element,{leftCallback:()=>this._slide(this._directionToOrder(bg)),rightCallback:()=>this._slide(this._directionToOrder(xg)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),_g+this._config.interval))}})}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=Wg[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=Ih.findOne(Lg,this._indicatorsElement);t.classList.remove(jg),t.removeAttribute(`aria-current`);let n=Ih.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(jg),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===vg,i=t||uh(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>Y.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(Sg).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?Pg:Ng,l=r?Fg:Ig;i.classList.add(l),nh(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(jg),n.classList.remove(jg,l,c),this._isSliding=!1,o(Cg)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(Mg)}_getActive(){return Ih.findOne(zg,this._element)}_getItems(){return Ih.find(Rg,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return oh()?e===bg?yg:vg:e===bg?vg:yg}_orderToDirection(e){return oh()?e===yg?bg:xg:e===yg?xg:bg}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`number`){n.to(t);return}if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Y.on(document,kg,Hg,function(e){let t=Ih.getElementFromSelector(this);if(!t||!t.classList.contains(Ag))return;e.preventDefault();let n=qg.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(jh.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),Y.on(window,Og,()=>{let e=Ih.find(Ug);for(let t of e)qg.getOrCreateInstance(t)}),sh(qg);var Jg=`collapse`,Yg=`.bs.collapse`,Xg=`.data-api`,Zg=`show${Yg}`,Qg=`shown${Yg}`,$g=`hide${Yg}`,e_=`hidden${Yg}`,t_=`click${Yg}${Xg}`,n_=`show`,r_=`collapse`,i_=`collapsing`,a_=`collapsed`,o_=`:scope .${r_} .${r_}`,s_=`collapse-horizontal`,c_=`width`,l_=`height`,u_=`.collapse.show, .collapse.collapsing`,d_=`[data-bs-toggle="collapse"]`,f_={parent:null,toggle:!0},p_={parent:`(null|element)`,toggle:`boolean`},m_=class e extends Ph{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=Ih.find(d_);for(let e of n){let t=Ih.getSelectorFromElement(e),n=Ih.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return f_}static get DefaultType(){return p_}static get NAME(){return Jg}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(u_).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||Y.trigger(this._element,Zg).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove(r_),this._element.classList.add(i_),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(i_),this._element.classList.add(r_,n_),this._element.style[n]=``,Y.trigger(this._element,Qg)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||Y.trigger(this._element,$g).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,nh(this._element),this._element.classList.add(i_),this._element.classList.remove(r_,n_);for(let e of this._triggerArray){let t=Ih.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove(i_),this._element.classList.add(r_),Y.trigger(this._element,e_)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(n_)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Zm(e.parent),e}_getDimension(){return this._element.classList.contains(s_)?c_:l_}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(d_);for(let t of e){let e=Ih.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=Ih.find(o_,this._config.parent);return Ih.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(a_,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(t){let n={};return typeof t==`string`&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){let r=e.getOrCreateInstance(this,n);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t]()}})}};Y.on(document,t_,d_,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of Ih.getMultipleElementsFromSelector(this))m_.getOrCreateInstance(e,{toggle:!1}).toggle()}),sh(m_);var h_=`dropdown`,g_=`.bs.dropdown`,__=`.data-api`,v_=`Escape`,y_=`Tab`,b_=`ArrowUp`,x_=`ArrowDown`,S_=2,C_=`hide${g_}`,w_=`hidden${g_}`,T_=`show${g_}`,E_=`shown${g_}`,D_=`click${g_}${__}`,O_=`keydown${g_}${__}`,k_=`keyup${g_}${__}`,A_=`show`,j_=`dropup`,M_=`dropend`,N_=`dropstart`,P_=`dropup-center`,F_=`dropdown-center`,I_=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,L_=`${I_}.${A_}`,R_=`.dropdown-menu`,z_=`.navbar`,B_=`.navbar-nav`,V_=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,H_=oh()?`top-end`:`top-start`,U_=oh()?`top-start`:`top-end`,W_=oh()?`bottom-end`:`bottom-start`,G_=oh()?`bottom-start`:`bottom-end`,K_=oh()?`left-start`:`right-start`,q_=oh()?`right-start`:`left-start`,J_=`top`,Y_=`bottom`,X_={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},Z_={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},Q_=class e extends Ph{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Ih.next(this._element,R_)[0]||Ih.prev(this._element,R_)[0]||Ih.findOne(R_,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return X_}static get DefaultType(){return Z_}static get NAME(){return h_}toggle(){return this._isShown()?this.hide():this.show()}show(){if($m(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!Y.trigger(this._element,T_,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(B_))for(let e of[].concat(...document.body.children))Y.on(e,`mouseover`,th);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(A_),this._element.classList.add(A_),Y.trigger(this._element,E_,e)}}hide(){if($m(this._element)||!this._isShown())return;let e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Y.trigger(this._element,C_,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Y.off(e,`mouseover`,th);this._popper&&this._popper.destroy(),this._menu.classList.remove(A_),this._element.classList.remove(A_),this._element.setAttribute(`aria-expanded`,`false`),jh.removeDataAttribute(this._menu,`popper`),Y.trigger(this._element,w_,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!Xm(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${h_.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(zm===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org)`);let e=this._element;this._config.reference===`parent`?e=this._parent:Xm(this._config.reference)?e=Zm(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=Rm(e,this._menu,t)}_isShown(){return this._menu.classList.contains(A_)}_getPlacement(){let e=this._parent;if(e.classList.contains(M_))return K_;if(e.classList.contains(N_))return q_;if(e.classList.contains(P_))return J_;if(e.classList.contains(F_))return Y_;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(j_)?t?U_:H_:t?G_:W_}_detectNavbar(){return this._element.closest(z_)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`offset`,options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display===`static`)&&(jh.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...ch(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){let n=Ih.find(V_,this._menu).filter(e=>Qm(e));n.length&&uh(n,t,e===x_,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===S_||t.type===`keyup`&&t.key!==y_)return;let n=Ih.find(L_);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===y_||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===v_,i=[b_,x_].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(I_)?this:Ih.prev(this,I_)[0]||Ih.next(this,I_)[0]||Ih.findOne(I_,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};Y.on(document,O_,I_,Q_.dataApiKeydownHandler),Y.on(document,O_,R_,Q_.dataApiKeydownHandler),Y.on(document,D_,Q_.clearMenus),Y.on(document,k_,Q_.clearMenus),Y.on(document,D_,I_,function(e){e.preventDefault(),Q_.getOrCreateInstance(this).toggle()}),sh(Q_);var $_=`backdrop`,ev=`fade`,tv=`show`,nv=`mousedown.bs.${$_}`,rv={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},iv={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},av=class extends Mh{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return rv}static get DefaultType(){return iv}static get NAME(){return $_}show(e){if(!this._config.isVisible){ch(e);return}this._append();let t=this._getElement();this._config.isAnimated&&nh(t),t.classList.add(tv),this._emulateAnimation(()=>{ch(e)})}hide(e){if(!this._config.isVisible){ch(e);return}this._getElement().classList.remove(tv),this._emulateAnimation(()=>{this.dispose(),ch(e)})}dispose(){this._isAppended&&=(Y.off(this._element,nv),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(ev),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Zm(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),Y.on(e,nv,()=>{ch(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){lh(e,this._getElement(),this._config.isAnimated)}},ov=`focustrap`,sv=`.bs.focustrap`,cv=`focusin${sv}`,lv=`keydown.tab${sv}`,uv=`Tab`,dv=`forward`,fv=`backward`,pv={autofocus:!0,trapElement:null},mv={autofocus:`boolean`,trapElement:`element`},hv=class extends Mh{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return pv}static get DefaultType(){return mv}static get NAME(){return ov}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),Y.off(document,sv),Y.on(document,cv,e=>this._handleFocusin(e)),Y.on(document,lv,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,Y.off(document,sv))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=Ih.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===fv?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===uv&&(this._lastTabNavDirection=e.shiftKey?fv:dv)}},gv=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,_v=`.sticky-top`,vv=`padding-right`,yv=`margin-right`,bv=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,vv,t=>t+e),this._setElementAttributes(gv,vv,t=>t+e),this._setElementAttributes(_v,yv,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,vv),this._resetElementAttributes(gv,vv),this._resetElementAttributes(_v,yv)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&jh.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=jh.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}jh.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(Xm(e)){t(e);return}for(let n of Ih.find(e,this._element))t(n)}},xv=`modal`,Sv=`.bs.modal`,Cv=`.data-api`,wv=`Escape`,Tv=`hide${Sv}`,Ev=`hidePrevented${Sv}`,Dv=`hidden${Sv}`,Ov=`show${Sv}`,kv=`shown${Sv}`,Av=`resize${Sv}`,jv=`click.dismiss${Sv}`,Mv=`mousedown.dismiss${Sv}`,Nv=`keydown.dismiss${Sv}`,Pv=`click${Sv}${Cv}`,Fv=`modal-open`,Iv=`fade`,Lv=`show`,Rv=`modal-static`,zv=`.modal.show`,Bv=`.modal-dialog`,Vv=`.modal-body`,Hv=`[data-bs-toggle="modal"]`,Uv={backdrop:!0,focus:!0,keyboard:!0},Wv={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},Gv=class e extends Ph{constructor(e,t){super(e,t),this._dialog=Ih.findOne(Bv,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new bv,this._addEventListeners()}static get Default(){return Uv}static get DefaultType(){return Wv}static get NAME(){return xv}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Y.trigger(this._element,Ov,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Fv),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Y.trigger(this._element,Tv).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Lv),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Y.off(window,Sv),Y.off(this._dialog,Sv),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new av({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new hv({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display=`block`,this._element.removeAttribute(`aria-hidden`),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.scrollTop=0;let t=Ih.findOne(Vv,this._dialog);t&&(t.scrollTop=0),nh(this._element),this._element.classList.add(Lv),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Y.trigger(this._element,kv,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){Y.on(this._element,Nv,e=>{if(e.key===wv){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Y.on(window,Av,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Y.on(this._element,Mv,e=>{Y.one(this._element,jv,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop===`static`){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display=`none`,this._element.setAttribute(`aria-hidden`,!0),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Fv),this._resetAdjustments(),this._scrollBar.reset(),Y.trigger(this._element,Dv)})}_isAnimated(){return this._element.classList.contains(Iv)}_triggerBackdropTransition(){if(Y.trigger(this._element,Ev).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(Rv)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(Rv),this._queueCallback(()=>{this._element.classList.remove(Rv),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=oh()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=oh()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(t,n){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t](n)}})}};Y.on(document,Pv,Hv,function(e){let t=Ih.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Y.one(t,Ov,e=>{e.defaultPrevented||Y.one(t,Dv,()=>{Qm(this)&&this.focus()})});let n=Ih.findOne(zv);n&&Gv.getInstance(n).hide(),Gv.getOrCreateInstance(t).toggle(this)}),Lh(Gv),sh(Gv);var Kv=`offcanvas`,qv=`.bs.offcanvas`,Jv=`.data-api`,Yv=`load${qv}${Jv}`,Xv=`Escape`,Zv=`show`,Qv=`showing`,$v=`hiding`,ey=`offcanvas-backdrop`,ty=`.offcanvas.show`,ny=`show${qv}`,ry=`shown${qv}`,iy=`hide${qv}`,ay=`hidePrevented${qv}`,oy=`hidden${qv}`,sy=`resize${qv}`,cy=`click${qv}${Jv}`,ly=`keydown.dismiss${qv}`,uy=`[data-bs-toggle="offcanvas"]`,dy={backdrop:!0,keyboard:!0,scroll:!1},fy={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},py=class e extends Ph{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return dy}static get DefaultType(){return fy}static get NAME(){return Kv}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||Y.trigger(this._element,ny,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new bv().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(Qv),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Zv),this._element.classList.remove(Qv),Y.trigger(this._element,ry,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||Y.trigger(this._element,iy).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($v),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Zv,$v),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new bv().reset(),Y.trigger(this._element,oy)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){Y.trigger(this._element,ay);return}this.hide()},t=!!this._config.backdrop;return new av({className:ey,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new hv({trapElement:this._element})}_addEventListeners(){Y.on(this._element,ly,e=>{if(e.key===Xv){if(this._config.keyboard){this.hide();return}Y.trigger(this._element,ay)}})}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};Y.on(document,cy,uy,function(e){let t=Ih.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),$m(this))return;Y.one(t,oy,()=>{Qm(this)&&this.focus()});let n=Ih.findOne(ty);n&&n!==t&&py.getInstance(n).hide(),py.getOrCreateInstance(t).toggle(this)}),Y.on(window,Yv,()=>{for(let e of Ih.find(ty))py.getOrCreateInstance(e).show()}),Y.on(window,sy,()=>{for(let e of Ih.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&py.getOrCreateInstance(e).hide()}),Lh(py),sh(py);var my=/^aria-[\w-]*$/i,hy={"*":[`class`,`dir`,`id`,`lang`,`role`,my],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[`src`,`srcset`,`alt`,`title`,`width`,`height`],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},gy=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),_y=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,vy=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?gy.has(n)?!!_y.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function yy(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)vy(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var by=`TemplateFactory`,xy={allowList:hy,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},Sy={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},Cy={entry:`(string|element|function|null)`,selector:`(string|element)`},wy=class extends Mh{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return xy}static get DefaultType(){return Sy}static get NAME(){return by}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Cy)}_setContent(e,t,n){let r=Ih.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(Xm(t)){this._putElementInTemplate(Zm(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?yy(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return ch(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},Ty=`tooltip`,Ey=new Set([`sanitize`,`allowList`,`sanitizeFn`]),Dy=`fade`,Oy=`modal`,ky=`show`,Ay=`.tooltip-inner`,jy=`.${Oy}`,My=`hide.bs.modal`,Ny=`hover`,Py=`focus`,Fy=`click`,Iy=`manual`,Ly=`hide`,Ry=`hidden`,zy=`show`,By=`shown`,Vy=`inserted`,Hy=`click`,Uy=`focusin`,Wy=`focusout`,Gy=`mouseenter`,Ky=`mouseleave`,qy={AUTO:`auto`,TOP:`top`,RIGHT:oh()?`left`:`right`,BOTTOM:`bottom`,LEFT:oh()?`right`:`left`},Jy={allowList:hy,animation:!0,boundary:`clippingParents`,container:!1,customClass:``,delay:0,fallbackPlacements:[`top`,`right`,`bottom`,`left`],html:!1,offset:[0,6],placement:`top`,popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:`<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`,title:``,trigger:`hover focus`},Yy={allowList:`object`,animation:`boolean`,boundary:`(string|element)`,container:`(string|element|boolean)`,customClass:`(string|function)`,delay:`(number|object)`,fallbackPlacements:`array`,html:`boolean`,offset:`(array|string|function)`,placement:`(string|function)`,popperConfig:`(null|object|function)`,sanitize:`boolean`,sanitizeFn:`(null|function)`,selector:`(string|boolean)`,template:`string`,title:`(string|element|function)`,trigger:`string`},Xy=class e extends Ph{constructor(e,t){if(zm===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org)`);super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Jy}static get DefaultType(){return Yy}static get NAME(){return Ty}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Y.off(this._element.closest(jy),My,this._hideModalHandler),this._element.getAttribute(`data-bs-original-title`)&&this._element.setAttribute(`title`,this._element.getAttribute(`data-bs-original-title`)),this._disposePopper(),super.dispose()}show(){if(this._element.style.display===`none`)throw Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=Y.trigger(this._element,this.constructor.eventName(zy)),t=(eh(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Y.trigger(this._element,this.constructor.eventName(Vy))),this._popper=this._createPopper(n),n.classList.add(ky),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Y.on(e,`mouseover`,th);this._queueCallback(()=>{Y.trigger(this._element,this.constructor.eventName(By)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||Y.trigger(this._element,this.constructor.eventName(Ly)).defaultPrevented)){if(this._getTipElement().classList.remove(ky),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Y.off(e,`mouseover`,th);this._activeTrigger[Fy]=!1,this._activeTrigger[Py]=!1,this._activeTrigger[Ny]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),Y.trigger(this._element,this.constructor.eventName(Ry)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Dy,ky),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=qm(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(Dy),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new wy({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Ay]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute(`data-bs-original-title`)}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Dy)}_isShown(){return this.tip&&this.tip.classList.contains(ky)}_createPopper(e){let t=qy[ch(this._config.placement,[this,e,this._element]).toUpperCase()];return Rm(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return ch(e,[this._element])}_getPopperConfig(e){let t={placement:e,modifiers:[{name:`flip`,options:{fallbackPlacements:this._config.fallbackPlacements}},{name:`offset`,options:{offset:this._getOffset()}},{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`arrow`,options:{element:`.${this.constructor.NAME}-arrow`}},{name:`preSetPlacement`,enabled:!0,phase:`beforeMain`,fn:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...ch(this._config.popperConfig,[t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)Y.on(this._element,this.constructor.eventName(Hy),this._config.selector,e=>{this._initializeOnDelegatedTarget(e).toggle()});else if(t!==Iy){let e=t===Ny?this.constructor.eventName(Gy):this.constructor.eventName(Uy),n=t===Ny?this.constructor.eventName(Ky):this.constructor.eventName(Wy);Y.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?Py:Ny]=!0,t._enter()}),Y.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?Py:Ny]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Y.on(this._element.closest(jy),My,this._hideModalHandler)}_fixTitle(){let e=this._element.getAttribute(`title`);e&&(!this._element.getAttribute(`aria-label`)&&!this._element.textContent.trim()&&this._element.setAttribute(`aria-label`,e),this._element.setAttribute(`data-bs-original-title`,e),this._element.removeAttribute(`title`))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=jh.getDataAttributes(this._element);for(let e of Object.keys(t))Ey.has(e)&&delete t[e];return e={...t,...typeof e==`object`&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Zm(e.container),typeof e.delay==`number`&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title==`number`&&(e.title=e.title.toString()),typeof e.content==`number`&&(e.content=e.content.toString()),e}_getDelegateConfig(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};sh(Xy);var Zy=`popover`,Qy=`.popover-header`,$y=`.popover-body`,eb={...Xy.Default,content:``,offset:[0,8],placement:`right`,template:`<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>`,trigger:`click`},tb={...Xy.DefaultType,content:`(null|string|element|function)`};sh(class e extends Xy{static get Default(){return eb}static get DefaultType(){return tb}static get NAME(){return Zy}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Qy]:this._getTitle(),[$y]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}});var nb=`scrollspy`,rb=`.bs.scrollspy`,ib=`.data-api`,ab=`activate${rb}`,ob=`click${rb}`,sb=`load${rb}${ib}`,cb=`dropdown-item`,lb=`active`,ub=`[data-bs-spy="scroll"]`,db=`[href]`,fb=`.nav, .list-group`,pb=`.nav-link`,mb=`${pb}, .nav-item > ${pb}, .list-group-item`,hb=`.dropdown`,gb=`.dropdown-toggle`,_b={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},vb={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},yb=class e extends Ph{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY===`visible`?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return _b}static get DefaultType(){return vb}static get NAME(){return nb}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Zm(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold==`string`&&(e.threshold=e.threshold.split(`,`).map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Y.off(this._config.target,ob),Y.on(this._config.target,ob,db,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=Ih.find(db,this._config.target);for(let t of e){if(!t.hash||$m(t))continue;let e=Ih.findOne(decodeURI(t.hash),this._element);Qm(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(lb),this._activateParents(e),Y.trigger(this._element,ab,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(cb)){Ih.findOne(gb,e.closest(hb)).classList.add(lb);return}for(let t of Ih.parents(e,fb))for(let e of Ih.prev(t,mb))e.classList.add(lb)}_clearActiveClass(e){e.classList.remove(lb);let t=Ih.find(`${db}.${lb}`,e);for(let e of t)e.classList.remove(lb)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Y.on(window,sb,()=>{for(let e of Ih.find(ub))yb.getOrCreateInstance(e)}),sh(yb);var bb=`tab`,xb=`.bs.tab`,Sb=`hide${xb}`,Cb=`hidden${xb}`,wb=`show${xb}`,Tb=`shown${xb}`,Eb=`click${xb}`,Db=`keydown${xb}`,Ob=`load${xb}`,kb=`ArrowLeft`,Ab=`ArrowRight`,jb=`ArrowUp`,Mb=`ArrowDown`,Nb=`Home`,Pb=`End`,Fb=`active`,Ib=`fade`,Lb=`show`,Rb=`dropdown`,zb=`.dropdown-toggle`,Bb=`.dropdown-menu`,Vb=`:not(${zb})`,Hb=`.list-group, .nav, [role="tablist"]`,Ub=`.nav-item, .list-group-item`,Wb=`.nav-link${Vb}, .list-group-item${Vb}, [role="tab"]${Vb}`,Gb=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,Kb=`${Wb}, ${Gb}`,qb=`.${Fb}[data-bs-toggle="tab"], .${Fb}[data-bs-toggle="pill"], .${Fb}[data-bs-toggle="list"]`,Jb=class e extends Ph{constructor(e){super(e),this._parent=this._element.closest(Hb),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Y.on(this._element,Db,e=>this._keydown(e)))}static get NAME(){return bb}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?Y.trigger(t,Sb,{relatedTarget:e}):null;Y.trigger(e,wb,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Fb),this._activate(Ih.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(Lb);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),Y.trigger(e,Tb,{relatedTarget:t})},e,e.classList.contains(Ib)))}_deactivate(e,t){e&&(e.classList.remove(Fb),e.blur(),this._deactivate(Ih.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(Lb);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),Y.trigger(e,Cb,{relatedTarget:t})},e,e.classList.contains(Ib)))}_keydown(t){if(![kb,Ab,jb,Mb,Nb,Pb].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!$m(e)),r;if([Nb,Pb].includes(t.key))r=n[t.key===Nb?0:n.length-1];else{let e=[Ab,Mb].includes(t.key);r=uh(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return Ih.find(Kb,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=Ih.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(Rb))return;let r=(e,r)=>{let i=Ih.findOne(e,n);i&&i.classList.toggle(r,t)};r(zb,Fb),r(Bb,Lb),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Fb)}_getInnerElement(e){return e.matches(Kb)?e:Ih.findOne(Kb,e)}_getOuterElement(e){return e.closest(Ub)||e}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Y.on(document,Eb,Gb,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!$m(this)&&Jb.getOrCreateInstance(this).show()}),Y.on(window,Ob,()=>{for(let e of Ih.find(qb))Jb.getOrCreateInstance(e)}),sh(Jb);var Yb=`toast`,Xb=`.bs.toast`,Zb=`mouseover${Xb}`,Qb=`mouseout${Xb}`,$b=`focusin${Xb}`,ex=`focusout${Xb}`,tx=`hide${Xb}`,nx=`hidden${Xb}`,rx=`show${Xb}`,ix=`shown${Xb}`,ax=`fade`,ox=`hide`,sx=`show`,cx=`showing`,lx={animation:`boolean`,autohide:`boolean`,delay:`number`},ux={animation:!0,autohide:!0,delay:5e3},dx=class e extends Ph{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ux}static get DefaultType(){return lx}static get NAME(){return Yb}show(){Y.trigger(this._element,rx).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(ax),this._element.classList.remove(ox),nh(this._element),this._element.classList.add(sx,cx),this._queueCallback(()=>{this._element.classList.remove(cx),Y.trigger(this._element,ix),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||Y.trigger(this._element,tx).defaultPrevented||(this._element.classList.add(cx),this._queueCallback(()=>{this._element.classList.add(ox),this._element.classList.remove(cx,sx),Y.trigger(this._element,nx)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(sx),super.dispose()}isShown(){return this._element.classList.contains(sx)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case`mouseover`:case`mouseout`:this._hasMouseInteraction=t;break;case`focusin`:case`focusout`:this._hasKeyboardInteraction=t;break}if(t){this._clearTimeout();return}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Y.on(this._element,Zb,e=>this._onInteraction(e,!0)),Y.on(this._element,Qb,e=>this._onInteraction(e,!1)),Y.on(this._element,$b,e=>this._onInteraction(e,!0)),Y.on(this._element,ex,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t](this)}})}};Lh(dx),sh(dx);var fx=_(t()),px=`shared.unspecifiedError`,mx=class extends _t{constructor(){super(Xe.getPhrase(px,`title`))}get name(){return`UnspecifiedError`}get heading(){return Xe.getPhrase(px,`heading`)}get description(){return Xe.getPhrase(px,`description`)}get cta(){return!1}},X=_(ht()),Z=lt(),hx=class extends h{onShowAlert(e){if(!this.layoutOptions.options.alertRegion)return super.onShowAlert(e);let{ctor:t,collection:n}=e,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,(0,Z.jsx)(t,{alerts:r,removeAlert:e=>fx.default.channel(o.ALERT).trigger(`remove:alert`,e)}))}},gx=function(e){return e.ET=`Eastern Standard Time`,e}({}),_x={[gx.ET]:{name:`Eastern Time`,timezone:`America/New_York`,code:`ET`}},vx={convertToUTCString(e,t=gx.ET){return e?bt.getUtcStringByTimezone(e,_x[t].timezone):``},convertUTCToTimezoneDate(e,t=gx.ET){if(!e||!t)return new Date;let n=new Date(e),r=new Intl.DateTimeFormat(`en-US`,{timeZone:_x[t].timezone,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`}).format(n);return new Date(r)}},yx=!1,bx=!1,xx=!1,Sx=!0,Cx=!0,wx=new class extends A{get name(){return`LayoutHelper`}shouldHideNav(){return yx}disableNav(){yx=!0}enableNav(){yx=!1}shouldHideHeader(){return bx}disableHeader(){bx=!0}enableHeader(){bx=!1}lockContentWidth(){xx=!0,this.trigger(`change:lockContentWidth`)}unlockContentWidth(){xx=!1,this.trigger(`change:lockContentWidth`)}shouldLockContentWidth(){return!!xx}shouldShowSearch(){return Cx}enableSearch(){Cx=!0}disableSearch(){Cx=!1}enableLogoClick(){Sx=!0}disableLogoClick(){Sx=!1}shouldAllowLogoClick(){return Sx}},Tx={CONTENT:`content`,POPUP:`popup`,ALERT:`alert`},Ex={DEFAULT_LAYOUT:`DefaultLayout`},Q=function(e){return e.MustCompleteOnboarding=`must_complete_onboarding`,e.StudentWorkspaceSharing=`student_ws_sharing`,e.StudentToStudentMessaging=`student_to_student_messaging`,e.HideResourcesForStudents=`hide_resources_for_students`,e.LibraryReview=`library_review`,e.SchoolMessaging=`school_messaging`,e.LegacyTvNaming=`legacy_tv_naming`,e.HideHostedLibraries=`hide_hosted_libraries`,e.MaxCustomLibraries=`max_custom_libraries`,e.AutoCaptioning=`auto_captioning`,e.Topics=`subjects`,e.NewDashboards=`new_dashboards`,e.ShareToGoogleClassroom=`share_to_google_classroom`,e.ShareToMicrosoftTeams=`share_to_microsoft_teams`,e.DefaultPlaybackQuality=`playback_quality_default`,e.DefaultLocalCachePlaybackQuality=`playback_quality_local_cache_default`,e.EnableSubtitlesDefault=`playback_subtitles_enabled_default`,e.LTI=`lti`,e.HasNewClassificationView=`new_classification_view`,e.HasCuratedDiscoverDashboards=`has_curated_discover_dashboards`,e.HasLiteSearchDropdown=`has_lite_search_dropdown`,e.HasSpecialEventCalendar=`has_special_event_calendar`,e.PreviewVideos=`preview_videos`,e.DomainSettings=`domain_settings`,e.InviteColleague=`invite_colleague`,e.ExchangeTvProductOption=`exchange_tv_product_option`,e.MyVideosFolders=`my_videos_folders`,e.TvRegion=`tv_region`,e.ShareOverrideRestrictions=`share_override_restrictions`,e.HasTopicDirectories=`has_topic_directories`,e.MessageFrequencyOption=`message_frequency`,e.HasTopicVideoListFeature=`has_topic_video_list_feature`,e.HasManageGrouPermissions=`has_manage_group_permissions`,e.ExperimentalInteractiveQuestions=`experimental_interactive_questions`,e.PublicInteractiveAttempts=`public_interactive_attempts`,e.HasClassrooms=`has_classrooms`,e.HasNewSearch=`has_new_search`,e.HasPlayPageTranscript=`has_play_page_transcript`,e.HasShareFlowV2=`has_share_flow_v2`,e.HasPartnerProfiles=`has_partner_profiles`,e.PreferredTheme=`preferred_theme`,e.HasHubEntry=`has_hub_entry`,e.HasEnabledViviPlayback=`has_enabled_vivi_playback`,e.HasEnabledViviStudentCasting=`has_enabled_vivi_student_casting`,e.HasEnabledAppleTvPlayback=`has_enabled_apple_tv_playback`,e.HasDisplayedTutorialVideosProductTip=`has_displayed_tutorial_videos_spotlight`,e.HasDismissedAnalyticsTutorial=`has_dismissed_analytics_tutorial`,e.HasDismissedOpenClassroomsTutorial=`has_dismissed_open_classrooms_tutorial`,e.HasDismissedSearchAndDiscoverTutorial=`has_dismissed_search_and_discover_tutorial`,e.HasDismissedClassroomsTutorial=`has_dismissed_classrooms_tutorial`,e.HasDismissedMySharesTutorial=`has_dismissed_my_shares_tutorial`,e.HasDismissedMyVideosTutorial=`has_dismissed_my_videos_tutorial`,e.HasDismissedPlaylistsTutorial=`has_dismissed_playlists_tutorial`,e.ShowExchangeSearchResultsUser=`show_exchange_search_results_user`,e.UserEnabledPreviewVideos=`user_enabled_preview_videos`,e.LiteUpgradeTypeCustomer=`lite_upgrade_type_customer`,e.PolicyEndTime=`policy_end_time`,e.ReferralCount=`referral_count`,e.HasCompletedOnboardingV1=`has_completed_onboarding`,e.BulkOnboardingPreferencesState=`bulk_onboarding_preferences_state`,e.HasCompletedOnboardingV2=`has_completed_onboarding_v2`,e.HasExitedOnboarding=`has_exited_onboarding`,e.HasCompletedOnboardingStepSelectRole=`has_completed_onboarding_step_select_role`,e.HasCompletedOnboardingStepSchoolLevel=`has_completed_onboarding_step_school_level`,e.HasCompletedOnboardingStepAudiencePreferences=`has_completed_onboarding_step_audience_preferences`,e.HasCompletedOnboardingStepSelectCurriculum=`has_completed_onboarding_step_select_curriculum`,e.HasCompletedOnboardingStepSubjects=`has_completed_onboarding_step_subjects`,e.StudentInteractives=`student_interactives`,e.ExpandSchoolLibrary=`expand_school_library`,e.PrimaryProduct=`primary_product`,e.ImmediateFeedbackInteractives=`immediate_feedback_interactives`,e.LiteStudentCustomLibraries=`lite_student_custom_libraries`,e.HasEnabledRostering=`has_enabled_rostering`,e.DefaultCitationStyle=`default_citation_style`,e.HasStudentReach=`has_student_reach`,e.StudentReachClassroomSize=`student_reach_classroom_size`,e.SchoolStartTime=`school_start_time`,e.SchoolEndTime=`school_end_time`,e.Timezone=`timezone_iana`,e.ClickViewLive=`clickview_live`,e.HasStudentLowerPresentations=`students_lower_presentations`,e}({}),Dx=`shared.pageRedirectedError`,Ox=class extends _t{constructor(e){super(`Redirecting from ${R.getHref(e)}`),this.appLink=e}get name(){return Xe.getPhrase(Dx,`title`)}get heading(){return Xe.getPhrase(Dx,`heading`)}get description(){return Xe.getPhrase(Dx,`description`)}get origin(){return this.appLink}},kx={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`}}},Ax={domainLibraries(e,t,n,r){return{url:Vt.urlBuilder(`/api/domain/v2/me/libraries`,{type:e,maxCategoryDepth:0}),key:`libraries:${e.sort().join(`:`)}`,formatData:e=>e.map(e=>e.data),success:t,error:n,always:r}},libraryRequestLibraries(){return{url:`{gateway}/v1/library-requests/libraries`,key:`libraries`}},librariesWithCategories(){return{url:Vt.urlBuilder(`/api/domain/v2/me/libraries`,{type:[`sharedLibrary`,`customLibrary`,`unpublishedCustomLibrary`],maxCategoryDepth:5}),key:`libraries:with:categories`,normalize:!1}},librariesWithOwnerLogos(e,t,n,r){return e.sort(),{url:Vt.urlBuilder(`/api/domain/v2/objects`,{query:Ut.LIBRARY_COLLECTION,id:e}),key:`libraries:owner:logo:${e.join(`,`)}`,success:t,error:n,always:r}},library(e,t,n,r){return{url:Vt.urlBuilder(`{gateway}/v1/objects/${e}`,{query:Ut.LIBRARY}),key:`library:${e}`,success:t,error:n,always:r}},exchange(e){return{url:Vt.urlBuilder(`{gateway}/v1/objects/${e}`,{query:`categorytree`}),key:`exchange`}},streamableLearning(){return{url:`{gateway}/v1/streamable-learning-library`,key:`streamable:learning`}},librarySubscribers(e,t){let n={};return t&&(n.cursor=t),{url:Vt.urlBuilder(`{gateway}/v1/library-requests/libraries/${e}/subscribers`,n),key:`library:subscribers:${e}:${t}`}},libraryOwner(e){return{url:`{gateway}/v1/library-requests/libraries/${e}/subscribers?ownerOnly=true`,key:`library:owner:${e}`,formatData:e=>It.first(e.data)}},updateSubscriberPermissions(e,t,n,r,i){return{url:`{gateway}/v1/libraries/${e}/library-request-permissions`,key:`update:subscriber:permissions:${e}:${t}`,type:Ft.PUT,data:{customerId:t,granted:n},invalidationKeys:[`library:owner:${e}`,`library:subscribers:${e}`],success:r,error:i}},removeSubscriber(e,t,n,r){return{url:`{gateway}/v1/objects/${e}/subscribedcustomers?memberId=${t}`,key:`revoke:subscription:${e}:${t}`,type:Ft.DELETE,invalidationKeys:[`library:subscribers:${e}`],success:n,error:r}},folder(e,t,n,r){return{url:`{gateway}/v1/objects/${e}?query=banner,libraries`,key:`library:folder:${e}`,success:t,error:n,always:r}},videoFolders(e){return{url:`{gateway}/v1/objects/${e}/categories?query=libraries`,key:`video:folders:${e}`}},folderParentTree(e,t,n,r){return{url:`/api/domain/v2/categories/${e}/parent-tree?includeAll=false`,key:`folder:parent:tree${e}`,success:t,error:n,always:r}},childFolders(e,t,n,r,i){let a=`{gateway}/v1/objects/${e}/categories?query={limit:100}thumbnail`,o=`child:folders:${e}`;return t&&(a+=`&cursor=${t}`,o+=`:${t}`),{url:a,key:o,formatData:e=>{let t=e.data.sort((e,t)=>e.name.toLowerCase().localeCompare(t.name.toLowerCase()));return{...e,data:t}},success:n,error:r,always:i}},addToLibrary(e,t){let n=[`folder`,`videos`,e.metadata.destinationCategoryId,t].filter(e=>!!e).join(`:`);return{url:`{gateway}/v1/library-requests`,key:`add:${e.objectId}:to:${e.destinationLibraryId}:${e.metadata.destinationCategoryId}`,type:Ft.POST,data:e,invalidationKeys:n}},libraries(){return{url:`{gateway}/v1/users/me/libraries`,key:`objects:libraries`}},libraryExport(e){return{url:`{gateway}/v1/libraries/export`,key:`library:export`,type:Ft.POST,data:e}},libraryExportV2(e){return{url:`{gateway}/v2/libraries/export`,key:`library:export:v2`,type:Ft.POST,data:e}}},jx={userProducts(e,t){return{url:`{gateway}/v1/users/me/products`,key:`user:products`,normalizeOptions:{namespace:`product`},success:e,error:t,bootstrapName:Wt.PRODUCTS}}},Mx={get(e,t){return e?.[t]?.value},getCustomerSettingsRequest(e,t){return e?.isAuthenticated?Fx.customerSettings(t?.success,t?.error):Fx._publicCustomerSettings(t?.success,t?.error)},getUserSettingsRequest(e,t){return e?.isAuthenticated?Fx.userSettings(t?.success,t?.error):Fx._publicUserSettings(t?.success,t?.error)},formatSettings(e){return e.reduce((e,t)=>(e[t.name]=t,e),{})}},Nx=[{name:`new_classification_view`,value:!0},{name:`must_complete_onboarding`,value:!1},{name:`has_completed_onboarding`,value:!0},{name:`has_displayed_presentation_switcher_spotlight`,value:!0},{name:`has_curated_discover_dashboards`,value:!0},{name:`has_special_event_calendar`,value:!0},{name:`new_movies_and_tv`,value:!0},{name:`has_partner_profiles`,value:!0}],Px=()=>(O.throw(new f(`SettingRequests.setPublicFormatSettings must be called before using public requests in SettingRequests`)),null),Fx={setPublicFormatSettings(e){e&&(Px=e)},organisationSettings(e,t,n){return{key:`settings:organisation:${e}`,url:`{gateway}/v1/organisations/${e}/settings`,normalizeOptions:{idAttribute:`name`},formatData:Mx.formatSettings,success:t,error:n}},customerSetting(e,t,n){return{key:`settings:customer:${e}`,url:`{gateway}/v1/customers/me/settings?type=${e}`,normalizeOptions:{idAttribute:`name`},formatData:e=>It.first(e),success:t,error:n}},customerSettings(e,t){return{key:`customer:settings`,url:`{gateway}/v1/customers/me/settings?(customerSettings)`,normalizeOptions:{idAttribute:`name`},formatData:Mx.formatSettings,success:e,error:t}},_publicCustomerSettings(e,t){return{key:`customer:settings`,url:`simulated:/api/domain/v3/settings/public`,normalizeOptions:{idAttribute:`name`},formatData:Px,success:e,error:t,successResponse:()=>Nx}},_publicUserSettings(e,t){return{key:`user:settings`,url:`simulated:/api/domain/v3/settings/public`,normalizeOptions:{idAttribute:`name`},formatData:Px,success:e,error:t,successResponse:()=>Nx}},userSetting(e,t,n){return{key:`settings:user:${e}`,url:`{gateway}/v1/customers/me/settings?type=${e}`,normalizeOptions:{idAttribute:`name`},formatData:e=>It.first(e),success:t,error:n}},userSettings(e,t){return{key:`user:settings`,url:`{gateway}/v1/users/me/settings?(userSettings)`,normalizeOptions:{idAttribute:`name`},formatData:Mx.formatSettings,success:e,error:t}},updateUserSetting(e,t,n,r){return{key:`update:user:setting:${e.name}`,url:`{gateway}/v1/users/me/settings`,data:e,type:Ft.PUT,formatData:()=>e,normalizeOptions:{idAttribute:`name`},success:t,error:n,always:r}},updateCustomerSetting(e,t,n,r){return{key:`update:customer:setting:${e.name}`,url:`{gateway}/v1/customers/me/settings`,data:e,type:Ft.PUT,formatData:()=>e,normalizeOptions:{idAttribute:`name`},success:t,error:n,always:r}}},Ix=Xe.encloseNamespace(`streamableShared.noAccess`),Lx=class extends _t{constructor(e,t){super(`Current user's school does not have access to Streamable Learning`),this.config=e,this.allowCta=t}get name(){return`NoAccessError`}get heading(){return Ix(`heading`)}get description(){return Ix(`body`,{liteUrl:this.config.liteUrl,escapeText:!0})}get cta(){return this.allowCta?{text:Ix(`requestAccess`),className:`btn btn-dark`,appLink:{application:V.DEFAULT,action:Jt.Default.CONTACT_US_POPUP}}:!1}get injectDescriptionHtml(){return!0}},Rx=`streamableShared.accountSetup`,zx=class extends _t{constructor(e){super(`Current user's account is not setup correctly for Streamable Learning`),this.config=e}get name(){return`AccountSetupError`}get heading(){return Xe.getPhrase(Rx,`heading`)}get description(){return Xe.getPhrase(Rx,`body`)}get cta(){return!1}get injectDescriptionHtml(){return!0}},Bx={streamablePresentation(){return{url:Vt.urlBuilder(`/api/subjects/presentations/available`,{type:Yt.StreamableLearning}),key:`streamable:learning:presentations`,bootstrapName:`availablePresentations`,formatData:e=>e[0],normalizeOptions:{namespace:`internal:presentation`}}}},Vx=[{application:V.DEFAULT,action:Jt.Default.ERROR},{application:V.DEFAULT,action:Jt.Default.DEV_ERROR},{application:V.DEFAULT,action:Jt.Default.CHALLENGE},{application:V.DEFAULT,action:Jt.Default.LOG_OUT},{application:V.DEFAULT,action:Jt.Default.CONTACT_US_POPUP},{application:V.DEFAULT,action:Jt.Default.REDIRECTED_ERROR}].reduce((e,t)=>(e[Hx(t)]=!0,e),{});function Hx(e){return e.application+e.action}function Ux(e,t){qt._forcePushContext(e),wx.disableNav(),te.routingEnded(),O.throw(t??new mx)}async function Wx(e,t){let{appLink:n,shell:r}=e;try{let i=await xt(r.store,Gt.currentUser());if(!i.isAuthenticated){t(e);return}let a=xt(r.store,jx.userProducts()),o=xt(r.store,Bx.streamablePresentation()),s=xt(r.store,Fx.customerSettings()),c=xt(r.store,Ax.libraries()),l=xt(r.store,Ax.streamableLearning()),u=await a,d=await o,f=await c,p=await l,m=await s,h=u.find(e=>e.id===Bt.StreamableLearning),g=f.find(e=>e.id.toString()===p.objectId.toString())&&!!d;if(h&&g&&!m[Q.ClickViewLive].value){t(e);return}if(Vx[Hx(e.appLink)]){wx.disableNav(),t(e);return}if(h&&g&&m[Q.ClickViewLive].value){Ux(n,new Ox(e.appLink));return}let _=await xt(r.store,kx.config());if(!h){Ux(n,new Lx(_,!(await xt(r.store,Gt.permissions()))[Rt.StudentExperience]&&i.instanceRegion===Lt.US));return}Ux(n,new zx(_))}catch{t(e)}}var Gx=[{application:V.DEFAULT,action:Jt.Default.INDEX},{application:V.DEFAULT,action:Jt.Default.ERROR},{application:V.DEFAULT,action:Jt.Default.NOT_FOUND},{application:V.DEFAULT,action:Jt.Default.DEV_ERROR},{application:V.DEFAULT,action:Jt.Default.DIALOG_ERROR},{application:V.DEFAULT,action:Jt.Default.CONTACT_US},{application:V.DEFAULT,action:Jt.Default.CONTACT_US_POPUP},{application:V.DASHBOARD,action:Jt.Dashboard.HOME},{application:V.DASHBOARD,action:Jt.Dashboard.DASHBOARD_WIDGET},{application:V.DASHBOARD,action:Jt.Dashboard.CONTENT_PARTNERS},{application:V.DASHBOARD,action:Jt.Dashboard.COMPANY_DASHBOARD},{application:V.SUBJECTS,action:Jt.Subjects.CLASSIFICATION},{application:V.SUBJECTS,action:Jt.Subjects.CLASSIFICATION_ALL},{application:V.SUBJECTS,action:Jt.Subjects.CLASSIFICATION_TOPICS},{application:V.SEARCH,action:Jt.Search.HOME},{application:V.VIDEOS,action:Jt.Videos.PLAY_VIDEO},{application:V.VIDEOS,action:Jt.Videos.SIGN_IN_POPUP},{application:V.CALENDAR,action:Jt.Calendar.CALENDAR},{application:V.CALENDAR,action:Jt.Calendar.CALENDAR_MONTH},{application:V.CALENDAR,action:Jt.Calendar.SPECIAL_EVENT_LIST},{application:V.LIVESTREAMS,action:Jt.Livestreams.LIVESTREAM}].reduce((e,t)=>(e[Kx(t)]=!0,e),{});function Kx(e){return e.application+e.action}function qx(e){qt._forcePushContext(e),wx.disableNav(),te.routingEnded(),O.throw(new mx)}async function Jx(e,t){try{let n=await xt(e.shell.store,Gt.currentUser());if(Gx[Kx(e.appLink)]||n?.isAuthenticated){t(e);return}te.routingEnded(),R.trigger({application:V.DEFAULT,action:Jt.Default.CHALLENGE},{replace:!0})}catch{qx(e.appLink)}}var Yx=`public:origin`;async function Xx(e,t){let n=$t.get(Yx),r=e.appLink.params?.origin;if(n||!r){t(e);return}if((await xt(e.shell.store,Gt.currentUser()))?.isAuthenticated){t(e);return}$t.set(Yx,r),t(e)}var Zx=class extends I{get channelName(){return V.CALENDAR}get appRoutes(){return{calendar:`calendar`,"calendar/:month":`calendarMonth`}}get appLinks(){return[`specialEventList`]}get filters(){return[Wx,Jx,Xx]}},Qx=class extends hx{get name(){return`Calendar`}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:Tx.ALERT}}}get channelName(){return V.CALENDAR}static get router(){return Zx}async calendar(e){let{CalendarView:t,sanitizeCalendarViewParams:n}=await Ht(async()=>{let{CalendarView:e,sanitizeCalendarViewParams:t}=await import(`./JtFbyaXc.chunk.js`);return{CalendarView:e,sanitizeCalendarViewParams:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{month:bt.format(vx.convertUTCToTimezoneDate(new Date().toISOString()),`MMMM-YYYY`),queryParams:n(e)}))}async calendarMonth(e,t){let n=t.year||new Date().getFullYear(),{CalendarView:r,sanitizeCalendarViewParams:i}=await Ht(async()=>{let{CalendarView:e,sanitizeCalendarViewParams:t}=await import(`./JtFbyaXc.chunk.js`);return{CalendarView:e,sanitizeCalendarViewParams:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(r,{month:`${e}-${n}`,queryParams:i(t)}))}async specialEventList(e){let{SpecialEventListView:t}=await Ht(async()=>{let{SpecialEventListView:e}=await import(`./Clh6wBrg.chunk.js`);return{SpecialEventListView:e}},__vite__mapDeps([118,1,2,5,6,7,8,34,3,4,35,17,18,19,20,21,22,23,36,24,25,26,37,10,38,39,40,30,41,42,43,44,45,46,47,112,119]));this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(t,{from:e.from,to:e.to,date:e.date,closePopup:()=>this.layout.closePopup()}))}},$x=class extends I{get channelName(){return V.DASHBOARD}get appRoutes(){return{"(/)":`index`,"discover/:id(/:name)(/)":`dashboardWidget`,"partners(/)":`contentPartners`,"partners/:id(/:name)(/)":`companyDashboard`}}get filters(){return[Wx,Jx,Xx]}},eS=class extends hx{get name(){return`Dashboard Application`}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:Tx.ALERT}}}get channelName(){return V.DASHBOARD}static get router(){return $x}async index(e){let{DashboardView:t,sanitizeDashboardViewParams:n}=await Ht(async()=>{let{DashboardView:e,sanitizeDashboardViewParams:t}=await import(`./DMq5Gp-U2.chunk.js`);return{DashboardView:e,sanitizeDashboardViewParams:t}},__vite__mapDeps([120,1,2,3,4,5,7,8,9,10,6,11,12,121,122,123,124,54,51,13,56,22,23,39,125,126,35,127,128,57,58,129,59,60,130,109,110,131,132,14,94,18,95,133,42,69,134,40,21,135,103,105,112,136,44,45,46,137,62,37,63,93,68,96,97,72,81,98,64,36,24,25,26,38,138,139,140,141,84,85,31,32,142,143,144,15,16,17,19,20,27,28,29,30,33,145,79,80,61,82,83,78,86,87,146,147,148,66,149,150,151,152,153,154,75,76,77,65,155,107,156,157,158,159,160,161,104,67,70,162,163,164,91,92,99,100,101,108,111,106,113,116]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{queryParams:n(e)}))}async dashboardWidget(e){let{DashboardWidgetView:t}=await Ht(async()=>{let{DashboardWidgetView:e}=await import(`./BMl02f_62.chunk.js`);return{DashboardWidgetView:e}},__vite__mapDeps([165,1,2,126,3,4,5,6,35,54,51,127,128,57,58,129,8,59,60,130,22,23,109,110,131,132,7,14,94,18,95,133,42,69,134,40,21,135,10,103,105,112,136,44,45,46,137,62,37,63,93,68,96,97,72,81,98,64,36,24,25,26,38,138,139,140,141,39,84,85,31,32,142,9,11,12,155,80,61,82,107,156,106,113,166,100,167]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{widgetId:e}))}async companyDashboard(e,t,n){let r=typeof t==`string`?n:t,{CompanyDashboardView:i,sanitizeDashboardParams:a}=await Ht(async()=>{let{CompanyDashboardView:e,sanitizeDashboardParams:t}=await import(`./DIHDe4Sg.chunk.js`);return{CompanyDashboardView:e,sanitizeDashboardParams:t}},__vite__mapDeps([168,1,2,3,4,5,7,8,35,9,10,6,11,12,121,122,123,124,54,51,13,56,22,23,39,125,126,127,128,57,58,129,59,60,130,109,110,131,132,14,94,18,95,133,42,69,134,40,21,135,103,105,112,136,44,45,46,137,62,37,63,93,68,96,97,72,81,98,64,36,24,25,26,38,138,139,140,141,84,85,31,32,142,143,144,15,16,17,19,20,27,28,29,30,33,145,79,80,61,82,83,78,86,87,146,147,148,66,149,150,151,152,153,154,75,76,77,65,155,107,156,157,158,159,160,161,104,67,70,162,163,164,169,170,171,172,173,174,175,176,108,111,106,177,113,178,100,116]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(i,{companyId:e,queryParams:a(r)}))}async contentPartners(){let{ContentPartnersView:e}=await Ht(async()=>{let{ContentPartnersView:e}=await import(`./CeWjJPIz.chunk.js`);return{ContentPartnersView:e}},__vite__mapDeps([179,1,2,5,7,8,9,10,6,11,12,57,58,91,92,3,4,22,23,93,94,18,95,42,68,96,97,72,81,98,99,45,46,100,101,138,139,140,180,13,25,181,182,39,37,183,177,184,185,178,116,186]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(e,{}))}},tS=class extends I{get channelName(){return V.DEFAULT}get appRoutes(){return{"contact-us(/)":`contactUs`,"*path":`catchAllRoutes`}}get externalRoutes(){return{"logout(/)":`logOut`,"challenge(/)":`challenge`}}get appLinks(){return[`devError`,`dialogError`,`error`,`notFound`,`contactUsPopup`,`giveFeedback`,`redirectedError`]}get filters(){return[Wx,Jx,Xx]}},nS=class extends hx{get name(){return`Default Application`}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:Tx.ALERT}}}get channelName(){return V.DEFAULT}static get router(){return tS}giveFeedback(){Ht(async()=>{let{GiveFeedbackView:e}=await import(`./BoxedFO8.chunk.js`);return{GiveFeedbackView:e}},__vite__mapDeps([187,1,2,122,123,3,4,124,7,8,54,51,13,56,22,23,39,5,125,57,58,59,60,102,10,103,104,105,106,107,62,37,63,188,147,148,89,189,21,69,112,70,113,190,191,31,32,71,162,97,72,171,82,192])).then(({GiveFeedbackView:e})=>{this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(e,{product:Bt.StreamableLearning,closePopup:()=>this.layout.closePopup()}))})}catchAllRoutes(){O.throw(new vt)}notFound(){let e=fx.default.channel(`error:view`).request(`current:error`);Ht(async()=>{let{NotFoundView:e}=await import(`./CcDgbmw52.chunk.js`);return{NotFoundView:e}},__vite__mapDeps([193,1,2])).then(({NotFoundView:t})=>{this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{error:e}))})}error(){let e=fx.default.channel(`error:view`).request(`current:error`);Ht(async()=>{let{ErrorView:e}=await import(`./D5Jnyjf8.chunk.js`);return{ErrorView:e}},[]).then(({ErrorView:t})=>{this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{error:e}))})}redirectedError(){let e=fx.default.channel(`error:view`).request(`current:error`);Ht(async()=>{let{PageRedirectedErrorView:e}=await import(`./DNO0KpY72.chunk.js`);return{PageRedirectedErrorView:e}},__vite__mapDeps([194,1,2,5,7,8,9,10,6,11,12,108,3,4,22,23,109,110,111,70,44,46,195])).then(({PageRedirectedErrorView:t})=>{this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{error:e}))})}dialogError(){let e=fx.default.channel(`error:view`).request(`current:error`);if(!e)return;let{dialogOptions:t}=e;Ht(async()=>{let{DialogView:e}=await import(`./0xQRFMBY.chunk.js`);return{DialogView:e}},__vite__mapDeps([196,1,2,3,4,8])).then(({DialogView:n})=>{this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(n,{title:t.title,text:t.text,buttons:t.buttons,onDone:e.onDone,onFail:e.onFail,closePopup:()=>this.layout.closePopup()}))})}devError(){let e=fx.default.channel(`error:view`).request(`current:error`);Ht(async()=>{let{DevErrorView:e}=await import(`./UEJgtRox.chunk.js`);return{DevErrorView:e}},__vite__mapDeps([197,1,2,4,50,51,52,9,10,5,6,11,12,198])).then(({DevErrorView:t})=>{this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{error:e}))})}async contactUs(){let{ContactUsView:e}=await Ht(async()=>{let{ContactUsView:e}=await import(`./BV74ZRR22.chunk.js`);return{ContactUsView:e}},__vite__mapDeps([199,1,10,2,122,123,3,4,124,7,8,54,51,13,56,22,23,39,5,125,200,201,58,14,202,203,189,21,188,89,204,9,6,11,12,129,108,109,110,111,190,191,88,44,45,46,116,205]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(e,{fromPageLoad:!0,closePopup:()=>this.layout.closePopup()}))}async contactUsPopup(){let{ContactUsView:e}=await Ht(async()=>{let{ContactUsView:e}=await import(`./BV74ZRR22.chunk.js`);return{ContactUsView:e}},__vite__mapDeps([199,1,10,2,122,123,3,4,124,7,8,54,51,13,56,22,23,39,5,125,200,201,58,14,202,203,189,21,188,89,204,9,6,11,12,129,108,109,110,111,190,191,88,44,45,46,116,205]));this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(e,{fromPageLoad:!1,closePopup:()=>this.layout.closePopup()}))}},rS=class extends I{get channelName(){return V.LIVESTREAMS}get appRoutes(){return{"livestreams/:id(/:slug)(/)":`livestream`}}get appLinks(){return[]}get filters(){return[Wx,Jx,Xx]}},iS=class extends hx{get name(){return`Livestreams Application`}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:Tx.ALERT}}}get channelName(){return V.VIDEOS}static get router(){return rS}async livestream(e){let t=qt.fromPageLoad(),{LivestreamView:n}=await Ht(async()=>{let{LivestreamView:e}=await import(`./CwI-7tep2.chunk.js`);return{LivestreamView:e}},__vite__mapDeps([206,1,10,2,122,123,3,4,124,7,8,54,51,13,56,22,23,39,5,125,200,201,58,14,202,203,189,21,188,89,204,6,35,9,11,12,129,15,36,24,25,26,37,38,139,40,42,112,177,190,191,207,183,41,114,43,73,18,88,44,45,46,100,116,208]));this.layout.showChildView(t?Tx.CONTENT:Tx.POPUP,(0,Z.jsx)(n,{id:e,fromPageLoad:t,closePopup:()=>this.layout.closePopup()}))}},aS=class extends I{get channelName(){return V.SEARCH}get appRoutes(){return{"search(/)":`index`}}get filters(){return[Wx,Jx,Xx]}},oS=class extends hx{get name(){return`Search Application`}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:Tx.ALERT}}}get channelName(){return V.SEARCH}static get router(){return aS}async index(e){let{SearchResultsView:t}=await Ht(async()=>{let{SearchResultsView:e}=await import(`./CXNve4Wq2.chunk.js`);return{SearchResultsView:e}},__vite__mapDeps([209,1,10,2,126,3,4,5,6,35,54,51,127,128,57,58,129,8,59,60,130,22,23,109,110,131,132,7,14,94,18,95,133,42,69,134,40,21,135,103,105,112,136,44,45,46,137,62,37,63,93,68,96,97,72,81,98,64,36,24,25,26,38,138,139,140,141,39,84,85,31,32,142,9,11,12,55,49,50,52,53,56,15,61,65,66,67,70,71,73,74,143,144,48,75,76,77,78,79,13,80,82,83,27,28,29,86,87,88,89,90,102,104,106,107,108,111,180,181,182,146,147,148,30,149,183,177,113,190,191,184,185,166,100,210]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{queryParams:e}))}},sS=class extends I{get channelName(){return V.SETTINGS}get appRoutes(){return{"settings(/)":`index`,"settings/profile(/)":`profileDetails`,"settings/account(/)":`account`}}get appLinks(){return[`createLtiPlatform`,`deleteLtiPlatform`,`renameLocalCache`,`deleteLocalCache`,`updateLocalCache`,`approveAllVideos`,`turnOffContentReview`]}get filters(){return[Wx,Jx]}},cS=class extends hx{get name(){return`Settings Application`}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:Tx.ALERT}}}get channelName(){return V.SETTINGS}static get router(){return sS}async index(){let{SettingsView:e}=await Ht(async()=>{let{SettingsView:e}=await import(`./BXT8nHry2.chunk.js`);return{SettingsView:e}},__vite__mapDeps([211,1,2,5,9,10,6,11,12,22,23,39,177,212,112,44,45,46,213]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(e,{}))}async profileDetails(){let{ProfileDetailsView:e}=await Ht(async()=>{let{ProfileDetailsView:e}=await import(`./B7if0Lk52.chunk.js`);return{ProfileDetailsView:e}},__vite__mapDeps([214,1,10,2,122,123,3,4,124,7,8,54,51,13,56,22,23,39,5,125,9,6,11,12,57,58,59,60,153,154,170,37,190,191,32,215,176,85,28,86,212,112,44,45,46,216]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(e,{}))}async account(){let{AccountSettingsView:e}=await Ht(async()=>{let{AccountSettingsView:e}=await import(`./B1jitqYS2.chunk.js`);return{AccountSettingsView:e}},__vite__mapDeps([217,1,2,122,123,3,4,124,7,8,54,51,13,56,22,23,39,5,125,9,10,6,11,12,55,49,50,52,53,57,58,15,14,59,60,61,62,37,63,64,65,66,67,68,69,70,31,32,71,72,73,74,153,154,141,190,191,85,215,176,28,86,212,112,44,45,46,218]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(e,{}))}},lS={TOP_NAV:`top:nav`,LEFT_NAV:`left:nav`,CONTENT:`content`,POPUP:`popup`,ALERT:`alert`,HIDDEN:`hidden`,PICTURE_IN_PICTURE:`picture:in:picture`},uS=class extends I{get channelName(){return V.SUBJECTS}get appRoutes(){return{"topics(/)":`classificationAll`,"topics/:id/topics":`classificationTopics`,"topics/:id(/:slug)(/)":`classification`}}get filters(){return[Wx,Jx,Xx]}},dS=class extends hx{get name(){return`Subject Application`}static get router(){return uS}get channelName(){return V.SUBJECTS}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:lS.ALERT}}}async classificationAll(){let{StreamableClassificationsView:e}=await Ht(async()=>{let{StreamableClassificationsView:e}=await import(`./CibcLNJP2.chunk.js`);return{StreamableClassificationsView:e}},__vite__mapDeps([219,1,2,5,7,8,9,10,6,11,12,14,15,169,3,4,54,51,17,18,19,145,127,22,23,79,13,80,61,69,81,82,83,78,24,25,26,27,28,29,84,85,86,87,146,147,148,138,139,97,140,39,66,30,37,149,150,130,109,110,131,170,171,172,102,103,104,105,106,107,176,40,21,190,191,45,46,220]));this.layout.showChildView(lS.CONTENT,(0,Z.jsx)(e,{}))}async classificationTopics(e){let{StreamableClassificationsView:t}=await Ht(async()=>{let{StreamableClassificationsView:e}=await import(`./CibcLNJP2.chunk.js`);return{StreamableClassificationsView:e}},__vite__mapDeps([219,1,2,5,7,8,9,10,6,11,12,14,15,169,3,4,54,51,17,18,19,145,127,22,23,79,13,80,61,69,81,82,83,78,24,25,26,27,28,29,84,85,86,87,146,147,148,138,139,97,140,39,66,30,37,149,150,130,109,110,131,170,171,172,102,103,104,105,106,107,176,40,21,190,191,45,46,220]));this.layout.showChildView(lS.CONTENT,(0,Z.jsx)(t,{id:e}))}async classification(e,t,n){let r=typeof t==`string`?n:t||{},{StreamableClassificationView:i,sanitizeStreamableClassificationParams:a}=await Ht(async()=>{let{StreamableClassificationView:e,sanitizeStreamableClassificationParams:t}=await import(`./lokG7Sha2.chunk.js`);return{StreamableClassificationView:e,sanitizeStreamableClassificationParams:t}},__vite__mapDeps([221,1,2,126,3,4,5,6,35,54,51,127,128,57,58,129,8,59,60,130,22,23,109,110,131,132,7,14,94,18,95,133,42,69,134,40,21,135,10,103,105,112,136,44,45,46,137,62,37,63,93,68,96,97,72,81,98,64,36,24,25,26,38,138,139,140,141,39,84,85,31,32,142,9,11,12,121,122,123,124,13,56,125,143,144,15,16,17,19,20,27,28,29,30,33,145,79,80,61,82,83,78,86,87,146,147,148,66,149,150,151,152,153,154,75,76,77,65,155,107,156,157,158,159,160,161,104,67,70,162,163,164,169,170,171,172,173,174,175,102,106,176,108,111,92,99,177,113,222,190,191,207,183,115,88,89,166,100,116,223]));this.layout.showChildView(lS.CONTENT,(0,Z.jsx)(i,{id:e,queryParams:a(r)},e))}};function fS(e){return e?et.pick(e,[`t`,`startTime`,`endTime`,`context`,`contextId`,`playNext`,`mtv`,`tocId`,`resourceId`]):{}}var pS=class extends I{get channelName(){return V.VIDEOS}get appRoutes(){return{"videos/:id(/:slug)(/)":`playVideo`}}get appLinks(){return[`previewPdf`,`signInPopup`,`classroomGuide`,`resourceGuidance`]}get filters(){return[Wx,Jx,Xx]}},mS=class extends hx{get name(){return`Videos Application`}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:Tx.ALERT}}}get channelName(){return V.VIDEOS}static get router(){return pS}async playVideo(e,t,n={}){let r=(typeof t==`string`?n:t)||{},{PlayView:i}=await Ht(async()=>{let{PlayView:e}=await import(`./DrDQfaFN2.chunk.js`);return{PlayView:e}},__vite__mapDeps([224,1,10,2,4,123,3,49,50,51,52,53,54,5,6,7,8,35,9,11,12,203,57,58,14,22,23,132,128,94,18,95,133,42,69,134,40,21,135,103,105,112,136,44,45,46,137,151,39,37,152,225,109,110,76,77,79,13,80,61,81,82,83,157,24,25,26,158,36,38,96,159,27,28,29,31,32,160,161,177,183,113,106,222,15,102,104,107,190,191,207,185,181,174,43,163,98,100,116,226]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(i,{id:e,params:fS(r)}))}async previewPdf(e,t){let{PreviewPdfView:n}=await Ht(async()=>{let{PreviewPdfView:e}=await import(`./BMjES83N2.chunk.js`);return{PreviewPdfView:e}},__vite__mapDeps([227,1,10,2,3,4,5,7,8,130,22,23,109,110,131,39,27,28,29,135,6,94,18,95,103,42,69,105,112,136,14,96,160,163,228]));this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(n,{id:e,videoId:t.videoId,errorImageUrl:tn.Fallbacks.RESOURCE_PREVIEW,closePopup:()=>this.layout.closePopup(),showBackButton:t.showBackButton}))}async signInPopup(){let{SignInPopupView:e}=await Ht(async()=>{let{SignInPopupView:e}=await import(`./CvqqZmNo2.chunk.js`);return{SignInPopupView:e}},__vite__mapDeps([229,1,2,3,4,5,22,23,39,88,89,45,46,230]));this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(e,{closePopup:()=>this.layout.closePopup()}))}classroomGuide(e){Ht(async()=>{let{VideoGuidanceClassroomGuideView:e}=await import(`./KCdpQ8qv2.chunk.js`);return{VideoGuidanceClassroomGuideView:e}},__vite__mapDeps([231,1,2,5,7,8,151,3,4,22,23,39,37,10,152,225,136,14,103,42,69,105,222,57,58,15,102,104,106,107,112,190,191,45,46])).then(({VideoGuidanceClassroomGuideView:t})=>{this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(t,{id:e,closePopup:()=>this.layout.closePopup()}))})}resourceGuidance(e){Ht(async()=>{let{VideoGuidanceResourcesView:e}=await import(`./XnBhLH-02.chunk.js`);return{VideoGuidanceResourcesView:e}},__vite__mapDeps([232,1,2,3,4,5,7,8,22,23,180,13,25,181,182,158,36,24,26,37,10,38,96,82,69,159,133,42,134,11,136,14,103,105,190,191,160,44,45,46,233])).then(({VideoGuidanceResourcesView:t})=>{this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(t,{id:e,closePopup:()=>this.layout.closePopup()}))})}};async function hS(e,t){try{e.registerApplication(nS).registerApplication(eS).registerApplication(dS).registerApplication(oS).registerApplication(mS).registerApplication(Qx).registerApplication(cS).registerApplication(iS),t(e)}catch{O.throw(new mx)}}var gS=class extends w{constructor(e){super(e),this.dialogOptions||O.throw(new f(`Please provide DialogOptions for your implementation of DialogError`))}get name(){return`DialogError`}onDone(){}onFail(){}},_S=`shared.chunkLoadError`,vS=/\/([^\s/]+\.css)/,yS=/\/([^\s/]+\.js)/,bS=class extends gS{constructor(e,t,n){super(Xe.getPhrase(_S,`title`,{chunkName:t})),this.product=`ClickView`,this.btnVariant=e,n&&(this.product=n)}get name(){return`ChunkLoadError`}get dialogOptions(){return{title:Xe.getPhrase(_S,`heading`,{product:this.product}),text:Xe.getPhrase(_S,`body`),buttons:[{text:Xe.getPhrase(_S,`reload`),className:`btn btn-${this.btnVariant}`,success:!0}]}}onDone(){d.Reload()}};function xS(e,t){window.addEventListener(`error`,n=>{let r=n?.target?.src||n?.target?.href;if(!r)return;let i=e=>e?.[1]??`Unknown Chunk`,a=r.match(yS);if(a&&r.includes(`/scripts/`)&&r.includes(`.chunk.js`)){O.throw(new bS(e,i(a),t));return}let o=r.match(vS);if(o&&r.includes(`/css/`)&&r.includes(`.chunk.css`)){O.throw(new bS(e,i(o),t));return}},!0)}var SS=class extends w{constructor(e,t){super(`User is using old version of the code. Old: ${e}. New: ${t}`)}get name(){return`OldVersionError`}},CS=class extends w{get name(){return`AlertError`}},wS={UPLOAD_COMPLETE:`upload:complete`,UPLOAD_SUCCESS:`upload:success`,FILES_SELECTED:`files:selected`,FILES_ADDED:`files:added`,UPLOAD_CANCELLED:`upload:cancelled`,PENDING_ITEM_READY_TO_WATCH:`pending:item:ready:to:watch`,PENDING_ITEM_STATUS_CHANGE:`pending:item:status:change`,PROCESSING_CANCELLED:`processing:cancelled`,UNLOCK_NAV:`upload:unlock:nav`,PROCESSING_FAILED:`processing:failed`},TS={PENDING_ITEMS:`pending:items:service`,VIDEO_UPLOAD:`video:upload:service`,SUBTITLE_UPLOAD:`subtitle:upload:service`,RESOURCE_UPLOAD:`resource:upload:service`,CONTEXTUAL_SEARCH:`contextual:search:service`,IMAGE_UPLOAD:`image:upload:service`,MIXED_MEDIA_UPLOAD:`media:upload:service`,BRAZE:`braze:client:service`},ES;function DS(e){if((!ES&&ES!==0||e)&&mn){var t=document.createElement(`div`);t.style.position=`absolute`,t.style.top=`-9999px`,t.style.width=`50px`,t.style.height=`50px`,t.style.overflow=`scroll`,document.body.appendChild(t),ES=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ES}function OS(){return(0,X.useState)(null)}function kS(e){e===void 0&&(e=cn());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function AS(e){let t=(0,X.useRef)(e);return t.current=e,t}function jS(e){let t=AS(e);(0,X.useEffect)(()=>()=>t.current(),[])}function MS(e=document){let t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}var NS=Fn(`modal-open`),PS=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return MS(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){let t={overflow:`hidden`},n=this.isRTL?`paddingLeft`:`paddingRight`,r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(ln(r,n)||`0`,10)+e.scrollBarWidth}px`),r.setAttribute(NS,``),ln(r,t)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){let t=this.getElement();t.removeAttribute(NS),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return t!==-1||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),t!==0)?t:(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state),t)}remove(e){let t=this.modals.indexOf(e);t!==-1&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},FS=_(ot()),IS=`show.role.className.style.children.backdrop.keyboard.onBackdropClick.onEscapeKeyDown.transition.runTransition.backdropTransition.runBackdropTransition.autoFocus.enforceFocus.restoreFocus.restoreFocusOptions.renderDialog.renderBackdrop.manager.container.onShow.onHide.onExit.onExited.onExiting.onEnter.onEntering.onEntered`.split(`.`);function LS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var RS;function zS(e){return RS||=new PS({ownerDocument:e?.document}),RS}function BS(e){let t=Ue(),n=e||zS(t),r=(0,X.useRef)({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:(0,X.useCallback)(e=>{r.current.dialog=e},[]),setBackdropRef:(0,X.useCallback)(e=>{r.current.backdrop=e},[])})}var VS=(0,X.forwardRef)((e,t)=>{let{show:n=!1,role:r=`dialog`,className:i,style:a,children:o,backdrop:s=!0,keyboard:c=!0,onBackdropClick:l,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:p,runBackdropTransition:m,autoFocus:h=!0,enforceFocus:g=!0,restoreFocus:_=!0,restoreFocusOptions:v,renderDialog:y,renderBackdrop:b=e=>(0,Z.jsx)(`div`,Object.assign({},e)),manager:x,container:S,onShow:C,onHide:w=()=>{},onExit:T,onExited:E,onExiting:D,onEnter:O,onEntering:k,onEntered:A}=e,j=LS(e,IS),M=Ue(),N=je(S),P=BS(x),F=Sn(),I=On(n),[L,R]=(0,X.useState)(!n),ee=(0,X.useRef)(null);(0,X.useImperativeHandle)(t,()=>P,[P]),mn&&!I&&n&&(ee.current=kS(M?.document)),n&&L&&R(!1);let z=gn(()=>{if(P.add(),oe.current=xn(document,`keydown`,ie),ae.current=xn(document,`focus`,()=>setTimeout(ne),!0),C&&C(),h){let e=kS(P.dialog?.ownerDocument??M?.document);P.dialog&&e&&!Re(P.dialog,e)&&(ee.current=e,P.dialog.focus())}}),te=gn(()=>{if(P.remove(),oe.current==null||oe.current(),ae.current==null||ae.current(),_){var e;(e=ee.current)==null||e.focus==null||e.focus(v),ee.current=null}});(0,X.useEffect)(()=>{!n||!N||z()},[n,N,z]),(0,X.useEffect)(()=>{L&&te()},[L,te]),jS(()=>{te()});let ne=gn(()=>{if(!g||!F()||!P.isTopModal())return;let e=kS(M?.document);P.dialog&&e&&!Re(P.dialog,e)&&P.dialog.focus()}),re=gn(e=>{e.target===e.currentTarget&&(l?.(e),s===!0&&w())}),ie=gn(e=>{c&&wn(e)&&P.isTopModal()&&(u?.(e),e.defaultPrevented||w())}),ae=(0,X.useRef)(),oe=(0,X.useRef)(),se=(...e)=>{R(!0),E?.(...e)};if(!N)return null;let ce=Object.assign({role:r,ref:P.setDialogRef,"aria-modal":r===`dialog`?!0:void 0},j,{style:a,className:i,tabIndex:-1}),le=y?y(ce):(0,Z.jsx)(`div`,Object.assign({},ce,{children:X.cloneElement(o,{role:`document`})}));le=Ve(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:D,onExited:se,onEnter:O,onEntering:k,onEntered:A,children:le});let ue=null;return s&&(ue=b({ref:P.setBackdropRef,onClick:re}),ue=Ve(p,m,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ue})),(0,Z.jsx)(Z.Fragment,{children:FS.createPortal((0,Z.jsxs)(Z.Fragment,{children:[ue,le]}),N)})});VS.displayName=`Modal`;var HS=Object.assign(VS,{Manager:PS});function US(e,t){e.classList?e.classList.add(t):Le(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function WS(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function GS(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=WS(e.className,t):e.setAttribute(`class`,WS(e.className&&e.className.baseVal||``,t))}var KS={FIXED_CONTENT:`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,STICKY_CONTENT:`.sticky-top`,NAVBAR_TOGGLER:`.navbar-toggler`},qS=class extends PS{adjustAndStore(e,t,n){let r=t.style[e];t.dataset[e]=r,ln(t,{[e]:`${parseFloat(ln(t,e))+n}px`})}restore(e,t){let n=t.dataset[e];n!==void 0&&(delete t.dataset[e],ln(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);let t=this.getElement();if(US(t,`modal-open`),!e.scrollBarWidth)return;let n=this.isRTL?`paddingLeft`:`paddingRight`,r=this.isRTL?`marginLeft`:`marginRight`;Pn(t,KS.FIXED_CONTENT).forEach(t=>this.adjustAndStore(n,t,e.scrollBarWidth)),Pn(t,KS.STICKY_CONTENT).forEach(t=>this.adjustAndStore(r,t,-e.scrollBarWidth)),Pn(t,KS.NAVBAR_TOGGLER).forEach(t=>this.adjustAndStore(r,t,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);let t=this.getElement();GS(t,`modal-open`);let n=this.isRTL?`paddingLeft`:`paddingRight`,r=this.isRTL?`marginLeft`:`marginRight`;Pn(t,KS.FIXED_CONTENT).forEach(e=>this.restore(n,e)),Pn(t,KS.STICKY_CONTENT).forEach(e=>this.restore(r,e)),Pn(t,KS.NAVBAR_TOGGLER).forEach(e=>this.restore(r,e))}},JS;function YS(e){return JS||=new qS(e),JS}var XS=_(un()),ZS=X.forwardRef(({className:e,bsPrefix:t,as:n=`div`,...r},i)=>(t=on(t,`modal-body`),(0,Z.jsx)(n,{ref:i,className:(0,XS.default)(e,t),...r})));ZS.displayName=`ModalBody`;var QS=X.createContext({onHide(){}}),$S=X.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:a,children:o,scrollable:s,...c},l)=>{e=on(e,`modal`);let u=`${e}-dialog`,d=typeof a==`string`?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return(0,Z.jsx)(`div`,{...c,ref:l,className:(0,XS.default)(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,a&&d),children:(0,Z.jsx)(`div`,{className:(0,XS.default)(`${e}-content`,n),children:o})})});$S.displayName=`ModalDialog`;var eC=X.forwardRef(({className:e,bsPrefix:t,as:n=`div`,...r},i)=>(t=on(t,`modal-footer`),(0,Z.jsx)(n,{ref:i,className:(0,XS.default)(e,t),...r})));eC.displayName=`ModalFooter`;var tC=X.forwardRef(({closeLabel:e=`Close`,closeVariant:t,closeButton:n=!1,onHide:r,children:i,...a},o)=>{let s=(0,X.useContext)(QS),c=bn(()=>{s?.onHide(),r?.()});return(0,Z.jsxs)(`div`,{ref:o,...a,children:[i,n&&(0,Z.jsx)(Dn,{"aria-label":e,variant:t,onClick:c})]})}),nC=X.forwardRef(({bsPrefix:e,className:t,closeLabel:n=`Close`,closeButton:r=!1,...i},a)=>(e=on(e,`modal-header`),(0,Z.jsx)(tC,{ref:a,...i,className:(0,XS.default)(t,e),closeLabel:n,closeButton:r})));nC.displayName=`ModalHeader`;var rC=En(`h4`),iC=X.forwardRef(({className:e,bsPrefix:t,as:n=rC,...r},i)=>(t=on(t,`modal-title`),(0,Z.jsx)(n,{ref:i,className:(0,XS.default)(e,t),...r})));iC.displayName=`ModalTitle`;function aC(e){return(0,Z.jsx)(Cn,{...e,timeout:null})}function oC(e){return(0,Z.jsx)(Cn,{...e,timeout:null})}var sC=X.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:a,dialogAs:o=$S,"data-bs-theme":s,"aria-labelledby":c,"aria-describedby":l,"aria-label":u,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:m=!0,onEscapeKeyDown:h,onShow:g,onHide:_,container:v,autoFocus:y=!0,enforceFocus:b=!0,restoreFocus:x=!0,restoreFocusOptions:S,onEntered:C,onExit:w,onExiting:T,onEnter:E,onEntering:D,onExited:O,backdropClassName:k,manager:A,...j},M)=>{let[N,P]=(0,X.useState)({}),[F,I]=(0,X.useState)(!1),L=(0,X.useRef)(!1),R=(0,X.useRef)(!1),ee=(0,X.useRef)(null),[z,te]=OS(),ne=vn(M,te),re=bn(_),ie=_n();e=on(e,`modal`);let ae=(0,X.useMemo)(()=>({onHide:re}),[re]);function oe(){return A||YS({isRTL:ie})}function se(e){if(!mn)return;let t=oe().getScrollbarWidth()>0,n=e.scrollHeight>cn(e).documentElement.clientHeight;P({paddingRight:t&&!n?DS():void 0,paddingLeft:!t&&n?DS():void 0})}let ce=bn(()=>{z&&se(z.dialog)});Me(()=>{yn(window,`resize`,ce),ee.current==null||ee.current()});let le=()=>{L.current=!0},ue=e=>{L.current&&z&&e.target===z.dialog&&(R.current=!0),L.current=!1},de=()=>{I(!0),ee.current=pn(z.dialog,()=>{I(!1)})},fe=e=>{e.target===e.currentTarget&&de()},pe=e=>{if(p===`static`){fe(e);return}if(R.current||e.target!==e.currentTarget){R.current=!1;return}_?.()},me=e=>{m?h?.(e):(e.preventDefault(),p===`static`&&de())},he=(e,t)=>{e&&se(e),E?.(e,t)},ge=e=>{ee.current==null||ee.current(),w?.(e)},_e=(e,t)=>{D?.(e,t),hn(window,`resize`,ce)},ve=e=>{e&&(e.style.display=``),O?.(e),yn(window,`resize`,ce)},ye=(0,X.useCallback)(t=>(0,Z.jsx)(`div`,{...t,className:(0,XS.default)(`${e}-backdrop`,k,!f&&`show`)}),[f,k,e]),be={...n,...N};return be.display=`block`,(0,Z.jsx)(QS.Provider,{value:ae,children:(0,Z.jsx)(HS,{show:d,ref:ne,backdrop:p,container:v,keyboard:!0,autoFocus:y,enforceFocus:b,restoreFocus:x,restoreFocusOptions:S,onEscapeKeyDown:me,onShow:g,onHide:_,onEnter:he,onEntering:_e,onEntered:C,onExit:ge,onExiting:T,onExited:ve,manager:oe(),transition:f?aC:void 0,backdropTransition:f?oC:void 0,renderBackdrop:ye,renderDialog:n=>(0,Z.jsx)(`div`,{role:`dialog`,...n,style:be,className:(0,XS.default)(t,e,F&&`${e}-static`,!f&&`show`),onClick:p?pe:void 0,onMouseUp:ue,"data-bs-theme":s,"aria-label":u,"aria-labelledby":c,"aria-describedby":l,children:(0,Z.jsx)(o,{...j,onMouseDown:le,className:r,contentClassName:i,children:a})})})})});sC.displayName=`Modal`;var cC=Object.assign(sC,{Body:ZS,Header:nC,Title:iC,Footer:eC,Dialog:$S,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),lC=ke(),uC=_(ee()),dC=_(s());r();var fC=function(e){return e.Staff=`Staff`,e.Learner=`Learner`,e.Unknown=`Unknown`,e.System=`System`,e}({});function pC(e){let t=e.showSpinner?(0,Z.jsx)(Ln,{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`),(0,Z.jsx)(Be,{title:e.tooltip,spanHack:!0,children:(0,Z.jsx)(Bn,{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(0,Z.jsx)(Bn,{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(0,Z.jsx)(Be,{title:e.tooltip,spanHack:!0,children:(0,Z.jsx)(zn,{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(0,Z.jsx)(zn,{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 n(t){e.analyticsData&&e.analyticsOptions&&dt.logUserAction(e.analyticsData,e.analyticsOptions),We.isFunction(e.onClick)&&e.onClick(t)}return e.tooltip?(0,Z.jsx)(Be,{title:e.tooltip,spanHack:!0,children:(0,Z.jsx)(`button`,{onClick:n,className:`${e.className??``}${e.disabled?` pointer-events-none`:``}`,disabled:e.disabled,"aria-label":typeof t==`string`?t:e.ariaLabel,children:t})}):(0,Z.jsx)(`button`,{onClick:n,className:e.className,disabled:e.disabled,"aria-label":typeof t==`string`?t:e.ariaLabel,children:t})}var mC=(e,t,n,r=[])=>{let i=typeof e==`string`?fx.default.channel(e):e;X.useEffect(()=>{if(e)return i.on(t,n),()=>{e&&i.off(t,n)}},r)};function hC(){return(0,Z.jsx)(`div`,{className:`text-center p-5`,children:(0,Z.jsx)(Ln,{as:`div`,animation:`border`,role:`status`})})}gC.defaultProps={closeButton:!0,bodyClassName:``,dialogClassName:``,size:`md`,closeOnNavigate:!0};function gC(e){pt(e.title),mC(o.SHELL,z.ROUTE,(t,n)=>{!e.closeOnNavigate||!n.isAppRoute||e.closePopup()},[e.closePopup]);let t=e.headerButtons?.length?e.headerButtons.map((e,t)=>(0,Z.jsx)(pC,{...e},t)):(0,Z.jsx)(Z.Fragment,{});return(0,Z.jsxs)(cC,{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&&(0,Z.jsxs)(cC.Header,{className:`d-flex align-items-center bg-white`,closeButton:e.closeButton,children:[(0,Z.jsx)(cC.Title,{as:`h2`,className:`h4 flex-grow-1 text-truncate`,children:e.title}),t]}),e.showLoadingSpinner?(0,Z.jsx)(hC,{}):(0,Z.jsx)(cC.Body,{className:e.bodyClassName,children:e.children})]})}var _C=`shared.popup`,vC=e=>(0,Z.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 yC(e){return(0,Z.jsx)(Un,{variant:e.variant||`primary`,type:e.type||`submit`,disabled:e.disabled||e.showSpinner,size:e.size,className:e.className?e.className:``,onClick:()=>e.onClick?.(),showSpinner:e.showSpinner,spinnerText:e.spinnerText,children:e.text?(0,Z.jsx)(Z.Fragment,{children:e.text}):(0,Z.jsx)(Wn,{namespace:_C,phrase:e.isNew?`create`:`save`})})}function bC(e){let t=Vn(),n=Gn(t??{}),r=t?.isSubmitting||e.showSpinner;function i(){return typeof e.disabled==`boolean`?e.disabled:!!t&&!n||r}return(0,Z.jsx)(yC,{...e,disabled:i(),showSpinner:r})}vC.Submit=e=>X.useContext(Hn)?(0,Z.jsx)(bC,{...e}):(0,Z.jsx)(yC,{...e}),vC.Cancel=e=>(0,Z.jsx)(kn,{onClick:e.onClick,variant:e.variant||`link`,size:e.size,className:e.className?e.className:`me-2`,children:e.text?e.text:(0,Z.jsx)(Wn,{namespace:_C,phrase:`cancel`})}),vC.Checkbox=e=>(0,Z.jsx)(Nn.Check,{type:`checkbox`,className:e.className??`me-auto`,label:e.label,id:e.id,onChange:e.onToggle,checked:e.checked}),vC.Toggle=e=>(0,Z.jsxs)(`div`,{className:`d-flex align-items-center me-auto`,children:[(0,Z.jsx)(Kn,{on:e.on,onClick:e.onClick,disabled:e.disabled,tooltipText:e.tooltip}),!!e.label&&(0,Z.jsx)(`span`,{className:`fw-semibold ms-2`,children:e.label})]});var xC=`shared.shared-utils`,SC=null,CC={render:(e,t={})=>{let n=document.getElementById(`dialog-region`);n||(n=document.createElement(`div`),n.id=`dialog-region`,document.appendChild(n)),SC||=(0,lC.createRoot)(n);function r(){if(We.isFunction(t.submitButtonProps?.onClick)){let e=t.submitButtonProps.onClick();if(e instanceof Promise){e.then(()=>{SC.unmount(),SC=null});return}}SC.unmount(),SC=null}function i(){We.isFunction(t.cancelButtonProps?.onClick)&&t.cancelButtonProps.onClick(),SC.unmount(),SC=null}let a={...t.submitButtonProps?t.submitButtonProps:{},onClick:()=>{r()}},o={...t.cancelButtonProps?t.cancelButtonProps:{},onClick:()=>{i()}};SC.render((0,Z.jsxs)(gC,{title:t.title,closePopup:i,size:t.size,centered:t.centered,bodyClassName:`overflow-hidden`,dialogClassName:t.dialogClassName,children:[e,!t.hideButtons&&(0,Z.jsxs)(vC,{className:t.buttonContainerClassName,children:[t.cancelButtonProps&&(0,Z.jsx)(vC.Cancel,{...o}),t.submitButtonProps&&(0,Z.jsx)(vC.Submit,{...a})]})]}))},getDefaultSubmitButton(){return{variant:`dark`,text:Xe.getPhrase(xC,`confirm`)}},getDefaultCancelButton(){return{variant:`light`,text:Xe.getPhrase(xC,`cancel`)}}},wC=Xe.encloseNamespace(`shared.hooks`),TC=!1,EC={isLocked:()=>TC},DC=()=>{let[e,t]=X.useState([]),n=fx.default.channel(o.SHELL);X.useEffect(()=>(e.find(e=>!e.allowAppLinks)&&n.on(z.NAV_IS_LOCKED,a),e.length&&window.addEventListener(`beforeunload`,s),()=>{n.off(z.NAV_IS_LOCKED,a),window.removeEventListener(`beforeunload`,s)}),[e]),X.useEffect(()=>{function e(){r({id:`upload`,title:wC(`navLockTitle`),text:wC(`navLockBody`),allowAppLinks:!0})}let t=fx.default.channel(TS.VIDEO_UPLOAD);return t.on(wS.FILES_ADDED,e),t.on(wS.UNLOCK_NAV,i),()=>{t.off(wS.FILES_ADDED,e),t.off(wS.UNLOCK_NAV,i)}},[]);function r(r={}){e.find(e=>e.id===r.id)||(r.allowAppLinks||n.trigger(z.LOCK_NAV),t([...e,r]),TC=!0)}function i(r){let i=e.filter(e=>e.id!==r);(i.length===0||!i.find(e=>!e.allowAppLinks))&&n.trigger(z.UNLOCK_NAV),t(i),i.length||(TC=!1)}function a(t){if(!e.length)return;let r=e.find(e=>!e.allowAppLinks);if(r.appLinkWhitelist?.find(e=>e.action===t.action&&e.application===t.application)){n.trigger(z.UNLOCK_NAV),window.setTimeout(()=>{R.trigger(t),n.trigger(z.LOCK_NAV)},0);return}if(We.isFunction(r.renderCustomDialog)){r.renderCustomDialog();return}CC.render((0,Z.jsx)(`p`,{children:r.text}),{title:r.title,submitButtonProps:{onClick:()=>{r.onConfirmUnlock&&r.onConfirmUnlock(),c(t)},variant:`danger`,text:wC(`discard`)},cancelButtonProps:{text:wC(`cancel`),variant:`link`}})}function s(t){let n=e.find(e=>e.allowAppLinks);return n||=It.first(e),t.returnValue=n.text,n.text}function c(t){n.trigger(z.NAV_UNLOCKED_BY_USER),e.forEach(e=>{e.allowAppLinks||i(e.id)}),window.removeEventListener(`beforeunload`,s),R.trigger(t)}return{lock:r,unlock:i}},OC=9e5,kC=new class extends A{constructor(...e){super(...e),this.canReload=!0}get name(){return Kt.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,OC)}onInactivityTimeout(){if(EC.isLocked()){this.setInactivityTimeout();return}this.onInactive()}onInactive(){if(!this.canReload||EC.isLocked()){this.setInactivityTimeout();return}d.Reload()}setCanReload(e){this.canReload=e}},AC={Success:`Success! 🙌`,Warning:`Whoops...`,Fail:`Oops...`,Info:`FYI`},jC={VIDEO_START_TIME_CUTOFF:10,PUBLIC_SEARCH_QUERY_DEBOUNCE:600,AUTHENTICATED_SEARCH_QUERY_DEBOUNCE:300,LEGACY_ACTION_SUFFIX:`:legacy`,MINIMUM_GLANCE_HEIGHT:368,PRODUCT_NAME:`Streamable Learning`};function MC(e){an.getInstance(Ye.ALERT).createAlert({heading:AC.Fail,type:rn.Fail,message:e.message})}function NC(e){fx.default.channel(`error:view`).reply(`current:error`,()=>e),R.trigger({application:V.DEFAULT,action:Jt.Default.NOT_FOUND})}function PC(e){fx.default.channel(`error:view`).reply(`current:error`,()=>e),R.trigger({application:V.DEFAULT,action:Jt.Default.ERROR})}function FC(e){fx.default.channel(`error:view`).reply(`current:error`,()=>e),R.trigger({application:V.DEFAULT,action:Jt.Default.DIALOG_ERROR})}function IC(){kC.handleOldVersion()}function LC(e){fx.default.channel(`error:view`).reply(`current:error`,()=>e),R.trigger({application:V.DEFAULT,action:Jt.Default.REDIRECTED_ERROR})}function RC(e,t){e.registerErrorHandler(Ox,LC).registerErrorHandler(_t,PC).registerErrorHandler(gS,FC).registerErrorHandler(CS,MC).registerErrorHandler(vt,NC).registerErrorHandler(mx,PC).registerErrorHandler(SS,IC),xS(`dark`,jC.PRODUCT_NAME),t(e)}var zC=class extends D{constructor(...e){super(...e),this.regionRoots={},this.isReactComponentRendered={}}isReactComponent(e){return X.default&&X.isValidElement(e)}showChildView(e,t,n){if(this.isReactComponent(t)){this.showChildReactComponent(e,t),this.isReactComponentRendered[e]=!0;return}this.isReactComponentRendered[e]&&this.unmountRoot(e),super.showChildView(e,t,n),this.isReactComponentRendered[e]=!1}showChildReactComponent(e,t){if(this.isAttached()){this.renderChildReactComponent(e,t);return}this.listenToOnce(this,`attach`,()=>this.renderChildReactComponent(e,t))}renderChildReactComponent(e,t){let n=this.getRegion(e),r=this.$el.find(n.el);!r||!r.length||(n.trigger(`before:show`),this.regionRoots[e]||(this.regionRoots[e]=(0,lC.createRoot)(r[0])),this.regionRoots[e].render(t),window.setTimeout(()=>n.trigger(`show`),0),this.listenToOnce(this,`unmount:${e}`,()=>this.unmountRoot(e)),this.listenToOnce(this,`before:destroy`,()=>this.unmountRoot(e)))}unmountRoot(e){this.regionRoots[e]&&(this.regionRoots[e].unmount(),delete this.regionRoots[e])}wrapWithStore(e){return(0,Z.jsx)(wt,{store:this.options.store,children:e})}},BC=class extends X.Component{constructor(e){super(e),this.currentErrorHandled=!1,this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.currentErrorHandled||(this.currentErrorHandled=!0,window.trackJs&&window.trackJs.console.error(e.message,{errorInfo:t}),this.props.throwError&&(O.throw(new this.props.throwError(e.message)),window.setTimeout(()=>{this.currentErrorHandled=!1,this.setState({error:null})},500)))}render(){let{error:e}=this.state;if(e&&this.props.renderError){let e=this.props.renderError;return(0,Z.jsx)(e,{})}return e||!this.props.children?(0,Z.jsx)(Z.Fragment,{}):this.props.children}},VC=X.createContext({}),HC=e=>{let[t,n]=X.useState(null);return(0,Z.jsxs)(VC.Provider,{value:{setPreviewContentNode:n},children:[t&&(0,Z.jsx)(Zn,{node:t}),e.children]})};function UC(e,t,n){let[r,i]=X.useState(e),a=X.useRef(e?new Date:null);X.useEffect(()=>{if(!(!t||!n)&&!(!n.entity||!t.location))if(e)r||i(!0),a.current=new Date,dt.logUserAction(t,{...n,actionType:B.Hover});else{if(!r)return;let e=new Date().getTime()-a.current.getTime();a.current=null,dt.logUserAction({...t,timeHoveredInMilliseconds:e,timeHoveredInSeconds:e/1e3},{...n,actionType:B.Unhover})}},[e])}var WC=8,GC=1.2,KC=function(e){return e.Left=`8px`,e.Right=`calc(100% - 8px)`,e.Center=`center`,e}(KC||{}),qC=(e,t,n,r=GC)=>{let{x:i,y:a,width:o,height:s}=e,c=document.getElementById(`content-width-reference`);if(!c)return{};let l,u=t||o*r,d=t?s/o*t:s*r,f=t?u/o:r;l=i-(u-o)/2,u<n&&(l-=(n-u)/2,u=n,f=u/o,d=s*f);let p=a-(d-s)/2+window.scrollY,m=l,h=KC.Center;return l-c.offsetLeft<WC&&(m=i-WC/2,h=KC.Left),c.offsetWidth+c.offsetLeft-(l+u)<WC&&(m=t?i+o-t:i-o*(f-1)+WC,h=KC.Right),{left:m,top:p,height:d,width:u,transformOrigin:h,position:`absolute`,originalWidth:o,originalHeight:s}},JC={positionWrapper:`_positionWrapper_gkmg7_1`,animationWrapper:`_animationWrapper_gkmg7_4`,zoom:`_zoom_gkmg7_1`};function YC(e){let{hoverableComponent:t,componentProps:n,minHoverWidth:r,fixedHoverWidth:i,hoverScale:a}=e,{setPreviewContentNode:o}=X.useContext(VC);o===void 0&&O.throw(new f(`Please use VideoPreviewContext inside a VideoPreviewContextProvider`));let s=X.useMemo(()=>Qn(),[]),[c,l]=er({delay:100}),[u,d]=tr(),[p,m]=X.useState(!1),h=X.useRef(null),g=X.useRef(!1),_=l||d;UC(_,e.analyticsData,e.analyticsOptions),X.useEffect(()=>{g.current!==_&&(o(_||p?s:null),g.current=_)},[_]);let{x:v,y,width:b,height:x}=h.current?.getBoundingClientRect?.()||{},S=X.useMemo(()=>qC({x:v,y,width:b,height:x},i,r,a),[v,y,b,x,a]),C=S?S.originalWidth/S.width:1,w=t;return(0,Z.jsxs)(`div`,{ref:h,children:[(0,Z.jsx)(`div`,{ref:c,children:(0,Z.jsx)(w,{isHovering:!1,...n})}),(_||p)&&(0,Z.jsx)($n,{node:s,children:(0,Z.jsx)(`div`,{className:`${JC.positionWrapper} ${JC.animationWrapper}`,style:{"--scale":C,...S},ref:u,children:(0,Z.jsx)(w,{isHovering:!0,hoverPositionConfig:S,cleanPortalNode:()=>o(null),...n})})})]})}YC.ReferenceContainer=e=>(0,Z.jsx)(`div`,{id:`content-width-reference`,className:`flex-grow-1`,children:e.children});function XC(e){return document.querySelector(`.${e}`)}var ZC=X.createContext(null);function QC(e){let[t,n]=X.useState();return X.useEffect(()=>{n(XC(e.containerClassName))},[]),(0,Z.jsx)(ZC.Provider,{value:{container:t},children:e.children})}var $C=X.createContext({}),ew=e=>{let t=nr(`(max-width: 575.98px)`),n=nr(`(min-width: 576px) and (max-width: 767.98px)`),r=nr(`(min-width: 768px) and (max-width: 991.98px)`),i=nr(`(min-width: 992px) and (max-width: 1199.98px)`),a=nr(`(min-width: 1200px) and (max-width: 1439.98px)`),o=nr(`(min-width: 1440px)`),s=X.useMemo(()=>({xs:t,sm:n,md:r,lg:i,xl:a,xxl:o}),[t,n,r,i,a,o]);return(0,Z.jsx)($C.Provider,{value:s,children:e.children})},tw=`shared.unspecifiedDialogError`,nw=class extends gS{constructor(){super(`Unspecified dialog error`),this.btnVariant=`dark`}get name(){return`UnspecifiedDialogError`}get dialogOptions(){return{title:Xe.getPhrase(tw,`title`),text:Xe.getPhrase(tw,`body`),buttons:[{text:Xe.getPhrase(tw,`close`),className:`btn btn-${this.btnVariant}`,success:!0}]}}};function rw(){function e(n){n.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)}(0,X.useEffect)(()=>(window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)),[])}function iw(){let e=Et(kx.version());return e.data?(0,Z.jsx)(`footer`,{className:`text-center text-secondary my-2`,children:(0,Z.jsxs)(`small`,{children:[`2003 - `,new Date().getFullYear(),` © ClickView | Version: `,e.data]})}):(0,Z.jsx)(Z.Fragment,{})}function aw(){return X.useContext($C)}var ow=function(e){return e.StreamableViewTrialBanner=`sl.trial.banner.view`,e.ClickViewViewTrialBanner=`cv.trial.banner.view`,e}({}),sw=new Set([`system_cv_trial_freemium_v1`,`system_cv_trial_freemium_v2`]);function cw(){let e=Et(Gt.currentUser()),t=Et(e.hasCompleted&&e.data?.isAuthenticated&&Gt.accessPolicy());function n(e){return t.data?(t.data?.permissions?.additional??[]).includes(e):!1}function r(){let e=new Set;return t.data&&sw.has(t.data.id)&&e.add(Rt.ViewInsights),e}return{isLoaded:e.hasCompleted&&t.hasCompleted,accessPolicy:t.data,policyHasOption:n,gatedPermissions:r()}}function lw(e,t,n){return n?n===`ALL`?t.every(t=>e[t]):t.some(t=>e[t]):!t.find(t=>!e[t])}var uw=()=>{let e=Et(Et(Gt.currentUser()).hasCompleted&&Gt.permissions()),{gatedPermissions:t}=cw(),[n]=rr(ar.LOCAL_PERMISSIONS);return{permissions:e.data,hasPermissions:(t,n)=>!e.hasCompleted||e.hasError?!1:!t||!t?.length?!0:Array.isArray(t)?lw(e.data,t,n):!!e.data[t],hasLocalPermissions:e=>(n||O.throw(new f(`Local Permissions should be registered during start up.`)),!e||!e?.length?!0:Array.isArray(e)?!e.find(e=>!n[e]):!!n[e]),getGatedPermission:n=>!e.hasCompleted||e.hasError?`hidden`:t.has(n)?e.data[n]?`soft-gate`:`hard-gate`:e.data[n]?`visible`:`hidden`,isLoaded:e.hasCompleted}};function dw(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.jsx)(`path`,{fill:`currentColor`,d:`M14.053 14.879a6.28 6.28 0 0 1-3.834 1.294C6.784 16.173 4 13.448 4 10.086S6.784 4 10.219 4c3.434 0 6.218 2.725 6.218 6.086 0 1.59-.622 3.037-1.641 4.12l5.056 4.95a.487.487 0 0 1 0 .699.513.513 0 0 1-.715 0zm1.384-4.793C15.437 7.297 13.121 5 10.22 5S5 7.297 5 10.086s2.316 5.087 5.219 5.087c2.902 0 5.218-2.298 5.218-5.087`})})}function fw(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.jsx)(`path`,{fill:`currentColor`,d:`M16.657 16.576a1 1 0 0 1 .143-1.024l.076-.094a6.292 6.292 0 1 0-2.12 1.688l.082-.04a1 1 0 0 1 .834-.022l1.473.631zm1.788 1.126c.355.83-.483 1.669-1.313 1.313l-1.848-.792a7.492 7.492 0 1 1 2.524-2.008z`})})}function pw(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.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`})})}function mw(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.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`})})}var hw={toggle:`_toggle_1f3ot_1`},gw=4,_w=`shared.customerSelectorItem`;function vw(e){function t(t,r=null){r!==e.currentCustomerId&&(dt.logUserAction({id:e.currentCustomerId,newCustomerId:r},{actionType:B.SwitchCustomer,entity:ct.Customer,location:ut.UserOptions}),d.PageLoad(n(r)))}function n(e){return e?`/change-customer?customerId=${e}`:`/change-customer`}return!e.customers?.length||!e.currentCustomerId||e.customers.length<=1?(0,Z.jsx)(Z.Fragment,{}):e.customers.length>gw?(0,Z.jsx)(In.Item,{as:`li`,onClick:e=>t(e),className:`cursor-pointer`,children:(0,Z.jsxs)(`div`,{className:`d-flex justify-content-between`,children:[(0,Z.jsx)(Wn,{namespace:_w,phrase:`title`}),(0,Z.jsx)(He,{svg:mw,className:`svg-container text-secondary`})]})}):(0,Z.jsxs)(`li`,{className:`dropdown-item dropstart cursor-pointer`,children:[(0,Z.jsxs)(`div`,{className:`dropdown-toggle d-flex justify-content-between ${hw.toggle}`,"data-bs-toggle":`dropdown`,"aria-expanded":`false`,children:[(0,Z.jsx)(Wn,{namespace:_w,phrase:`title`}),(0,Z.jsx)(He,{svg:mw,className:`svg-container text-secondary`})]}),(0,Z.jsx)(`ul`,{className:`dropdown-menu`,children:e.customers.map((n,r)=>{let i=n.id===e.currentCustomerId;return(0,Z.jsx)(In.Item,{as:`li`,onClick:e=>t(e,n.id),disabled:i,children:n.name},r)})})]})}var yw=function(e){return e[e.Integrations=1]=`Integrations`,e[e.Classrooms=2]=`Classrooms`,e[e.MakeInteractive=3]=`MakeInteractive`,e[e.EditSsoAccounts=4]=`EditSsoAccounts`,e[e.UploadToLibraryEditor=5]=`UploadToLibraryEditor`,e[e.AddFromLite=6]=`AddFromLite`,e[e.ManageSsoYearGroups=7]=`ManageSsoYearGroups`,e[e.ContentReview=8]=`ContentReview`,e[e.ContentPermissions=9]=`ContentPermissions`,e[e.AccessSettings=10]=`AccessSettings`,e[e.ViviIntegration=11]=`ViviIntegration`,e[e.AppleTvIntegration=12]=`AppleTvIntegration`,e[e.RssFeed=13]=`RssFeed`,e[e.MarcFormatDifferences=14]=`MarcFormatDifferences`,e[e.ExportLibraries=15]=`ExportLibraries`,e[e.StudentSharingGuide=16]=`StudentSharingGuide`,e[e.Sharing=17]=`Sharing`,e[e.ClassroomViews=18]=`ClassroomViews`,e[e.ManagePlaylists=19]=`ManagePlaylists`,e[e.UploadYourOwnVideos=20]=`UploadYourOwnVideos`,e[e.LtiSetup=21]=`LtiSetup`,e[e.LtiSetupCanvas=22]=`LtiSetupCanvas`,e[e.EmbedD2LBrightspace=23]=`EmbedD2LBrightspace`,e[e.EmbedEducationPerfect=24]=`EmbedEducationPerfect`,e[e.ShareGoogleClassroom=25]=`ShareGoogleClassroom`,e[e.InstallItsLearning=26]=`InstallItsLearning`,e[e.ShareMicrosoftTeams=27]=`ShareMicrosoftTeams`,e[e.LtiSetupMoodle=28]=`LtiSetupMoodle`,e[e.EmbedSeqta=29]=`EmbedSeqta`,e[e.SchoologySetup=30]=`SchoologySetup`,e[e.EmbedToddle=31]=`EmbedToddle`,e[e.SearchAndDiscover=32]=`SearchAndDiscover`,e[e.ClassroomAnalytics=33]=`ClassroomAnalytics`,e}({}),bw={[yw.Integrations]:`/integrations/share-integrations/enable-share-integrations`,[yw.Classrooms]:`/using-clickview/classrooms/classrooms`,[yw.MakeInteractive]:`/using-clickview/interactive-videos/interactive-videos`,[yw.EditSsoAccounts]:`/administration/user-permissions/create-staff-student-accounts`,[yw.UploadToLibraryEditor]:`/using-clickview/create-manage/how-to-upload-videos`,[yw.AddFromLite]:`/using-clickview/share/add-videos-school-library`,[yw.ManageSsoYearGroups]:`/administration/user-permissions/sso-grade-level-mappings`,[yw.ContentReview]:`/administration/content-permissions/content-review-restrictions`,[yw.ContentPermissions]:`/administration/content-permissions/grade-level`,[yw.AccessSettings]:`/administration/user-permissions/create-staff-student-accounts`,[yw.ViviIntegration]:`/integrations/casting/vivi`,[yw.AppleTvIntegration]:`/integrations/casting/enable-apple-tv`,[yw.RssFeed]:`/integrations/learning-management-systems/school-id-rss-feed`,[yw.MarcFormatDifferences]:`/administration/content-permissions/marc-record-formats`,[yw.ExportLibraries]:`/administration/content-permissions/export-libraries`,[yw.StudentSharingGuide]:`/using-clickview/student-view/video-sharing-students`,[yw.Sharing]:`/using-clickview/share/share-videos`,[yw.ClassroomViews]:`/using-clickview/analytics/classroom-views`,[yw.ManagePlaylists]:`/using-clickview/create-manage/playlists`,[yw.UploadYourOwnVideos]:`/using-clickview/create-manage/how-to-upload-videos`,[yw.LtiSetup]:`/integrations/learning-management-systems`,[yw.LtiSetupCanvas]:`/integrations/learning-management-systems/setup-lti-1-3-canvas`,[yw.EmbedD2LBrightspace]:`/integrations/learning-management-systems/d2l-brightspace-embed-video`,[yw.EmbedEducationPerfect]:``,[yw.ShareGoogleClassroom]:`/integrations/share-integrations/share-google-classroom`,[yw.InstallItsLearning]:`/integrations/learning-management-systems/install-itslearning-plugin`,[yw.ShareMicrosoftTeams]:`/integrations/share-integrations/share-microsoft-teams`,[yw.LtiSetupMoodle]:`/integrations/learning-management-systems/setup-lti-1-3-moodle`,[yw.EmbedSeqta]:``,[yw.SchoologySetup]:`/integrations/learning-management-systems/install-schoology-app`,[yw.EmbedToddle]:`/integrations/learning-management-systems/toddle-embed-video`,[yw.SearchAndDiscover]:`/using-clickview/discover/using-search`,[yw.ClassroomAnalytics]:`/using-clickview/analytics/classroom-analytics`},xw={...bw,[yw.EditSsoAccounts]:`/administration/user-permissions/manage-sso-user-accounts`,[yw.ManageSsoYearGroups]:`/administration/user-permissions/sso-year-level-mappings`,[yw.ContentPermissions]:`/administration/content-permissions/year-level`,[yw.EmbedEducationPerfect]:`/integrations/learning-management-systems/education-perfect-embed-video`,[yw.EmbedSeqta]:`https://help.seqta.com.au/s/article/embedding-and-removing-clickview-videos-and-playists`},Sw={[Lt.US]:bw,[Lt.AU]:xw,[Lt.NZ]:{...xw},[Lt.UK]:{...bw,[yw.EditSsoAccounts]:`/administration/user-permissions/manage-sso-user-accounts`,[yw.ManageSsoYearGroups]:`/administration/user-permissions/sso-year-level-mappings`,[yw.ContentPermissions]:`/administration/content-permissions/year-level`,[yw.EmbedD2LBrightspace]:``,[yw.InstallItsLearning]:``,[yw.LtiSetupMoodle]:``,[yw.SchoologySetup]:``,[yw.EmbedToddle]:``}},Cw={[Lt.US]:`/help`,[Lt.AU]:`/en-au/help`,[Lt.UK]:`/en-gb/help`,[Lt.NZ]:`/en-au/help`},ww={[Lt.US]:`/welcome`,[Lt.AU]:`/en-au/welcome`,[Lt.UK]:`/en-gb/welcome`,[Lt.NZ]:`/en-au/welcome`},Tw=class{constructor(){this.name=`LocalizedArticleHelper`}static get Instance(){return this.instance||=new this}initialize(e){this.initializeUrl(e),this.initializeInstanceRegion(e)}initializeUrl(e){if(!e.product){O.throw(new f(`${this.name} requires a product name`));return}if(this.product=e.product,this.marketingSiteUrl=e.marketingSiteUrl,e.product===Bt.Online){if(!e.onlineSupportSiteUrl){O.throw(new f(`ArticleHelper requires a online support site url`));return}this.supportSiteUrl=e.onlineSupportSiteUrl;return}if(!e.liteSupportSiteUrl){O.throw(new f(`ArticleHelper requires a lite support site url`));return}this.supportSiteUrl=e.liteSupportSiteUrl}initializeInstanceRegion(e){if(!e.instanceRegion){O.throw(new f(`${this.name} requires an instance region`));return}this.instanceRegion=e.instanceRegion,this.product===Bt.Primary&&(this.liteArticleUrlMapping=Sw[this.instanceRegion])}validate(){return this.supportSiteUrl&&this.instanceRegion?!0:this.product===Bt.Primary&&!this.liteArticleUrlMapping?(O.throw(new f(`${this.name} requires a lite article url mapping`)),!1):(O.throw(new f(`${this.name} was not initialized`)),!1)}getArticle(e){if(!this.validate())return``;if(!e)return this.getSupportSiteUrl();let t=this.liteArticleUrlMapping[e];return Vt.isValidUrl(t)?t:Vt.safeUrlConcat(this.getSupportSiteUrl(),t)}getSupportSiteUrl(){return this.validate()?Vt.safeUrlConcat(this.supportSiteUrl,Cw[this.instanceRegion]):``}getWelcomeSiteUrl(){return this.validate()?Vt.safeUrlConcat(this.supportSiteUrl,ww[this.instanceRegion]):``}getInstanceRegionsForArticle(e){return this.validate()?Object.entries(Sw).reduce((t,[n,r])=>(r[e]?.length&&t.push(n),t),[]):[]}getLiteArticle(e){return this.product===Bt.Online&&O.throw(new f(`ArticleHelper.getLiteArticle() should not be used in Online`)),this.getArticle(e)}getSupportRequestUrl(){return this.validate()?Vt.safeUrlConcat(this.marketingSiteUrl,`/contact-us/support`):``}getAuthorBlogUrl(e){return!this.marketingSiteUrl||!e?``:Vt.safeUrlConcat(this.marketingSiteUrl,`blog/author/${e}`)}getHybridArticle(e,t){return this.product===Bt.Online?this.getSupportSiteUrl():this.getLiteArticle(t)}}.Instance,Ew=Xe.encloseNamespace(`shared.userOptions`);function Dw(e,t,n){let{hasPermissions:r}=uw(),i=It.sortBy(t,`order`);if(e&&(r(Rt.StudentExperience)||i.push({label:Ew(`getStarted`),order:0,url:Tw.getWelcomeSiteUrl(),analyticsData:{url:Tw.getWelcomeSiteUrl()},analyticsOptions:{actionType:B.Click,entity:ct.Url,descriptor:nt.ExternalLink,location:ut.UserOptions}}),i.push({label:Ew(`helpCentre`),order:0,url:Tw.getSupportSiteUrl(),analyticsData:{url:Tw.getSupportSiteUrl()},analyticsOptions:{actionType:B.Click,entity:ct.Url,descriptor:nt.ExternalLink,location:ut.UserOptions}}),r(Rt.ViewProductBoard)&&!n)){let t=Vt.safeUrlConcat(e.productBoardUrl,`tabs/23-what-s-new`);i.push({label:Ew(`whatsNew`),order:0,url:t,analyticsData:{url:t},analyticsOptions:{actionType:B.Click,entity:ct.Url,descriptor:nt.ExternalLink,location:ut.UserOptions}})}let a={main:[],logOut:[]};return i.forEach(e=>{e.section===`logOut`?a.logOut.push(e):a.main.push(e)}),a}function Ow(e,t,n){let r=Et(Et(Gt.currentUser()).data?.isAuthenticated&&jx.userProducts());if(t||!r.data)return;let i=[...r.data],a=Array.isArray(e)?e:[e],o=i.filter(e=>!a.includes(e.id),`order`);return typeof n==`function`&&(o=n(o)),It.sortBy(o)}var kw={avatarContainer:`_avatarContainer_1z0er_1`,productLogo:`_productLogo_1z0er_5`,counter:`_counter_1z0er_9`},Aw=Xe.encloseNamespace(`shared.userOptions`);function jw({item:e}){if(e.appLink)return(0,Z.jsxs)(In.Item,{as:zn,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&&(0,Z.jsx)(`div`,{className:`${kw.counter} badge bg-danger rounded-pill fw-semibold me-1`,children:e.counter}),(0,Z.jsxs)(`div`,{className:`d-flex justify-content-between`,children:[e.label,!!e.openInNewTab&&(0,Z.jsx)(He,{svg:pw,className:`svg-container text-secondary`})]})]});if(e.url){function t(t){t.preventDefault(),e.onClick?.(),e.analyticsData&&e.analyticsOptions&&dt.logUserAction({href:e.url,...e.analyticsData},e.analyticsOptions),d.PageLoad(e.url,!0)}return(0,Z.jsxs)(In.Item,{as:`a`,href:e.url,target:e.openInNewTab===!1?null:`_blank`,className:`d-flex align-items-center`,onClick:e=>t(e),children:[e.counter>0&&(0,Z.jsx)(`div`,{className:`${kw.counter} badge bg-danger rounded-pill fw-semibold me-1`,children:e.counter}),(0,Z.jsxs)(`div`,{className:`d-flex justify-content-between`,children:[e.label,e.openInNewTab!==!1&&(0,Z.jsx)(He,{svg:pw,className:`svg-container text-secondary`})]})]})}return(0,Z.jsx)(Z.Fragment,{})}var Mw=({appLinks:e})=>{let t=aw(),n=t.xs||t.sm;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(zn,{appLink:e.signIn,className:`btn btn-link ps-0`,analyticsOptions:{actionType:B.Click,location:ut.TopNav,entity:ct.Url,descriptor:gt.SignIn},analyticsData:{},children:Aw(`signIn`)}),(0,Z.jsx)(zn,{appLink:e.signUp,className:`btn btn-dark ms-2`,analyticsOptions:{actionType:B.Click,location:ut.TopNav,entity:ct.AppLink,workflowPhase:$e.Start,descriptor:gt.SignUp},analyticsData:{},tag:`button`,children:Aw(n?`signUpForMobile`:`signUp`)})]})},Nw=({appLinks:e})=>(0,Z.jsx)(zn,{appLink:e.signIn,className:`btn btn-dark d-inline-block`,analyticsOptions:{actionType:B.Click,location:ut.TopNav,entity:ct.AppLink,workflowPhase:$e.Start,descriptor:gt.SignIn},analyticsData:{},children:Aw(`signIn`)});function Pw(e){let[t,n]=X.useState(!1),{hasPermissions:r}=uw(),i=Et(Gt.currentUser()),a=Et(i.data?.id&&Gt.user(i.data.id)),o=Et(kx.config()),s=Et(i.data?.isAuthenticated&&Gt.customers(i.data.id)),c=Dw(o.data,e.additionalItems,e.hideWhatsNew),l=r(Rt.GuestExperience),u=e.hideProductList||l,d=Ow(e.productId,u,e.transform);function f(e){n(e),dt.logUserAction({},{actionType:B.Click,entity:ct.AppLink,location:ut.UserOptions,descriptor:e?nt.Open:nt.Close})}function p(e){dt.logUserAction({id:e.id,name:e.name},{actionType:B.Click,entity:ct.Product,location:ut.UserOptions,descriptor:nt.ExternalLink})}return!i.hasCompleted||i.data.isAuthenticated&&!a.hasCompleted||!o.data?(0,Z.jsx)(Z.Fragment,{}):i.data.isAuthenticated?(0,Z.jsxs)(In,{className:`position-relative`,onToggle:f,children:[(0,Z.jsx)(In.Toggle,{id:`userOptions`,variant:``,"aria-label":`Options menu`,className:`${kw.avatarContainer} no-caret border-0 p-0`,children:(0,Z.jsx)(cr,{imageUrl:sr.createUrl(i.data.avatar,{size:or.Small}),imageCdnUrl:o.data.imageCdnUrl,initials:lr.getInitials(i.data.givenName,i.data.familyName),showDot:c.main.some(e=>e.counter>0)})}),(0,Z.jsxs)(In.Menu,{as:`ul`,align:`end`,children:[(0,Z.jsxs)(In.Item,{as:`div`,children:[(0,Z.jsxs)(`div`,{className:`m-0 d-flex flex-wrap`,children:[(0,Z.jsx)(`strong`,{children:i.data.displayName}),`\xA0`,!l&&(0,Z.jsxs)(`span`,{className:`text-secondary`,children:[`(`,i.data.username,`)`]})]}),(0,Z.jsx)(`div`,{className:`m-0 text-secondary`,children:i.data.customerName}),!l&&a.data?.masterYearGroup&&(0,Z.jsx)(`p`,{className:`m-0 text-secondary`,children:a.data.masterYearGroup.name})]}),(0,Z.jsx)(vw,{isParentOpen:t,currentCustomerId:i.data?.customerId,customers:s.data?.data}),(0,Z.jsx)(In.Divider,{}),c.main.map((e,t)=>(0,Z.jsx)(jw,{item:e},t)),(0,Z.jsx)(In.Divider,{}),d?.map((e,t)=>(0,Z.jsxs)(In.Item,{as:`a`,href:e.url,target:`_blank`,className:`d-flex align-items-center py-1`,onClick:()=>p(e),children:[(0,Z.jsx)(`img`,{src:e.imageUrl,className:`${kw.productLogo} me-2`}),e.name]},t)),!!d?.length&&(0,Z.jsx)(In.Divider,{}),c.logOut.map((e,t)=>(0,Z.jsx)(jw,{item:e},t)),(0,Z.jsx)(In.Item,{as:zn,appLink:e.appLinks.signOut,analyticsData:{id:i.data?.id},analyticsOptions:{actionType:B.Click,location:ut.UserOptions,entity:ct.AppLink,descriptor:gt.SignOut},children:Aw(`signOut`)})]})]}):e.displaySignUp?(0,Z.jsx)(Mw,{...e}):(0,Z.jsx)(Nw,{...e})}var Fw={logoContainer:`_logoContainer_1bv0u_1`,iconLogo:`_iconLogo_1bv0u_4`};function Iw(){return(0,Z.jsxs)(`svg`,{width:`5614`,height:`1080`,viewBox:`0 0 5614 1080`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Z.jsx)(`path`,{d:`M539.597 1046.49C819.546 1046.49 1046.49 819.546 1046.49 539.597C1046.49 259.647 819.546 32.7028 539.597 32.7028C259.647 32.7028 32.7028 259.647 32.7028 539.597C32.7028 819.546 259.647 1046.49 539.597 1046.49Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M1079.19 539.597C1079.19 241.586 837.608 0 539.597 0C241.586 0 0 241.586 0 539.597C0 837.608 241.586 1079.19 539.597 1079.19C837.608 1079.19 1079.19 837.608 1079.19 539.597ZM1046.49 539.597C1046.49 819.546 819.546 1046.49 539.597 1046.49C259.647 1046.49 32.7028 819.546 32.7028 539.597C32.7028 259.647 259.647 32.7028 539.597 32.7028C819.546 32.7028 1046.49 259.647 1046.49 539.597Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M1046.49 539.597C1046.49 593.776 1037.97 645.963 1022.24 694.922C1017.33 660.088 1006.25 609.777 981.18 554.42C951.089 487.981 856.61 391.753 792.816 331.385C836.145 338.82 878.846 348.412 919.763 364.156C959.259 379.376 998.207 402.218 1034.65 430.2C1042.4 465.442 1046.49 502.035 1046.49 539.597Z`,fill:`#ADE1F9`}),(0,Z.jsx)(`path`,{d:`M564.419 640.626C547.183 638.435 529.981 636.244 512.885 633.831C403.162 618.297 293.381 591.562 196.897 537.056C132.368 500.602 84.1434 458.368 49.694 409.024V408.966C50.3116 406.67 50.9293 404.398 51.5586 402.114C59.4717 376.067 94.4223 285.258 196.535 290.887C220.951 292.227 314.976 303.473 328.156 413.29C329.124 421.343 330.056 429.407 331.606 437.379C352.094 542.871 468.926 601.573 559.093 638.505C560.865 639.227 562.648 639.915 564.419 640.626Z`,fill:`#E1FAE1`}),(0,Z.jsx)(`path`,{d:`M1034.65 430.2C998.207 402.218 959.259 379.376 919.763 364.156C878.846 348.412 836.145 338.82 792.816 331.385C697.66 315.034 599.521 309.067 511.113 271.017C464.998 251.158 420.549 220.566 399.537 174.976C379.469 131.471 380.086 94.0032 393.885 62.5722C396.659 56.2557 402.159 51.5125 408.825 49.7411C450.547 38.6347 494.367 32.7028 539.597 32.7028C719.058 32.7028 876.759 125.97 966.822 266.693C998.405 316.013 1021.67 371.195 1034.65 430.2Z`,fill:`#32B3EF`}),(0,Z.jsx)(`path`,{d:`M935.846 855.713C842.264 972.86 697.823 1047.61 535.96 1046.47C256.484 1044.51 32.3176 818.362 32.7022 538.874C32.7605 493.983 38.6809 450.466 49.694 409.024C84.1434 458.368 132.368 500.602 196.897 537.056C293.381 591.562 403.162 618.297 512.885 633.831C529.981 636.244 547.183 638.435 564.419 640.626C648.235 651.254 732.68 661.859 807.849 699.257C864.115 727.25 914.053 775.72 938.922 832.16C942.36 839.968 941.183 849.035 935.846 855.713Z`,fill:`#5ABD5E`}),(0,Z.jsx)(`path`,{d:`M1334.39 666.764C1342.47 652.634 1354.29 641.1 1369.86 632.161C1385.43 623.221 1403.17 618.752 1423.06 618.752C1444.4 618.752 1463.58 623.798 1480.59 633.891C1497.61 643.983 1511.01 658.257 1520.82 676.712C1530.62 694.879 1535.52 716.074 1535.52 740.296C1535.52 764.23 1530.62 785.569 1520.82 804.312C1511.01 823.056 1497.46 837.618 1480.16 847.999C1463.15 858.38 1444.11 863.571 1423.06 863.571C1402.59 863.571 1384.57 859.101 1369 850.162C1353.71 841.223 1342.18 829.832 1334.39 815.991V859.678H1295.03V539.597H1334.39V666.764ZM1495.3 740.296C1495.3 722.418 1491.69 706.846 1484.48 693.582C1477.28 680.317 1467.47 670.224 1455.07 663.304C1442.96 656.383 1429.55 652.923 1414.85 652.923C1400.43 652.923 1387.02 656.527 1374.62 663.736C1362.51 670.657 1352.7 680.894 1345.21 694.447C1338 707.711 1334.39 723.139 1334.39 740.729C1334.39 758.607 1338 774.323 1345.21 787.876C1352.7 801.14 1362.51 811.377 1374.62 818.586C1387.02 825.507 1400.43 828.967 1414.85 828.967C1429.55 828.967 1442.96 825.507 1455.07 818.586C1467.47 811.377 1477.28 801.14 1484.48 787.876C1491.69 774.323 1495.3 758.463 1495.3 740.296Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M1791.5 622.645L1648.76 971.274H1608.1L1654.81 857.083L1559.22 622.645H1602.91L1677.3 814.694L1750.84 622.645H1791.5Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M1396.94 429.813C1377.61 429.813 1360.21 426.499 1344.74 419.87C1329.28 412.966 1317.13 403.299 1308.29 390.871C1299.45 378.443 1295.03 363.943 1295.03 347.372H1345.57C1346.68 359.8 1351.51 370.019 1360.07 378.028C1368.91 386.038 1381.2 390.042 1396.94 390.042C1413.24 390.042 1425.94 386.176 1435.06 378.443C1444.17 370.433 1448.73 360.214 1448.73 347.786C1448.73 338.12 1445.83 330.248 1440.03 324.172C1434.5 318.096 1427.46 313.401 1418.9 310.087C1410.61 306.773 1399.01 303.182 1384.1 299.316C1365.32 294.344 1349.99 289.373 1338.12 284.402C1326.52 279.154 1316.57 271.145 1308.29 260.374C1300 249.602 1295.86 235.241 1295.86 217.289C1295.86 200.718 1300 186.218 1308.29 173.79C1316.57 161.361 1328.17 151.833 1343.09 145.204C1358 138.576 1375.26 135.262 1394.87 135.262C1422.77 135.262 1445.55 142.304 1463.23 156.39C1481.18 170.199 1491.12 189.256 1493.06 213.56H1440.86C1440.03 203.065 1435.06 194.089 1425.94 186.632C1416.83 179.175 1404.81 175.447 1389.9 175.447C1376.37 175.447 1365.32 178.899 1356.76 185.804C1348.2 192.708 1343.92 202.651 1343.92 215.632C1343.92 224.47 1346.54 231.788 1351.79 237.588C1357.31 243.112 1364.22 247.531 1372.5 250.845C1380.79 254.159 1392.11 257.75 1406.47 261.616C1425.53 266.864 1441 272.111 1452.87 277.359C1465.02 282.606 1475.24 290.754 1483.53 301.801C1492.09 312.573 1496.37 327.072 1496.37 345.3C1496.37 359.938 1492.37 373.748 1484.36 386.728C1476.62 399.709 1465.16 410.204 1449.97 418.213C1435.06 425.946 1417.38 429.813 1396.94 429.813Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M1607.2 237.174V363.529C1607.2 372.09 1609.13 378.305 1613 382.171C1617.14 385.762 1624.04 387.557 1633.71 387.557H1662.71V426.913H1625.42C1604.16 426.913 1587.86 421.942 1576.54 411.999C1565.22 402.056 1559.55 385.9 1559.55 363.529V237.174H1532.63V198.646H1559.55V141.89H1607.2V198.646H1662.71V237.174H1607.2Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M1753.46 231.788C1760.37 220.189 1769.48 211.213 1780.81 204.86C1792.41 198.232 1806.08 194.918 1821.82 194.918V243.802H1809.81C1791.3 243.802 1777.22 248.498 1767.55 257.888C1758.16 267.278 1753.46 283.573 1753.46 306.773V426.913H1706.24V198.646H1753.46V231.788Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2074.44 307.187C2074.44 315.749 2073.89 323.482 2072.79 330.386H1898.37C1899.76 348.615 1906.52 363.252 1918.67 374.3C1930.83 385.347 1945.74 390.871 1963.42 390.871C1988.83 390.871 2006.78 380.238 2017.27 358.972H2068.23C2061.32 379.962 2048.76 397.223 2030.53 410.756C2012.58 424.013 1990.21 430.642 1963.42 430.642C1941.6 430.642 1921.99 425.808 1904.59 416.142C1887.47 406.199 1873.93 392.39 1863.99 374.714C1854.32 356.762 1849.49 336.048 1849.49 312.573C1849.49 289.097 1854.19 268.521 1863.58 250.845C1873.24 232.893 1886.64 219.084 1903.76 209.417C1921.16 199.751 1941.05 194.918 1963.42 194.918C1984.96 194.918 2004.15 199.613 2021 209.003C2037.85 218.393 2050.97 231.65 2060.36 248.774C2069.75 265.621 2074.44 285.092 2074.44 307.187ZM2025.14 292.273C2024.87 274.873 2018.65 260.926 2006.5 250.431C1994.35 239.936 1979.3 234.688 1961.34 234.688C1945.05 234.688 1931.1 239.936 1919.5 250.431C1907.9 260.65 1901 274.597 1898.79 292.273H2025.14Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2105.18 311.744C2105.18 288.821 2109.87 268.521 2119.26 250.845C2128.93 233.169 2141.91 219.498 2158.2 209.832C2174.78 199.889 2193 194.918 2212.89 194.918C2230.84 194.918 2246.45 198.508 2259.7 205.689C2273.24 212.594 2284.01 221.293 2292.02 231.788V198.646H2339.66V426.913H2292.02V392.942C2284.01 403.714 2273.1 412.69 2259.29 419.87C2245.48 427.051 2229.74 430.642 2212.06 430.642C2192.45 430.642 2174.5 425.67 2158.2 415.728C2141.91 405.509 2128.93 391.423 2119.26 373.471C2109.87 355.243 2105.18 334.667 2105.18 311.744ZM2292.02 312.573C2292.02 296.83 2288.7 283.159 2282.07 271.559C2275.72 259.959 2267.3 251.121 2256.8 245.045C2246.31 238.969 2234.98 235.931 2222.83 235.931C2210.68 235.931 2199.36 238.969 2188.86 245.045C2178.37 250.845 2169.8 259.545 2163.18 271.145C2156.82 282.468 2153.65 296.001 2153.65 311.744C2153.65 327.487 2156.82 341.296 2163.18 353.172C2169.8 365.048 2178.37 374.162 2188.86 380.514C2199.63 386.59 2210.96 389.628 2222.83 389.628C2234.98 389.628 2246.31 386.59 2256.8 380.514C2267.3 374.438 2275.72 365.6 2282.07 354C2288.7 342.124 2292.02 328.315 2292.02 312.573Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2678.01 194.918C2695.96 194.918 2711.98 198.646 2726.07 206.103C2740.43 213.56 2751.62 224.608 2759.63 239.245C2767.91 253.883 2772.05 271.559 2772.05 292.273V426.913H2725.24V299.316C2725.24 278.878 2720.13 263.273 2709.91 252.502C2699.69 241.455 2685.75 235.931 2668.07 235.931C2650.39 235.931 2636.31 241.455 2625.81 252.502C2615.59 263.273 2610.49 278.878 2610.49 299.316V426.913H2563.67V299.316C2563.67 278.878 2558.56 263.273 2548.34 252.502C2538.12 241.455 2524.18 235.931 2506.5 235.931C2488.83 235.931 2474.74 241.455 2464.25 252.502C2454.03 263.273 2448.92 278.878 2448.92 299.316V426.913H2401.69V198.646H2448.92V224.746C2456.65 215.355 2466.46 208.036 2478.33 202.789C2490.21 197.541 2502.91 194.918 2516.44 194.918C2534.67 194.918 2550.97 198.784 2565.33 206.517C2579.69 214.251 2590.74 225.436 2598.47 240.074C2605.38 226.265 2616.15 215.355 2630.78 207.346C2645.42 199.06 2661.17 194.918 2678.01 194.918Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2816.41 311.744C2816.41 288.821 2821.1 268.521 2830.49 250.845C2840.16 233.169 2853.14 219.498 2869.43 209.832C2886.01 199.889 2904.23 194.918 2924.12 194.918C2942.07 194.918 2957.68 198.508 2970.93 205.689C2984.47 212.594 2995.24 221.293 3003.25 231.788V198.646H3050.89V426.913H3003.25V392.942C2995.24 403.714 2984.33 412.69 2970.52 419.87C2956.71 427.051 2940.97 430.642 2923.29 430.642C2903.68 430.642 2885.73 425.67 2869.43 415.728C2853.14 405.509 2840.16 391.423 2830.49 373.471C2821.1 355.243 2816.41 334.667 2816.41 311.744ZM3003.25 312.573C3003.25 296.83 2999.93 283.159 2993.3 271.559C2986.95 259.959 2978.53 251.121 2968.03 245.045C2957.54 238.969 2946.21 235.931 2934.06 235.931C2921.91 235.931 2910.59 238.969 2900.09 245.045C2889.6 250.845 2881.03 259.545 2874.41 271.145C2868.05 282.468 2864.88 296.001 2864.88 311.744C2864.88 327.487 2868.05 341.296 2874.41 353.172C2881.03 365.048 2889.6 374.162 2900.09 380.514C2910.86 386.59 2922.19 389.628 2934.06 389.628C2946.21 389.628 2957.54 386.59 2968.03 380.514C2978.53 374.438 2986.95 365.6 2993.3 354C2999.93 342.124 3003.25 328.315 3003.25 312.573Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3160.15 232.617C3168.16 221.57 3179.07 212.594 3192.88 205.689C3206.96 198.508 3222.57 194.918 3239.69 194.918C3259.85 194.918 3278.08 199.751 3294.37 209.417C3310.67 219.084 3323.51 232.893 3332.9 250.845C3342.29 268.521 3346.99 288.821 3346.99 311.744C3346.99 334.667 3342.29 355.243 3332.9 373.471C3323.51 391.423 3310.53 405.509 3293.96 415.728C3277.66 425.67 3259.57 430.642 3239.69 430.642C3222.01 430.642 3206.27 427.189 3192.46 420.285C3178.93 413.38 3168.16 404.542 3160.15 393.771V426.913H3112.92V120.348H3160.15V232.617ZM3298.93 311.744C3298.93 296.001 3295.62 282.468 3288.99 271.145C3282.64 259.545 3274.07 250.845 3263.3 245.045C3252.81 238.969 3241.48 235.931 3229.33 235.931C3217.46 235.931 3206.13 238.969 3195.36 245.045C3184.87 251.121 3176.3 259.959 3169.68 271.559C3163.32 283.159 3160.15 296.83 3160.15 312.573C3160.15 328.315 3163.32 342.124 3169.68 354C3176.3 365.6 3184.87 374.438 3195.36 380.514C3206.13 386.59 3217.46 389.628 3229.33 389.628C3241.48 389.628 3252.81 386.59 3263.3 380.514C3274.07 374.162 3282.64 365.048 3288.99 353.172C3295.62 341.296 3298.93 327.487 3298.93 311.744Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3440.92 120.348V426.913H3393.69V120.348H3440.92Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3712.13 307.187C3712.13 315.749 3711.58 323.482 3710.48 330.386H3536.07C3537.45 348.615 3544.21 363.252 3556.37 374.3C3568.52 385.347 3583.43 390.871 3601.11 390.871C3626.52 390.871 3644.47 380.238 3654.96 358.972H3705.92C3699.01 379.962 3686.45 397.223 3668.22 410.756C3650.27 424.013 3627.9 430.642 3601.11 430.642C3579.29 430.642 3559.68 425.808 3542.28 416.142C3525.16 406.199 3511.62 392.39 3501.68 374.714C3492.01 356.762 3487.18 336.048 3487.18 312.573C3487.18 289.097 3491.88 268.521 3501.27 250.845C3510.93 232.893 3524.33 219.084 3541.45 209.417C3558.85 199.751 3578.74 194.918 3601.11 194.918C3622.65 194.918 3641.84 199.613 3658.69 209.003C3675.54 218.393 3688.66 231.65 3698.05 248.774C3707.44 265.621 3712.13 285.092 3712.13 307.187ZM3662.83 292.273C3662.56 274.873 3656.34 260.926 3644.19 250.431C3632.04 239.936 3616.99 234.688 3599.04 234.688C3582.74 234.688 3568.79 239.936 3557.19 250.431C3545.59 260.65 3538.69 274.597 3536.48 292.273H3662.83Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3913.45 388.8H4010.81V426.913H3866.23V138.99H3913.45V388.8Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M4259.51 307.187C4259.51 315.749 4258.96 323.482 4257.86 330.386H4083.45C4084.83 348.615 4091.59 363.252 4103.75 374.3C4115.9 385.347 4130.81 390.871 4148.49 390.871C4173.9 390.871 4191.85 380.238 4202.34 358.972H4253.3C4246.4 379.962 4233.83 397.223 4215.6 410.756C4197.65 424.013 4175.28 430.642 4148.49 430.642C4126.67 430.642 4107.06 425.808 4089.66 416.142C4072.54 406.199 4059 392.39 4049.06 374.714C4039.39 356.762 4034.56 336.048 4034.56 312.573C4034.56 289.097 4039.26 268.521 4048.65 250.845C4058.31 232.893 4071.71 219.084 4088.83 209.417C4106.23 199.751 4126.12 194.918 4148.49 194.918C4170.03 194.918 4189.22 199.613 4206.07 209.003C4222.92 218.393 4236.04 231.65 4245.43 248.774C4254.82 265.621 4259.51 285.092 4259.51 307.187ZM4210.22 292.273C4209.94 274.873 4203.72 260.926 4191.57 250.431C4179.42 239.936 4164.37 234.688 4146.42 234.688C4130.12 234.688 4116.17 239.936 4104.57 250.431C4092.97 260.65 4086.07 274.597 4083.86 292.273H4210.22Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M4290.25 311.744C4290.25 288.821 4294.94 268.521 4304.33 250.845C4314 233.169 4326.98 219.498 4343.28 209.832C4359.85 199.889 4378.07 194.918 4397.96 194.918C4415.91 194.918 4431.52 198.508 4444.77 205.689C4458.31 212.594 4469.08 221.293 4477.09 231.788V198.646H4524.73V426.913H4477.09V392.942C4469.08 403.714 4458.17 412.69 4444.36 419.87C4430.55 427.051 4414.81 430.642 4397.13 430.642C4377.52 430.642 4359.57 425.67 4343.28 415.728C4326.98 405.509 4314 391.423 4304.33 373.471C4294.94 355.243 4290.25 334.667 4290.25 311.744ZM4477.09 312.573C4477.09 296.83 4473.77 283.159 4467.14 271.559C4460.79 259.959 4452.37 251.121 4441.87 245.045C4431.38 238.969 4420.06 235.931 4407.9 235.931C4395.75 235.931 4384.43 238.969 4373.93 245.045C4363.44 250.845 4354.88 259.545 4348.25 271.145C4341.89 282.468 4338.72 296.001 4338.72 311.744C4338.72 327.487 4341.89 341.296 4348.25 353.172C4354.88 365.048 4363.44 374.162 4373.93 380.514C4384.7 386.59 4396.03 389.628 4407.9 389.628C4420.06 389.628 4431.38 386.59 4441.87 380.514C4452.37 374.438 4460.79 365.6 4467.14 354C4473.77 342.124 4477.09 328.315 4477.09 312.573Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M4633.99 231.788C4640.89 220.189 4650.01 211.213 4661.33 204.86C4672.93 198.232 4686.6 194.918 4702.34 194.918V243.802H4690.33C4671.83 243.802 4657.74 248.498 4648.07 257.888C4638.68 267.278 4633.99 283.573 4633.99 306.773V426.913H4586.76V198.646H4633.99V231.788Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M4860.93 194.918C4878.88 194.918 4894.9 198.646 4908.98 206.103C4923.34 213.56 4934.53 224.608 4942.54 239.245C4950.55 253.883 4954.55 271.559 4954.55 292.273V426.913H4907.74V299.316C4907.74 278.878 4902.63 263.273 4892.41 252.502C4882.19 241.455 4868.24 235.931 4850.57 235.931C4832.89 235.931 4818.81 241.455 4808.31 252.502C4798.09 263.273 4792.98 278.878 4792.98 299.316V426.913H4745.76V198.646H4792.98V224.746C4800.72 215.355 4810.52 208.036 4822.4 202.789C4834.55 197.541 4847.39 194.918 4860.93 194.918Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M5038.82 168.404C5030.26 168.404 5023.08 165.504 5017.28 159.704C5011.48 153.904 5008.58 146.723 5008.58 138.162C5008.58 129.6 5011.48 122.419 5017.28 116.619C5023.08 110.819 5030.26 107.919 5038.82 107.919C5047.11 107.919 5054.15 110.819 5059.95 116.619C5065.75 122.419 5068.65 129.6 5068.65 138.162C5068.65 146.723 5065.75 153.904 5059.95 159.704C5054.15 165.504 5047.11 168.404 5038.82 168.404ZM5062.02 198.646V426.913H5014.79V198.646H5062.02Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M5239.2 194.918C5257.15 194.918 5273.17 198.646 5287.25 206.103C5301.61 213.56 5312.8 224.608 5320.81 239.245C5328.82 253.883 5332.82 271.559 5332.82 292.273V426.913H5286.01V299.316C5286.01 278.878 5280.9 263.273 5270.68 252.502C5260.46 241.455 5246.52 235.931 5228.84 235.931C5211.16 235.931 5197.08 241.455 5186.58 252.502C5176.36 263.273 5171.25 278.878 5171.25 299.316V426.913H5124.03V198.646H5171.25V224.746C5178.99 215.355 5188.79 208.036 5200.67 202.789C5212.82 197.541 5225.66 194.918 5239.2 194.918Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M5485.03 194.918C5502.71 194.918 5518.31 198.508 5531.85 205.689C5545.66 212.594 5556.43 221.293 5564.16 231.788V198.646H5611.8V430.642C5611.8 451.632 5607.38 470.274 5598.55 486.569C5589.71 503.14 5576.87 516.121 5560.02 525.511C5543.45 534.901 5523.56 539.597 5500.36 539.597C5469.43 539.597 5443.74 532.278 5423.31 517.64C5402.87 503.278 5391.27 483.669 5388.51 458.812H5435.32C5438.91 470.688 5446.51 480.217 5458.11 487.398C5469.98 494.855 5484.07 498.583 5500.36 498.583C5519.42 498.583 5534.75 492.783 5546.35 481.183C5558.22 469.584 5564.16 452.736 5564.16 430.642V392.528C5556.15 403.299 5545.24 412.413 5531.43 419.87C5517.9 427.051 5502.43 430.642 5485.03 430.642C5465.15 430.642 5446.92 425.67 5430.35 415.728C5414.05 405.509 5401.07 391.423 5391.41 373.471C5382.02 355.243 5377.32 334.667 5377.32 311.744C5377.32 288.821 5382.02 268.521 5391.41 250.845C5401.07 233.169 5414.05 219.498 5430.35 209.832C5446.92 199.889 5465.15 194.918 5485.03 194.918ZM5564.16 312.573C5564.16 296.83 5560.85 283.159 5554.22 271.559C5547.87 259.959 5539.44 251.121 5528.95 245.045C5518.45 238.969 5507.13 235.931 5494.98 235.931C5482.82 235.931 5471.5 238.969 5461.01 245.045C5450.51 250.845 5441.95 259.545 5435.32 271.145C5428.97 282.468 5425.79 296.001 5425.79 311.744C5425.79 327.487 5428.97 341.296 5435.32 353.172C5441.95 365.048 5450.51 374.162 5461.01 380.514C5471.78 386.59 5483.1 389.628 5494.98 389.628C5507.13 389.628 5518.45 386.59 5528.95 380.514C5539.44 374.438 5547.87 365.6 5554.22 354C5560.85 342.124 5564.16 328.315 5564.16 312.573Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2184.73 697.312C2217.58 716.279 2217.58 763.697 2184.73 782.664L1991.16 894.421C1947.5 919.629 1898.63 870.768 1923.84 827.107L1959.92 764.627C1968.72 749.38 1968.72 730.596 1959.92 715.349L1923.84 652.867C1898.63 609.206 1947.49 560.345 1991.16 585.553L2184.73 697.312Z`,fill:`#F8981D`}),(0,Z.jsx)(`path`,{d:`M2433.01 610.671C2460.47 610.671 2484.62 617.304 2505.32 630.699C2526.06 644.116 2541.15 663.143 2550.59 687.604L2552.75 693.182H2505.75L2504.65 690.795C2498.16 676.681 2488.82 665.934 2476.64 658.407L2476.55 658.349L2476.53 658.341C2465.01 651.108 2451.1 647.289 2434.62 647.057L2433.01 647.045C2416.54 647.045 2401.88 650.874 2388.95 658.457C2376.03 666.028 2365.87 676.832 2358.46 690.984L2358.45 691.008C2351.07 704.866 2347.3 721.319 2347.3 740.501C2347.3 759.416 2351.06 775.868 2358.43 789.971L2359.15 791.291L2359.85 792.527C2367.11 805.215 2376.81 815.076 2388.95 822.192C2401.88 829.775 2416.54 833.603 2433.01 833.603L2434.62 833.592C2451.16 833.366 2465.11 829.637 2476.66 822.583C2488.83 815.056 2498.16 804.313 2504.65 790.205L2505.75 787.819H2552.76L2550.59 793.408C2541.14 817.637 2526.05 836.541 2505.32 849.951L2505.25 849.999L2505.22 850.014C2484.54 863.132 2460.42 869.625 2433.01 869.625C2409.57 869.625 2388.1 864.181 2368.67 853.251L2368.65 853.24L2368.64 853.237L2368.54 853.181L2368.52 853.169C2349.38 842.001 2334.22 826.58 2323.09 806.975C2311.9 787.282 2306.35 765.089 2306.35 740.501C2306.35 715.912 2311.9 693.719 2323.09 674.026C2334.2 654.221 2349.33 638.695 2368.44 627.526L2368.46 627.517L2368.63 627.417C2388.07 616.24 2409.56 610.671 2433.01 610.671Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2637.06 869.626H2596.11V610.676H2637.06V869.626Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2728.31 869.625H2687.37V684.982H2728.31V869.625Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2708.2 610.671C2715.28 610.671 2721.38 613.264 2726.23 618.368L2726.7 618.85C2731.48 623.866 2733.89 630.02 2733.89 637.081C2733.89 644.37 2731.32 650.692 2726.23 655.793C2721.38 660.897 2715.28 663.491 2708.2 663.491C2700.9 663.491 2694.57 660.918 2689.47 655.813C2684.36 650.707 2681.79 644.379 2681.79 637.081C2681.79 629.782 2684.36 623.454 2689.47 618.349C2694.57 613.244 2700.9 610.671 2708.2 610.671Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3454.19 869.625H3413.24V684.982H3454.19V869.625Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3434.07 610.671C3441.15 610.671 3447.25 613.264 3452.1 618.368L3452.57 618.85C3457.35 623.866 3459.76 630.02 3459.76 637.081C3459.76 644.37 3457.19 650.692 3452.1 655.793C3447.25 660.897 3441.15 663.491 3434.07 663.491C3426.77 663.491 3420.44 660.918 3415.34 655.813C3410.23 650.707 3407.66 644.379 3407.66 637.081C3407.66 629.782 3410.23 623.454 3415.34 618.349C3420.44 613.244 3426.77 610.671 3434.07 610.671Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2855.46 684.984C2855.61 684.983 2855.92 684.978 2856.13 684.978H2856.15L2857.22 684.984C2857.4 684.983 2857.71 684.978 2857.95 684.978L2858.99 684.982C2880.69 685.144 2898.92 690.401 2913.4 701.052C2928.28 711.845 2938.05 726.83 2942.73 745.767L2943.99 750.85H2901.14L2900.29 747.879C2900.27 747.814 2900.27 747.804 2900.25 747.762C2897.15 740.415 2892.52 734.416 2886.35 729.697L2886.33 729.687L2886.26 729.633C2878.65 723.682 2869.09 720.499 2857.31 720.301L2856.12 720.292C2840.34 720.296 2827.83 726.106 2818.19 737.763L2818.19 737.774L2818.13 737.843C2815.18 741.35 2812.67 745.335 2810.59 749.815C2807.89 757.472 2806.49 766.507 2806.49 776.989L2806.49 777.999L2806.5 778.968C2806.67 788.88 2808.1 797.486 2810.72 804.846C2812.77 809.3 2815.25 813.276 2818.15 816.791C2827.79 828.485 2840.33 834.312 2856.13 834.312L2857.28 834.304C2869.11 834.116 2878.7 831.032 2886.32 825.282C2892.41 820.687 2897.07 814.545 2900.3 806.733C2900.3 806.721 2900.3 806.708 2900.31 806.69L2901.18 803.751H2944.1L2942.71 808.914C2937.8 827.227 2927.92 842.044 2913.12 853.209L2913 853.296L2912.97 853.314C2898.33 864.099 2880.25 869.453 2858.97 869.618L2857.95 869.622C2857.77 869.622 2857.51 869.619 2857.38 869.618L2856.15 869.626H2856.13C2855.8 869.626 2855.44 869.62 2855.16 869.618L2854.38 869.622H2854.37C2837.19 869.622 2821.74 865.856 2808.1 858.228L2808.08 858.218L2808.01 858.173C2794.99 850.75 2784.7 840.332 2777.17 827.003L2777.16 826.991L2777.16 826.98L2776.47 825.73L2776.46 825.719L2776.45 825.707C2769.08 812.144 2765.35 796.437 2765.12 778.71V778.69L2765.11 777.011V776.989C2765.11 758.759 2768.85 742.675 2776.46 728.875L2776.47 728.871L2777.16 727.621L2777.16 727.61L2777.17 727.598C2784.7 714.268 2794.99 703.851 2808.01 696.428L2808.08 696.383L2808.1 696.372C2821.74 688.744 2837.19 684.978 2854.37 684.978H2854.39L2855.46 684.984Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3263.09 819.014L3339.01 610.671H3382.34L3284.63 869.625H3241.19L3143.47 610.671H3187.17L3263.09 819.014Z`,fill:`white`}),(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3579.56 684.978C3596.39 684.978 3611.44 688.651 3624.61 696.11C3637.73 703.544 3647.83 713.86 3654.86 727.001L3655.42 728.018L3655.42 728.029L3655.43 728.04C3661.37 739.038 3664.7 751.245 3665.48 764.594C3665.59 766.623 3665.65 768.677 3665.65 770.755V770.768L3665.65 771.791V771.801C3665.61 777.047 3665.29 782.556 3664.7 788.322L3664.32 792H3532.34C3533.17 799.02 3534.91 805.215 3537.53 810.63C3539.52 813.937 3541.84 816.953 3544.48 819.68C3554.3 829.376 3566 834.222 3579.83 834.309C3591.23 834.265 3600.38 831.307 3607.58 825.683C3613.44 821.05 3617.94 815.283 3621.12 808.331L3622.21 805.935H3664.77L3663.31 811.142C3658.45 828.439 3648.71 842.603 3634.18 853.526L3634.17 853.533L3634.16 853.541L3634.15 853.55C3619.49 864.348 3601.42 869.625 3580.2 869.625C3580.13 869.625 3580.03 869.624 3580.03 869.623C3580.01 869.623 3579.99 869.623 3579.97 869.623L3579.58 869.625H3579.56C3562.72 869.625 3547.46 865.837 3533.91 858.184L3533.9 858.18L3533.89 858.175L3533.89 858.172L3533.88 858.17C3520.57 850.531 3510.09 839.727 3502.47 825.856L3502.46 825.831L3502.38 825.695C3494.98 811.948 3491.22 796.245 3490.99 778.693V778.671L3490.98 777.011V776.99C3490.98 758.77 3494.63 742.604 3502.06 728.616C3509.37 714.864 3519.58 704.211 3532.67 696.76L3533.3 696.408C3546.87 688.753 3562.33 684.978 3579.56 684.978ZM3578.13 720.286C3565.7 720.286 3555.27 724.02 3546.6 731.408C3539.22 737.838 3534.53 746.52 3532.67 757.743H3624C3623.45 750.674 3621.47 744.668 3618.16 739.61L3618.12 739.556L3618.12 739.547C3614.12 733.286 3608.67 728.593 3601.67 725.432L3601.65 725.426L3601.61 725.407L3601.57 725.388L3601.54 725.373C3594.62 722.006 3586.84 720.286 3578.13 720.286Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3892.36 869.626H3853.2L3815.15 744.252L3777.11 869.626H3737.96L3680 684.979H3721.46L3757.71 817.293L3796.83 684.979H3835.72L3873.87 817.206L3909.44 684.979L3949.85 684.977L3892.36 869.626Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3022.18 756.349L3084.15 684.984H3136.42L3049.47 776.987L3136.72 869.626H3085.46L3022.18 798.395V869.626H2981.23V610.676H3022.18V756.349Z`,fill:`white`})]})}function Lw(){return(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`40`,height:`40`,viewBox:`0 0 40 40`,fill:`none`,children:[(0,Z.jsx)(`path`,{d:`M20 38.7879C30.3763 38.7879 38.7879 30.3763 38.7879 20C38.7879 9.62374 30.3763 1.21212 20 1.21212C9.62374 1.21212 1.21212 9.62374 1.21212 20C1.21212 30.3763 9.62374 38.7879 20 38.7879Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M40 20C40 8.95431 31.0457 0 20 0C8.95431 0 0 8.95431 0 20C0 31.0457 8.95431 40 20 40C31.0457 40 40 31.0457 40 20ZM38.7879 20C38.7879 30.3763 30.3763 38.7879 20 38.7879C9.62374 38.7879 1.21212 30.3763 1.21212 20C1.21212 9.62374 9.62374 1.21212 20 1.21212C30.3763 1.21212 38.7879 9.62374 38.7879 20Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M38.7879 20C38.7879 22.0082 38.4721 23.9425 37.889 25.7571C37.7071 24.466 37.2963 22.6012 36.3672 20.5494C35.2519 18.0869 31.75 14.5202 29.3855 12.2827C30.9915 12.5583 32.5742 12.9138 34.0908 13.4974C35.5547 14.0615 36.9983 14.9081 38.349 15.9452C38.6362 17.2515 38.7879 18.6078 38.7879 20Z`,fill:`#ADE1F9`}),(0,Z.jsx)(`path`,{d:`M20.92 23.7446C20.2812 23.6634 19.6436 23.5822 19.0099 23.4928C14.9431 22.917 10.8741 21.9261 7.29792 19.9058C4.90618 18.5547 3.11875 16.9893 1.84189 15.1604V15.1582C1.86479 15.0731 1.88768 14.9889 1.91101 14.9042C2.2043 13.9388 3.49974 10.573 7.28453 10.7817C8.18947 10.8313 11.6745 11.2482 12.163 15.3185C12.1989 15.617 12.2334 15.9159 12.2909 16.2113C13.0503 20.1214 17.3806 22.2971 20.7226 23.666C20.7883 23.6928 20.8544 23.7183 20.92 23.7446Z`,fill:`#E1FAE1`}),(0,Z.jsx)(`path`,{d:`M38.349 15.9452C36.9983 14.9081 35.5547 14.0615 34.0908 13.4974C32.5742 12.9138 30.9915 12.5583 29.3855 12.2827C25.8586 11.6767 22.2211 11.4555 18.9443 10.0452C17.235 9.30911 15.5875 8.17523 14.8087 6.48543C14.0649 4.87294 14.0878 3.4842 14.5992 2.31922C14.702 2.0851 14.9059 1.9093 15.153 1.84364C16.6994 1.43199 18.3236 1.21212 20 1.21212C26.6517 1.21212 32.4969 4.66906 35.835 9.88491C37.0056 11.7129 37.8678 13.7583 38.349 15.9452Z`,fill:`#32B3EF`}),(0,Z.jsx)(`path`,{d:`M34.6869 31.7168C31.2183 36.0588 25.8646 38.8293 19.8652 38.787C9.5065 38.7144 1.19784 30.3324 1.2121 19.9732C1.21426 18.3093 1.4337 16.6964 1.84189 15.1604C3.11875 16.9893 4.90618 18.5547 7.29792 19.9058C10.8741 21.9261 14.9431 22.917 19.0099 23.4928C19.6436 23.5822 20.2812 23.6634 20.92 23.7446C24.0267 24.1386 27.1566 24.5316 29.9427 25.9178C32.0282 26.9553 33.8791 28.7518 34.8009 30.8438C34.9283 31.1332 34.8847 31.4693 34.6869 31.7168Z`,fill:`#5ABD5E`})]})}function Rw(){return(0,Z.jsxs)(`div`,{className:`${Fw.logoContainer} d-flex align-items-center`,children:[(0,Z.jsx)(`div`,{className:`d-none d-sm-block h-100`,children:(0,Z.jsx)(Iw,{})}),(0,Z.jsx)(`div`,{className:`${Fw.iconLogo} d-block d-sm-none`,children:(0,Z.jsx)(Lw,{})})]})}var zw=e=>{let t=Et(Gt.currentUser()),n=Et(t.hasCompleted&&Mx.getCustomerSettingsRequest(t.data)),r=Et(t.hasCompleted&&Mx.getUserSettingsRequest(t.data)),i=Dt(),a=!!n.hasCompleted&&!!r.hasCompleted,o=e=>{if(!a||n.hasError||r.hasError)return null;let t=n.data?.[e];if(t)return t?.value;let i=r.data?.[e];return i?i?.value:null};function s(e,t,n,r,i){return e===`user`?Fx.updateUserSetting(t,n,r,i):Fx.updateCustomerSetting(t,n,r,i)}let c=(t,n,r,a,o)=>{function c(){dt.logUserAction({name:n.name,value:n.value},{location:e,entity:ct.UserSetting,actionType:B.Edit}),r?.()}jt(i,s(t,n,c,a,o))},l=(e,t)=>new Promise((n,r)=>{c(e,t,n,r)}),u=(e,t,n,r)=>c(`user`,e,t,n,r),d=(e,t,n,r)=>c(`customer`,e,t,n,r),f=e=>l(`user`,e),p=e=>l(`customer`,e);function m(){return t.data?.isAuthenticated?o(Q.HasTopicDirectories):!0}return{isLoadingSettings:!a,updateUserSetting:u,updateUserSettingAsync:f,updateCustomerSetting:d,updateCustomerSettingAsync:p,userSettings:r,shareToGoogleClassroom:o(Q.ShareToGoogleClassroom),shareToMicrosoftTeams:o(Q.ShareToMicrosoftTeams),hasLti:o(Q.LTI),defaultPlaybackQuality:o(Q.DefaultPlaybackQuality),defaultLocalCachePlaybackQuality:o(Q.DefaultLocalCachePlaybackQuality),enableSubtitlesDefault:o(Q.EnableSubtitlesDefault),hasCompletedOnboardingV1:o(Q.HasCompletedOnboardingV1),hasCompletedOnboardingV2:o(Q.HasCompletedOnboardingV2),liteUpgradeTypeCustomer:o(Q.LiteUpgradeTypeCustomer),hasNewClassificationView:o(Q.HasNewClassificationView),hasCuratedDiscoverDashboards:o(Q.HasCuratedDiscoverDashboards),hasSpecialEventCalendar:o(Q.HasSpecialEventCalendar),hasLiteSearchDropdown:o(Q.HasLiteSearchDropdown),policyEndTime:o(Q.PolicyEndTime),bulkOnboardingPreferencesState:o(Q.BulkOnboardingPreferencesState),hasOnlineTopics:o(Q.Topics),hasPreviewVideos:o(Q.PreviewVideos),hasUserEnabledPreviewVideos:o(Q.UserEnabledPreviewVideos),domainSettings:o(Q.DomainSettings),inviteColleague:o(Q.InviteColleague),myVideosFolders:o(Q.MyVideosFolders),exchangeTvProductOption:o(Q.ExchangeTvProductOption),messageFrequencyOption:o(Q.MessageFrequencyOption),tvRegion:o(Q.TvRegion),preferredTheme:o(Q.PreferredTheme),hasHubEntry:o(Q.HasHubEntry),hasEnabledViviStudentCasting:o(Q.HasEnabledViviStudentCasting),hasEnabledViviPlayback:o(Q.HasEnabledViviPlayback),hasEnabledAppleTvPlayback:o(Q.HasEnabledAppleTvPlayback),hasDisplayedTutorialVideosProductTip:o(Q.HasDisplayedTutorialVideosProductTip),hasDismissedAnalyticsTutorial:o(Q.HasDismissedAnalyticsTutorial),hasDismissedOpenClassroomsTutorial:o(Q.HasDismissedOpenClassroomsTutorial),hasDismissedSearchAndDiscoverTutorial:o(Q.HasDismissedSearchAndDiscoverTutorial),hasDismissedClassroomsTutorial:o(Q.HasDismissedClassroomsTutorial),hasDismissedMySharesTutorial:o(Q.HasDismissedMySharesTutorial),hasDismissedMyVideosTutorial:o(Q.HasDismissedMyVideosTutorial),hasDismissedPlaylistsTutorial:o(Q.HasDismissedPlaylistsTutorial),showExchangeSearchResults:o(Q.ShowExchangeSearchResultsUser),shareOverrideRestrictions:o(Q.ShareOverrideRestrictions),hasTopicDirectories:m(),hasTopicVideoListFeature:o(Q.HasTopicVideoListFeature),hasManageGroupPermissions:o(Q.HasManageGrouPermissions),experimentalInteractiveQuestions:o(Q.ExperimentalInteractiveQuestions),hasClassrooms:o(Q.HasClassrooms),hasNewSearch:o(Q.HasNewSearch),hasPlayPageTranscript:o(Q.HasPlayPageTranscript),hasShareFlowV2:o(Q.HasShareFlowV2),referralCount:o(Q.ReferralCount),hasPartnerProfiles:o(Q.HasPartnerProfiles),defaultCitationStyle:o(Q.DefaultCitationStyle),hasStudentReach:o(Q.HasStudentReach),studentReachClassroomSize:o(Q.StudentReachClassroomSize),schoolStartTime:o(Q.SchoolStartTime),schoolEndTime:o(Q.SchoolEndTime),timezone:o(Q.Timezone),clickViewLive:o(Q.ClickViewLive),hasStudentLowerPresentations:o(Q.HasStudentLowerPresentations)}},Bw={banner:`_banner_1q8e9_1`},Vw=`shared.streamableTrialBanner`,Hw=30;function Uw(){let{policyEndTime:e,isLoadingSettings:t}=zw(null),n=X.useMemo(()=>{if(t)return 0;let n=new Date(e),r=new Date;return Math.max(bt.diffBetween(n,r,`day`),0)+1},[t,e]);return t?(0,Z.jsx)(Z.Fragment,{}):(0,Z.jsx)(`div`,{className:`bg-light-green d-none d-md-block text-center ${Bw.banner}`,children:(0,Z.jsx)(Z.Fragment,{children:(0,Z.jsx)(`span`,{className:`py-3 mb-0 d-inline-block h6`,children:n<=Hw?(0,Z.jsx)(Wn,{namespace:Vw,phrase:`endTime`,options:{smartCount:n}}):(0,Z.jsx)(Wn,{namespace:Vw,phrase:`endDate`,options:{endDate:bt.format(e,`Do MMMM`)}})})})})}var Ww=()=>{let e=Et(Et(Gt.currentUser()).data?.isAuthenticated&&jx.userProducts()),t=!e.hasCompleted;return{hasProduct:n=>t||e.hasError||!e.data?.length?!1:e.data.some(e=>e.id===n),products:e,isLoadingProducts:t}},Gw=function(e){return e.Static=`Static`,e.Timed=`Timed`,e.Cft=`Cft`,e}({});function Kw(){let{hasPermissions:e,isLoaded:t}=uw(),{policyHasOption:n,accessPolicy:r,isLoaded:i}=cw(),{hasProduct:a}=Ww(),{policyEndTime:o,isLoadingSettings:s,inviteColleague:c}=zw(null),l=X.useMemo(()=>{if(s)return 0;let e=new Date(o),t=new Date;return Math.max(bt.diffBetween(e,t,`day`),0)+1},[s,o]),u=e(Rt.ViewTrialBanner)||n(ow.StreamableViewTrialBanner);return{showBanner:a(Bt.StreamableLearning)&&!s&&i&&u&&!e(Rt.StudentExperience),viewTrialDuration:[Gw.Timed,Gw.Cft].includes(r?.type),viewTrialUpgrade:e(Rt.ViewTrialUpgrade),viewInviteColleague:c&&e(Rt.ViewInviteColleague),daysLeft:l,hasLoaded:!s&&t&&i}}function qw(){let{showBanner:e,hasLoaded:t,viewTrialDuration:n}=Kw();function r(){return t&&e&&n?`trial`:`none`}return r()===`trial`?(0,Z.jsx)(Uw,{}):(0,Z.jsx)(Z.Fragment,{})}var Jw=Xe.encloseNamespace(`streamableShared.header`);function Yw({showNav:e}){let t=Et(kx.config()),n=Et(Gt.currentUser());return function(){return!n.hasCompleted||!t.hasCompleted||!n.data.isAuthenticated||!e?[]:[{label:Jw(`settings`),order:10,appLink:{application:V.SETTINGS,action:Jt.Settings.HOME},analyticsData:{url:R.getHref({application:V.SETTINGS,action:Jt.Settings.HOME})},analyticsOptions:{location:ut.UserOptions,actionType:B.Click,entity:ct.Url}}]}}var Xw=T(((e,t)=>{function n(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}t.exports=n})),Zw=T(((e,t)=>{var n=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}();t.exports=function(e){var t=e.data,r=e.multiSection;function i(e){for(e===null?e=0:e++;e<t.length&&t[e]===0;)e++;return e===t.length?null:e}function a(e){for(e===null?e=t.length-1:e--;e>=0&&t[e]===0;)e--;return e===-1?null:e}function o(e){var a=n(e,2),o=a[0],s=a[1];return r?s===null||s===t[o]-1?(o=i(o),o===null?[null,null]:[o,0]):[o,s+1]:t===0||s===t-1?[null,null]:s===null?[null,0]:[null,s+1]}function s(e){var i=n(e,2),o=i[0],s=i[1];return r?s===null||s===0?(o=a(o),o===null?[null,null]:[o,t[o]-1]):[o,s-1]:t===0||s===0?[null,null]:s===null?[null,t-1]:[null,s-1]}function c(e){return o(e)[1]===null}return{next:o,prev:s,isLast:c}}})),Qw=T(((e,t)=>{var n=Object.prototype.propertyIsEnumerable;function r(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function i(e){var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t.filter(function(t){return n.call(e,t)})}t.exports=Object.assign||function(e,t){for(var n,a,o=r(e),s=1;s<arguments.length;s++){n=arguments[s],a=i(Object(n));for(var c=0;c<a.length;c++)o[a[c]]=n[a[c]]}return o}})),$w=T(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0});var n=(function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}})();function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var a=r(Qw()),o=function(e){return e};e.default=function(e){var t=n(Array.isArray(e)&&e.length===2?e:[e,null],2),r=t[0],s=t[1];return function(e){var t=[...arguments].slice(1).map(function(e){return r[e]}).filter(o);return typeof t[0]==`string`||typeof s==`function`?{key:e,className:s?s.apply(void 0,i(t)):t.join(` `)}:{key:e,style:a.default.apply(void 0,[{}].concat(i(t)))}}},t.exports=e.default})),eT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=n;function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(e===n)return!1;var i=Object.keys(e),a=Object.keys(n);if(i.length!==a.length)return!0;var o={},s,c;for(s=0,c=r.length;s<c;s++)o[r[s]]=!0;for(s=0,c=i.length;s<c;s++){var l=i[s],u=e[l],d=n[l];if(u!==d){if(!o[l]||u===null||d===null||t(u)!==`object`||t(d)!==`object`)return!0;var f=Object.keys(u),p=Object.keys(d);if(f.length!==p.length)return!0;for(var m=0,h=f.length;m<h;m++){var g=f[m];if(u[g]!==d[g])return!0}}}return!1}})),tT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=o(ht()),n=i(Qe()),r=i(eT());function i(e){return e&&e.__esModule?e:{default:e}}function a(){if(typeof WeakMap!=`function`)return null;var e=new WeakMap;return a=function(){return e},e}function o(e){if(e&&e.__esModule)return e;if(e===null||s(e)!==`object`&&typeof e!=`function`)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function d(e){return function(){var t=h(e),n;if(m()){var r=h(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return f(this,n)}}function f(e,t){return t&&(s(t)===`object`||typeof t==`function`)?t:p(e)}function p(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function m(){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 h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){g(i,e);var n=d(i);function i(){return c(this,i),n.apply(this,arguments)}return u(i,[{key:`shouldComponentUpdate`,value:function(e){return(0,r.default)(e,this.props)}},{key:`render`,value:function(){var e=this.props,n=e.section,r=e.renderSectionTitle,i=e.theme,a=e.sectionKeyPrefix,o=r(n);return o?t.default.createElement(`div`,i(`${a}title`,`sectionTitle`),o):null}}]),i}(t.Component);e.default=y,v(y,`propTypes`,{section:n.default.any.isRequired,renderSectionTitle:n.default.func.isRequired,theme:n.default.func.isRequired,sectionKeyPrefix:n.default.string.isRequired})})),nT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=o(ht()),n=i(Qe()),r=i(eT());function i(e){return e&&e.__esModule?e:{default:e}}function a(){if(typeof WeakMap!=`function`)return null;var e=new WeakMap;return a=function(){return e},e}function o(e){if(e&&e.__esModule)return e;if(e===null||s(e)!==`object`&&typeof e!=`function`)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?l(Object(n),!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){if(e==null)return{};var n=f(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function f(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function p(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(e){return function(){var t=b(e),n;if(y()){var r=b(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return _(this,n)}}function _(e,t){return t&&(s(t)===`object`||typeof t==`function`)?t:v(e)}function v(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function y(){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 b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function x(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){x(i,e);var n=g(i);function i(){var e;p(this,i);var t=[...arguments];return e=n.call.apply(n,[this].concat(t)),C(v(e),`storeItemReference`,function(t){t!==null&&(e.item=t)}),C(v(e),`onMouseEnter`,function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onMouseEnter(t,{sectionIndex:r,itemIndex:i})}),C(v(e),`onMouseLeave`,function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onMouseLeave(t,{sectionIndex:r,itemIndex:i})}),C(v(e),`onMouseDown`,function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onMouseDown(t,{sectionIndex:r,itemIndex:i})}),C(v(e),`onClick`,function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onClick(t,{sectionIndex:r,itemIndex:i})}),e}return h(i,[{key:`shouldComponentUpdate`,value:function(e){return(0,r.default)(e,this.props,[`renderItemData`])}},{key:`render`,value:function(){var e=this.props,n=e.isHighlighted,r=e.item,i=e.renderItem,a=e.renderItemData,o=d(e,[`isHighlighted`,`item`,`renderItem`,`renderItemData`]);return delete o.sectionIndex,delete o.itemIndex,typeof o.onMouseEnter==`function`&&(o.onMouseEnter=this.onMouseEnter),typeof o.onMouseLeave==`function`&&(o.onMouseLeave=this.onMouseLeave),typeof o.onMouseDown==`function`&&(o.onMouseDown=this.onMouseDown),typeof o.onClick==`function`&&(o.onClick=this.onClick),t.default.createElement(`li`,c({role:`option`},o,{ref:this.storeItemReference}),i(r,u({isHighlighted:n},a)))}}]),i}(t.Component);e.default=w,C(w,`propTypes`,{sectionIndex:n.default.number,isHighlighted:n.default.bool.isRequired,itemIndex:n.default.number.isRequired,item:n.default.any.isRequired,renderItem:n.default.func.isRequired,renderItemData:n.default.object.isRequired,onMouseEnter:n.default.func,onMouseLeave:n.default.func,onMouseDown:n.default.func,onClick:n.default.func})})),rT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=s(ht()),n=a(Qe()),r=a(nT()),i=a(eT());function a(e){return e&&e.__esModule?e:{default:e}}function o(){if(typeof WeakMap!=`function`)return null;var e=new WeakMap;return o=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(e===null||c(e)!==`object`&&typeof e!=`function`)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function c(e){"@babel/helpers - typeof";return c=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},c(e)}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?u(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(e){return function(){var t=y(e),n;if(v()){var r=y(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return g(this,n)}}function g(e,t){return t&&(c(t)===`object`||typeof t==`function`)?t:_(e)}function _(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function v(){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 y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=function(e){b(a,e);var n=h(a);function a(){var e;f(this,a);var t=[...arguments];return e=n.call.apply(n,[this].concat(t)),S(_(e),`storeHighlightedItemReference`,function(t){e.props.onHighlightedItemChange(t===null?null:t.item)}),e}return m(a,[{key:`shouldComponentUpdate`,value:function(e){return(0,i.default)(e,this.props,[`itemProps`])}},{key:`render`,value:function(){var e=this,n=this.props,i=n.items,a=n.itemProps,o=n.renderItem,s=n.renderItemData,c=n.sectionIndex,u=n.highlightedItemIndex,f=n.getItemId,p=n.theme,m=n.keyPrefix,h=c===null?m:`${m}section-${c}-`,g=typeof a==`function`;return t.default.createElement(`ul`,l({role:`listbox`},p(`${h}items-list`,`itemsList`)),i.map(function(n,i){var m=i===0,_=i===u,v=`${h}item-${i}`,y=g?a({sectionIndex:c,itemIndex:i}):a,b=d({id:f(c,i),"aria-selected":_},p(v,`item`,m&&`itemFirst`,_&&`itemHighlighted`),{},y);return _&&(b.ref=e.storeHighlightedItemReference),t.default.createElement(r.default,l({},b,{sectionIndex:c,isHighlighted:_,itemIndex:i,item:n,renderItem:o,renderItemData:s}))}))}}]),a}(t.Component);e.default=C,S(C,`propTypes`,{items:n.default.array.isRequired,itemProps:n.default.oneOfType([n.default.object,n.default.func]),renderItem:n.default.func.isRequired,renderItemData:n.default.object.isRequired,sectionIndex:n.default.number,highlightedItemIndex:n.default.number,onHighlightedItemChange:n.default.func.isRequired,getItemId:n.default.func.isRequired,theme:n.default.func.isRequired,keyPrefix:n.default.string.isRequired}),S(C,`defaultProps`,{sectionIndex:null})})),iT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=l(ht()),n=s(Qe()),r=s(Zw()),i=s($w()),a=s(tT()),o=s(rT());function s(e){return e&&e.__esModule?e:{default:e}}function c(){if(typeof WeakMap!=`function`)return null;var e=new WeakMap;return c=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(e===null||v(e)!==`object`&&typeof e!=`function`)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?u(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){return _(e)||g(e,t)||m(e,t)||p()}function p(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
`&&r!==`\f`&&r!==`\r`)break}return t},g=function(e,t,n){var r=e.length;r<4&&(e+=r===2?`AA`:`A`);var i=(t[m(e,0)]<<18)+(t[m(e,1)]<<12)+(t[m(e,2)]<<6)+t[m(e,3)],a=[i>>16&255,i>>8&255,i&255];if(r===2){if(n&&a[1]!==0)throw new f(`Extra bits`);return[a[0]]}if(r===3){if(n&&a[2]!==0)throw new f(`Extra bits`);return[a[0],a[1]]}return a},_=function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[n+i]=t[i];return n+r};t.exports=function(e,t,n,r){a(e),i(t);var s=c(t)===`base64`?u:d,v=t?t.lastChunkHandling:void 0;if(v===void 0&&(v=`loose`),v!==`loose`&&v!==`strict`&&v!==`stop-before-partial`)throw new p("Incorrect `lastChunkHandling` option");n&&l(n.buffer);var y=e.length,b=n||[],x=0,S=0,C=``,w=0;if(r)for(;;){if(w=h(e,w),w===y){if(C.length>0){if(v===`stop-before-partial`)break;if(v===`loose`){if(C.length===1)throw new f(`Malformed padding: exactly one additional character`);x=_(b,g(C,s,!1),x)}else throw new f(`Missing padding`)}S=y;break}var T=m(e,w);if(++w,T===`=`){if(C.length<2)throw new f(`Padding is too early`);if(w=h(e,w),C.length===2){if(w===y){if(v===`stop-before-partial`)break;throw new f(`Malformed padding: only one =`)}m(e,w)===`=`&&(++w,w=h(e,w))}if(w<y)throw new f(`Unexpected character after padding`);x=_(b,g(C,s,v===`strict`),x),S=y;break}if(!o(s,T))throw new f(`Unexpected character`);var E=r-x;if(E===1&&C.length===2||E===2&&C.length===3||(C+=T,C.length===4&&(x=_(b,g(C,s,!1),x),C=``,S=w,x===r)))break}return{bytes:b,read:S,written:x}}})),Vp=T((()=>{var e=J(),t=H(),n=Xo(),r=Bp(),i=t.Uint8Array,a=!i||!i.fromBase64||!function(){try{i.fromBase64(`a`);return}catch{}try{i.fromBase64(``,null)}catch{return!0}}();i&&e({target:`Uint8Array`,stat:!0,forced:a},{fromBase64:function(e){return n(i,r(e,arguments.length>1?arguments[1]:void 0,null,9007199254740991).bytes)}})})),Hp=T(((e,t)=>{var n=H(),r=K(),i=n.Uint8Array,a=n.SyntaxError,o=n.parseInt,s=Math.min,c=/[^\da-f]/i,l=r(c.exec),u=r(``.slice);t.exports=function(e,t){var n=e.length;if(n%2!=0)throw new a(`String should be an even number of characters`);for(var r=t?s(t.length,n/2):n/2,d=t||new i(r),f=0,p=0;p<r;){var m=u(e,f,f+=2);if(l(c,m))throw new a(`String should only contain hex characters`);d[p++]=o(m,16)}return{bytes:d,read:f}}})),Up=T((()=>{var e=J(),t=H(),n=dd(),r=Hp();t.Uint8Array&&e({target:`Uint8Array`,stat:!0},{fromHex:function(e){return r(n(e)).bytes}})})),Wp=T(((e,t)=>{var n=Si(),r=TypeError;t.exports=function(e){if(n(e)===`Uint8Array`)return e;throw new r(`Argument is not an Uint8Array`)}})),Gp=T((()=>{var e=J(),t=H(),n=Bp(),r=Wp(),i=t.Uint8Array,a=!i||!i.prototype.setFromBase64||!function(){var e=new i([255,255,255,255,255]);try{e.setFromBase64(``,null);return}catch{}try{e.setFromBase64(`a`);return}catch{}try{e.setFromBase64(`MjYyZg===`)}catch{return e[0]===50&&e[1]===54&&e[2]===50&&e[3]===255&&e[4]===255}}();i&&e({target:`Uint8Array`,proto:!0,forced:a},{setFromBase64:function(e){r(this);var t=n(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})})),Kp=T((()=>{var e=J(),t=H(),n=dd(),r=Wp(),i=Os(),a=Hp();t.Uint8Array&&e({target:`Uint8Array`,proto:!0},{setFromHex:function(e){r(this),n(e),i(this.buffer);var t=a(e,this).read;return{read:t,written:t/2}}})})),qp=T((()=>{var e=J(),t=H(),n=K(),r=Lp(),i=Wp(),a=Os(),o=Rp(),s=zp(),c=o.i2c,l=o.i2cUrl,u=n(``.charAt),d=t.Uint8Array,f=!d||!d.prototype.toBase64||!function(){try{new d().toBase64(null)}catch{return!0}}();d&&e({target:`Uint8Array`,proto:!0,forced:f},{toBase64:function(){var e=i(this),t=arguments.length?r(arguments[0]):void 0,n=s(t)===`base64`?c:l,o=!!t&&!!t.omitPadding;a(this.buffer);for(var d=``,f=0,p=e.length,m,h=function(e){return u(n,m>>6*e&63)};f+2<p;f+=3)m=(e[f]<<16)+(e[f+1]<<8)+e[f+2],d+=h(3)+h(2)+h(1)+h(0);return f+2===p?(m=(e[f]<<16)+(e[f+1]<<8),d+=h(3)+h(2)+h(1)+(o?``:`=`)):f+1===p&&(m=e[f]<<16,d+=h(3)+h(2)+(o?``:`==`)),d}})})),Jp=T((()=>{var e=J(),t=H(),n=K(),r=Wp(),i=Os(),a=n(1.1.toString),o=t.Uint8Array,s=!o||!o.prototype.toHex||!(function(){try{return new o([255,255,255,255,255,255,255,255]).toHex()===`ffffffffffffffff`}catch{return!1}})();o&&e({target:`Uint8Array`,proto:!0,forced:s},{toHex:function(){r(this),i(this.buffer);for(var e=``,t=0,n=this.length;t<n;t++){var o=a(this[t],16);e+=o.length===1?`0`+o:o}return e}})})),Yp=T((()=>{var e=J(),t=K(),n=Ci(),r=String.fromCharCode,i=t(``.charAt),a=t(/./.exec),o=t(``.slice),s=/^[\da-f]{2}$/i,c=/^[\da-f]{4}$/i;e({global:!0},{unescape:function(e){for(var t=n(e),l=``,u=t.length,d=0,f,p;d<u;){if(f=i(t,d++),f===`%`){if(i(t,d)===`u`){if(p=o(t,d+1,d+5),a(c,p)){l+=r(parseInt(p,16)),d+=5;continue}}else if(p=o(t,d,d+2),a(s,p)){l+=r(parseInt(p,16)),d+=2;continue}}l+=f}return l}})})),Xp=T(((e,t)=>{var n=K(),r=os(),i=Dc().getWeakData,a=ss(),o=q(),s=Sr(),c=Er(),l=La(),u=Hi(),d=Ur(),f=ai(),p=f.set,m=f.getterFor,h=u.find,g=u.findIndex,_=n([].splice),v=0,y=function(e){return e.frozen||=new b},b=function(){this.entries=[]},x=function(e,t){return h(e.entries,function(e){return e[0]===t})};b.prototype={get:function(e){var t=x(this,e);if(t)return t[1]},has:function(e){return!!x(this,e)},set:function(e,t){var n=x(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,function(t){return t[0]===e});return~t&&_(this.entries,t,1),!!~t}},t.exports={getConstructor:function(e,t,n,u){var f=e(function(e,r){a(e,h),p(e,{type:t,id:v++,frozen:null}),s(r)||l(r,e[u],{that:e,AS_ENTRIES:n})}),h=f.prototype,g=m(t),_=function(e,t,n){var r=g(e),a=i(o(t),!0);return a===!0?y(r).set(t,n):a[r.id]=n,e};return r(h,{delete:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return n===!0?y(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return n===!0?y(t).has(e):n&&d(n,t.id)}}),r(h,n?{get:function(e){var t=g(this);if(c(e)){var n=i(e);if(n===!0)return y(t).get(e);if(n)return n[t.id]}},set:function(e,t){return _(this,e,t)}}:{add:function(e){return _(this,e,!0)}}),f}}})),Zp=T((()=>{var e=Ec(),t=H(),n=K(),r=os(),i=Dc(),a=Oc(),o=Xp(),s=Er(),c=ai().enforce,l=U(),u=ni(),d=Object,f=Array.isArray,p=d.isExtensible,m=d.isFrozen,h=d.isSealed,g=d.freeze,_=d.seal,v=!t.ActiveXObject&&`ActiveXObject`in t,y,b=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},x=a(`WeakMap`,b,o),S=x.prototype,C=n(S.set),w=function(){return e&&l(function(){var e=g([]);return C(new x,e,1),!m(e)})};if(u)if(v){y=o.getConstructor(b,`WeakMap`,!0),i.enable();var T=n(S.delete),E=n(S.has),D=n(S.get);r(S,{delete:function(e){if(s(e)&&!p(e)){var t=c(this);return t.frozen||=new y,T(this,e)||t.frozen.delete(e)}return T(this,e)},has:function(e){if(s(e)&&!p(e)){var t=c(this);return t.frozen||=new y,E(this,e)||t.frozen.has(e)}return E(this,e)},get:function(e){if(s(e)&&!p(e)){var t=c(this);return t.frozen||=new y,E(this,e)?D(this,e):t.frozen.get(e)}return D(this,e)},set:function(e,t){if(s(e)&&!p(e)){var n=c(this);n.frozen||=new y,E(this,e)?C(this,e,t):n.frozen.set(e,t)}else C(this,e,t);return this}})}else w()&&r(S,{set:function(e,t){var n;return f(e)&&(m(e)?n=g:h(e)&&(n=_)),C(this,e,t),n&&n(e),this}})})),Qp=T((()=>{Zp()})),$p=T((()=>{Oc()(`WeakSet`,function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Xp())})),em=T((()=>{$p()})),tm=T((()=>{var e=J(),t=H(),n=Dr(),r=K(),i=G(),a=U(),o=Ci(),s=ou(),c=Rp().c2i,l=/[^\d+/a-z]/i,u=/[\t\n\f\r ]+/g,d=/[=]{1,2}$/,f=n(`atob`),p=String.fromCharCode,m=r(``.charAt),h=r(``.replace),g=r(l.exec),_=!!f&&!a(function(){return f(`aGk=`)!==`hi`}),v=_&&a(function(){return f(` `)!==``}),y=_&&!a(function(){f(`a`)}),b=_&&!a(function(){f()}),x=_&&f.length!==1;e({global:!0,bind:!0,enumerable:!0,forced:!_||v||y||b||x},{atob:function(e){if(s(arguments.length,1),_&&!v&&!y)return i(f,t,e);var r=h(o(e),u,``),a=``,b=0,x=0,S,C,w;if(r.length%4==0&&(r=h(r,d,``)),S=r.length,S%4==1||g(l,r))throw new(n(`DOMException`))(`The string is not correctly encoded`,`InvalidCharacterError`);for(;b<S;)C=m(r,b++),w=x%4?w*64+c[C]:c[C],x++%4&&(a+=p(255&w>>(-2*x&6)));return a}})})),nm=T((()=>{var e=J(),t=H(),n=Dr(),r=K(),i=G(),a=U(),o=Ci(),s=ou(),c=Rp().i2c,l=n(`btoa`),u=r(``.charAt),d=r(``.charCodeAt),f=!!l&&!a(function(){return l(`hi`)!==`aGk=`}),p=f&&!a(function(){l()}),m=f&&a(function(){return l(null)!==`bnVsbA==`}),h=f&&l.length!==1;e({global:!0,bind:!0,enumerable:!0,forced:!f||p||m||h},{btoa:function(e){if(s(arguments.length,1),f)return i(l,t,o(e));for(var r=o(e),a=``,p=0,m=c,h,g;u(r,p)||(m=`=`,p%1);){if(g=d(r,p+=3/4),g>255)throw new(n(`DOMException`))(`The string contains characters outside of the Latin1 range`,`InvalidCharacterError`);h=h<<8|g,a+=u(m,63&h>>8-p%1*8)}return a}})})),rm=T(((e,t)=>{t.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}})),im=T(((e,t)=>{var n=Jr()(`span`).classList,r=n&&n.constructor&&n.constructor.prototype;t.exports=r===Object.prototype?void 0:r})),am=T((()=>{var e=H(),t=rm(),n=im(),r=uo(),i=$r(),a=function(e){if(e&&e.forEach!==r)try{i(e,`forEach`,r)}catch{e.forEach=r}};for(var o in t)t[o]&&a(e[o]&&e[o].prototype);a(n)})),om=T((()=>{var e=H(),t=rm(),n=im(),r=wo(),i=$r(),a=Fi(),o=Gr()(`iterator`),s=r.values,c=function(e,n){if(e){if(e[o]!==s)try{i(e,o,s)}catch{e[o]=s}if(a(e,n,!0),t[n]){for(var c in r)if(e[c]!==r[c])try{i(e,c,r[c])}catch{e[c]=r[c]}}}};for(var l in t)c(e[l]&&e[l].prototype,l);c(n,`DOMTokenList`)})),sm=T(((e,t)=>{t.exports={IndexSizeError:{s:`INDEX_SIZE_ERR`,c:1,m:1},DOMStringSizeError:{s:`DOMSTRING_SIZE_ERR`,c:2,m:0},HierarchyRequestError:{s:`HIERARCHY_REQUEST_ERR`,c:3,m:1},WrongDocumentError:{s:`WRONG_DOCUMENT_ERR`,c:4,m:1},InvalidCharacterError:{s:`INVALID_CHARACTER_ERR`,c:5,m:1},NoDataAllowedError:{s:`NO_DATA_ALLOWED_ERR`,c:6,m:0},NoModificationAllowedError:{s:`NO_MODIFICATION_ALLOWED_ERR`,c:7,m:1},NotFoundError:{s:`NOT_FOUND_ERR`,c:8,m:1},NotSupportedError:{s:`NOT_SUPPORTED_ERR`,c:9,m:1},InUseAttributeError:{s:`INUSE_ATTRIBUTE_ERR`,c:10,m:1},InvalidStateError:{s:`INVALID_STATE_ERR`,c:11,m:1},SyntaxError:{s:`SYNTAX_ERR`,c:12,m:1},InvalidModificationError:{s:`INVALID_MODIFICATION_ERR`,c:13,m:1},NamespaceError:{s:`NAMESPACE_ERR`,c:14,m:1},InvalidAccessError:{s:`INVALID_ACCESS_ERR`,c:15,m:1},ValidationError:{s:`VALIDATION_ERR`,c:16,m:0},TypeMismatchError:{s:`TYPE_MISMATCH_ERR`,c:17,m:1},SecurityError:{s:`SECURITY_ERR`,c:18,m:1},NetworkError:{s:`NETWORK_ERR`,c:19,m:1},AbortError:{s:`ABORT_ERR`,c:20,m:1},URLMismatchError:{s:`URL_MISMATCH_ERR`,c:21,m:1},QuotaExceededError:{s:`QUOTA_EXCEEDED_ERR`,c:22,m:1},TimeoutError:{s:`TIMEOUT_ERR`,c:23,m:1},InvalidNodeTypeError:{s:`INVALID_NODE_TYPE_ERR`,c:24,m:1},DataCloneError:{s:`DATA_CLONE_ERR`,c:25,m:1}}})),cm=T((()=>{var e=J(),t=Dr(),n=ks(),r=U(),i=Di(),a=yr(),o=Qr().f,s=si(),c=Ai(),l=Ur(),u=ss(),d=q(),f=Oa(),p=ba(),m=sm(),h=Sa(),g=ai(),_=W(),v=Rr(),y=`DOMException`,b=`DATA_CLONE_ERR`,x=t(`Error`),S=t(y)||(function(){try{new((t(`MessageChannel`))||(n(`worker_threads`)).MessageChannel)().port1.postMessage(new WeakMap)}catch(e){if(e.name===b&&e.code===25)return e.constructor}})(),C=S&&S.prototype,w=x.prototype,T=g.set,E=g.getterFor(y),D=`stack`in new x(y),O=function(e){return l(m,e)&&m[e].m?m[e].c:0},k=function(){u(this,A);var e=arguments.length,t=p(e<1?void 0:arguments[0]),n=p(e<2?void 0:arguments[1],`Error`),r=O(n);if(T(this,{type:y,name:n,message:t,code:r}),_||(this.name=n,this.message=t,this.code=r),D){var i=new x(t);i.name=y,o(this,`stack`,a(1,h(i.stack,1)))}},A=k.prototype=i(w),j=function(e){return{enumerable:!0,configurable:!0,get:e}},M=function(e){return j(function(){return E(this)[e]})};_&&(c(A,`code`,M(`code`)),c(A,`message`,M(`message`)),c(A,`name`,M(`name`))),o(A,`constructor`,a(1,k));var N=r(function(){return!(new S instanceof x)}),P=N||r(function(){return w.toString!==f||String(new S(1,2))!==`2: 1`}),F=N||r(function(){return new S(1,`DataCloneError`).code!==25}),I=N||S[b]!==25||C[b]!==25,L=v?P||F||I:N;e({global:!0,constructor:!0,forced:L},{DOMException:L?k:S});var R=t(y),ee=R.prototype;for(var z in P&&(v||S===R)&&s(ee,`toString`,f),F&&_&&S===R&&c(ee,`code`,j(function(){return O(d(this).name)})),m)if(l(m,z)){var te=m[z],ne=te.s,re=a(6,te.c);l(R,ne)||o(R,ne,re),l(ee,ne)||o(ee,ne,re)}})),lm=T((()=>{var e=J(),t=H(),n=Dr(),r=yr(),i=Qr().f,a=Ur(),o=ss(),s=ya(),c=ba(),l=sm(),u=Sa(),d=W(),f=Rr(),p=`DOMException`,m=n(`Error`),h=n(p),g=function(){o(this,_);var e=arguments.length,t=c(e<1?void 0:arguments[0]),n=new h(t,c(e<2?void 0:arguments[1],`Error`)),a=new m(t);return a.name=p,i(n,`stack`,r(1,u(a.stack,1))),s(n,this,g),n},_=g.prototype=h.prototype,v=`stack`in new m(p),y=`stack`in new h(1,2),b=h&&d&&Object.getOwnPropertyDescriptor(t,p),x=!!b&&!(b.writable&&b.configurable),S=v&&!x&&!y;e({global:!0,constructor:!0,forced:f||S},{DOMException:S?g:h});var C=n(p),w=C.prototype;if(w.constructor!==C){for(var T in f||i(w,`constructor`,r(1,C)),l)if(a(l,T)){var E=l[T],D=E.s;a(C,D)||i(C,D,r(6,E.c))}}})),um=T((()=>{var e=Dr(),t=Fi(),n=`DOMException`;t(e(n),n)})),dm=T((()=>{var e=J(),t=H(),n=cu().clear;e({global:!0,bind:!0,enumerable:!0,forced:t.clearImmediate!==n},{clearImmediate:n})})),fm=T(((e,t)=>{var n=H(),r=qi(),i=Tr(),a=No(),o=kr(),s=Oi(),c=ou(),l=n.Function,u=/MSIE .\./.test(o)||a===`BUN`&&(function(){var e=n.Bun.version.split(`.`);return e.length<3||e[0]===`0`&&(e[1]<3||e[1]===`3`&&e[2]===`0`)})();t.exports=function(e,t){var n=t?2:1;return u?function(a,o){var u=c(arguments.length,1)>n,d=i(a)?a:l(a),f=u?s(arguments,n):[],p=u?function(){r(d,this,f)}:d;return t?e(p,o):e(p)}:e}})),pm=T((()=>{var e=J(),t=H(),n=cu().set,r=fm(),i=t.setImmediate?r(n,!1):n;e({global:!0,bind:!0,enumerable:!0,forced:t.setImmediate!==i},{setImmediate:i})})),mm=T((()=>{dm(),pm()})),hm=T((()=>{var e=J(),t=H(),n=pu(),r=Fr(),i=ou(),a=U(),o=W();e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:a(function(){return o&&Object.getOwnPropertyDescriptor(t,`queueMicrotask`).value.length!==1})},{queueMicrotask:function(e){i(arguments.length,1),n(r(e))}})})),gm=T((()=>{var e=J(),t=H(),n=Ai(),r=W(),i=TypeError,a=Object.defineProperty,o=t.self!==t;try{if(r){var s=Object.getOwnPropertyDescriptor(t,`self`);(o||!s||!s.get||!s.enumerable)&&n(t,`self`,{get:function(){return t},set:function(e){if(this!==t)throw new i(`Illegal invocation`);a(t,`self`,{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else e({global:!0,simple:!0,forced:o},{self:t})}catch{}})),_m=T((()=>{var e=Rr(),t=J(),n=H(),r=Dr(),i=K(),a=U(),o=Wr(),s=Tr(),c=zi(),l=Sr(),u=Er(),d=Nr(),f=La(),p=q(),m=Si(),h=Ur(),g=Ga(),_=$r(),v=fi(),y=ou(),b=od(),x=Mc(),S=Sd(),C=Td(),w=js(),T=Ca(),E=As(),D=n.Object,O=n.Array,k=n.Date,A=n.Error,j=n.TypeError,M=n.PerformanceMark,N=r(`DOMException`),P=x.Map,F=x.has,I=x.get,L=x.set,R=S.Set,ee=S.add,z=S.has,te=r(`Object`,`keys`),ne=i([].push),re=i((!0).valueOf),ie=i(1.1.valueOf),ae=i(``.valueOf),oe=i(k.prototype.getTime),se=o(`structuredClone`),ce=`DataCloneError`,le=`Transferring`,ue=function(e){return!a(function(){var t=new n.Set([7]),r=e(t),i=e(D(7));return r===t||!r.has(7)||!u(i)||+i!=7})&&e},de=function(e,t){return!a(function(){var n=new t,r=e({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===n.stack)})},fe=function(e){return!a(function(){var t=e(new n.AggregateError([1],se,{cause:3}));return t.name!==`AggregateError`||t.errors[0]!==1||t.message!==se||t.cause!==3})},pe=n.structuredClone,me=e||!de(pe,A)||!de(pe,N)||!fe(pe),he=!pe&&ue(function(e){return new M(se,{detail:e}).detail}),ge=ue(pe)||he,_e=function(e){throw new N(`Uncloneable type: `+e,ce)},ve=function(e,t){throw new N((t||`Cloning`)+` of `+e+` cannot be properly polyfilled in this engine`,ce)},ye=function(e,t){return ge||ve(t),ge(e)},be=function(){var e;try{e=new n.DataTransfer}catch{try{e=new n.ClipboardEvent(``).clipboardData}catch{}}return e&&e.items&&e.files?e:null},xe=function(e,t,r){if(F(t,e))return I(t,e);var i=r||m(e),a,o,c,l,u,d;if(i===`SharedArrayBuffer`)a=ge?ge(e):e;else{var f=n.DataView;!f&&!s(e.slice)&&ve(`ArrayBuffer`);try{if(s(e.slice)&&!e.resizable)a=e.slice(0);else for(o=e.byteLength,c=(`maxByteLength`in e)?{maxByteLength:e.maxByteLength}:void 0,a=new ArrayBuffer(o,c),l=new f(e),u=new f(a),d=0;d<o;d++)u.setUint8(d,l.getUint8(d))}catch{throw new N(`ArrayBuffer is detached`,ce)}}return L(t,e,a),a},Se=function(e,t,r,i,a){var o=n[t];return u(o)||ve(t),new o(xe(e.buffer,a),r,i)},Ce=function(e,t){if(d(e)&&_e(`Symbol`),!u(e))return e;if(t){if(F(t,e))return I(t,e)}else t=new P;var i=m(e),a,o,c,l,f,p,y,x;switch(i){case`Array`:c=O(v(e));break;case`Object`:c={};break;case`Map`:c=new P;break;case`Set`:c=new R;break;case`RegExp`:c=new RegExp(e.source,b(e));break;case`Error`:switch(o=e.name,o){case`AggregateError`:c=new(r(o))([]);break;case`EvalError`:case`RangeError`:case`ReferenceError`:case`SuppressedError`:case`SyntaxError`:case`TypeError`:case`URIError`:c=new(r(o));break;case`CompileError`:case`LinkError`:case`RuntimeError`:c=new(r(`WebAssembly`,o));break;default:c=new A}break;case`DOMException`:c=new N(e.message,e.name);break;case`ArrayBuffer`:case`SharedArrayBuffer`:c=xe(e,t,i);break;case`DataView`:case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Int32Array`:case`Uint32Array`:case`Float16Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:p=i===`DataView`?e.byteLength:e.length,c=Se(e,i,e.byteOffset,p,t);break;case`DOMQuad`:try{c=new DOMQuad(Ce(e.p1,t),Ce(e.p2,t),Ce(e.p3,t),Ce(e.p4,t))}catch{c=ye(e,i)}break;case`File`:if(ge)try{c=ge(e),m(c)!==i&&(c=void 0)}catch{}if(!c)try{c=new File([e],e.name,e)}catch{}c||ve(i);break;case`FileList`:if(l=be(),l){for(f=0,p=v(e);f<p;f++)l.items.add(Ce(e[f],t));c=l.files}else c=ye(e,i);break;case`ImageData`:try{c=new ImageData(Ce(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch{c=ye(e,i)}break;default:if(ge)c=ge(e);else switch(i){case`BigInt`:c=D(e.valueOf());break;case`Boolean`:c=D(re(e));break;case`Number`:c=D(ie(e));break;case`String`:c=D(ae(e));break;case`Date`:c=new k(oe(e));break;case`Blob`:try{c=e.slice(0,e.size,e.type)}catch{ve(i)}break;case`DOMPoint`:case`DOMPointReadOnly`:a=n[i];try{c=a.fromPoint?a.fromPoint(e):new a(e.x,e.y,e.z,e.w)}catch{ve(i)}break;case`DOMRect`:case`DOMRectReadOnly`:a=n[i];try{c=a.fromRect?a.fromRect(e):new a(e.x,e.y,e.width,e.height)}catch{ve(i)}break;case`DOMMatrix`:case`DOMMatrixReadOnly`:a=n[i];try{c=a.fromMatrix?a.fromMatrix(e):new a(e)}catch{ve(i)}break;case`AudioData`:case`VideoFrame`:s(e.clone)||ve(i);try{c=e.clone()}catch{_e(i)}break;case`CropTarget`:case`CryptoKey`:case`FileSystemDirectoryHandle`:case`FileSystemFileHandle`:case`FileSystemHandle`:case`GPUCompilationInfo`:case`GPUCompilationMessage`:case`ImageBitmap`:case`RTCCertificate`:case`WebAssembly.Module`:ve(i);default:_e(i)}}switch(L(t,e,c),i){case`Array`:case`Object`:for(y=te(e),f=0,p=v(y);f<p;f++)x=y[f],g(c,x,Ce(e[x],t));break;case`Map`:e.forEach(function(e,n){L(c,Ce(n,t),Ce(e,t))});break;case`Set`:e.forEach(function(e){ee(c,Ce(e,t))});break;case`Error`:_(c,`message`,Ce(e.message,t)),h(e,`cause`)&&_(c,`cause`,Ce(e.cause,t)),o===`AggregateError`?c.errors=Ce(e.errors,t):o===`SuppressedError`&&(c.error=Ce(e.error,t),c.suppressed=Ce(e.suppressed,t));case`DOMException`:T&&_(c,`stack`,Ce(e.stack,t))}return c},we=function(e,t){if(!u(e))throw new j(`Transfer option cannot be converted to a sequence`);var r=[];f(e,function(e){ne(r,p(e))});for(var i=0,a=v(r),o=new R,l,d,h,g,_,y;i<a;){if(l=r[i++],d=m(l),d===`ArrayBuffer`?z(o,l):F(t,l))throw new N(`Duplicate transferable`,ce);if(d===`ArrayBuffer`){ee(o,l);continue}if(E)g=pe(l,{transfer:[l]});else switch(d){case`ImageBitmap`:h=n.OffscreenCanvas,c(h)||ve(d,le);try{_=new h(l.width,l.height),y=_.getContext(`bitmaprenderer`),y.transferFromImageBitmap(l),g=_.transferToImageBitmap()}catch{}break;case`AudioData`:case`VideoFrame`:(!s(l.clone)||!s(l.close))&&ve(d,le);try{g=l.clone(),l.close()}catch{}break;case`MediaSourceHandle`:case`MessagePort`:case`MIDIAccess`:case`OffscreenCanvas`:case`ReadableStream`:case`RTCDataChannel`:case`TransformStream`:case`WebTransportReceiveStream`:case`WebTransportSendStream`:case`WritableStream`:ve(d,le)}if(g===void 0)throw new N(`This object cannot be transferred: `+d,ce);L(t,l,g)}return o},Te=function(e){C(e,function(e){E?ge(e,{transfer:[e]}):s(e.transfer)?e.transfer():w?w(e):ve(`ArrayBuffer`,le)})};t({global:!0,enumerable:!0,sham:!E,forced:me},{structuredClone:function(e){var t=y(arguments.length,1)>1&&!l(arguments[1])?p(arguments[1]):void 0,n=t?t.transfer:void 0,r,i;n!==void 0&&(r=new P,i=we(n,r));var a=Ce(e,r);return i&&Te(i),a}})})),vm=T((()=>{var e=J(),t=H(),n=fm()(t.setInterval,!0);e({global:!0,bind:!0,forced:t.setInterval!==n},{setInterval:n})})),ym=T((()=>{var e=J(),t=H(),n=fm()(t.setTimeout,!0);e({global:!0,bind:!0,forced:t.setTimeout!==n},{setTimeout:n})})),bm=T((()=>{vm(),ym()})),xm=T(((e,t)=>{var n=U(),r=Gr(),i=W(),a=Rr(),o=r(`iterator`);t.exports=!n(function(){var e=new URL(`b?a=1&b=2&c=3`,`https://a`),t=e.searchParams,n=new URLSearchParams(`a=1&a=2&b=3`),r=``;return e.pathname=`c%20d`,t.forEach(function(e,n){t.delete(`b`),r+=n+e}),n.delete(`a`,2),n.delete(`b`,void 0),a&&(!e.toJSON||!n.has(`a`,1)||n.has(`a`,2)||!n.has(`a`,void 0)||n.has(`b`))||!t.size&&(a||!i)||!t.sort||e.href!==`https://a/c%20d?a=1&c=3`||t.get(`c`)!==`3`||String(new URLSearchParams(`?a=1`))!==`a=1`||!t[o]||new URL(`https://a@b`).username!==`a`||new URLSearchParams(new URLSearchParams(`a=b`)).get(`a`)!==`b`||new URL(`https://тест`).host!==`xn--e1aybc`||new URL(`https://a#б`).hash!==`#%D0%B1`||r!==`a1c3`||new URL(`https://x`,void 0).host!==`x`})})),Sm=T(((e,t)=>{var n=K(),r=2147483647,i=36,a=1,o=26,s=38,c=700,l=72,u=128,d=`-`,f=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,m=`Overflow: input needs wider integers to process`,h=i-a,g=RangeError,_=n(p.exec),v=Math.floor,y=String.fromCharCode,b=n(``.charCodeAt),x=n([].join),S=n([].push),C=n(``.replace),w=n(``.split),T=n(``.toLowerCase),E=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=b(e,n++);if(i>=55296&&i<=56319&&n<r){var a=b(e,n++);(a&64512)==56320?S(t,((i&1023)<<10)+(a&1023)+65536):(S(t,i),n--)}else S(t,i)}return t},D=function(e){return e+22+75*(e<26)},O=function(e,t,n){var r=0;for(e=n?v(e/c):e>>1,e+=v(e/t);e>h*o>>1;)e=v(e/h),r+=i;return v(r+(h+1)*e/(e+s))},k=function(e){var t=[];e=E(e);var n=e.length,s=u,c=0,f=l,p,h;for(p=0;p<e.length;p++)h=e[p],h<128&&S(t,y(h));var _=t.length,b=_;for(_&&S(t,d);b<n;){var C=r;for(p=0;p<e.length;p++)h=e[p],h>=s&&h<C&&(C=h);var w=b+1;if(C-s>v((r-c)/w))throw new g(m);for(c+=(C-s)*w,s=C,p=0;p<e.length;p++){if(h=e[p],h<s&&++c>r)throw new g(m);if(h===s){for(var T=c,k=i;;){var A=k<=f?a:k>=f+o?o:k-f;if(T<A)break;var j=T-A,M=i-A;S(t,y(D(A+j%M))),T=v(j/M),k+=i}S(t,y(D(T))),f=O(c,w,b===_),c=0,b++}}c++,s++}return x(t,``)};t.exports=function(e){var t=[],n=w(C(T(e),p,`.`),`.`),r,i;for(r=0;r<n.length;r++)i=n[r],S(t,_(f,i)?`xn--`+k(i):i);return x(t,`.`)}})),Cm=T(((e,t)=>{wo(),Zd();var n=J(),r=H(),i=lu(),a=Dr(),o=G(),s=K(),c=W(),l=xm(),u=si(),d=Ai(),f=os(),p=Fi(),m=xo(),h=ai(),g=ss(),_=Tr(),v=Ur(),y=Li(),b=Si(),x=q(),S=Er(),C=Ci(),w=Di(),T=yr(),E=Fa(),D=Pa(),O=Co(),k=ou(),A=Gr(),j=Bo(),M=A(`iterator`),N=`URLSearchParams`,P=N+`Iterator`,F=h.set,I=h.getterFor(N),L=h.getterFor(P),R=i(`fetch`),ee=i(`Request`),z=i(`Headers`),te=ee&&ee.prototype,ne=z&&z.prototype,re=r.TypeError,ie=r.encodeURIComponent,ae=String.fromCharCode,oe=a(`String`,`fromCodePoint`),se=parseInt,ce=s(``.charAt),le=s([].join),ue=s([].push),de=s(``.replace),fe=s([].shift),pe=s([].splice),me=s(``.split),he=s(``.slice),ge=s(/./.exec),_e=/\+/g,ve=`�`,ye=/^[0-9a-f]+$/i,be=function(e,t){var n=he(e,t,t+2);return ge(ye,n)?se(n,16):NaN},xe=function(e){for(var t=0,n=128;n>0&&(e&n)!==0;n>>=1)t++;return t},Se=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(e[0]&31)<<6|e[1]&63;break;case 3:t=(e[0]&15)<<12|(e[1]&63)<<6|e[2]&63;break;case 4:t=(e[0]&7)<<18|(e[1]&63)<<12|(e[2]&63)<<6|e[3]&63;break}return t>1114111?null:t},Ce=function(e){e=de(e,_e,` `);for(var t=e.length,n=``,r=0;r<t;){var i=ce(e,r);if(i===`%`){if(ce(e,r+1)===`%`||r+3>t){n+=`%`,r++;continue}var a=be(e,r+1);if(a!==a){n+=i,r++;continue}r+=2;var o=xe(a);if(o===0)i=ae(a);else{if(o===1||o>4){n+=ve,r++;continue}for(var s=[a],c=1;c<o&&(r++,!(r+3>t||ce(e,r)!==`%`));){var l=be(e,r+1);if(l!==l){r+=3;break}if(l>191||l<128)break;ue(s,l),r+=2,c++}if(s.length!==o){n+=ve;continue}var u=Se(s);u===null?n+=ve:i=oe(u)}}n+=i,r++}return n},we=/[!'()~]|%20/g,Te={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`},Ee=function(e){return Te[e]},De=function(e){return de(ie(e),we,Ee)},Oe=m(function(e,t){F(this,{type:P,target:I(e).entries,index:0,kind:t})},N,function(){var e=L(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,O(void 0,!0);var r=t[n];switch(e.kind){case`keys`:return O(r.key,!1);case`values`:return O(r.value,!1)}return O([r.key,r.value],!1)},!0),ke=function(e){this.entries=[],this.url=null,e!==void 0&&(S(e)?this.parseObject(e):this.parseQuery(typeof e==`string`?ce(e,0)===`?`?he(e,1):e:C(e)))};ke.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t=this.entries,n=D(e),r,i,a,s,c,l,u;if(n)for(r=E(e,n),i=r.next;!(a=o(i,r)).done;){if(s=E(x(a.value)),c=s.next,(l=o(c,s)).done||(u=o(c,s)).done||!o(c,s).done)throw new re(`Expected sequence with length 2`);ue(t,{key:C(l.value),value:C(u.value)})}else for(var d in e)v(e,d)&&ue(t,{key:d,value:C(e[d])})},parseQuery:function(e){if(e)for(var t=this.entries,n=me(e,`&`),r=0,i,a;r<n.length;)i=n[r++],i.length&&(a=me(i,`=`),ue(t,{key:Ce(fe(a)),value:Ce(le(a,`=`))}))},serialize:function(){for(var e=this.entries,t=[],n=0,r;n<e.length;)r=e[n++],ue(t,De(r.key)+`=`+De(r.value));return le(t,`&`)},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ae=function(){g(this,je);var e=arguments.length>0?arguments[0]:void 0,t=F(this,new ke(e));c||(this.size=t.entries.length)},je=Ae.prototype;if(f(je,{append:function(e,t){var n=I(this);k(arguments.length,2),ue(n.entries,{key:C(e),value:C(t)}),c||this.length++,n.updateURL()},delete:function(e){for(var t=I(this),n=k(arguments.length,1),r=t.entries,i=C(e),a=n<2?void 0:arguments[1],o=a===void 0?a:C(a),s=0;s<r.length;){var l=r[s];if(l.key===i&&(o===void 0||l.value===o)){if(pe(r,s,1),o!==void 0)break}else s++}c||(this.size=r.length),t.updateURL()},get:function(e){var t=I(this).entries;k(arguments.length,1);for(var n=C(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=I(this).entries;k(arguments.length,1);for(var n=C(e),r=[],i=0;i<t.length;i++)t[i].key===n&&ue(r,t[i].value);return r},has:function(e){for(var t=I(this).entries,n=k(arguments.length,1),r=C(e),i=n<2?void 0:arguments[1],a=i===void 0?i:C(i),o=0;o<t.length;){var s=t[o++];if(s.key===r&&(a===void 0||s.value===a))return!0}return!1},set:function(e,t){var n=I(this);k(arguments.length,1);for(var r=n.entries,i=!1,a=C(e),o=C(t),s=0,l;s<r.length;s++)l=r[s],l.key===a&&(i?pe(r,s--,1):(i=!0,l.value=o));i||ue(r,{key:a,value:o}),c||(this.size=r.length),n.updateURL()},sort:function(){var e=I(this);j(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t=I(this).entries,n=y(e,arguments.length>1?arguments[1]:void 0),r=0,i;r<t.length;)i=t[r++],n(i.value,i.key,this)},keys:function(){return new Oe(this,`keys`)},values:function(){return new Oe(this,`values`)},entries:function(){return new Oe(this,`entries`)}},{enumerable:!0}),u(je,M,je.entries,{name:`entries`}),u(je,`toString`,function(){return I(this).serialize()},{enumerable:!0}),c&&d(je,`size`,{get:function(){return I(this).entries.length},configurable:!0,enumerable:!0}),p(Ae,N),n({global:!0,constructor:!0,forced:!l},{URLSearchParams:Ae}),!l&&_(z)){var Me=s(ne.has),Ne=s(ne.set),Pe=function(e){if(S(e)){var t=e.body,n;if(b(t)===N)return n=e.headers?new z(e.headers):new z,Me(n,`content-type`)||Ne(n,`content-type`,`application/x-www-form-urlencoded;charset=UTF-8`),w(e,{body:T(0,C(t)),headers:T(0,n)})}return e};if(_(R)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return R(e,arguments.length>1?Pe(arguments[1]):{})}}),_(ee)){var Fe=function(e){return g(this,te),new ee(e,arguments.length>1?Pe(arguments[1]):{})};te.constructor=Fe,Fe.prototype=te,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Fe})}}t.exports={URLSearchParams:Ae,getState:I}})),wm=T((()=>{ef();var e=J(),t=W(),n=xm(),r=H(),i=Li(),a=K(),o=si(),s=Ai(),c=ss(),l=Ur(),u=Cl(),d=mo(),f=Oi(),p=Kd().codeAt,m=Sm(),h=Ci(),g=Fi(),_=ou(),v=Cm(),y=ai(),b=y.set,x=y.getterFor(`URL`),S=v.URLSearchParams,C=v.getState,w=r.URL,T=r.TypeError,E=r.parseInt,D=Math.floor,O=Math.pow,k=a(``.charAt),A=a(/./.exec),j=a([].join),M=a(1.1.toString),N=a([].pop),P=a([].push),F=a(``.replace),I=a([].shift),L=a(``.split),R=a(``.slice),ee=a(``.toLowerCase),z=a([].unshift),te=`Invalid authority`,ne=`Invalid scheme`,re=`Invalid host`,ie=`Invalid port`,ae=/[a-z]/i,oe=/[\d+-.a-z]/i,se=/\d/,ce=/^0x/i,le=/^[0-7]+$/,ue=/^\d+$/,de=/^[\da-f]+$/i,fe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,pe=/[\0\t\n\r #/:<>?@[\\\]^|]/,me=/^[\u0000-\u0020]+/,he=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ge=/[\t\n\r]/g,_e,ve=function(e){var t=L(e,`.`),n,r,i,a,o,s,c;if(t.length&&t[t.length-1]===``&&t.length--,n=t.length,n>4)return e;for(r=[],i=0;i<n;i++){if(a=t[i],a===``)return e;if(o=10,a.length>1&&k(a,0)===`0`&&(o=A(ce,a)?16:8,a=R(a,o===8?1:2)),a===``)s=0;else{if(!A(o===10?ue:o===8?le:de,a))return e;s=E(a,o)}P(r,s)}for(i=0;i<n;i++)if(s=r[i],i===n-1){if(s>=O(256,5-n))return null}else if(s>255)return null;for(c=N(r),i=0;i<r.length;i++)c+=r[i]*O(256,3-i);return c},ye=function(e){var t=[0,0,0,0,0,0,0,0],n=0,r=null,i=0,a,o,s,c,l,u,d,f=function(){return k(e,i)};if(f()===`:`){if(k(e,1)!==`:`)return;i+=2,n++,r=n}for(;f();){if(n===8)return;if(f()===`:`){if(r!==null)return;i++,n++,r=n;continue}for(a=o=0;o<4&&A(de,f());)a=a*16+E(f(),16),i++,o++;if(f()===`.`){if(o===0||(i-=o,n>6))return;for(s=0;f();){if(c=null,s>0)if(f()===`.`&&s<4)i++;else return;if(!A(se,f()))return;for(;A(se,f());){if(l=E(f(),10),c===null)c=l;else if(c===0)return;else c=c*10+l;if(c>255)return;i++}t[n]=t[n]*256+c,s++,(s===2||s===4)&&n++}if(s!==4)return;break}else if(f()===`:`){if(i++,!f())return}else if(f())return;t[n++]=a}if(r!==null)for(u=n-r,n=7;n!==0&&u>0;)d=t[n],t[n--]=t[r+u-1],t[r+--u]=d;else if(n!==8)return;return t},be=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)e[a]===0?(r===null&&(r=a),++i):(i>n&&(t=r,n=i),r=null,i=0);return i>n?r:t},xe=function(e){var t,n,r,i;if(typeof e==`number`){for(t=[],n=0;n<4;n++)z(t,e%256),e=D(e/256);return j(t,`.`)}if(typeof e==`object`){for(t=``,r=be(e),n=0;n<8;n++)i&&e[n]===0||(i&&=!1,r===n?(t+=n?`:`:`::`,i=!0):(t+=M(e[n],16),n<7&&(t+=`:`)));return`[`+t+`]`}return e},Se={},Ce=u({},Se,{" ":1,'"':1,"<":1,">":1,"`":1}),we=u({},Ce,{"#":1,"?":1,"{":1,"}":1}),Te=u({},we,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Ee=function(e,t){var n=p(e,0);return n>32&&n<127&&!l(t,e)?e:encodeURIComponent(e)},De={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Oe=function(e,t){var n;return e.length===2&&A(ae,k(e,0))&&((n=k(e,1))===`:`||!t&&n===`|`)},ke=function(e){var t;return e.length>1&&Oe(R(e,0,2))&&(e.length===2||(t=k(e,2))===`/`||t===`\\`||t===`?`||t===`#`)},Ae=function(e){return e===`.`||ee(e)===`%2e`},je=function(e){return e=ee(e),e===`..`||e===`%2e.`||e===`.%2e`||e===`%2e%2e`},Me={},Ne={},Pe={},Fe={},Ie={},Le={},Re={},ze={},Be={},Ve={},He={},Ue={},We={},Ge={},Ke={},qe={},Je={},Ye={},Xe={},Ze={},B={},Qe=function(e,t,n){var r=h(e),i,a,o;if(t){if(a=this.parse(r),a)throw new T(a);this.searchParams=null}else{if(n!==void 0&&(i=new Qe(n,!0)),a=this.parse(r,null,i),a)throw new T(a);o=C(new S),o.bindURL(this),this.searchParams=o}};Qe.prototype={type:`URL`,parse:function(e,t,n){var r=this,i=t||Me,a=0,o=``,s=!1,c=!1,u=!1,p,m,g,_;for(e=h(e),t||(r.scheme=``,r.username=``,r.password=``,r.host=null,r.port=null,r.path=[],r.query=null,r.fragment=null,r.cannotBeABaseURL=!1,e=F(e,me,``),e=F(e,he,`$1`)),e=F(e,ge,``),p=d(e);a<=p.length;){switch(m=p[a],i){case Me:if(m&&A(ae,m))o+=ee(m),i=Ne;else if(t)return ne;else{i=Pe;continue}break;case Ne:if(m&&(A(oe,m)||m===`+`||m===`-`||m===`.`))o+=ee(m);else if(m===`:`){if(t&&(r.isSpecial()!==l(De,o)||o===`file`&&(r.includesCredentials()||r.port!==null)||r.scheme===`file`&&!r.host))return;if(r.scheme=o,t){r.isSpecial()&&De[r.scheme]===r.port&&(r.port=null);return}o=``,r.scheme===`file`?i=Ge:r.isSpecial()&&n&&n.scheme===r.scheme?i=Fe:r.isSpecial()?i=ze:p[a+1]===`/`?(i=Ie,a++):(r.cannotBeABaseURL=!0,P(r.path,``),i=Xe)}else if(t)return ne;else{o=``,i=Pe,a=0;continue}break;case Pe:if(!n||n.cannotBeABaseURL&&m!==`#`)return ne;if(n.cannotBeABaseURL&&m===`#`){r.scheme=n.scheme,r.path=f(n.path),r.query=n.query,r.fragment=``,r.cannotBeABaseURL=!0,i=B;break}i=n.scheme===`file`?Ge:Le;continue;case Fe:if(m===`/`&&p[a+1]===`/`)i=Be,a++;else{i=Le;continue}break;case Ie:if(m===`/`){i=Ve;break}else{i=Ye;continue}case Le:if(r.scheme=n.scheme,m===_e)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.query=n.query;else if(m===`/`||m===`\\`&&r.isSpecial())i=Re;else if(m===`?`)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.query=``,i=Ze;else if(m===`#`)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.query=n.query,r.fragment=``,i=B;else{r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=f(n.path),r.path.length--,i=Ye;continue}break;case Re:if(r.isSpecial()&&(m===`/`||m===`\\`))i=Be;else if(m===`/`)i=Ve;else{r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,i=Ye;continue}break;case ze:if(i=Be,m!==`/`||k(o,a+1)!==`/`)continue;a++;break;case Be:if(m!==`/`&&m!==`\\`){i=Ve;continue}break;case Ve:if(m===`@`){s&&(o=`%40`+o),s=!0,g=d(o);for(var v=0;v<g.length;v++){var y=g[v];if(y===`:`&&!u){u=!0;continue}var b=Ee(y,Te);u?r.password+=b:r.username+=b}o=``}else if(m===_e||m===`/`||m===`?`||m===`#`||m===`\\`&&r.isSpecial()){if(s&&o===``)return te;a-=d(o).length+1,o=``,i=He}else o+=m;break;case He:case Ue:if(t&&r.scheme===`file`){i=qe;continue}else if(m===`:`&&!c){if(o===``)return re;if(_=r.parseHost(o),_)return _;if(o=``,i=We,t===Ue)return}else if(m===_e||m===`/`||m===`?`||m===`#`||m===`\\`&&r.isSpecial()){if(r.isSpecial()&&o===``)return re;if(t&&o===``&&(r.includesCredentials()||r.port!==null))return;if(_=r.parseHost(o),_)return _;if(o=``,i=Je,t)return;continue}else m===`[`?c=!0:m===`]`&&(c=!1),o+=m;break;case We:if(A(se,m))o+=m;else if(m===_e||m===`/`||m===`?`||m===`#`||m===`\\`&&r.isSpecial()||t){if(o!==``){var x=E(o,10);if(x>65535)return ie;r.port=r.isSpecial()&&x===De[r.scheme]?null:x,o=``}if(t)return;i=Je;continue}else return ie;break;case Ge:if(r.scheme=`file`,m===`/`||m===`\\`)i=Ke;else if(n&&n.scheme===`file`)switch(m){case _e:r.host=n.host,r.path=f(n.path),r.query=n.query;break;case`?`:r.host=n.host,r.path=f(n.path),r.query=``,i=Ze;break;case`#`:r.host=n.host,r.path=f(n.path),r.query=n.query,r.fragment=``,i=B;break;default:ke(j(f(p,a),``))||(r.host=n.host,r.path=f(n.path),r.shortenPath()),i=Ye;continue}else{i=Ye;continue}break;case Ke:if(m===`/`||m===`\\`){i=qe;break}n&&n.scheme===`file`&&!ke(j(f(p,a),``))&&(Oe(n.path[0],!0)?P(r.path,n.path[0]):r.host=n.host),i=Ye;continue;case qe:if(m===_e||m===`/`||m===`\\`||m===`?`||m===`#`){if(!t&&Oe(o))i=Ye;else if(o===``){if(r.host=``,t)return;i=Je}else{if(_=r.parseHost(o),_)return _;if(r.host===`localhost`&&(r.host=``),t)return;o=``,i=Je}continue}else o+=m;break;case Je:if(r.isSpecial()){if(i=Ye,m!==`/`&&m!==`\\`)continue}else if(!t&&m===`?`)r.query=``,i=Ze;else if(!t&&m===`#`)r.fragment=``,i=B;else if(m!==_e&&(i=Ye,m!==`/`))continue;break;case Ye:if(m===_e||m===`/`||m===`\\`&&r.isSpecial()||!t&&(m===`?`||m===`#`)){if(je(o)?(r.shortenPath(),m!==`/`&&!(m===`\\`&&r.isSpecial())&&P(r.path,``)):Ae(o)?m!==`/`&&!(m===`\\`&&r.isSpecial())&&P(r.path,``):(r.scheme===`file`&&!r.path.length&&Oe(o)&&(r.host&&=``,o=k(o,0)+`:`),P(r.path,o)),o=``,r.scheme===`file`&&(m===_e||m===`?`||m===`#`))for(;r.path.length>1&&r.path[0]===``;)I(r.path);m===`?`?(r.query=``,i=Ze):m===`#`&&(r.fragment=``,i=B)}else o+=Ee(m,we);break;case Xe:m===`?`?(r.query=``,i=Ze):m===`#`?(r.fragment=``,i=B):m!==_e&&(r.path[0]+=Ee(m,Se));break;case Ze:!t&&m===`#`?(r.fragment=``,i=B):m!==_e&&(m===`'`&&r.isSpecial()?r.query+=`%27`:m===`#`?r.query+=`%23`:r.query+=Ee(m,Se));break;case B:m!==_e&&(r.fragment+=Ee(m,Ce));break}a++}},parseHost:function(e){var t,n,r;if(k(e,0)===`[`){if(k(e,e.length-1)!==`]`||(t=ye(R(e,1,-1)),!t))return re;this.host=t}else if(this.isSpecial()){if(e=m(e),A(fe,e)||(t=ve(e),t===null))return re;this.host=t}else{if(A(pe,e))return re;for(t=``,n=d(e),r=0;r<n.length;r++)t+=Ee(n[r],Se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme===`file`},includesCredentials:function(){return this.username!==``||this.password!==``},isSpecial:function(){return l(De,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;t&&(this.scheme!==`file`||t!==1||!Oe(e[0],!0))&&e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,c=e.fragment,l=t+`:`;return i===null?t===`file`&&(l+=`//`):(l+=`//`,e.includesCredentials()&&(l+=n+(r?`:`+r:``)+`@`),l+=xe(i),a!==null&&(l+=`:`+a)),l+=e.cannotBeABaseURL?o[0]:o.length?`/`+j(o,`/`):``,s!==null&&(l+=`?`+s),c!==null&&(l+=`#`+c),l},setHref:function(e){var t=this.parse(e);if(t)throw new T(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if(e===`blob`)try{return new $e(e.path[0]).origin}catch{return`null`}return e===`file`||!this.isSpecial()?`null`:e+`://`+xe(this.host)+(t===null?``:`:`+t)},getProtocol:function(){return this.scheme+`:`},setProtocol:function(e){this.parse(h(e)+`:`,Me)},getUsername:function(){return this.username},setUsername:function(e){var t=d(h(e));if(!this.cannotHaveUsernamePasswordPort()){this.username=``;for(var n=0;n<t.length;n++)this.username+=Ee(t[n],Te)}},getPassword:function(){return this.password},setPassword:function(e){var t=d(h(e));if(!this.cannotHaveUsernamePasswordPort()){this.password=``;for(var n=0;n<t.length;n++)this.password+=Ee(t[n],Te)}},getHost:function(){var e=this.host,t=this.port;return e===null?``:t===null?xe(e):xe(e)+`:`+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,He)},getHostname:function(){var e=this.host;return e===null?``:xe(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ue)},getPort:function(){var e=this.port;return e===null?``:h(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=h(e),e===``?this.port=null:this.parse(e,We))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?`/`+j(e,`/`):``},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Je))},getSearch:function(){var e=this.query;return e?`?`+e:``},setSearch:function(e){e=h(e),e===``?this.query=null:(k(e,0)===`?`&&(e=R(e,1)),this.query=``,this.parse(e,Ze)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?`#`+e:``},setHash:function(e){if(e=h(e),e===``){this.fragment=null;return}k(e,0)===`#`&&(e=R(e,1)),this.fragment=``,this.parse(e,B)},update:function(){this.query=this.searchParams.serialize()||null}};var $e=function(e){var n=c(this,et),r=b(n,new Qe(e,!1,_(arguments.length,1)>1?arguments[1]:void 0));t||(n.href=r.serialize(),n.origin=r.getOrigin(),n.protocol=r.getProtocol(),n.username=r.getUsername(),n.password=r.getPassword(),n.host=r.getHost(),n.hostname=r.getHostname(),n.port=r.getPort(),n.pathname=r.getPathname(),n.search=r.getSearch(),n.searchParams=r.getSearchParams(),n.hash=r.getHash())},et=$e.prototype,tt=function(e,t){return{get:function(){return x(this)[e]()},set:t&&function(e){return x(this)[t](e)},configurable:!0,enumerable:!0}};if(t&&(s(et,`href`,tt(`serialize`,`setHref`)),s(et,`origin`,tt(`getOrigin`)),s(et,`protocol`,tt(`getProtocol`,`setProtocol`)),s(et,`username`,tt(`getUsername`,`setUsername`)),s(et,`password`,tt(`getPassword`,`setPassword`)),s(et,`host`,tt(`getHost`,`setHost`)),s(et,`hostname`,tt(`getHostname`,`setHostname`)),s(et,`port`,tt(`getPort`,`setPort`)),s(et,`pathname`,tt(`getPathname`,`setPathname`)),s(et,`search`,tt(`getSearch`,`setSearch`)),s(et,`searchParams`,tt(`getSearchParams`)),s(et,`hash`,tt(`getHash`,`setHash`))),o(et,`toJSON`,function(){return x(this).serialize()},{enumerable:!0}),o(et,`toString`,function(){return x(this).serialize()},{enumerable:!0}),w){var nt=w.createObjectURL,rt=w.revokeObjectURL;nt&&o($e,`createObjectURL`,i(nt,w)),rt&&o($e,`revokeObjectURL`,i(rt,w))}g($e,`URL`),e({global:!0,constructor:!0,forced:!n,sham:!t},{URL:$e})})),Tm=T((()=>{wm()})),Em=T((()=>{var e=J(),t=Dr(),n=U(),r=ou(),i=Ci(),a=xm(),o=t(`URL`),s=a&&n(function(){o.canParse()}),c=n(function(){return o.canParse.length!==1});e({target:`URL`,stat:!0,forced:!s||c},{canParse:function(e){var t=r(arguments.length,1),n=i(e),a=t<2||arguments[1]===void 0?void 0:i(arguments[1]);try{return!!new o(n,a)}catch{return!1}}})})),Dm=T((()=>{var e=J(),t=Dr(),n=ou(),r=Ci(),i=xm(),a=t(`URL`);e({target:`URL`,stat:!0,forced:!i},{parse:function(e){var t=n(arguments.length,1),i=r(e),o=t<2||arguments[1]===void 0?void 0:r(arguments[1]);try{return new a(i,o)}catch{return null}}})})),Om=T((()=>{var e=J(),t=G();e({target:`URL`,proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})})),km=T((()=>{Cm()})),Am=T((()=>{var e=si(),t=K(),n=Ci(),r=ou(),i=URLSearchParams,a=i.prototype,o=t(a.append),s=t(a.delete),c=t(a.forEach),l=t([].push),u=new i(`a=1&a=2&b=3`);u.delete(`a`,1),u.delete(`b`,void 0),u+``!=`a=2`&&e(a,`delete`,function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&i===void 0)return s(this,e);var a=[];c(this,function(e,t){l(a,{key:t,value:e})}),r(t,1);for(var u=n(e),d=n(i),f=0,p=0,m=!1,h=a.length,g;f<h;)g=a[f++],m||g.key===u?(m=!0,s(this,g.key)):p++;for(;p<h;)g=a[p++],g.key===u&&g.value===d||o(this,g.key,g.value)},{enumerable:!0,unsafe:!0})})),jm=T((()=>{var e=si(),t=K(),n=Ci(),r=ou(),i=URLSearchParams,a=i.prototype,o=t(a.getAll),s=t(a.has),c=new i(`a=1`);(c.has(`a`,2)||!c.has(`a`,void 0))&&e(a,`has`,function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&i===void 0)return s(this,e);var a=o(this,e);r(t,1);for(var c=n(i),l=0;l<a.length;)if(a[l++]===c)return!0;return!1},{enumerable:!0,unsafe:!0})})),Mm=T((()=>{var e=W(),t=K(),n=Ai(),r=URLSearchParams.prototype,i=t(r.forEach);e&&!(`size`in r)&&n(r,`size`,{get:function(){var e=0;return i(this,function(){e++}),e},configurable:!0,enumerable:!0})})),Nm=T(((e,t)=>{Zi(),Qi(),$i(),ea(),ta(),na(),ra(),ia(),aa(),oa(),sa(),ca(),la(),ua(),da(),fa(),pa(),Ea(),Da(),ka(),za(),Ba(),Va(),Ua(),qa(),Xa(),Qa(),eo(),to(),no(),ro(),ao(),oo(),co(),lo(),fo(),go(),_o(),vo(),yo(),wo(),To(),Do(),Oo(),ko(),jo(),Fo(),Io(),Lo(),Ro(),zo(),Wo(),Ko(),qo(),Yo(),Qo(),$o(),es(),ts(),ns(),is(),hs(),_s(),vs(),bs(),xs(),ws(),Ds(),Ns(),Ps(),Fs(),Is(),Ls(),Rs(),Hs(),Us(),Gs(),Ks(),Js(),Ys(),Zs(),Qs(),$s(),ec(),tc(),nc(),uc(),dc(),fc(),pc(),hc(),gc(),_c(),vc(),yc(),bc(),xc(),Sc(),Yi(),Cc(),jc(),Nc(),Fc(),Ic(),Lc(),Rc(),zc(),Vc(),Hc(),Uc(),Wc(),Gc(),Kc(),Jc(),Yc(),Xc(),Zc(),Qc(),$c(),el(),tl(),nl(),ol(),sl(),ll(),dl(),fl(),pl(),ml(),hl(),_l(),yl(),bl(),xl(),Sl(),wl(),Tl(),Dl(),Ol(),kl(),Al(),Ml(),Nl(),Pl(),Fl(),Il(),Ll(),Rl(),zl(),Bl(),Hl(),Ul(),Wl(),Gl(),Kl(),ql(),Jl(),Yl(),Xl(),Zl(),Ql(),eu(),tu(),nu(),ru(),Du(),Ou(),ku(),Au(),ju(),Mu(),zu(),Bu(),Vu(),Hu(),Uu(),Wu(),Gu(),qu(),Ju(),Yu(),Xu(),Zu(),Qu(),$u(),ed(),td(),nd(),ud(),fd(),pd(),hd(),gd(),_d(),vd(),yd(),xd(),jd(),Nd(),Fd(),Ld(),zd(),Hd(),Wd(),Gd(),qd(),Xd(),Zd(),Qd(),$d(),ef(),af(),of(),cf(),lf(),uf(),df(),pf(),mf(),hf(),gf(),_f(),vf(),yf(),xf(),wf(),Df(),Af(),jf(),Mf(),Nf(),Pf(),Ff(),If(),Lf(),Rf(),zf(),Bf(),Vf(),Hf(),Xf(),Zf(),Qf(),$f(),ep(),tp(),np(),rp(),ip(),ap(),op(),sp(),cp(),up(),dp(),fp(),pp(),mp(),hp(),gp(),_p(),vp(),yp(),bp(),xp(),Sp(),Cp(),wp(),Tp(),Ep(),Dp(),Op(),kp(),Ap(),jp(),Mp(),Np(),Pp(),Fp(),Ip(),Vp(),Up(),Gp(),Kp(),qp(),Jp(),Yp(),Qp(),em(),tm(),nm(),am(),om(),cm(),lm(),um(),mm(),hm(),gm(),_m(),bm(),Tm(),Em(),Dm(),Om(),km(),Am(),jm(),Mm(),t.exports=Mi()}));gr(),Nm();function Pm(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!re(i)||!Pe(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function Fm(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!re(r)||!Pe(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var Im={name:`applyStyles`,enabled:!0,phase:`write`,fn:Pm,effect:Fm,requires:[`computeStyles`]},Lm=Ae({defaultModifiers:[oe,xe,_e,Im]}),Rm=Ae({defaultModifiers:[oe,xe,_e,Im,ae,Se,Ke,Fe,Ge]}),zm=y({afterMain:()=>he,afterRead:()=>ge,afterWrite:()=>ve,applyStyles:()=>Im,arrow:()=>Fe,auto:()=>ce,basePlacements:()=>de,beforeMain:()=>me,beforeRead:()=>be,beforeWrite:()=>Je,bottom:()=>ie,clippingParents:()=>we,computeStyles:()=>_e,createPopper:()=>Rm,createPopperBase:()=>qe,createPopperLite:()=>Lm,detectOverflow:()=>se,end:()=>`end`,eventListeners:()=>oe,flip:()=>Se,hide:()=>Ge,left:()=>ue,main:()=>Ce,modifierPhases:()=>Te,offset:()=>ae,placements:()=>le,popper:()=>pe,popperGenerator:()=>Ae,popperOffsets:()=>xe,preventOverflow:()=>Ke,read:()=>ze,reference:()=>fe,right:()=>De,start:()=>Ee,top:()=>`top`,variationPlacements:()=>Oe,viewport:()=>ye,write:()=>ne}),Bm=new Map,Vm={set(e,t,n){Bm.has(e)||Bm.set(e,new Map);let r=Bm.get(e);if(!r.has(t)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(t,n)},get(e,t){return Bm.has(e)&&Bm.get(e).get(t)||null},remove(e,t){if(!Bm.has(e))return;let n=Bm.get(e);n.delete(t),n.size===0&&Bm.delete(e)}},Hm=1e6,Um=1e3,Wm=`transitionend`,Gm=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),Km=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),qm=e=>{do e+=Math.floor(Math.random()*Hm);while(document.getElementById(e));return e},Jm=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*Um)},Ym=e=>{e.dispatchEvent(new Event(Wm))},Xm=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),Zm=e=>Xm(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(Gm(e)):null,Qm=e=>{if(!Xm(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},$m=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,eh=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?eh(e.parentNode):null},th=()=>{},nh=e=>{e.offsetHeight},rh=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,ih=[],ah=e=>{document.readyState===`loading`?(ih.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of ih)e()}),ih.push(e)):e()},oh=()=>document.documentElement.dir===`rtl`,sh=e=>{ah(()=>{let t=rh();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},ch=(e,t=[],n=e)=>typeof e==`function`?e(...t):n,lh=(e,t,n=!0)=>{if(!n){ch(e);return}let r=Jm(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(Wm,a),ch(e))};t.addEventListener(Wm,a),setTimeout(()=>{i||Ym(t)},r)},uh=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},dh=/[^.]*(?=\..*)\.|.*/,fh=/\..*/,ph=/::\d+$/,mh={},hh=1,gh={mouseenter:`mouseover`,mouseleave:`mouseout`},_h=new Set(`click.dblclick.mouseup.mousedown.contextmenu.mousewheel.DOMMouseScroll.mouseover.mouseout.mousemove.selectstart.selectend.keydown.keypress.keyup.orientationchange.touchstart.touchmove.touchend.touchcancel.pointerdown.pointermove.pointerup.pointerleave.pointercancel.gesturestart.gesturechange.gestureend.focus.blur.change.reset.select.submit.focusin.focusout.load.unload.beforeunload.resize.move.DOMContentLoaded.readystatechange.error.abort.scroll`.split(`.`));function vh(e,t){return t&&`${t}::${hh++}`||e.uidEvent||hh++}function yh(e){let t=vh(e);return e.uidEvent=t,mh[t]=mh[t]||{},mh[t]}function bh(e,t){return function n(r){return Oh(r,{delegateTarget:e}),n.oneOff&&Y.off(e,r.type,t),t.apply(e,[r])}}function xh(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return Oh(i,{delegateTarget:o}),r.oneOff&&Y.off(e,i.type,t,n),n.apply(o,[i])}}function Sh(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function Ch(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=Dh(e);return _h.has(a)||(a=e),[r,i,a]}function wh(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=Ch(t,n,r);t in gh&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=yh(e),l=c[s]||(c[s]={}),u=Sh(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=vh(o,t.replace(dh,``)),f=a?xh(e,n,o):bh(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function Th(e,t,n,r,i){let a=Sh(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function Eh(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&Th(e,t,n,o.callable,o.delegationSelector)}function Dh(e){return e=e.replace(fh,``),gh[e]||e}var Y={on(e,t,n,r){wh(e,t,n,r,!1)},one(e,t,n,r){wh(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=Ch(t,n,r),s=o!==t,c=yh(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;Th(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))Eh(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(ph,``);(!s||t.includes(i))&&Th(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=rh(),i=t!==Dh(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=Oh(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function Oh(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function kh(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function Ah(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var jh={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${Ah(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${Ah(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=kh(e.dataset[r])}return t},getDataAttribute(e,t){return kh(e.getAttribute(`data-bs-${Ah(t)}`))}},Mh=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error(`You have to implement the static method "NAME", for each component!`)}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){let n=Xm(t)?jh.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...Xm(t)?jh.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],i=Xm(t)?`element`:Km(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},Nh=`5.3.2`,Ph=class extends Mh{constructor(e,t){super(),e=Zm(e),e&&(this._element=e,this._config=this._getConfig(t),Vm.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Vm.remove(this._element,this.constructor.DATA_KEY),Y.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){lh(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Vm.get(Zm(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return Nh}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},Fh=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?Gm(n.trim()):null}return t},Ih={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!$m(e)&&Qm(e))},getSelectorFromElement(e){let t=Fh(e);return t&&Ih.findOne(t)?t:null},getElementFromSelector(e){let t=Fh(e);return t?Ih.findOne(t):null},getMultipleElementsFromSelector(e){let t=Fh(e);return t?Ih.find(t):[]}},Lh=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;Y.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),$m(this))return;let i=Ih.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},Rh=`alert`,zh=`.bs.alert`,Bh=`close${zh}`,Vh=`closed${zh}`,Hh=`fade`,Uh=`show`,Wh=class e extends Ph{static get NAME(){return Rh}close(){if(Y.trigger(this._element,Bh).defaultPrevented)return;this._element.classList.remove(Uh);let e=this._element.classList.contains(Hh);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Y.trigger(this._element,Vh),this.dispose()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};Lh(Wh,`close`),sh(Wh);var Gh=`button`,Kh=`.bs.button`,qh=`.data-api`,Jh=`active`,Yh=`[data-bs-toggle="button"]`,Xh=`click${Kh}${qh}`,Zh=class e extends Ph{static get NAME(){return Gh}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(Jh))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};Y.on(document,Xh,Yh,e=>{e.preventDefault();let t=e.target.closest(Yh);Zh.getOrCreateInstance(t).toggle()}),sh(Zh);var Qh=`swipe`,$h=`.bs.swipe`,eg=`touchstart${$h}`,tg=`touchmove${$h}`,ng=`touchend${$h}`,rg=`pointerdown${$h}`,ig=`pointerup${$h}`,ag=`touch`,og=`pen`,sg=`pointer-event`,cg=40,lg={endCallback:null,leftCallback:null,rightCallback:null},ug={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},dg=class e extends Mh{constructor(t,n){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return lg}static get DefaultType(){return ug}static get NAME(){return Qh}dispose(){Y.off(this._element,$h)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),ch(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=cg)return;let t=e/this._deltaX;this._deltaX=0,t&&ch(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Y.on(this._element,rg,e=>this._start(e)),Y.on(this._element,ig,e=>this._end(e)),this._element.classList.add(sg)):(Y.on(this._element,eg,e=>this._start(e)),Y.on(this._element,tg,e=>this._move(e)),Y.on(this._element,ng,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===og||e.pointerType===ag)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},fg=`carousel`,pg=`.bs.carousel`,mg=`.data-api`,hg=`ArrowLeft`,gg=`ArrowRight`,_g=500,vg=`next`,yg=`prev`,bg=`left`,xg=`right`,Sg=`slide${pg}`,Cg=`slid${pg}`,wg=`keydown${pg}`,Tg=`mouseenter${pg}`,Eg=`mouseleave${pg}`,Dg=`dragstart${pg}`,Og=`load${pg}${mg}`,kg=`click${pg}${mg}`,Ag=`carousel`,jg=`active`,Mg=`slide`,Ng=`carousel-item-end`,Pg=`carousel-item-start`,Fg=`carousel-item-next`,Ig=`carousel-item-prev`,Lg=`.active`,Rg=`.carousel-item`,zg=Lg+Rg,Bg=`.carousel-item img`,Vg=`.carousel-indicators`,Hg=`[data-bs-slide], [data-bs-slide-to]`,Ug=`[data-bs-ride="carousel"]`,Wg={[hg]:xg,[gg]:bg},Gg={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},Kg={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},qg=class e extends Ph{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ih.findOne(Vg,this._element),this._addEventListeners(),this._config.ride===Ag&&this.cycle()}static get Default(){return Gg}static get DefaultType(){return Kg}static get NAME(){return fg}next(){this._slide(vg)}nextWhenVisible(){!document.hidden&&Qm(this._element)&&this.next()}prev(){this._slide(yg)}pause(){this._isSliding&&Ym(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Y.one(this._element,Cg,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){Y.one(this._element,Cg,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?vg:yg;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Y.on(this._element,wg,e=>this._keydown(e)),this._config.pause===`hover`&&(Y.on(this._element,Tg,()=>this.pause()),Y.on(this._element,Eg,()=>this._maybeEnableCycle())),this._config.touch&&dg.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of Ih.find(Bg,this._element))Y.on(e,Dg,e=>e.preventDefault());this._swipeHelper=new dg(this._element,{leftCallback:()=>this._slide(this._directionToOrder(bg)),rightCallback:()=>this._slide(this._directionToOrder(xg)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),_g+this._config.interval))}})}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=Wg[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=Ih.findOne(Lg,this._indicatorsElement);t.classList.remove(jg),t.removeAttribute(`aria-current`);let n=Ih.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(jg),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===vg,i=t||uh(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>Y.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(Sg).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?Pg:Ng,l=r?Fg:Ig;i.classList.add(l),nh(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(jg),n.classList.remove(jg,l,c),this._isSliding=!1,o(Cg)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(Mg)}_getActive(){return Ih.findOne(zg,this._element)}_getItems(){return Ih.find(Rg,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return oh()?e===bg?yg:vg:e===bg?vg:yg}_orderToDirection(e){return oh()?e===yg?bg:xg:e===yg?xg:bg}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`number`){n.to(t);return}if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Y.on(document,kg,Hg,function(e){let t=Ih.getElementFromSelector(this);if(!t||!t.classList.contains(Ag))return;e.preventDefault();let n=qg.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(jh.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),Y.on(window,Og,()=>{let e=Ih.find(Ug);for(let t of e)qg.getOrCreateInstance(t)}),sh(qg);var Jg=`collapse`,Yg=`.bs.collapse`,Xg=`.data-api`,Zg=`show${Yg}`,Qg=`shown${Yg}`,$g=`hide${Yg}`,e_=`hidden${Yg}`,t_=`click${Yg}${Xg}`,n_=`show`,r_=`collapse`,i_=`collapsing`,a_=`collapsed`,o_=`:scope .${r_} .${r_}`,s_=`collapse-horizontal`,c_=`width`,l_=`height`,u_=`.collapse.show, .collapse.collapsing`,d_=`[data-bs-toggle="collapse"]`,f_={parent:null,toggle:!0},p_={parent:`(null|element)`,toggle:`boolean`},m_=class e extends Ph{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=Ih.find(d_);for(let e of n){let t=Ih.getSelectorFromElement(e),n=Ih.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return f_}static get DefaultType(){return p_}static get NAME(){return Jg}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(u_).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||Y.trigger(this._element,Zg).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove(r_),this._element.classList.add(i_),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(i_),this._element.classList.add(r_,n_),this._element.style[n]=``,Y.trigger(this._element,Qg)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||Y.trigger(this._element,$g).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,nh(this._element),this._element.classList.add(i_),this._element.classList.remove(r_,n_);for(let e of this._triggerArray){let t=Ih.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove(i_),this._element.classList.add(r_),Y.trigger(this._element,e_)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(n_)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Zm(e.parent),e}_getDimension(){return this._element.classList.contains(s_)?c_:l_}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(d_);for(let t of e){let e=Ih.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=Ih.find(o_,this._config.parent);return Ih.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(a_,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(t){let n={};return typeof t==`string`&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){let r=e.getOrCreateInstance(this,n);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t]()}})}};Y.on(document,t_,d_,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of Ih.getMultipleElementsFromSelector(this))m_.getOrCreateInstance(e,{toggle:!1}).toggle()}),sh(m_);var h_=`dropdown`,g_=`.bs.dropdown`,__=`.data-api`,v_=`Escape`,y_=`Tab`,b_=`ArrowUp`,x_=`ArrowDown`,S_=2,C_=`hide${g_}`,w_=`hidden${g_}`,T_=`show${g_}`,E_=`shown${g_}`,D_=`click${g_}${__}`,O_=`keydown${g_}${__}`,k_=`keyup${g_}${__}`,A_=`show`,j_=`dropup`,M_=`dropend`,N_=`dropstart`,P_=`dropup-center`,F_=`dropdown-center`,I_=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,L_=`${I_}.${A_}`,R_=`.dropdown-menu`,z_=`.navbar`,B_=`.navbar-nav`,V_=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,H_=oh()?`top-end`:`top-start`,U_=oh()?`top-start`:`top-end`,W_=oh()?`bottom-end`:`bottom-start`,G_=oh()?`bottom-start`:`bottom-end`,K_=oh()?`left-start`:`right-start`,q_=oh()?`right-start`:`left-start`,J_=`top`,Y_=`bottom`,X_={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},Z_={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},Q_=class e extends Ph{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Ih.next(this._element,R_)[0]||Ih.prev(this._element,R_)[0]||Ih.findOne(R_,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return X_}static get DefaultType(){return Z_}static get NAME(){return h_}toggle(){return this._isShown()?this.hide():this.show()}show(){if($m(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!Y.trigger(this._element,T_,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(B_))for(let e of[].concat(...document.body.children))Y.on(e,`mouseover`,th);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(A_),this._element.classList.add(A_),Y.trigger(this._element,E_,e)}}hide(){if($m(this._element)||!this._isShown())return;let e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Y.trigger(this._element,C_,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Y.off(e,`mouseover`,th);this._popper&&this._popper.destroy(),this._menu.classList.remove(A_),this._element.classList.remove(A_),this._element.setAttribute(`aria-expanded`,`false`),jh.removeDataAttribute(this._menu,`popper`),Y.trigger(this._element,w_,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!Xm(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${h_.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(zm===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org)`);let e=this._element;this._config.reference===`parent`?e=this._parent:Xm(this._config.reference)?e=Zm(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=Rm(e,this._menu,t)}_isShown(){return this._menu.classList.contains(A_)}_getPlacement(){let e=this._parent;if(e.classList.contains(M_))return K_;if(e.classList.contains(N_))return q_;if(e.classList.contains(P_))return J_;if(e.classList.contains(F_))return Y_;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(j_)?t?U_:H_:t?G_:W_}_detectNavbar(){return this._element.closest(z_)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`offset`,options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display===`static`)&&(jh.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...ch(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){let n=Ih.find(V_,this._menu).filter(e=>Qm(e));n.length&&uh(n,t,e===x_,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===S_||t.type===`keyup`&&t.key!==y_)return;let n=Ih.find(L_);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===y_||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===v_,i=[b_,x_].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(I_)?this:Ih.prev(this,I_)[0]||Ih.next(this,I_)[0]||Ih.findOne(I_,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};Y.on(document,O_,I_,Q_.dataApiKeydownHandler),Y.on(document,O_,R_,Q_.dataApiKeydownHandler),Y.on(document,D_,Q_.clearMenus),Y.on(document,k_,Q_.clearMenus),Y.on(document,D_,I_,function(e){e.preventDefault(),Q_.getOrCreateInstance(this).toggle()}),sh(Q_);var $_=`backdrop`,ev=`fade`,tv=`show`,nv=`mousedown.bs.${$_}`,rv={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},iv={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},av=class extends Mh{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return rv}static get DefaultType(){return iv}static get NAME(){return $_}show(e){if(!this._config.isVisible){ch(e);return}this._append();let t=this._getElement();this._config.isAnimated&&nh(t),t.classList.add(tv),this._emulateAnimation(()=>{ch(e)})}hide(e){if(!this._config.isVisible){ch(e);return}this._getElement().classList.remove(tv),this._emulateAnimation(()=>{this.dispose(),ch(e)})}dispose(){this._isAppended&&=(Y.off(this._element,nv),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(ev),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Zm(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),Y.on(e,nv,()=>{ch(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){lh(e,this._getElement(),this._config.isAnimated)}},ov=`focustrap`,sv=`.bs.focustrap`,cv=`focusin${sv}`,lv=`keydown.tab${sv}`,uv=`Tab`,dv=`forward`,fv=`backward`,pv={autofocus:!0,trapElement:null},mv={autofocus:`boolean`,trapElement:`element`},hv=class extends Mh{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return pv}static get DefaultType(){return mv}static get NAME(){return ov}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),Y.off(document,sv),Y.on(document,cv,e=>this._handleFocusin(e)),Y.on(document,lv,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,Y.off(document,sv))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=Ih.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===fv?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===uv&&(this._lastTabNavDirection=e.shiftKey?fv:dv)}},gv=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,_v=`.sticky-top`,vv=`padding-right`,yv=`margin-right`,bv=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,vv,t=>t+e),this._setElementAttributes(gv,vv,t=>t+e),this._setElementAttributes(_v,yv,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,vv),this._resetElementAttributes(gv,vv),this._resetElementAttributes(_v,yv)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&jh.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=jh.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}jh.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(Xm(e)){t(e);return}for(let n of Ih.find(e,this._element))t(n)}},xv=`modal`,Sv=`.bs.modal`,Cv=`.data-api`,wv=`Escape`,Tv=`hide${Sv}`,Ev=`hidePrevented${Sv}`,Dv=`hidden${Sv}`,Ov=`show${Sv}`,kv=`shown${Sv}`,Av=`resize${Sv}`,jv=`click.dismiss${Sv}`,Mv=`mousedown.dismiss${Sv}`,Nv=`keydown.dismiss${Sv}`,Pv=`click${Sv}${Cv}`,Fv=`modal-open`,Iv=`fade`,Lv=`show`,Rv=`modal-static`,zv=`.modal.show`,Bv=`.modal-dialog`,Vv=`.modal-body`,Hv=`[data-bs-toggle="modal"]`,Uv={backdrop:!0,focus:!0,keyboard:!0},Wv={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},Gv=class e extends Ph{constructor(e,t){super(e,t),this._dialog=Ih.findOne(Bv,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new bv,this._addEventListeners()}static get Default(){return Uv}static get DefaultType(){return Wv}static get NAME(){return xv}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Y.trigger(this._element,Ov,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Fv),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Y.trigger(this._element,Tv).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Lv),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Y.off(window,Sv),Y.off(this._dialog,Sv),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new av({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new hv({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display=`block`,this._element.removeAttribute(`aria-hidden`),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.scrollTop=0;let t=Ih.findOne(Vv,this._dialog);t&&(t.scrollTop=0),nh(this._element),this._element.classList.add(Lv),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Y.trigger(this._element,kv,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){Y.on(this._element,Nv,e=>{if(e.key===wv){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Y.on(window,Av,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Y.on(this._element,Mv,e=>{Y.one(this._element,jv,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop===`static`){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display=`none`,this._element.setAttribute(`aria-hidden`,!0),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Fv),this._resetAdjustments(),this._scrollBar.reset(),Y.trigger(this._element,Dv)})}_isAnimated(){return this._element.classList.contains(Iv)}_triggerBackdropTransition(){if(Y.trigger(this._element,Ev).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(Rv)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(Rv),this._queueCallback(()=>{this._element.classList.remove(Rv),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=oh()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=oh()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(t,n){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t](n)}})}};Y.on(document,Pv,Hv,function(e){let t=Ih.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Y.one(t,Ov,e=>{e.defaultPrevented||Y.one(t,Dv,()=>{Qm(this)&&this.focus()})});let n=Ih.findOne(zv);n&&Gv.getInstance(n).hide(),Gv.getOrCreateInstance(t).toggle(this)}),Lh(Gv),sh(Gv);var Kv=`offcanvas`,qv=`.bs.offcanvas`,Jv=`.data-api`,Yv=`load${qv}${Jv}`,Xv=`Escape`,Zv=`show`,Qv=`showing`,$v=`hiding`,ey=`offcanvas-backdrop`,ty=`.offcanvas.show`,ny=`show${qv}`,ry=`shown${qv}`,iy=`hide${qv}`,ay=`hidePrevented${qv}`,oy=`hidden${qv}`,sy=`resize${qv}`,cy=`click${qv}${Jv}`,ly=`keydown.dismiss${qv}`,uy=`[data-bs-toggle="offcanvas"]`,dy={backdrop:!0,keyboard:!0,scroll:!1},fy={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},py=class e extends Ph{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return dy}static get DefaultType(){return fy}static get NAME(){return Kv}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||Y.trigger(this._element,ny,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new bv().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(Qv),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Zv),this._element.classList.remove(Qv),Y.trigger(this._element,ry,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||Y.trigger(this._element,iy).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($v),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Zv,$v),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new bv().reset(),Y.trigger(this._element,oy)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){Y.trigger(this._element,ay);return}this.hide()},t=!!this._config.backdrop;return new av({className:ey,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new hv({trapElement:this._element})}_addEventListeners(){Y.on(this._element,ly,e=>{if(e.key===Xv){if(this._config.keyboard){this.hide();return}Y.trigger(this._element,ay)}})}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};Y.on(document,cy,uy,function(e){let t=Ih.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),$m(this))return;Y.one(t,oy,()=>{Qm(this)&&this.focus()});let n=Ih.findOne(ty);n&&n!==t&&py.getInstance(n).hide(),py.getOrCreateInstance(t).toggle(this)}),Y.on(window,Yv,()=>{for(let e of Ih.find(ty))py.getOrCreateInstance(e).show()}),Y.on(window,sy,()=>{for(let e of Ih.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&py.getOrCreateInstance(e).hide()}),Lh(py),sh(py);var my=/^aria-[\w-]*$/i,hy={"*":[`class`,`dir`,`id`,`lang`,`role`,my],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[`src`,`srcset`,`alt`,`title`,`width`,`height`],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},gy=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),_y=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,vy=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?gy.has(n)?!!_y.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function yy(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)vy(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var by=`TemplateFactory`,xy={allowList:hy,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},Sy={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},Cy={entry:`(string|element|function|null)`,selector:`(string|element)`},wy=class extends Mh{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return xy}static get DefaultType(){return Sy}static get NAME(){return by}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Cy)}_setContent(e,t,n){let r=Ih.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(Xm(t)){this._putElementInTemplate(Zm(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?yy(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return ch(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},Ty=`tooltip`,Ey=new Set([`sanitize`,`allowList`,`sanitizeFn`]),Dy=`fade`,Oy=`modal`,ky=`show`,Ay=`.tooltip-inner`,jy=`.${Oy}`,My=`hide.bs.modal`,Ny=`hover`,Py=`focus`,Fy=`click`,Iy=`manual`,Ly=`hide`,Ry=`hidden`,zy=`show`,By=`shown`,Vy=`inserted`,Hy=`click`,Uy=`focusin`,Wy=`focusout`,Gy=`mouseenter`,Ky=`mouseleave`,qy={AUTO:`auto`,TOP:`top`,RIGHT:oh()?`left`:`right`,BOTTOM:`bottom`,LEFT:oh()?`right`:`left`},Jy={allowList:hy,animation:!0,boundary:`clippingParents`,container:!1,customClass:``,delay:0,fallbackPlacements:[`top`,`right`,`bottom`,`left`],html:!1,offset:[0,6],placement:`top`,popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:`<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`,title:``,trigger:`hover focus`},Yy={allowList:`object`,animation:`boolean`,boundary:`(string|element)`,container:`(string|element|boolean)`,customClass:`(string|function)`,delay:`(number|object)`,fallbackPlacements:`array`,html:`boolean`,offset:`(array|string|function)`,placement:`(string|function)`,popperConfig:`(null|object|function)`,sanitize:`boolean`,sanitizeFn:`(null|function)`,selector:`(string|boolean)`,template:`string`,title:`(string|element|function)`,trigger:`string`},Xy=class e extends Ph{constructor(e,t){if(zm===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org)`);super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Jy}static get DefaultType(){return Yy}static get NAME(){return Ty}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Y.off(this._element.closest(jy),My,this._hideModalHandler),this._element.getAttribute(`data-bs-original-title`)&&this._element.setAttribute(`title`,this._element.getAttribute(`data-bs-original-title`)),this._disposePopper(),super.dispose()}show(){if(this._element.style.display===`none`)throw Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=Y.trigger(this._element,this.constructor.eventName(zy)),t=(eh(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Y.trigger(this._element,this.constructor.eventName(Vy))),this._popper=this._createPopper(n),n.classList.add(ky),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Y.on(e,`mouseover`,th);this._queueCallback(()=>{Y.trigger(this._element,this.constructor.eventName(By)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||Y.trigger(this._element,this.constructor.eventName(Ly)).defaultPrevented)){if(this._getTipElement().classList.remove(ky),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Y.off(e,`mouseover`,th);this._activeTrigger[Fy]=!1,this._activeTrigger[Py]=!1,this._activeTrigger[Ny]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),Y.trigger(this._element,this.constructor.eventName(Ry)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Dy,ky),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=qm(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(Dy),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new wy({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Ay]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute(`data-bs-original-title`)}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Dy)}_isShown(){return this.tip&&this.tip.classList.contains(ky)}_createPopper(e){let t=qy[ch(this._config.placement,[this,e,this._element]).toUpperCase()];return Rm(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return ch(e,[this._element])}_getPopperConfig(e){let t={placement:e,modifiers:[{name:`flip`,options:{fallbackPlacements:this._config.fallbackPlacements}},{name:`offset`,options:{offset:this._getOffset()}},{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`arrow`,options:{element:`.${this.constructor.NAME}-arrow`}},{name:`preSetPlacement`,enabled:!0,phase:`beforeMain`,fn:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...ch(this._config.popperConfig,[t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)Y.on(this._element,this.constructor.eventName(Hy),this._config.selector,e=>{this._initializeOnDelegatedTarget(e).toggle()});else if(t!==Iy){let e=t===Ny?this.constructor.eventName(Gy):this.constructor.eventName(Uy),n=t===Ny?this.constructor.eventName(Ky):this.constructor.eventName(Wy);Y.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?Py:Ny]=!0,t._enter()}),Y.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?Py:Ny]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Y.on(this._element.closest(jy),My,this._hideModalHandler)}_fixTitle(){let e=this._element.getAttribute(`title`);e&&(!this._element.getAttribute(`aria-label`)&&!this._element.textContent.trim()&&this._element.setAttribute(`aria-label`,e),this._element.setAttribute(`data-bs-original-title`,e),this._element.removeAttribute(`title`))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=jh.getDataAttributes(this._element);for(let e of Object.keys(t))Ey.has(e)&&delete t[e];return e={...t,...typeof e==`object`&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Zm(e.container),typeof e.delay==`number`&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title==`number`&&(e.title=e.title.toString()),typeof e.content==`number`&&(e.content=e.content.toString()),e}_getDelegateConfig(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};sh(Xy);var Zy=`popover`,Qy=`.popover-header`,$y=`.popover-body`,eb={...Xy.Default,content:``,offset:[0,8],placement:`right`,template:`<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>`,trigger:`click`},tb={...Xy.DefaultType,content:`(null|string|element|function)`};sh(class e extends Xy{static get Default(){return eb}static get DefaultType(){return tb}static get NAME(){return Zy}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Qy]:this._getTitle(),[$y]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}});var nb=`scrollspy`,rb=`.bs.scrollspy`,ib=`.data-api`,ab=`activate${rb}`,ob=`click${rb}`,sb=`load${rb}${ib}`,cb=`dropdown-item`,lb=`active`,ub=`[data-bs-spy="scroll"]`,db=`[href]`,fb=`.nav, .list-group`,pb=`.nav-link`,mb=`${pb}, .nav-item > ${pb}, .list-group-item`,hb=`.dropdown`,gb=`.dropdown-toggle`,_b={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},vb={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},yb=class e extends Ph{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY===`visible`?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return _b}static get DefaultType(){return vb}static get NAME(){return nb}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Zm(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold==`string`&&(e.threshold=e.threshold.split(`,`).map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Y.off(this._config.target,ob),Y.on(this._config.target,ob,db,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=Ih.find(db,this._config.target);for(let t of e){if(!t.hash||$m(t))continue;let e=Ih.findOne(decodeURI(t.hash),this._element);Qm(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(lb),this._activateParents(e),Y.trigger(this._element,ab,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(cb)){Ih.findOne(gb,e.closest(hb)).classList.add(lb);return}for(let t of Ih.parents(e,fb))for(let e of Ih.prev(t,mb))e.classList.add(lb)}_clearActiveClass(e){e.classList.remove(lb);let t=Ih.find(`${db}.${lb}`,e);for(let e of t)e.classList.remove(lb)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Y.on(window,sb,()=>{for(let e of Ih.find(ub))yb.getOrCreateInstance(e)}),sh(yb);var bb=`tab`,xb=`.bs.tab`,Sb=`hide${xb}`,Cb=`hidden${xb}`,wb=`show${xb}`,Tb=`shown${xb}`,Eb=`click${xb}`,Db=`keydown${xb}`,Ob=`load${xb}`,kb=`ArrowLeft`,Ab=`ArrowRight`,jb=`ArrowUp`,Mb=`ArrowDown`,Nb=`Home`,Pb=`End`,Fb=`active`,Ib=`fade`,Lb=`show`,Rb=`dropdown`,zb=`.dropdown-toggle`,Bb=`.dropdown-menu`,Vb=`:not(${zb})`,Hb=`.list-group, .nav, [role="tablist"]`,Ub=`.nav-item, .list-group-item`,Wb=`.nav-link${Vb}, .list-group-item${Vb}, [role="tab"]${Vb}`,Gb=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,Kb=`${Wb}, ${Gb}`,qb=`.${Fb}[data-bs-toggle="tab"], .${Fb}[data-bs-toggle="pill"], .${Fb}[data-bs-toggle="list"]`,Jb=class e extends Ph{constructor(e){super(e),this._parent=this._element.closest(Hb),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Y.on(this._element,Db,e=>this._keydown(e)))}static get NAME(){return bb}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?Y.trigger(t,Sb,{relatedTarget:e}):null;Y.trigger(e,wb,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Fb),this._activate(Ih.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(Lb);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),Y.trigger(e,Tb,{relatedTarget:t})},e,e.classList.contains(Ib)))}_deactivate(e,t){e&&(e.classList.remove(Fb),e.blur(),this._deactivate(Ih.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(Lb);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),Y.trigger(e,Cb,{relatedTarget:t})},e,e.classList.contains(Ib)))}_keydown(t){if(![kb,Ab,jb,Mb,Nb,Pb].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!$m(e)),r;if([Nb,Pb].includes(t.key))r=n[t.key===Nb?0:n.length-1];else{let e=[Ab,Mb].includes(t.key);r=uh(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return Ih.find(Kb,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=Ih.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(Rb))return;let r=(e,r)=>{let i=Ih.findOne(e,n);i&&i.classList.toggle(r,t)};r(zb,Fb),r(Bb,Lb),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Fb)}_getInnerElement(e){return e.matches(Kb)?e:Ih.findOne(Kb,e)}_getOuterElement(e){return e.closest(Ub)||e}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Y.on(document,Eb,Gb,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!$m(this)&&Jb.getOrCreateInstance(this).show()}),Y.on(window,Ob,()=>{for(let e of Ih.find(qb))Jb.getOrCreateInstance(e)}),sh(Jb);var Yb=`toast`,Xb=`.bs.toast`,Zb=`mouseover${Xb}`,Qb=`mouseout${Xb}`,$b=`focusin${Xb}`,ex=`focusout${Xb}`,tx=`hide${Xb}`,nx=`hidden${Xb}`,rx=`show${Xb}`,ix=`shown${Xb}`,ax=`fade`,ox=`hide`,sx=`show`,cx=`showing`,lx={animation:`boolean`,autohide:`boolean`,delay:`number`},ux={animation:!0,autohide:!0,delay:5e3},dx=class e extends Ph{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ux}static get DefaultType(){return lx}static get NAME(){return Yb}show(){Y.trigger(this._element,rx).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(ax),this._element.classList.remove(ox),nh(this._element),this._element.classList.add(sx,cx),this._queueCallback(()=>{this._element.classList.remove(cx),Y.trigger(this._element,ix),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||Y.trigger(this._element,tx).defaultPrevented||(this._element.classList.add(cx),this._queueCallback(()=>{this._element.classList.add(ox),this._element.classList.remove(cx,sx),Y.trigger(this._element,nx)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(sx),super.dispose()}isShown(){return this._element.classList.contains(sx)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case`mouseover`:case`mouseout`:this._hasMouseInteraction=t;break;case`focusin`:case`focusout`:this._hasKeyboardInteraction=t;break}if(t){this._clearTimeout();return}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Y.on(this._element,Zb,e=>this._onInteraction(e,!0)),Y.on(this._element,Qb,e=>this._onInteraction(e,!1)),Y.on(this._element,$b,e=>this._onInteraction(e,!0)),Y.on(this._element,ex,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t](this)}})}};Lh(dx),sh(dx);var fx=_(t()),px=`shared.unspecifiedError`,mx=class extends _t{constructor(){super(Xe.getPhrase(px,`title`))}get name(){return`UnspecifiedError`}get heading(){return Xe.getPhrase(px,`heading`)}get description(){return Xe.getPhrase(px,`description`)}get cta(){return!1}},X=_(ht()),Z=lt(),hx=class extends h{onShowAlert(e){if(!this.layoutOptions.options.alertRegion)return super.onShowAlert(e);let{ctor:t,collection:n}=e,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,(0,Z.jsx)(t,{alerts:r,removeAlert:e=>fx.default.channel(o.ALERT).trigger(`remove:alert`,e)}))}},gx=function(e){return e.ET=`Eastern Standard Time`,e}({}),_x={[gx.ET]:{name:`Eastern Time`,timezone:`America/New_York`,code:`ET`}},vx={convertToUTCString(e,t=gx.ET){return e?bt.getUtcStringByTimezone(e,_x[t].timezone):``},convertUTCToTimezoneDate(e,t=gx.ET){if(!e||!t)return new Date;let n=new Date(e),r=new Intl.DateTimeFormat(`en-US`,{timeZone:_x[t].timezone,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`}).format(n);return new Date(r)}},yx=!1,bx=!1,xx=!1,Sx=!0,Cx=!0,wx=new class extends A{get name(){return`LayoutHelper`}shouldHideNav(){return yx}disableNav(){yx=!0}enableNav(){yx=!1}shouldHideHeader(){return bx}disableHeader(){bx=!0}enableHeader(){bx=!1}lockContentWidth(){xx=!0,this.trigger(`change:lockContentWidth`)}unlockContentWidth(){xx=!1,this.trigger(`change:lockContentWidth`)}shouldLockContentWidth(){return!!xx}shouldShowSearch(){return Cx}enableSearch(){Cx=!0}disableSearch(){Cx=!1}enableLogoClick(){Sx=!0}disableLogoClick(){Sx=!1}shouldAllowLogoClick(){return Sx}},Tx={CONTENT:`content`,POPUP:`popup`,ALERT:`alert`},Ex={DEFAULT_LAYOUT:`DefaultLayout`},Q=function(e){return e.MustCompleteOnboarding=`must_complete_onboarding`,e.StudentWorkspaceSharing=`student_ws_sharing`,e.StudentToStudentMessaging=`student_to_student_messaging`,e.HideResourcesForStudents=`hide_resources_for_students`,e.LibraryReview=`library_review`,e.SchoolMessaging=`school_messaging`,e.LegacyTvNaming=`legacy_tv_naming`,e.HideHostedLibraries=`hide_hosted_libraries`,e.MaxCustomLibraries=`max_custom_libraries`,e.AutoCaptioning=`auto_captioning`,e.Topics=`subjects`,e.NewDashboards=`new_dashboards`,e.ShareToGoogleClassroom=`share_to_google_classroom`,e.ShareToMicrosoftTeams=`share_to_microsoft_teams`,e.DefaultPlaybackQuality=`playback_quality_default`,e.DefaultLocalCachePlaybackQuality=`playback_quality_local_cache_default`,e.EnableSubtitlesDefault=`playback_subtitles_enabled_default`,e.LTI=`lti`,e.HasNewClassificationView=`new_classification_view`,e.HasCuratedDiscoverDashboards=`has_curated_discover_dashboards`,e.HasLiteSearchDropdown=`has_lite_search_dropdown`,e.HasSpecialEventCalendar=`has_special_event_calendar`,e.PreviewVideos=`preview_videos`,e.DomainSettings=`domain_settings`,e.InviteColleague=`invite_colleague`,e.ExchangeTvProductOption=`exchange_tv_product_option`,e.MyVideosFolders=`my_videos_folders`,e.TvRegion=`tv_region`,e.ShareOverrideRestrictions=`share_override_restrictions`,e.HasTopicDirectories=`has_topic_directories`,e.MessageFrequencyOption=`message_frequency`,e.HasTopicVideoListFeature=`has_topic_video_list_feature`,e.HasManageGrouPermissions=`has_manage_group_permissions`,e.ExperimentalInteractiveQuestions=`experimental_interactive_questions`,e.PublicInteractiveAttempts=`public_interactive_attempts`,e.HasClassrooms=`has_classrooms`,e.HasNewSearch=`has_new_search`,e.HasPlayPageTranscript=`has_play_page_transcript`,e.HasShareFlowV2=`has_share_flow_v2`,e.HasPartnerProfiles=`has_partner_profiles`,e.PreferredTheme=`preferred_theme`,e.HasHubEntry=`has_hub_entry`,e.HasEnabledViviPlayback=`has_enabled_vivi_playback`,e.HasEnabledViviStudentCasting=`has_enabled_vivi_student_casting`,e.HasEnabledAppleTvPlayback=`has_enabled_apple_tv_playback`,e.HasDisplayedTutorialVideosProductTip=`has_displayed_tutorial_videos_spotlight`,e.HasDismissedAnalyticsTutorial=`has_dismissed_analytics_tutorial`,e.HasDismissedOpenClassroomsTutorial=`has_dismissed_open_classrooms_tutorial`,e.HasDismissedSearchAndDiscoverTutorial=`has_dismissed_search_and_discover_tutorial`,e.HasDismissedClassroomsTutorial=`has_dismissed_classrooms_tutorial`,e.HasDismissedMySharesTutorial=`has_dismissed_my_shares_tutorial`,e.HasDismissedMyVideosTutorial=`has_dismissed_my_videos_tutorial`,e.HasDismissedPlaylistsTutorial=`has_dismissed_playlists_tutorial`,e.ShowExchangeSearchResultsUser=`show_exchange_search_results_user`,e.UserEnabledPreviewVideos=`user_enabled_preview_videos`,e.LiteUpgradeTypeCustomer=`lite_upgrade_type_customer`,e.PolicyEndTime=`policy_end_time`,e.ReferralCount=`referral_count`,e.HasCompletedOnboardingV1=`has_completed_onboarding`,e.BulkOnboardingPreferencesState=`bulk_onboarding_preferences_state`,e.HasCompletedOnboardingV2=`has_completed_onboarding_v2`,e.HasExitedOnboarding=`has_exited_onboarding`,e.HasCompletedOnboardingStepSelectRole=`has_completed_onboarding_step_select_role`,e.HasCompletedOnboardingStepSchoolLevel=`has_completed_onboarding_step_school_level`,e.HasCompletedOnboardingStepAudiencePreferences=`has_completed_onboarding_step_audience_preferences`,e.HasCompletedOnboardingStepSelectCurriculum=`has_completed_onboarding_step_select_curriculum`,e.HasCompletedOnboardingStepSubjects=`has_completed_onboarding_step_subjects`,e.StudentInteractives=`student_interactives`,e.ExpandSchoolLibrary=`expand_school_library`,e.PrimaryProduct=`primary_product`,e.ImmediateFeedbackInteractives=`immediate_feedback_interactives`,e.LiteStudentCustomLibraries=`lite_student_custom_libraries`,e.HasEnabledRostering=`has_enabled_rostering`,e.DefaultCitationStyle=`default_citation_style`,e.HasStudentReach=`has_student_reach`,e.StudentReachClassroomSize=`student_reach_classroom_size`,e.SchoolStartTime=`school_start_time`,e.SchoolEndTime=`school_end_time`,e.Timezone=`timezone_iana`,e.ClickViewLive=`clickview_live`,e.HasStudentLowerPresentations=`students_lower_presentations`,e}({}),Dx=`shared.pageRedirectedError`,Ox=class extends _t{constructor(e){super(`Redirecting from ${R.getHref(e)}`),this.appLink=e}get name(){return Xe.getPhrase(Dx,`title`)}get heading(){return Xe.getPhrase(Dx,`heading`)}get description(){return Xe.getPhrase(Dx,`description`)}get origin(){return this.appLink}},kx={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`}}},Ax={domainLibraries(e,t,n,r){return{url:Vt.urlBuilder(`/api/domain/v2/me/libraries`,{type:e,maxCategoryDepth:0}),key:`libraries:${e.sort().join(`:`)}`,formatData:e=>e.map(e=>e.data),success:t,error:n,always:r}},libraryRequestLibraries(){return{url:`{gateway}/v1/library-requests/libraries`,key:`libraries`}},librariesWithCategories(){return{url:Vt.urlBuilder(`/api/domain/v2/me/libraries`,{type:[`sharedLibrary`,`customLibrary`,`unpublishedCustomLibrary`],maxCategoryDepth:5}),key:`libraries:with:categories`,normalize:!1}},librariesWithOwnerLogos(e,t,n,r){return e.sort(),{url:Vt.urlBuilder(`/api/domain/v2/objects`,{query:Ut.LIBRARY_COLLECTION,id:e}),key:`libraries:owner:logo:${e.join(`,`)}`,success:t,error:n,always:r}},library(e,t,n,r){return{url:Vt.urlBuilder(`{gateway}/v1/objects/${e}`,{query:Ut.LIBRARY}),key:`library:${e}`,success:t,error:n,always:r}},exchange(e){return{url:Vt.urlBuilder(`{gateway}/v1/objects/${e}`,{query:`categorytree`}),key:`exchange`}},streamableLearning(){return{url:`{gateway}/v1/streamable-learning-library`,key:`streamable:learning`}},librarySubscribers(e,t){let n={};return t&&(n.cursor=t),{url:Vt.urlBuilder(`{gateway}/v1/library-requests/libraries/${e}/subscribers`,n),key:`library:subscribers:${e}:${t}`}},libraryOwner(e){return{url:`{gateway}/v1/library-requests/libraries/${e}/subscribers?ownerOnly=true`,key:`library:owner:${e}`,formatData:e=>It.first(e.data)}},updateSubscriberPermissions(e,t,n,r,i){return{url:`{gateway}/v1/libraries/${e}/library-request-permissions`,key:`update:subscriber:permissions:${e}:${t}`,type:Ft.PUT,data:{customerId:t,granted:n},invalidationKeys:[`library:owner:${e}`,`library:subscribers:${e}`],success:r,error:i}},removeSubscriber(e,t,n,r){return{url:`{gateway}/v1/objects/${e}/subscribedcustomers?memberId=${t}`,key:`revoke:subscription:${e}:${t}`,type:Ft.DELETE,invalidationKeys:[`library:subscribers:${e}`],success:n,error:r}},folder(e,t,n,r){return{url:`{gateway}/v1/objects/${e}?query=banner,libraries`,key:`library:folder:${e}`,success:t,error:n,always:r}},videoFolders(e){return{url:`{gateway}/v1/objects/${e}/categories?query=libraries`,key:`video:folders:${e}`}},folderParentTree(e,t,n,r){return{url:`/api/domain/v2/categories/${e}/parent-tree?includeAll=false`,key:`folder:parent:tree${e}`,success:t,error:n,always:r}},childFolders(e,t,n,r,i){let a=`{gateway}/v1/objects/${e}/categories?query={limit:100}thumbnail`,o=`child:folders:${e}`;return t&&(a+=`&cursor=${t}`,o+=`:${t}`),{url:a,key:o,formatData:e=>{let t=e.data.sort((e,t)=>e.name.toLowerCase().localeCompare(t.name.toLowerCase()));return{...e,data:t}},success:n,error:r,always:i}},addToLibrary(e,t){let n=[`folder`,`videos`,e.metadata.destinationCategoryId,t].filter(e=>!!e).join(`:`);return{url:`{gateway}/v1/library-requests`,key:`add:${e.objectId}:to:${e.destinationLibraryId}:${e.metadata.destinationCategoryId}`,type:Ft.POST,data:e,invalidationKeys:n}},libraries(){return{url:`{gateway}/v1/users/me/libraries`,key:`objects:libraries`}},libraryExport(e){return{url:`{gateway}/v1/libraries/export`,key:`library:export`,type:Ft.POST,data:e}},libraryExportV2(e){return{url:`{gateway}/v2/libraries/export`,key:`library:export:v2`,type:Ft.POST,data:e}}},jx={userProducts(e,t){return{url:`{gateway}/v1/users/me/products`,key:`user:products`,normalizeOptions:{namespace:`product`},success:e,error:t,bootstrapName:Wt.PRODUCTS}}},Mx={get(e,t){return e?.[t]?.value},getCustomerSettingsRequest(e,t){return e?.isAuthenticated?Fx.customerSettings(t?.success,t?.error):Fx._publicCustomerSettings(t?.success,t?.error)},getUserSettingsRequest(e,t){return e?.isAuthenticated?Fx.userSettings(t?.success,t?.error):Fx._publicUserSettings(t?.success,t?.error)},formatSettings(e){return e.reduce((e,t)=>(e[t.name]=t,e),{})}},Nx=[{name:`new_classification_view`,value:!0},{name:`must_complete_onboarding`,value:!1},{name:`has_completed_onboarding`,value:!0},{name:`has_displayed_presentation_switcher_spotlight`,value:!0},{name:`has_curated_discover_dashboards`,value:!0},{name:`has_special_event_calendar`,value:!0},{name:`new_movies_and_tv`,value:!0},{name:`has_partner_profiles`,value:!0}],Px=()=>(O.throw(new f(`SettingRequests.setPublicFormatSettings must be called before using public requests in SettingRequests`)),null),Fx={setPublicFormatSettings(e){e&&(Px=e)},organisationSettings(e,t,n){return{key:`settings:organisation:${e}`,url:`{gateway}/v1/organisations/${e}/settings`,normalizeOptions:{idAttribute:`name`},formatData:Mx.formatSettings,success:t,error:n}},customerSetting(e,t,n){return{key:`settings:customer:${e}`,url:`{gateway}/v1/customers/me/settings?type=${e}`,normalizeOptions:{idAttribute:`name`},formatData:e=>It.first(e),success:t,error:n}},customerSettings(e,t){return{key:`customer:settings`,url:`{gateway}/v1/customers/me/settings?(customerSettings)`,normalizeOptions:{idAttribute:`name`},formatData:Mx.formatSettings,success:e,error:t}},_publicCustomerSettings(e,t){return{key:`customer:settings`,url:`simulated:/api/domain/v3/settings/public`,normalizeOptions:{idAttribute:`name`},formatData:Px,success:e,error:t,successResponse:()=>Nx}},_publicUserSettings(e,t){return{key:`user:settings`,url:`simulated:/api/domain/v3/settings/public`,normalizeOptions:{idAttribute:`name`},formatData:Px,success:e,error:t,successResponse:()=>Nx}},userSetting(e,t,n){return{key:`settings:user:${e}`,url:`{gateway}/v1/customers/me/settings?type=${e}`,normalizeOptions:{idAttribute:`name`},formatData:e=>It.first(e),success:t,error:n}},userSettings(e,t){return{key:`user:settings`,url:`{gateway}/v1/users/me/settings?(userSettings)`,normalizeOptions:{idAttribute:`name`},formatData:Mx.formatSettings,success:e,error:t}},updateUserSetting(e,t,n,r){return{key:`update:user:setting:${e.name}`,url:`{gateway}/v1/users/me/settings`,data:e,type:Ft.PUT,formatData:()=>e,normalizeOptions:{idAttribute:`name`},success:t,error:n,always:r}},updateCustomerSetting(e,t,n,r){return{key:`update:customer:setting:${e.name}`,url:`{gateway}/v1/customers/me/settings`,data:e,type:Ft.PUT,formatData:()=>e,normalizeOptions:{idAttribute:`name`},success:t,error:n,always:r}}},Ix=Xe.encloseNamespace(`streamableShared.noAccess`),Lx=class extends _t{constructor(e,t){super(`Current user's school does not have access to Streamable Learning`),this.config=e,this.allowCta=t}get name(){return`NoAccessError`}get heading(){return Ix(`heading`)}get description(){return Ix(`body`,{liteUrl:this.config.liteUrl,escapeText:!0})}get cta(){return this.allowCta?{text:Ix(`requestAccess`),className:`btn btn-dark`,appLink:{application:V.DEFAULT,action:Jt.Default.CONTACT_US_POPUP}}:!1}get injectDescriptionHtml(){return!0}},Rx=`streamableShared.accountSetup`,zx=class extends _t{constructor(e){super(`Current user's account is not setup correctly for Streamable Learning`),this.config=e}get name(){return`AccountSetupError`}get heading(){return Xe.getPhrase(Rx,`heading`)}get description(){return Xe.getPhrase(Rx,`body`)}get cta(){return!1}get injectDescriptionHtml(){return!0}},Bx={streamablePresentation(){return{url:Vt.urlBuilder(`/api/subjects/presentations/available`,{type:Yt.StreamableLearning}),key:`streamable:learning:presentations`,bootstrapName:`availablePresentations`,formatData:e=>e[0],normalizeOptions:{namespace:`internal:presentation`}}}},Vx=[{application:V.DEFAULT,action:Jt.Default.ERROR},{application:V.DEFAULT,action:Jt.Default.DEV_ERROR},{application:V.DEFAULT,action:Jt.Default.CHALLENGE},{application:V.DEFAULT,action:Jt.Default.LOG_OUT},{application:V.DEFAULT,action:Jt.Default.CONTACT_US_POPUP},{application:V.DEFAULT,action:Jt.Default.REDIRECTED_ERROR}].reduce((e,t)=>(e[Hx(t)]=!0,e),{});function Hx(e){return e.application+e.action}function Ux(e,t){qt._forcePushContext(e),wx.disableNav(),te.routingEnded(),O.throw(t??new mx)}async function Wx(e,t){let{appLink:n,shell:r}=e;try{let i=await xt(r.store,Gt.currentUser());if(!i.isAuthenticated){t(e);return}let a=xt(r.store,jx.userProducts()),o=xt(r.store,Bx.streamablePresentation()),s=xt(r.store,Fx.customerSettings()),c=xt(r.store,Ax.libraries()),l=xt(r.store,Ax.streamableLearning()),u=await a,d=await o,f=await c,p=await l,m=await s,h=u.find(e=>e.id===Bt.StreamableLearning),g=f.find(e=>e.id.toString()===p.objectId.toString())&&!!d;if(h&&g&&!m[Q.ClickViewLive].value){t(e);return}if(Vx[Hx(e.appLink)]){wx.disableNav(),t(e);return}if(h&&g&&m[Q.ClickViewLive].value){Ux(n,new Ox(e.appLink));return}let _=await xt(r.store,kx.config());if(!h){Ux(n,new Lx(_,!(await xt(r.store,Gt.permissions()))[Rt.StudentExperience]&&i.instanceRegion===Lt.US));return}Ux(n,new zx(_))}catch{t(e)}}var Gx=[{application:V.DEFAULT,action:Jt.Default.INDEX},{application:V.DEFAULT,action:Jt.Default.ERROR},{application:V.DEFAULT,action:Jt.Default.NOT_FOUND},{application:V.DEFAULT,action:Jt.Default.DEV_ERROR},{application:V.DEFAULT,action:Jt.Default.DIALOG_ERROR},{application:V.DEFAULT,action:Jt.Default.CONTACT_US},{application:V.DEFAULT,action:Jt.Default.CONTACT_US_POPUP},{application:V.DASHBOARD,action:Jt.Dashboard.HOME},{application:V.DASHBOARD,action:Jt.Dashboard.DASHBOARD_WIDGET},{application:V.DASHBOARD,action:Jt.Dashboard.CONTENT_PARTNERS},{application:V.DASHBOARD,action:Jt.Dashboard.COMPANY_DASHBOARD},{application:V.SUBJECTS,action:Jt.Subjects.CLASSIFICATION},{application:V.SUBJECTS,action:Jt.Subjects.CLASSIFICATION_ALL},{application:V.SUBJECTS,action:Jt.Subjects.CLASSIFICATION_TOPICS},{application:V.SEARCH,action:Jt.Search.HOME},{application:V.VIDEOS,action:Jt.Videos.PLAY_VIDEO},{application:V.VIDEOS,action:Jt.Videos.SIGN_IN_POPUP},{application:V.CALENDAR,action:Jt.Calendar.CALENDAR},{application:V.CALENDAR,action:Jt.Calendar.CALENDAR_MONTH},{application:V.CALENDAR,action:Jt.Calendar.SPECIAL_EVENT_LIST},{application:V.LIVESTREAMS,action:Jt.Livestreams.LIVESTREAM}].reduce((e,t)=>(e[Kx(t)]=!0,e),{});function Kx(e){return e.application+e.action}function qx(e){qt._forcePushContext(e),wx.disableNav(),te.routingEnded(),O.throw(new mx)}async function Jx(e,t){try{let n=await xt(e.shell.store,Gt.currentUser());if(Gx[Kx(e.appLink)]||n?.isAuthenticated){t(e);return}te.routingEnded(),R.trigger({application:V.DEFAULT,action:Jt.Default.CHALLENGE},{replace:!0})}catch{qx(e.appLink)}}var Yx=`public:origin`;async function Xx(e,t){let n=$t.get(Yx),r=e.appLink.params?.origin;if(n||!r){t(e);return}if((await xt(e.shell.store,Gt.currentUser()))?.isAuthenticated){t(e);return}$t.set(Yx,r),t(e)}var Zx=class extends I{get channelName(){return V.CALENDAR}get appRoutes(){return{calendar:`calendar`,"calendar/:month":`calendarMonth`}}get appLinks(){return[`specialEventList`]}get filters(){return[Wx,Jx,Xx]}},Qx=class extends hx{get name(){return`Calendar`}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:Tx.ALERT}}}get channelName(){return V.CALENDAR}static get router(){return Zx}async calendar(e){let{CalendarView:t,sanitizeCalendarViewParams:n}=await Ht(async()=>{let{CalendarView:e,sanitizeCalendarViewParams:t}=await import(`./Br0Uc4GG.chunk.js`);return{CalendarView:e,sanitizeCalendarViewParams:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{month:bt.format(vx.convertUTCToTimezoneDate(new Date().toISOString()),`MMMM-YYYY`),queryParams:n(e)}))}async calendarMonth(e,t){let n=t.year||new Date().getFullYear(),{CalendarView:r,sanitizeCalendarViewParams:i}=await Ht(async()=>{let{CalendarView:e,sanitizeCalendarViewParams:t}=await import(`./Br0Uc4GG.chunk.js`);return{CalendarView:e,sanitizeCalendarViewParams:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(r,{month:`${e}-${n}`,queryParams:i(t)}))}async specialEventList(e){let{SpecialEventListView:t}=await Ht(async()=>{let{SpecialEventListView:e}=await import(`./CGxa1Jzq.chunk.js`);return{SpecialEventListView:e}},__vite__mapDeps([118,1,2,5,6,7,8,34,3,4,35,17,18,19,20,21,22,23,36,24,25,26,37,10,38,39,40,30,41,42,43,44,45,46,47,112,119]));this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(t,{from:e.from,to:e.to,date:e.date,closePopup:()=>this.layout.closePopup()}))}},$x=class extends I{get channelName(){return V.DASHBOARD}get appRoutes(){return{"(/)":`index`,"discover/:id(/:name)(/)":`dashboardWidget`,"partners(/)":`contentPartners`,"partners/:id(/:name)(/)":`companyDashboard`}}get filters(){return[Wx,Jx,Xx]}},eS=class extends hx{get name(){return`Dashboard Application`}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:Tx.ALERT}}}get channelName(){return V.DASHBOARD}static get router(){return $x}async index(e){let{DashboardView:t,sanitizeDashboardViewParams:n}=await Ht(async()=>{let{DashboardView:e,sanitizeDashboardViewParams:t}=await import(`./DU1SE31v2.chunk.js`);return{DashboardView:e,sanitizeDashboardViewParams:t}},__vite__mapDeps([120,1,2,3,4,5,7,8,9,10,6,11,12,121,122,123,124,54,51,13,56,22,23,39,125,126,35,127,128,57,58,129,59,60,130,109,110,131,132,14,94,18,95,133,42,69,134,40,21,135,103,105,112,136,44,45,46,137,62,37,63,93,68,96,97,72,81,98,64,36,24,25,26,38,138,139,140,141,84,85,31,32,142,143,144,15,16,17,19,20,27,28,29,30,33,145,79,80,61,82,83,78,86,87,146,147,148,66,149,150,151,152,153,154,75,76,77,65,155,107,156,157,158,159,160,161,104,67,70,162,163,164,91,92,99,100,101,108,111,106,113,116]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{queryParams:n(e)}))}async dashboardWidget(e){let{DashboardWidgetView:t}=await Ht(async()=>{let{DashboardWidgetView:e}=await import(`./bycmewy72.chunk.js`);return{DashboardWidgetView:e}},__vite__mapDeps([165,1,2,126,3,4,5,6,35,54,51,127,128,57,58,129,8,59,60,130,22,23,109,110,131,132,7,14,94,18,95,133,42,69,134,40,21,135,10,103,105,112,136,44,45,46,137,62,37,63,93,68,96,97,72,81,98,64,36,24,25,26,38,138,139,140,141,39,84,85,31,32,142,9,11,12,155,80,61,82,107,156,106,113,166,100,167]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{widgetId:e}))}async companyDashboard(e,t,n){let r=typeof t==`string`?n:t,{CompanyDashboardView:i,sanitizeDashboardParams:a}=await Ht(async()=>{let{CompanyDashboardView:e,sanitizeDashboardParams:t}=await import(`./CNmmq34f.chunk.js`);return{CompanyDashboardView:e,sanitizeDashboardParams:t}},__vite__mapDeps([168,1,2,3,4,5,7,8,35,9,10,6,11,12,121,122,123,124,54,51,13,56,22,23,39,125,126,127,128,57,58,129,59,60,130,109,110,131,132,14,94,18,95,133,42,69,134,40,21,135,103,105,112,136,44,45,46,137,62,37,63,93,68,96,97,72,81,98,64,36,24,25,26,38,138,139,140,141,84,85,31,32,142,143,144,15,16,17,19,20,27,28,29,30,33,145,79,80,61,82,83,78,86,87,146,147,148,66,149,150,151,152,153,154,75,76,77,65,155,107,156,157,158,159,160,161,104,67,70,162,163,164,169,170,171,172,173,174,175,176,108,111,106,177,113,178,100,116]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(i,{companyId:e,queryParams:a(r)}))}async contentPartners(){let{ContentPartnersView:e}=await Ht(async()=>{let{ContentPartnersView:e}=await import(`./CN8PeBwg.chunk.js`);return{ContentPartnersView:e}},__vite__mapDeps([179,1,2,5,7,8,9,10,6,11,12,57,58,91,92,3,4,22,23,93,94,18,95,42,68,96,97,72,81,98,99,45,46,100,101,138,139,140,180,13,25,181,182,39,37,183,177,184,185,178,116,186]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(e,{}))}},tS=class extends I{get channelName(){return V.DEFAULT}get appRoutes(){return{"contact-us(/)":`contactUs`,"*path":`catchAllRoutes`}}get externalRoutes(){return{"logout(/)":`logOut`,"challenge(/)":`challenge`}}get appLinks(){return[`devError`,`dialogError`,`error`,`notFound`,`contactUsPopup`,`giveFeedback`,`redirectedError`]}get filters(){return[Wx,Jx,Xx]}},nS=class extends hx{get name(){return`Default Application`}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:Tx.ALERT}}}get channelName(){return V.DEFAULT}static get router(){return tS}giveFeedback(){Ht(async()=>{let{GiveFeedbackView:e}=await import(`./BLrjbrp8.chunk.js`);return{GiveFeedbackView:e}},__vite__mapDeps([187,1,2,122,123,3,4,124,7,8,54,51,13,56,22,23,39,5,125,57,58,59,60,102,10,103,104,105,106,107,62,37,63,188,147,148,89,189,21,69,112,70,113,190,191,31,32,71,162,97,72,171,82,192])).then(({GiveFeedbackView:e})=>{this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(e,{product:Bt.StreamableLearning,closePopup:()=>this.layout.closePopup()}))})}catchAllRoutes(){O.throw(new vt)}notFound(){let e=fx.default.channel(`error:view`).request(`current:error`);Ht(async()=>{let{NotFoundView:e}=await import(`./CsC3VVvE2.chunk.js`);return{NotFoundView:e}},__vite__mapDeps([193,1,2])).then(({NotFoundView:t})=>{this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{error:e}))})}error(){let e=fx.default.channel(`error:view`).request(`current:error`);Ht(async()=>{let{ErrorView:e}=await import(`./C4MLxDS-.chunk.js`);return{ErrorView:e}},[]).then(({ErrorView:t})=>{this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{error:e}))})}redirectedError(){let e=fx.default.channel(`error:view`).request(`current:error`);Ht(async()=>{let{PageRedirectedErrorView:e}=await import(`./CWFInhB82.chunk.js`);return{PageRedirectedErrorView:e}},__vite__mapDeps([194,1,2,5,7,8,9,10,6,11,12,108,3,4,22,23,109,110,111,70,44,46,195])).then(({PageRedirectedErrorView:t})=>{this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{error:e}))})}dialogError(){let e=fx.default.channel(`error:view`).request(`current:error`);if(!e)return;let{dialogOptions:t}=e;Ht(async()=>{let{DialogView:e}=await import(`./CkYqp83j.chunk.js`);return{DialogView:e}},__vite__mapDeps([196,1,2,3,4,8])).then(({DialogView:n})=>{this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(n,{title:t.title,text:t.text,buttons:t.buttons,onDone:e.onDone,onFail:e.onFail,closePopup:()=>this.layout.closePopup()}))})}devError(){let e=fx.default.channel(`error:view`).request(`current:error`);Ht(async()=>{let{DevErrorView:e}=await import(`./UEJgtRox.chunk.js`);return{DevErrorView:e}},__vite__mapDeps([197,1,2,4,50,51,52,9,10,5,6,11,12,198])).then(({DevErrorView:t})=>{this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{error:e}))})}async contactUs(){let{ContactUsView:e}=await Ht(async()=>{let{ContactUsView:e}=await import(`./BZOcEcTA2.chunk.js`);return{ContactUsView:e}},__vite__mapDeps([199,1,10,2,122,123,3,4,124,7,8,54,51,13,56,22,23,39,5,125,200,201,58,14,202,203,189,21,188,89,204,9,6,11,12,129,108,109,110,111,190,191,88,44,45,46,116,205]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(e,{fromPageLoad:!0,closePopup:()=>this.layout.closePopup()}))}async contactUsPopup(){let{ContactUsView:e}=await Ht(async()=>{let{ContactUsView:e}=await import(`./BZOcEcTA2.chunk.js`);return{ContactUsView:e}},__vite__mapDeps([199,1,10,2,122,123,3,4,124,7,8,54,51,13,56,22,23,39,5,125,200,201,58,14,202,203,189,21,188,89,204,9,6,11,12,129,108,109,110,111,190,191,88,44,45,46,116,205]));this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(e,{fromPageLoad:!1,closePopup:()=>this.layout.closePopup()}))}},rS=class extends I{get channelName(){return V.LIVESTREAMS}get appRoutes(){return{"livestreams/:id(/:slug)(/)":`livestream`}}get appLinks(){return[]}get filters(){return[Wx,Jx,Xx]}},iS=class extends hx{get name(){return`Livestreams Application`}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:Tx.ALERT}}}get channelName(){return V.VIDEOS}static get router(){return rS}async livestream(e){let t=qt.fromPageLoad(),{LivestreamView:n}=await Ht(async()=>{let{LivestreamView:e}=await import(`./BXJetawx2.chunk.js`);return{LivestreamView:e}},__vite__mapDeps([206,1,10,2,122,123,3,4,124,7,8,54,51,13,56,22,23,39,5,125,200,201,58,14,202,203,189,21,188,89,204,6,35,9,11,12,129,15,36,24,25,26,37,38,139,40,42,112,177,190,191,207,183,41,114,43,73,18,88,44,45,46,100,116,208]));this.layout.showChildView(t?Tx.CONTENT:Tx.POPUP,(0,Z.jsx)(n,{id:e,fromPageLoad:t,closePopup:()=>this.layout.closePopup()}))}},aS=class extends I{get channelName(){return V.SEARCH}get appRoutes(){return{"search(/)":`index`}}get filters(){return[Wx,Jx,Xx]}},oS=class extends hx{get name(){return`Search Application`}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:Tx.ALERT}}}get channelName(){return V.SEARCH}static get router(){return aS}async index(e){let{SearchResultsView:t}=await Ht(async()=>{let{SearchResultsView:e}=await import(`./BCBfXCYM2.chunk.js`);return{SearchResultsView:e}},__vite__mapDeps([209,1,10,2,126,3,4,5,6,35,54,51,127,128,57,58,129,8,59,60,130,22,23,109,110,131,132,7,14,94,18,95,133,42,69,134,40,21,135,103,105,112,136,44,45,46,137,62,37,63,93,68,96,97,72,81,98,64,36,24,25,26,38,138,139,140,141,39,84,85,31,32,142,9,11,12,55,49,50,52,53,56,15,61,65,66,67,70,71,73,74,143,144,48,75,76,77,78,79,13,80,82,83,27,28,29,86,87,88,89,90,102,104,106,107,108,111,180,181,182,146,147,148,30,149,183,177,113,190,191,184,185,166,100,210]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(t,{queryParams:e}))}},sS=class extends I{get channelName(){return V.SETTINGS}get appRoutes(){return{"settings(/)":`index`,"settings/profile(/)":`profileDetails`,"settings/account(/)":`account`}}get appLinks(){return[`createLtiPlatform`,`deleteLtiPlatform`,`renameLocalCache`,`deleteLocalCache`,`updateLocalCache`,`approveAllVideos`,`turnOffContentReview`]}get filters(){return[Wx,Jx]}},cS=class extends hx{get name(){return`Settings Application`}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:Tx.ALERT}}}get channelName(){return V.SETTINGS}static get router(){return sS}async index(){let{SettingsView:e}=await Ht(async()=>{let{SettingsView:e}=await import(`./DwzBzBlI2.chunk.js`);return{SettingsView:e}},__vite__mapDeps([211,1,2,5,9,10,6,11,12,22,23,39,177,212,112,44,45,46,213]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(e,{}))}async profileDetails(){let{ProfileDetailsView:e}=await Ht(async()=>{let{ProfileDetailsView:e}=await import(`./B-qOny0I2.chunk.js`);return{ProfileDetailsView:e}},__vite__mapDeps([214,1,10,2,122,123,3,4,124,7,8,54,51,13,56,22,23,39,5,125,9,6,11,12,57,58,59,60,153,154,170,37,190,191,32,215,176,85,28,86,212,112,44,45,46,216]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(e,{}))}async account(){let{AccountSettingsView:e}=await Ht(async()=>{let{AccountSettingsView:e}=await import(`./CNJrD44-2.chunk.js`);return{AccountSettingsView:e}},__vite__mapDeps([217,1,2,122,123,3,4,124,7,8,54,51,13,56,22,23,39,5,125,9,10,6,11,12,55,49,50,52,53,57,58,15,14,59,60,61,62,37,63,64,65,66,67,68,69,70,31,32,71,72,73,74,153,154,141,190,191,85,215,176,28,86,212,112,44,45,46,218]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(e,{}))}},lS={TOP_NAV:`top:nav`,LEFT_NAV:`left:nav`,CONTENT:`content`,POPUP:`popup`,ALERT:`alert`,HIDDEN:`hidden`,PICTURE_IN_PICTURE:`picture:in:picture`},uS=class extends I{get channelName(){return V.SUBJECTS}get appRoutes(){return{"topics(/)":`classificationAll`,"topics/:id/topics":`classificationTopics`,"topics/:id(/:slug)(/)":`classification`}}get filters(){return[Wx,Jx,Xx]}},dS=class extends hx{get name(){return`Subject Application`}static get router(){return uS}get channelName(){return V.SUBJECTS}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:lS.ALERT}}}async classificationAll(){let{StreamableClassificationsView:e}=await Ht(async()=>{let{StreamableClassificationsView:e}=await import(`./BTYwcYPL2.chunk.js`);return{StreamableClassificationsView:e}},__vite__mapDeps([219,1,2,5,7,8,9,10,6,11,12,14,15,169,3,4,54,51,17,18,19,145,127,22,23,79,13,80,61,69,81,82,83,78,24,25,26,27,28,29,84,85,86,87,146,147,148,138,139,97,140,39,66,30,37,149,150,130,109,110,131,170,171,172,102,103,104,105,106,107,176,40,21,190,191,45,46,220]));this.layout.showChildView(lS.CONTENT,(0,Z.jsx)(e,{}))}async classificationTopics(e){let{StreamableClassificationsView:t}=await Ht(async()=>{let{StreamableClassificationsView:e}=await import(`./BTYwcYPL2.chunk.js`);return{StreamableClassificationsView:e}},__vite__mapDeps([219,1,2,5,7,8,9,10,6,11,12,14,15,169,3,4,54,51,17,18,19,145,127,22,23,79,13,80,61,69,81,82,83,78,24,25,26,27,28,29,84,85,86,87,146,147,148,138,139,97,140,39,66,30,37,149,150,130,109,110,131,170,171,172,102,103,104,105,106,107,176,40,21,190,191,45,46,220]));this.layout.showChildView(lS.CONTENT,(0,Z.jsx)(t,{id:e}))}async classification(e,t,n){let r=typeof t==`string`?n:t||{},{StreamableClassificationView:i,sanitizeStreamableClassificationParams:a}=await Ht(async()=>{let{StreamableClassificationView:e,sanitizeStreamableClassificationParams:t}=await import(`./qcrBN1zR2.chunk.js`);return{StreamableClassificationView:e,sanitizeStreamableClassificationParams:t}},__vite__mapDeps([221,1,2,126,3,4,5,6,35,54,51,127,128,57,58,129,8,59,60,130,22,23,109,110,131,132,7,14,94,18,95,133,42,69,134,40,21,135,10,103,105,112,136,44,45,46,137,62,37,63,93,68,96,97,72,81,98,64,36,24,25,26,38,138,139,140,141,39,84,85,31,32,142,9,11,12,121,122,123,124,13,56,125,143,144,15,16,17,19,20,27,28,29,30,33,145,79,80,61,82,83,78,86,87,146,147,148,66,149,150,151,152,153,154,75,76,77,65,155,107,156,157,158,159,160,161,104,67,70,162,163,164,169,170,171,172,173,174,175,102,106,176,108,111,92,99,177,113,222,190,191,207,183,115,88,89,166,100,116,223]));this.layout.showChildView(lS.CONTENT,(0,Z.jsx)(i,{id:e,queryParams:a(r)},e))}};function fS(e){return e?et.pick(e,[`t`,`startTime`,`endTime`,`context`,`contextId`,`playNext`,`mtv`,`tocId`,`resourceId`]):{}}var pS=class extends I{get channelName(){return V.VIDEOS}get appRoutes(){return{"videos/:id(/:slug)(/)":`playVideo`}}get appLinks(){return[`previewPdf`,`signInPopup`,`classroomGuide`,`resourceGuidance`]}get filters(){return[Wx,Jx,Xx]}},mS=class extends hx{get name(){return`Videos Application`}get layoutOptions(){return{name:Ex.DEFAULT_LAYOUT,options:{showNav:!wx.shouldHideNav(),alertRegion:Tx.ALERT}}}get channelName(){return V.VIDEOS}static get router(){return pS}async playVideo(e,t,n={}){let r=(typeof t==`string`?n:t)||{},{PlayView:i}=await Ht(async()=>{let{PlayView:e}=await import(`./BihZ4r0z2.chunk.js`);return{PlayView:e}},__vite__mapDeps([224,1,10,2,4,123,3,49,50,51,52,53,54,5,6,7,8,35,9,11,12,203,57,58,14,22,23,132,128,94,18,95,133,42,69,134,40,21,135,103,105,112,136,44,45,46,137,151,39,37,152,225,109,110,76,77,79,13,80,61,81,82,83,157,24,25,26,158,36,38,96,159,27,28,29,31,32,160,161,177,183,113,106,222,15,102,104,107,190,191,207,185,181,174,43,163,98,100,116,226]));this.layout.showChildView(Tx.CONTENT,(0,Z.jsx)(i,{id:e,params:fS(r)}))}async previewPdf(e,t){let{PreviewPdfView:n}=await Ht(async()=>{let{PreviewPdfView:e}=await import(`./BvJXPFoz2.chunk.js`);return{PreviewPdfView:e}},__vite__mapDeps([227,1,10,2,3,4,5,7,8,130,22,23,109,110,131,39,27,28,29,135,6,94,18,95,103,42,69,105,112,136,14,96,160,163,228]));this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(n,{id:e,videoId:t.videoId,errorImageUrl:tn.Fallbacks.RESOURCE_PREVIEW,closePopup:()=>this.layout.closePopup(),showBackButton:t.showBackButton}))}async signInPopup(){let{SignInPopupView:e}=await Ht(async()=>{let{SignInPopupView:e}=await import(`./DyT1OGvP2.chunk.js`);return{SignInPopupView:e}},__vite__mapDeps([229,1,2,3,4,5,22,23,39,88,89,45,46,230]));this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(e,{closePopup:()=>this.layout.closePopup()}))}classroomGuide(e){Ht(async()=>{let{VideoGuidanceClassroomGuideView:e}=await import(`./Ce1TZZdV2.chunk.js`);return{VideoGuidanceClassroomGuideView:e}},__vite__mapDeps([231,1,2,5,7,8,151,3,4,22,23,39,37,10,152,225,136,14,103,42,69,105,222,57,58,15,102,104,106,107,112,190,191,45,46])).then(({VideoGuidanceClassroomGuideView:t})=>{this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(t,{id:e,closePopup:()=>this.layout.closePopup()}))})}resourceGuidance(e){Ht(async()=>{let{VideoGuidanceResourcesView:e}=await import(`./Dj4AeYQQ2.chunk.js`);return{VideoGuidanceResourcesView:e}},__vite__mapDeps([232,1,2,3,4,5,7,8,22,23,180,13,25,181,182,158,36,24,26,37,10,38,96,82,69,159,133,42,134,11,136,14,103,105,190,191,160,44,45,46,233])).then(({VideoGuidanceResourcesView:t})=>{this.layout.showChildView(Tx.POPUP,(0,Z.jsx)(t,{id:e,closePopup:()=>this.layout.closePopup()}))})}};async function hS(e,t){try{e.registerApplication(nS).registerApplication(eS).registerApplication(dS).registerApplication(oS).registerApplication(mS).registerApplication(Qx).registerApplication(cS).registerApplication(iS),t(e)}catch{O.throw(new mx)}}var gS=class extends w{constructor(e){super(e),this.dialogOptions||O.throw(new f(`Please provide DialogOptions for your implementation of DialogError`))}get name(){return`DialogError`}onDone(){}onFail(){}},_S=`shared.chunkLoadError`,vS=/\/([^\s/]+\.css)/,yS=/\/([^\s/]+\.js)/,bS=class extends gS{constructor(e,t,n){super(Xe.getPhrase(_S,`title`,{chunkName:t})),this.product=`ClickView`,this.btnVariant=e,n&&(this.product=n)}get name(){return`ChunkLoadError`}get dialogOptions(){return{title:Xe.getPhrase(_S,`heading`,{product:this.product}),text:Xe.getPhrase(_S,`body`),buttons:[{text:Xe.getPhrase(_S,`reload`),className:`btn btn-${this.btnVariant}`,success:!0}]}}onDone(){d.Reload()}};function xS(e,t){window.addEventListener(`error`,n=>{let r=n?.target?.src||n?.target?.href;if(!r)return;let i=e=>e?.[1]??`Unknown Chunk`,a=r.match(yS);if(a&&r.includes(`/scripts/`)&&r.includes(`.chunk.js`)){O.throw(new bS(e,i(a),t));return}let o=r.match(vS);if(o&&r.includes(`/css/`)&&r.includes(`.chunk.css`)){O.throw(new bS(e,i(o),t));return}},!0)}var SS=class extends w{constructor(e,t){super(`User is using old version of the code. Old: ${e}. New: ${t}`)}get name(){return`OldVersionError`}},CS=class extends w{get name(){return`AlertError`}},wS={UPLOAD_COMPLETE:`upload:complete`,UPLOAD_SUCCESS:`upload:success`,FILES_SELECTED:`files:selected`,FILES_ADDED:`files:added`,UPLOAD_CANCELLED:`upload:cancelled`,PENDING_ITEM_READY_TO_WATCH:`pending:item:ready:to:watch`,PENDING_ITEM_STATUS_CHANGE:`pending:item:status:change`,PROCESSING_CANCELLED:`processing:cancelled`,UNLOCK_NAV:`upload:unlock:nav`,PROCESSING_FAILED:`processing:failed`},TS={PENDING_ITEMS:`pending:items:service`,VIDEO_UPLOAD:`video:upload:service`,SUBTITLE_UPLOAD:`subtitle:upload:service`,RESOURCE_UPLOAD:`resource:upload:service`,CONTEXTUAL_SEARCH:`contextual:search:service`,IMAGE_UPLOAD:`image:upload:service`,MIXED_MEDIA_UPLOAD:`media:upload:service`,BRAZE:`braze:client:service`},ES;function DS(e){if((!ES&&ES!==0||e)&&mn){var t=document.createElement(`div`);t.style.position=`absolute`,t.style.top=`-9999px`,t.style.width=`50px`,t.style.height=`50px`,t.style.overflow=`scroll`,document.body.appendChild(t),ES=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ES}function OS(){return(0,X.useState)(null)}function kS(e){e===void 0&&(e=cn());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function AS(e){let t=(0,X.useRef)(e);return t.current=e,t}function jS(e){let t=AS(e);(0,X.useEffect)(()=>()=>t.current(),[])}function MS(e=document){let t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}var NS=Fn(`modal-open`),PS=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return MS(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){let t={overflow:`hidden`},n=this.isRTL?`paddingLeft`:`paddingRight`,r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(ln(r,n)||`0`,10)+e.scrollBarWidth}px`),r.setAttribute(NS,``),ln(r,t)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){let t=this.getElement();t.removeAttribute(NS),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return t!==-1||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),t!==0)?t:(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state),t)}remove(e){let t=this.modals.indexOf(e);t!==-1&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},FS=_(ot()),IS=`show.role.className.style.children.backdrop.keyboard.onBackdropClick.onEscapeKeyDown.transition.runTransition.backdropTransition.runBackdropTransition.autoFocus.enforceFocus.restoreFocus.restoreFocusOptions.renderDialog.renderBackdrop.manager.container.onShow.onHide.onExit.onExited.onExiting.onEnter.onEntering.onEntered`.split(`.`);function LS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var RS;function zS(e){return RS||=new PS({ownerDocument:e?.document}),RS}function BS(e){let t=Ue(),n=e||zS(t),r=(0,X.useRef)({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:(0,X.useCallback)(e=>{r.current.dialog=e},[]),setBackdropRef:(0,X.useCallback)(e=>{r.current.backdrop=e},[])})}var VS=(0,X.forwardRef)((e,t)=>{let{show:n=!1,role:r=`dialog`,className:i,style:a,children:o,backdrop:s=!0,keyboard:c=!0,onBackdropClick:l,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:p,runBackdropTransition:m,autoFocus:h=!0,enforceFocus:g=!0,restoreFocus:_=!0,restoreFocusOptions:v,renderDialog:y,renderBackdrop:b=e=>(0,Z.jsx)(`div`,Object.assign({},e)),manager:x,container:S,onShow:C,onHide:w=()=>{},onExit:T,onExited:E,onExiting:D,onEnter:O,onEntering:k,onEntered:A}=e,j=LS(e,IS),M=Ue(),N=je(S),P=BS(x),F=Sn(),I=On(n),[L,R]=(0,X.useState)(!n),ee=(0,X.useRef)(null);(0,X.useImperativeHandle)(t,()=>P,[P]),mn&&!I&&n&&(ee.current=kS(M?.document)),n&&L&&R(!1);let z=gn(()=>{if(P.add(),oe.current=xn(document,`keydown`,ie),ae.current=xn(document,`focus`,()=>setTimeout(ne),!0),C&&C(),h){let e=kS(P.dialog?.ownerDocument??M?.document);P.dialog&&e&&!Re(P.dialog,e)&&(ee.current=e,P.dialog.focus())}}),te=gn(()=>{if(P.remove(),oe.current==null||oe.current(),ae.current==null||ae.current(),_){var e;(e=ee.current)==null||e.focus==null||e.focus(v),ee.current=null}});(0,X.useEffect)(()=>{!n||!N||z()},[n,N,z]),(0,X.useEffect)(()=>{L&&te()},[L,te]),jS(()=>{te()});let ne=gn(()=>{if(!g||!F()||!P.isTopModal())return;let e=kS(M?.document);P.dialog&&e&&!Re(P.dialog,e)&&P.dialog.focus()}),re=gn(e=>{e.target===e.currentTarget&&(l?.(e),s===!0&&w())}),ie=gn(e=>{c&&wn(e)&&P.isTopModal()&&(u?.(e),e.defaultPrevented||w())}),ae=(0,X.useRef)(),oe=(0,X.useRef)(),se=(...e)=>{R(!0),E?.(...e)};if(!N)return null;let ce=Object.assign({role:r,ref:P.setDialogRef,"aria-modal":r===`dialog`?!0:void 0},j,{style:a,className:i,tabIndex:-1}),le=y?y(ce):(0,Z.jsx)(`div`,Object.assign({},ce,{children:X.cloneElement(o,{role:`document`})}));le=Ve(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:D,onExited:se,onEnter:O,onEntering:k,onEntered:A,children:le});let ue=null;return s&&(ue=b({ref:P.setBackdropRef,onClick:re}),ue=Ve(p,m,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ue})),(0,Z.jsx)(Z.Fragment,{children:FS.createPortal((0,Z.jsxs)(Z.Fragment,{children:[ue,le]}),N)})});VS.displayName=`Modal`;var HS=Object.assign(VS,{Manager:PS});function US(e,t){e.classList?e.classList.add(t):Le(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function WS(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function GS(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=WS(e.className,t):e.setAttribute(`class`,WS(e.className&&e.className.baseVal||``,t))}var KS={FIXED_CONTENT:`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,STICKY_CONTENT:`.sticky-top`,NAVBAR_TOGGLER:`.navbar-toggler`},qS=class extends PS{adjustAndStore(e,t,n){let r=t.style[e];t.dataset[e]=r,ln(t,{[e]:`${parseFloat(ln(t,e))+n}px`})}restore(e,t){let n=t.dataset[e];n!==void 0&&(delete t.dataset[e],ln(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);let t=this.getElement();if(US(t,`modal-open`),!e.scrollBarWidth)return;let n=this.isRTL?`paddingLeft`:`paddingRight`,r=this.isRTL?`marginLeft`:`marginRight`;Pn(t,KS.FIXED_CONTENT).forEach(t=>this.adjustAndStore(n,t,e.scrollBarWidth)),Pn(t,KS.STICKY_CONTENT).forEach(t=>this.adjustAndStore(r,t,-e.scrollBarWidth)),Pn(t,KS.NAVBAR_TOGGLER).forEach(t=>this.adjustAndStore(r,t,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);let t=this.getElement();GS(t,`modal-open`);let n=this.isRTL?`paddingLeft`:`paddingRight`,r=this.isRTL?`marginLeft`:`marginRight`;Pn(t,KS.FIXED_CONTENT).forEach(e=>this.restore(n,e)),Pn(t,KS.STICKY_CONTENT).forEach(e=>this.restore(r,e)),Pn(t,KS.NAVBAR_TOGGLER).forEach(e=>this.restore(r,e))}},JS;function YS(e){return JS||=new qS(e),JS}var XS=_(un()),ZS=X.forwardRef(({className:e,bsPrefix:t,as:n=`div`,...r},i)=>(t=on(t,`modal-body`),(0,Z.jsx)(n,{ref:i,className:(0,XS.default)(e,t),...r})));ZS.displayName=`ModalBody`;var QS=X.createContext({onHide(){}}),$S=X.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:a,children:o,scrollable:s,...c},l)=>{e=on(e,`modal`);let u=`${e}-dialog`,d=typeof a==`string`?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return(0,Z.jsx)(`div`,{...c,ref:l,className:(0,XS.default)(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,a&&d),children:(0,Z.jsx)(`div`,{className:(0,XS.default)(`${e}-content`,n),children:o})})});$S.displayName=`ModalDialog`;var eC=X.forwardRef(({className:e,bsPrefix:t,as:n=`div`,...r},i)=>(t=on(t,`modal-footer`),(0,Z.jsx)(n,{ref:i,className:(0,XS.default)(e,t),...r})));eC.displayName=`ModalFooter`;var tC=X.forwardRef(({closeLabel:e=`Close`,closeVariant:t,closeButton:n=!1,onHide:r,children:i,...a},o)=>{let s=(0,X.useContext)(QS),c=bn(()=>{s?.onHide(),r?.()});return(0,Z.jsxs)(`div`,{ref:o,...a,children:[i,n&&(0,Z.jsx)(Dn,{"aria-label":e,variant:t,onClick:c})]})}),nC=X.forwardRef(({bsPrefix:e,className:t,closeLabel:n=`Close`,closeButton:r=!1,...i},a)=>(e=on(e,`modal-header`),(0,Z.jsx)(tC,{ref:a,...i,className:(0,XS.default)(t,e),closeLabel:n,closeButton:r})));nC.displayName=`ModalHeader`;var rC=En(`h4`),iC=X.forwardRef(({className:e,bsPrefix:t,as:n=rC,...r},i)=>(t=on(t,`modal-title`),(0,Z.jsx)(n,{ref:i,className:(0,XS.default)(e,t),...r})));iC.displayName=`ModalTitle`;function aC(e){return(0,Z.jsx)(Cn,{...e,timeout:null})}function oC(e){return(0,Z.jsx)(Cn,{...e,timeout:null})}var sC=X.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:a,dialogAs:o=$S,"data-bs-theme":s,"aria-labelledby":c,"aria-describedby":l,"aria-label":u,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:m=!0,onEscapeKeyDown:h,onShow:g,onHide:_,container:v,autoFocus:y=!0,enforceFocus:b=!0,restoreFocus:x=!0,restoreFocusOptions:S,onEntered:C,onExit:w,onExiting:T,onEnter:E,onEntering:D,onExited:O,backdropClassName:k,manager:A,...j},M)=>{let[N,P]=(0,X.useState)({}),[F,I]=(0,X.useState)(!1),L=(0,X.useRef)(!1),R=(0,X.useRef)(!1),ee=(0,X.useRef)(null),[z,te]=OS(),ne=vn(M,te),re=bn(_),ie=_n();e=on(e,`modal`);let ae=(0,X.useMemo)(()=>({onHide:re}),[re]);function oe(){return A||YS({isRTL:ie})}function se(e){if(!mn)return;let t=oe().getScrollbarWidth()>0,n=e.scrollHeight>cn(e).documentElement.clientHeight;P({paddingRight:t&&!n?DS():void 0,paddingLeft:!t&&n?DS():void 0})}let ce=bn(()=>{z&&se(z.dialog)});Me(()=>{yn(window,`resize`,ce),ee.current==null||ee.current()});let le=()=>{L.current=!0},ue=e=>{L.current&&z&&e.target===z.dialog&&(R.current=!0),L.current=!1},de=()=>{I(!0),ee.current=pn(z.dialog,()=>{I(!1)})},fe=e=>{e.target===e.currentTarget&&de()},pe=e=>{if(p===`static`){fe(e);return}if(R.current||e.target!==e.currentTarget){R.current=!1;return}_?.()},me=e=>{m?h?.(e):(e.preventDefault(),p===`static`&&de())},he=(e,t)=>{e&&se(e),E?.(e,t)},ge=e=>{ee.current==null||ee.current(),w?.(e)},_e=(e,t)=>{D?.(e,t),hn(window,`resize`,ce)},ve=e=>{e&&(e.style.display=``),O?.(e),yn(window,`resize`,ce)},ye=(0,X.useCallback)(t=>(0,Z.jsx)(`div`,{...t,className:(0,XS.default)(`${e}-backdrop`,k,!f&&`show`)}),[f,k,e]),be={...n,...N};return be.display=`block`,(0,Z.jsx)(QS.Provider,{value:ae,children:(0,Z.jsx)(HS,{show:d,ref:ne,backdrop:p,container:v,keyboard:!0,autoFocus:y,enforceFocus:b,restoreFocus:x,restoreFocusOptions:S,onEscapeKeyDown:me,onShow:g,onHide:_,onEnter:he,onEntering:_e,onEntered:C,onExit:ge,onExiting:T,onExited:ve,manager:oe(),transition:f?aC:void 0,backdropTransition:f?oC:void 0,renderBackdrop:ye,renderDialog:n=>(0,Z.jsx)(`div`,{role:`dialog`,...n,style:be,className:(0,XS.default)(t,e,F&&`${e}-static`,!f&&`show`),onClick:p?pe:void 0,onMouseUp:ue,"data-bs-theme":s,"aria-label":u,"aria-labelledby":c,"aria-describedby":l,children:(0,Z.jsx)(o,{...j,onMouseDown:le,className:r,contentClassName:i,children:a})})})})});sC.displayName=`Modal`;var cC=Object.assign(sC,{Body:ZS,Header:nC,Title:iC,Footer:eC,Dialog:$S,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),lC=ke(),uC=_(ee()),dC=_(s());r();var fC=function(e){return e.Staff=`Staff`,e.Learner=`Learner`,e.Unknown=`Unknown`,e.System=`System`,e}({});function pC(e){let t=e.showSpinner?(0,Z.jsx)(Ln,{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`),(0,Z.jsx)(Be,{title:e.tooltip,spanHack:!0,children:(0,Z.jsx)(Bn,{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(0,Z.jsx)(Bn,{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(0,Z.jsx)(Be,{title:e.tooltip,spanHack:!0,children:(0,Z.jsx)(zn,{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(0,Z.jsx)(zn,{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 n(t){e.analyticsData&&e.analyticsOptions&&dt.logUserAction(e.analyticsData,e.analyticsOptions),We.isFunction(e.onClick)&&e.onClick(t)}return e.tooltip?(0,Z.jsx)(Be,{title:e.tooltip,spanHack:!0,children:(0,Z.jsx)(`button`,{onClick:n,className:`${e.className??``}${e.disabled?` pointer-events-none`:``}`,disabled:e.disabled,"aria-label":typeof t==`string`?t:e.ariaLabel,children:t})}):(0,Z.jsx)(`button`,{onClick:n,className:e.className,disabled:e.disabled,"aria-label":typeof t==`string`?t:e.ariaLabel,children:t})}var mC=(e,t,n,r=[])=>{let i=typeof e==`string`?fx.default.channel(e):e;X.useEffect(()=>{if(e)return i.on(t,n),()=>{e&&i.off(t,n)}},r)};function hC(){return(0,Z.jsx)(`div`,{className:`text-center p-5`,children:(0,Z.jsx)(Ln,{as:`div`,animation:`border`,role:`status`})})}gC.defaultProps={closeButton:!0,bodyClassName:``,dialogClassName:``,size:`md`,closeOnNavigate:!0};function gC(e){pt(e.title),mC(o.SHELL,z.ROUTE,(t,n)=>{!e.closeOnNavigate||!n.isAppRoute||e.closePopup()},[e.closePopup]);let t=e.headerButtons?.length?e.headerButtons.map((e,t)=>(0,Z.jsx)(pC,{...e},t)):(0,Z.jsx)(Z.Fragment,{});return(0,Z.jsxs)(cC,{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&&(0,Z.jsxs)(cC.Header,{className:`d-flex align-items-center bg-white`,closeButton:e.closeButton,children:[(0,Z.jsx)(cC.Title,{as:`h2`,className:`h4 flex-grow-1 text-truncate`,children:e.title}),t]}),e.showLoadingSpinner?(0,Z.jsx)(hC,{}):(0,Z.jsx)(cC.Body,{className:e.bodyClassName,children:e.children})]})}var _C=`shared.popup`,vC=e=>(0,Z.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 yC(e){return(0,Z.jsx)(Un,{variant:e.variant||`primary`,type:e.type||`submit`,disabled:e.disabled||e.showSpinner,size:e.size,className:e.className?e.className:``,onClick:()=>e.onClick?.(),showSpinner:e.showSpinner,spinnerText:e.spinnerText,children:e.text?(0,Z.jsx)(Z.Fragment,{children:e.text}):(0,Z.jsx)(Wn,{namespace:_C,phrase:e.isNew?`create`:`save`})})}function bC(e){let t=Vn(),n=Gn(t??{}),r=t?.isSubmitting||e.showSpinner;function i(){return typeof e.disabled==`boolean`?e.disabled:!!t&&!n||r}return(0,Z.jsx)(yC,{...e,disabled:i(),showSpinner:r})}vC.Submit=e=>X.useContext(Hn)?(0,Z.jsx)(bC,{...e}):(0,Z.jsx)(yC,{...e}),vC.Cancel=e=>(0,Z.jsx)(kn,{onClick:e.onClick,variant:e.variant||`link`,size:e.size,className:e.className?e.className:`me-2`,children:e.text?e.text:(0,Z.jsx)(Wn,{namespace:_C,phrase:`cancel`})}),vC.Checkbox=e=>(0,Z.jsx)(Nn.Check,{type:`checkbox`,className:e.className??`me-auto`,label:e.label,id:e.id,onChange:e.onToggle,checked:e.checked}),vC.Toggle=e=>(0,Z.jsxs)(`div`,{className:`d-flex align-items-center me-auto`,children:[(0,Z.jsx)(Kn,{on:e.on,onClick:e.onClick,disabled:e.disabled,tooltipText:e.tooltip}),!!e.label&&(0,Z.jsx)(`span`,{className:`fw-semibold ms-2`,children:e.label})]});var xC=`shared.shared-utils`,SC=null,CC={render:(e,t={})=>{let n=document.getElementById(`dialog-region`);n||(n=document.createElement(`div`),n.id=`dialog-region`,document.appendChild(n)),SC||=(0,lC.createRoot)(n);function r(){if(We.isFunction(t.submitButtonProps?.onClick)){let e=t.submitButtonProps.onClick();if(e instanceof Promise){e.then(()=>{SC.unmount(),SC=null});return}}SC.unmount(),SC=null}function i(){We.isFunction(t.cancelButtonProps?.onClick)&&t.cancelButtonProps.onClick(),SC.unmount(),SC=null}let a={...t.submitButtonProps?t.submitButtonProps:{},onClick:()=>{r()}},o={...t.cancelButtonProps?t.cancelButtonProps:{},onClick:()=>{i()}};SC.render((0,Z.jsxs)(gC,{title:t.title,closePopup:i,size:t.size,centered:t.centered,bodyClassName:`overflow-hidden`,dialogClassName:t.dialogClassName,children:[e,!t.hideButtons&&(0,Z.jsxs)(vC,{className:t.buttonContainerClassName,children:[t.cancelButtonProps&&(0,Z.jsx)(vC.Cancel,{...o}),t.submitButtonProps&&(0,Z.jsx)(vC.Submit,{...a})]})]}))},getDefaultSubmitButton(){return{variant:`dark`,text:Xe.getPhrase(xC,`confirm`)}},getDefaultCancelButton(){return{variant:`light`,text:Xe.getPhrase(xC,`cancel`)}}},wC=Xe.encloseNamespace(`shared.hooks`),TC=!1,EC={isLocked:()=>TC},DC=()=>{let[e,t]=X.useState([]),n=fx.default.channel(o.SHELL);X.useEffect(()=>(e.find(e=>!e.allowAppLinks)&&n.on(z.NAV_IS_LOCKED,a),e.length&&window.addEventListener(`beforeunload`,s),()=>{n.off(z.NAV_IS_LOCKED,a),window.removeEventListener(`beforeunload`,s)}),[e]),X.useEffect(()=>{function e(){r({id:`upload`,title:wC(`navLockTitle`),text:wC(`navLockBody`),allowAppLinks:!0})}let t=fx.default.channel(TS.VIDEO_UPLOAD);return t.on(wS.FILES_ADDED,e),t.on(wS.UNLOCK_NAV,i),()=>{t.off(wS.FILES_ADDED,e),t.off(wS.UNLOCK_NAV,i)}},[]);function r(r={}){e.find(e=>e.id===r.id)||(r.allowAppLinks||n.trigger(z.LOCK_NAV),t([...e,r]),TC=!0)}function i(r){let i=e.filter(e=>e.id!==r);(i.length===0||!i.find(e=>!e.allowAppLinks))&&n.trigger(z.UNLOCK_NAV),t(i),i.length||(TC=!1)}function a(t){if(!e.length)return;let r=e.find(e=>!e.allowAppLinks);if(r.appLinkWhitelist?.find(e=>e.action===t.action&&e.application===t.application)){n.trigger(z.UNLOCK_NAV),window.setTimeout(()=>{R.trigger(t),n.trigger(z.LOCK_NAV)},0);return}if(We.isFunction(r.renderCustomDialog)){r.renderCustomDialog();return}CC.render((0,Z.jsx)(`p`,{children:r.text}),{title:r.title,submitButtonProps:{onClick:()=>{r.onConfirmUnlock&&r.onConfirmUnlock(),c(t)},variant:`danger`,text:wC(`discard`)},cancelButtonProps:{text:wC(`cancel`),variant:`link`}})}function s(t){let n=e.find(e=>e.allowAppLinks);return n||=It.first(e),t.returnValue=n.text,n.text}function c(t){n.trigger(z.NAV_UNLOCKED_BY_USER),e.forEach(e=>{e.allowAppLinks||i(e.id)}),window.removeEventListener(`beforeunload`,s),R.trigger(t)}return{lock:r,unlock:i}},OC=9e5,kC=new class extends A{constructor(...e){super(...e),this.canReload=!0}get name(){return Kt.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,OC)}onInactivityTimeout(){if(EC.isLocked()){this.setInactivityTimeout();return}this.onInactive()}onInactive(){if(!this.canReload||EC.isLocked()){this.setInactivityTimeout();return}d.Reload()}setCanReload(e){this.canReload=e}},AC={Success:`Success! 🙌`,Warning:`Whoops...`,Fail:`Oops...`,Info:`FYI`},jC={VIDEO_START_TIME_CUTOFF:10,PUBLIC_SEARCH_QUERY_DEBOUNCE:600,AUTHENTICATED_SEARCH_QUERY_DEBOUNCE:300,LEGACY_ACTION_SUFFIX:`:legacy`,MINIMUM_GLANCE_HEIGHT:368,PRODUCT_NAME:`Streamable Learning`};function MC(e){an.getInstance(Ye.ALERT).createAlert({heading:AC.Fail,type:rn.Fail,message:e.message})}function NC(e){fx.default.channel(`error:view`).reply(`current:error`,()=>e),R.trigger({application:V.DEFAULT,action:Jt.Default.NOT_FOUND})}function PC(e){fx.default.channel(`error:view`).reply(`current:error`,()=>e),R.trigger({application:V.DEFAULT,action:Jt.Default.ERROR})}function FC(e){fx.default.channel(`error:view`).reply(`current:error`,()=>e),R.trigger({application:V.DEFAULT,action:Jt.Default.DIALOG_ERROR})}function IC(){kC.handleOldVersion()}function LC(e){fx.default.channel(`error:view`).reply(`current:error`,()=>e),R.trigger({application:V.DEFAULT,action:Jt.Default.REDIRECTED_ERROR})}function RC(e,t){e.registerErrorHandler(Ox,LC).registerErrorHandler(_t,PC).registerErrorHandler(gS,FC).registerErrorHandler(CS,MC).registerErrorHandler(vt,NC).registerErrorHandler(mx,PC).registerErrorHandler(SS,IC),xS(`dark`,jC.PRODUCT_NAME),t(e)}var zC=class extends D{constructor(...e){super(...e),this.regionRoots={},this.isReactComponentRendered={}}isReactComponent(e){return X.default&&X.isValidElement(e)}showChildView(e,t,n){if(this.isReactComponent(t)){this.showChildReactComponent(e,t),this.isReactComponentRendered[e]=!0;return}this.isReactComponentRendered[e]&&this.unmountRoot(e),super.showChildView(e,t,n),this.isReactComponentRendered[e]=!1}showChildReactComponent(e,t){if(this.isAttached()){this.renderChildReactComponent(e,t);return}this.listenToOnce(this,`attach`,()=>this.renderChildReactComponent(e,t))}renderChildReactComponent(e,t){let n=this.getRegion(e),r=this.$el.find(n.el);!r||!r.length||(n.trigger(`before:show`),this.regionRoots[e]||(this.regionRoots[e]=(0,lC.createRoot)(r[0])),this.regionRoots[e].render(t),window.setTimeout(()=>n.trigger(`show`),0),this.listenToOnce(this,`unmount:${e}`,()=>this.unmountRoot(e)),this.listenToOnce(this,`before:destroy`,()=>this.unmountRoot(e)))}unmountRoot(e){this.regionRoots[e]&&(this.regionRoots[e].unmount(),delete this.regionRoots[e])}wrapWithStore(e){return(0,Z.jsx)(wt,{store:this.options.store,children:e})}},BC=class extends X.Component{constructor(e){super(e),this.currentErrorHandled=!1,this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.currentErrorHandled||(this.currentErrorHandled=!0,window.trackJs&&window.trackJs.console.error(e.message,{errorInfo:t}),this.props.throwError&&(O.throw(new this.props.throwError(e.message)),window.setTimeout(()=>{this.currentErrorHandled=!1,this.setState({error:null})},500)))}render(){let{error:e}=this.state;if(e&&this.props.renderError){let e=this.props.renderError;return(0,Z.jsx)(e,{})}return e||!this.props.children?(0,Z.jsx)(Z.Fragment,{}):this.props.children}},VC=X.createContext({}),HC=e=>{let[t,n]=X.useState(null);return(0,Z.jsxs)(VC.Provider,{value:{setPreviewContentNode:n},children:[t&&(0,Z.jsx)(Zn,{node:t}),e.children]})};function UC(e,t,n){let[r,i]=X.useState(e),a=X.useRef(e?new Date:null);X.useEffect(()=>{if(!(!t||!n)&&!(!n.entity||!t.location))if(e)r||i(!0),a.current=new Date,dt.logUserAction(t,{...n,actionType:B.Hover});else{if(!r)return;let e=new Date().getTime()-a.current.getTime();a.current=null,dt.logUserAction({...t,timeHoveredInMilliseconds:e,timeHoveredInSeconds:e/1e3},{...n,actionType:B.Unhover})}},[e])}var WC=8,GC=1.2,KC=function(e){return e.Left=`8px`,e.Right=`calc(100% - 8px)`,e.Center=`center`,e}(KC||{}),qC=(e,t,n,r=GC)=>{let{x:i,y:a,width:o,height:s}=e,c=document.getElementById(`content-width-reference`);if(!c)return{};let l,u=t||o*r,d=t?s/o*t:s*r,f=t?u/o:r;l=i-(u-o)/2,u<n&&(l-=(n-u)/2,u=n,f=u/o,d=s*f);let p=a-(d-s)/2+window.scrollY,m=l,h=KC.Center;return l-c.offsetLeft<WC&&(m=i-WC/2,h=KC.Left),c.offsetWidth+c.offsetLeft-(l+u)<WC&&(m=t?i+o-t:i-o*(f-1)+WC,h=KC.Right),{left:m,top:p,height:d,width:u,transformOrigin:h,position:`absolute`,originalWidth:o,originalHeight:s}},JC={positionWrapper:`_positionWrapper_gkmg7_1`,animationWrapper:`_animationWrapper_gkmg7_4`,zoom:`_zoom_gkmg7_1`};function YC(e){let{hoverableComponent:t,componentProps:n,minHoverWidth:r,fixedHoverWidth:i,hoverScale:a}=e,{setPreviewContentNode:o}=X.useContext(VC);o===void 0&&O.throw(new f(`Please use VideoPreviewContext inside a VideoPreviewContextProvider`));let s=X.useMemo(()=>Qn(),[]),[c,l]=er({delay:100}),[u,d]=tr(),[p,m]=X.useState(!1),h=X.useRef(null),g=X.useRef(!1),_=l||d;UC(_,e.analyticsData,e.analyticsOptions),X.useEffect(()=>{g.current!==_&&(o(_||p?s:null),g.current=_)},[_]);let{x:v,y,width:b,height:x}=h.current?.getBoundingClientRect?.()||{},S=X.useMemo(()=>qC({x:v,y,width:b,height:x},i,r,a),[v,y,b,x,a]),C=S?S.originalWidth/S.width:1,w=t;return(0,Z.jsxs)(`div`,{ref:h,children:[(0,Z.jsx)(`div`,{ref:c,children:(0,Z.jsx)(w,{isHovering:!1,...n})}),(_||p)&&(0,Z.jsx)($n,{node:s,children:(0,Z.jsx)(`div`,{className:`${JC.positionWrapper} ${JC.animationWrapper}`,style:{"--scale":C,...S},ref:u,children:(0,Z.jsx)(w,{isHovering:!0,hoverPositionConfig:S,cleanPortalNode:()=>o(null),...n})})})]})}YC.ReferenceContainer=e=>(0,Z.jsx)(`div`,{id:`content-width-reference`,className:`flex-grow-1`,children:e.children});function XC(e){return document.querySelector(`.${e}`)}var ZC=X.createContext(null);function QC(e){let[t,n]=X.useState();return X.useEffect(()=>{n(XC(e.containerClassName))},[]),(0,Z.jsx)(ZC.Provider,{value:{container:t},children:e.children})}var $C=X.createContext({}),ew=e=>{let t=nr(`(max-width: 575.98px)`),n=nr(`(min-width: 576px) and (max-width: 767.98px)`),r=nr(`(min-width: 768px) and (max-width: 991.98px)`),i=nr(`(min-width: 992px) and (max-width: 1199.98px)`),a=nr(`(min-width: 1200px) and (max-width: 1439.98px)`),o=nr(`(min-width: 1440px)`),s=X.useMemo(()=>({xs:t,sm:n,md:r,lg:i,xl:a,xxl:o}),[t,n,r,i,a,o]);return(0,Z.jsx)($C.Provider,{value:s,children:e.children})},tw=`shared.unspecifiedDialogError`,nw=class extends gS{constructor(){super(`Unspecified dialog error`),this.btnVariant=`dark`}get name(){return`UnspecifiedDialogError`}get dialogOptions(){return{title:Xe.getPhrase(tw,`title`),text:Xe.getPhrase(tw,`body`),buttons:[{text:Xe.getPhrase(tw,`close`),className:`btn btn-${this.btnVariant}`,success:!0}]}}};function rw(){function e(n){n.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)}(0,X.useEffect)(()=>(window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)),[])}function iw(){let e=Et(kx.version());return e.data?(0,Z.jsx)(`footer`,{className:`text-center text-secondary my-2`,children:(0,Z.jsxs)(`small`,{children:[`2003 - `,new Date().getFullYear(),` © ClickView | Version: `,e.data]})}):(0,Z.jsx)(Z.Fragment,{})}function aw(){return X.useContext($C)}var ow=function(e){return e.StreamableViewTrialBanner=`sl.trial.banner.view`,e.ClickViewViewTrialBanner=`cv.trial.banner.view`,e}({}),sw=new Set([`system_cv_trial_freemium_v1`,`system_cv_trial_freemium_v2`]);function cw(){let e=Et(Gt.currentUser()),t=Et(e.hasCompleted&&e.data?.isAuthenticated&&Gt.accessPolicy());function n(e){return t.data?(t.data?.permissions?.additional??[]).includes(e):!1}function r(){let e=new Set;return t.data&&sw.has(t.data.id)&&e.add(Rt.ViewInsights),e}return{isLoaded:e.hasCompleted&&t.hasCompleted,accessPolicy:t.data,policyHasOption:n,gatedPermissions:r()}}function lw(e,t,n){return n?n===`ALL`?t.every(t=>e[t]):t.some(t=>e[t]):!t.find(t=>!e[t])}var uw=()=>{let e=Et(Et(Gt.currentUser()).hasCompleted&&Gt.permissions()),{gatedPermissions:t}=cw(),[n]=rr(ar.LOCAL_PERMISSIONS);return{permissions:e.data,hasPermissions:(t,n)=>!e.hasCompleted||e.hasError?!1:!t||!t?.length?!0:Array.isArray(t)?lw(e.data,t,n):!!e.data[t],hasLocalPermissions:e=>(n||O.throw(new f(`Local Permissions should be registered during start up.`)),!e||!e?.length?!0:Array.isArray(e)?!e.find(e=>!n[e]):!!n[e]),getGatedPermission:n=>!e.hasCompleted||e.hasError?`hidden`:t.has(n)?e.data[n]?`soft-gate`:`hard-gate`:e.data[n]?`visible`:`hidden`,isLoaded:e.hasCompleted}};function dw(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.jsx)(`path`,{fill:`currentColor`,d:`M14.053 14.879a6.28 6.28 0 0 1-3.834 1.294C6.784 16.173 4 13.448 4 10.086S6.784 4 10.219 4c3.434 0 6.218 2.725 6.218 6.086 0 1.59-.622 3.037-1.641 4.12l5.056 4.95a.487.487 0 0 1 0 .699.513.513 0 0 1-.715 0zm1.384-4.793C15.437 7.297 13.121 5 10.22 5S5 7.297 5 10.086s2.316 5.087 5.219 5.087c2.902 0 5.218-2.298 5.218-5.087`})})}function fw(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.jsx)(`path`,{fill:`currentColor`,d:`M16.657 16.576a1 1 0 0 1 .143-1.024l.076-.094a6.292 6.292 0 1 0-2.12 1.688l.082-.04a1 1 0 0 1 .834-.022l1.473.631zm1.788 1.126c.355.83-.483 1.669-1.313 1.313l-1.848-.792a7.492 7.492 0 1 1 2.524-2.008z`})})}function pw(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.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`})})}function mw(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.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`})})}var hw={toggle:`_toggle_1f3ot_1`},gw=4,_w=`shared.customerSelectorItem`;function vw(e){function t(t,r=null){r!==e.currentCustomerId&&(dt.logUserAction({id:e.currentCustomerId,newCustomerId:r},{actionType:B.SwitchCustomer,entity:ct.Customer,location:ut.UserOptions}),d.PageLoad(n(r)))}function n(e){return e?`/change-customer?customerId=${e}`:`/change-customer`}return!e.customers?.length||!e.currentCustomerId||e.customers.length<=1?(0,Z.jsx)(Z.Fragment,{}):e.customers.length>gw?(0,Z.jsx)(In.Item,{as:`li`,onClick:e=>t(e),className:`cursor-pointer`,children:(0,Z.jsxs)(`div`,{className:`d-flex justify-content-between`,children:[(0,Z.jsx)(Wn,{namespace:_w,phrase:`title`}),(0,Z.jsx)(He,{svg:mw,className:`svg-container text-secondary`})]})}):(0,Z.jsxs)(`li`,{className:`dropdown-item dropstart cursor-pointer`,children:[(0,Z.jsxs)(`div`,{className:`dropdown-toggle d-flex justify-content-between ${hw.toggle}`,"data-bs-toggle":`dropdown`,"aria-expanded":`false`,children:[(0,Z.jsx)(Wn,{namespace:_w,phrase:`title`}),(0,Z.jsx)(He,{svg:mw,className:`svg-container text-secondary`})]}),(0,Z.jsx)(`ul`,{className:`dropdown-menu`,children:e.customers.map((n,r)=>{let i=n.id===e.currentCustomerId;return(0,Z.jsx)(In.Item,{as:`li`,onClick:e=>t(e,n.id),disabled:i,children:n.name},r)})})]})}var yw=function(e){return e[e.Integrations=1]=`Integrations`,e[e.Classrooms=2]=`Classrooms`,e[e.MakeInteractive=3]=`MakeInteractive`,e[e.EditSsoAccounts=4]=`EditSsoAccounts`,e[e.UploadToLibraryEditor=5]=`UploadToLibraryEditor`,e[e.AddFromLite=6]=`AddFromLite`,e[e.ManageSsoYearGroups=7]=`ManageSsoYearGroups`,e[e.ContentReview=8]=`ContentReview`,e[e.ContentPermissions=9]=`ContentPermissions`,e[e.AccessSettings=10]=`AccessSettings`,e[e.ViviIntegration=11]=`ViviIntegration`,e[e.AppleTvIntegration=12]=`AppleTvIntegration`,e[e.RssFeed=13]=`RssFeed`,e[e.MarcFormatDifferences=14]=`MarcFormatDifferences`,e[e.ExportLibraries=15]=`ExportLibraries`,e[e.StudentSharingGuide=16]=`StudentSharingGuide`,e[e.Sharing=17]=`Sharing`,e[e.ClassroomViews=18]=`ClassroomViews`,e[e.ManagePlaylists=19]=`ManagePlaylists`,e[e.UploadYourOwnVideos=20]=`UploadYourOwnVideos`,e[e.LtiSetup=21]=`LtiSetup`,e[e.LtiSetupCanvas=22]=`LtiSetupCanvas`,e[e.EmbedD2LBrightspace=23]=`EmbedD2LBrightspace`,e[e.EmbedEducationPerfect=24]=`EmbedEducationPerfect`,e[e.ShareGoogleClassroom=25]=`ShareGoogleClassroom`,e[e.InstallItsLearning=26]=`InstallItsLearning`,e[e.ShareMicrosoftTeams=27]=`ShareMicrosoftTeams`,e[e.LtiSetupMoodle=28]=`LtiSetupMoodle`,e[e.EmbedSeqta=29]=`EmbedSeqta`,e[e.SchoologySetup=30]=`SchoologySetup`,e[e.EmbedToddle=31]=`EmbedToddle`,e[e.SearchAndDiscover=32]=`SearchAndDiscover`,e[e.ClassroomAnalytics=33]=`ClassroomAnalytics`,e}({}),bw={[yw.Integrations]:`/integrations/share-integrations/enable-share-integrations`,[yw.Classrooms]:`/using-clickview/classrooms/classrooms`,[yw.MakeInteractive]:`/using-clickview/interactive-videos/interactive-videos`,[yw.EditSsoAccounts]:`/administration/user-permissions/create-staff-student-accounts`,[yw.UploadToLibraryEditor]:`/using-clickview/create-manage/how-to-upload-videos`,[yw.AddFromLite]:`/using-clickview/share/add-videos-school-library`,[yw.ManageSsoYearGroups]:`/administration/user-permissions/sso-grade-level-mappings`,[yw.ContentReview]:`/administration/content-permissions/content-review-restrictions`,[yw.ContentPermissions]:`/administration/content-permissions/grade-level`,[yw.AccessSettings]:`/administration/user-permissions/create-staff-student-accounts`,[yw.ViviIntegration]:`/integrations/casting/vivi`,[yw.AppleTvIntegration]:`/integrations/casting/enable-apple-tv`,[yw.RssFeed]:`/integrations/learning-management-systems/school-id-rss-feed`,[yw.MarcFormatDifferences]:`/administration/content-permissions/marc-record-formats`,[yw.ExportLibraries]:`/administration/content-permissions/export-libraries`,[yw.StudentSharingGuide]:`/using-clickview/student-view/video-sharing-students`,[yw.Sharing]:`/using-clickview/share/share-videos`,[yw.ClassroomViews]:`/using-clickview/analytics/classroom-views`,[yw.ManagePlaylists]:`/using-clickview/create-manage/playlists`,[yw.UploadYourOwnVideos]:`/using-clickview/create-manage/how-to-upload-videos`,[yw.LtiSetup]:`/integrations/learning-management-systems`,[yw.LtiSetupCanvas]:`/integrations/learning-management-systems/setup-lti-1-3-canvas`,[yw.EmbedD2LBrightspace]:`/integrations/learning-management-systems/d2l-brightspace-embed-video`,[yw.EmbedEducationPerfect]:``,[yw.ShareGoogleClassroom]:`/integrations/share-integrations/share-google-classroom`,[yw.InstallItsLearning]:`/integrations/learning-management-systems/install-itslearning-plugin`,[yw.ShareMicrosoftTeams]:`/integrations/share-integrations/share-microsoft-teams`,[yw.LtiSetupMoodle]:`/integrations/learning-management-systems/setup-lti-1-3-moodle`,[yw.EmbedSeqta]:``,[yw.SchoologySetup]:`/integrations/learning-management-systems/install-schoology-app`,[yw.EmbedToddle]:`/integrations/learning-management-systems/toddle-embed-video`,[yw.SearchAndDiscover]:`/using-clickview/discover/using-search`,[yw.ClassroomAnalytics]:`/using-clickview/analytics/classroom-analytics`},xw={...bw,[yw.EditSsoAccounts]:`/administration/user-permissions/manage-sso-user-accounts`,[yw.ManageSsoYearGroups]:`/administration/user-permissions/sso-year-level-mappings`,[yw.ContentPermissions]:`/administration/content-permissions/year-level`,[yw.EmbedEducationPerfect]:`/integrations/learning-management-systems/education-perfect-embed-video`,[yw.EmbedSeqta]:`https://help.seqta.com.au/s/article/embedding-and-removing-clickview-videos-and-playists`},Sw={[Lt.US]:bw,[Lt.AU]:xw,[Lt.NZ]:{...xw},[Lt.UK]:{...bw,[yw.EditSsoAccounts]:`/administration/user-permissions/manage-sso-user-accounts`,[yw.ManageSsoYearGroups]:`/administration/user-permissions/sso-year-level-mappings`,[yw.ContentPermissions]:`/administration/content-permissions/year-level`,[yw.EmbedD2LBrightspace]:``,[yw.InstallItsLearning]:``,[yw.LtiSetupMoodle]:``,[yw.SchoologySetup]:``,[yw.EmbedToddle]:``}},Cw={[Lt.US]:`/help`,[Lt.AU]:`/en-au/help`,[Lt.UK]:`/en-gb/help`,[Lt.NZ]:`/en-au/help`},ww={[Lt.US]:`/welcome`,[Lt.AU]:`/en-au/welcome`,[Lt.UK]:`/en-gb/welcome`,[Lt.NZ]:`/en-au/welcome`},Tw=class{constructor(){this.name=`LocalizedArticleHelper`}static get Instance(){return this.instance||=new this}initialize(e){this.initializeUrl(e),this.initializeInstanceRegion(e)}initializeUrl(e){if(!e.product){O.throw(new f(`${this.name} requires a product name`));return}if(this.product=e.product,this.marketingSiteUrl=e.marketingSiteUrl,e.product===Bt.Online){if(!e.onlineSupportSiteUrl){O.throw(new f(`ArticleHelper requires a online support site url`));return}this.supportSiteUrl=e.onlineSupportSiteUrl;return}if(!e.liteSupportSiteUrl){O.throw(new f(`ArticleHelper requires a lite support site url`));return}this.supportSiteUrl=e.liteSupportSiteUrl}initializeInstanceRegion(e){if(!e.instanceRegion){O.throw(new f(`${this.name} requires an instance region`));return}this.instanceRegion=e.instanceRegion,this.product===Bt.Primary&&(this.liteArticleUrlMapping=Sw[this.instanceRegion])}validate(){return this.supportSiteUrl&&this.instanceRegion?!0:this.product===Bt.Primary&&!this.liteArticleUrlMapping?(O.throw(new f(`${this.name} requires a lite article url mapping`)),!1):(O.throw(new f(`${this.name} was not initialized`)),!1)}getArticle(e){if(!this.validate())return``;if(!e)return this.getSupportSiteUrl();let t=this.liteArticleUrlMapping[e];return Vt.isValidUrl(t)?t:Vt.safeUrlConcat(this.getSupportSiteUrl(),t)}getSupportSiteUrl(){return this.validate()?Vt.safeUrlConcat(this.supportSiteUrl,Cw[this.instanceRegion]):``}getWelcomeSiteUrl(){return this.validate()?Vt.safeUrlConcat(this.supportSiteUrl,ww[this.instanceRegion]):``}getInstanceRegionsForArticle(e){return this.validate()?Object.entries(Sw).reduce((t,[n,r])=>(r[e]?.length&&t.push(n),t),[]):[]}getLiteArticle(e){return this.product===Bt.Online&&O.throw(new f(`ArticleHelper.getLiteArticle() should not be used in Online`)),this.getArticle(e)}getSupportRequestUrl(){return this.validate()?Vt.safeUrlConcat(this.marketingSiteUrl,`/contact-us/support`):``}getAuthorBlogUrl(e){return!this.marketingSiteUrl||!e?``:Vt.safeUrlConcat(this.marketingSiteUrl,`blog/author/${e}`)}getHybridArticle(e,t){return this.product===Bt.Online?this.getSupportSiteUrl():this.getLiteArticle(t)}}.Instance,Ew=Xe.encloseNamespace(`shared.userOptions`);function Dw(e,t,n){let{hasPermissions:r}=uw(),i=It.sortBy(t,`order`);if(e&&(r(Rt.StudentExperience)||i.push({label:Ew(`getStarted`),order:0,url:Tw.getWelcomeSiteUrl(),analyticsData:{url:Tw.getWelcomeSiteUrl()},analyticsOptions:{actionType:B.Click,entity:ct.Url,descriptor:nt.ExternalLink,location:ut.UserOptions}}),i.push({label:Ew(`helpCentre`),order:0,url:Tw.getSupportSiteUrl(),analyticsData:{url:Tw.getSupportSiteUrl()},analyticsOptions:{actionType:B.Click,entity:ct.Url,descriptor:nt.ExternalLink,location:ut.UserOptions}}),r(Rt.ViewProductBoard)&&!n)){let t=Vt.safeUrlConcat(e.productBoardUrl,`tabs/23-what-s-new`);i.push({label:Ew(`whatsNew`),order:0,url:t,analyticsData:{url:t},analyticsOptions:{actionType:B.Click,entity:ct.Url,descriptor:nt.ExternalLink,location:ut.UserOptions}})}let a={main:[],logOut:[]};return i.forEach(e=>{e.section===`logOut`?a.logOut.push(e):a.main.push(e)}),a}function Ow(e,t,n){let r=Et(Et(Gt.currentUser()).data?.isAuthenticated&&jx.userProducts());if(t||!r.data)return;let i=[...r.data],a=Array.isArray(e)?e:[e],o=i.filter(e=>!a.includes(e.id),`order`);return typeof n==`function`&&(o=n(o)),It.sortBy(o)}var kw={avatarContainer:`_avatarContainer_1z0er_1`,productLogo:`_productLogo_1z0er_5`,counter:`_counter_1z0er_9`},Aw=Xe.encloseNamespace(`shared.userOptions`);function jw({item:e}){if(e.appLink)return(0,Z.jsxs)(In.Item,{as:zn,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&&(0,Z.jsx)(`div`,{className:`${kw.counter} badge bg-danger rounded-pill fw-semibold me-1`,children:e.counter}),(0,Z.jsxs)(`div`,{className:`d-flex justify-content-between`,children:[e.label,!!e.openInNewTab&&(0,Z.jsx)(He,{svg:pw,className:`svg-container text-secondary`})]})]});if(e.url){function t(t){t.preventDefault(),e.onClick?.(),e.analyticsData&&e.analyticsOptions&&dt.logUserAction({href:e.url,...e.analyticsData},e.analyticsOptions),d.PageLoad(e.url,!0)}return(0,Z.jsxs)(In.Item,{as:`a`,href:e.url,target:e.openInNewTab===!1?null:`_blank`,className:`d-flex align-items-center`,onClick:e=>t(e),children:[e.counter>0&&(0,Z.jsx)(`div`,{className:`${kw.counter} badge bg-danger rounded-pill fw-semibold me-1`,children:e.counter}),(0,Z.jsxs)(`div`,{className:`d-flex justify-content-between`,children:[e.label,e.openInNewTab!==!1&&(0,Z.jsx)(He,{svg:pw,className:`svg-container text-secondary`})]})]})}return(0,Z.jsx)(Z.Fragment,{})}var Mw=({appLinks:e})=>{let t=aw(),n=t.xs||t.sm;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(zn,{appLink:e.signIn,className:`btn btn-link ps-0`,analyticsOptions:{actionType:B.Click,location:ut.TopNav,entity:ct.Url,descriptor:gt.SignIn},analyticsData:{},children:Aw(`signIn`)}),(0,Z.jsx)(zn,{appLink:e.signUp,className:`btn btn-dark ms-2`,analyticsOptions:{actionType:B.Click,location:ut.TopNav,entity:ct.AppLink,workflowPhase:$e.Start,descriptor:gt.SignUp},analyticsData:{},tag:`button`,children:Aw(n?`signUpForMobile`:`signUp`)})]})},Nw=({appLinks:e})=>(0,Z.jsx)(zn,{appLink:e.signIn,className:`btn btn-dark d-inline-block`,analyticsOptions:{actionType:B.Click,location:ut.TopNav,entity:ct.AppLink,workflowPhase:$e.Start,descriptor:gt.SignIn},analyticsData:{},children:Aw(`signIn`)});function Pw(e){let[t,n]=X.useState(!1),{hasPermissions:r}=uw(),i=Et(Gt.currentUser()),a=Et(i.data?.id&&Gt.user(i.data.id)),o=Et(kx.config()),s=Et(i.data?.isAuthenticated&&Gt.customers(i.data.id)),c=Dw(o.data,e.additionalItems,e.hideWhatsNew),l=r(Rt.GuestExperience),u=e.hideProductList||l,d=Ow(e.productId,u,e.transform);function f(e){n(e),dt.logUserAction({},{actionType:B.Click,entity:ct.AppLink,location:ut.UserOptions,descriptor:e?nt.Open:nt.Close})}function p(e){dt.logUserAction({id:e.id,name:e.name},{actionType:B.Click,entity:ct.Product,location:ut.UserOptions,descriptor:nt.ExternalLink})}return!i.hasCompleted||i.data.isAuthenticated&&!a.hasCompleted||!o.data?(0,Z.jsx)(Z.Fragment,{}):i.data.isAuthenticated?(0,Z.jsxs)(In,{className:`position-relative`,onToggle:f,children:[(0,Z.jsx)(In.Toggle,{id:`userOptions`,variant:``,"aria-label":`Options menu`,className:`${kw.avatarContainer} no-caret border-0 p-0`,children:(0,Z.jsx)(cr,{imageUrl:sr.createUrl(i.data.avatar,{size:or.Small}),imageCdnUrl:o.data.imageCdnUrl,initials:lr.getInitials(i.data.givenName,i.data.familyName),showDot:c.main.some(e=>e.counter>0)})}),(0,Z.jsxs)(In.Menu,{as:`ul`,align:`end`,children:[(0,Z.jsxs)(In.Item,{as:`div`,children:[(0,Z.jsxs)(`div`,{className:`m-0 d-flex flex-wrap`,children:[(0,Z.jsx)(`strong`,{children:i.data.displayName}),`\xA0`,!l&&(0,Z.jsxs)(`span`,{className:`text-secondary`,children:[`(`,i.data.username,`)`]})]}),(0,Z.jsx)(`div`,{className:`m-0 text-secondary`,children:i.data.customerName}),!l&&a.data?.masterYearGroup&&(0,Z.jsx)(`p`,{className:`m-0 text-secondary`,children:a.data.masterYearGroup.name})]}),(0,Z.jsx)(vw,{isParentOpen:t,currentCustomerId:i.data?.customerId,customers:s.data?.data}),(0,Z.jsx)(In.Divider,{}),c.main.map((e,t)=>(0,Z.jsx)(jw,{item:e},t)),(0,Z.jsx)(In.Divider,{}),d?.map((e,t)=>(0,Z.jsxs)(In.Item,{as:`a`,href:e.url,target:`_blank`,className:`d-flex align-items-center py-1`,onClick:()=>p(e),children:[(0,Z.jsx)(`img`,{src:e.imageUrl,className:`${kw.productLogo} me-2`}),e.name]},t)),!!d?.length&&(0,Z.jsx)(In.Divider,{}),c.logOut.map((e,t)=>(0,Z.jsx)(jw,{item:e},t)),(0,Z.jsx)(In.Item,{as:zn,appLink:e.appLinks.signOut,analyticsData:{id:i.data?.id},analyticsOptions:{actionType:B.Click,location:ut.UserOptions,entity:ct.AppLink,descriptor:gt.SignOut},children:Aw(`signOut`)})]})]}):e.displaySignUp?(0,Z.jsx)(Mw,{...e}):(0,Z.jsx)(Nw,{...e})}var Fw={logoContainer:`_logoContainer_1bv0u_1`,iconLogo:`_iconLogo_1bv0u_4`};function Iw(){return(0,Z.jsxs)(`svg`,{width:`5614`,height:`1080`,viewBox:`0 0 5614 1080`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Z.jsx)(`path`,{d:`M539.597 1046.49C819.546 1046.49 1046.49 819.546 1046.49 539.597C1046.49 259.647 819.546 32.7028 539.597 32.7028C259.647 32.7028 32.7028 259.647 32.7028 539.597C32.7028 819.546 259.647 1046.49 539.597 1046.49Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M1079.19 539.597C1079.19 241.586 837.608 0 539.597 0C241.586 0 0 241.586 0 539.597C0 837.608 241.586 1079.19 539.597 1079.19C837.608 1079.19 1079.19 837.608 1079.19 539.597ZM1046.49 539.597C1046.49 819.546 819.546 1046.49 539.597 1046.49C259.647 1046.49 32.7028 819.546 32.7028 539.597C32.7028 259.647 259.647 32.7028 539.597 32.7028C819.546 32.7028 1046.49 259.647 1046.49 539.597Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M1046.49 539.597C1046.49 593.776 1037.97 645.963 1022.24 694.922C1017.33 660.088 1006.25 609.777 981.18 554.42C951.089 487.981 856.61 391.753 792.816 331.385C836.145 338.82 878.846 348.412 919.763 364.156C959.259 379.376 998.207 402.218 1034.65 430.2C1042.4 465.442 1046.49 502.035 1046.49 539.597Z`,fill:`#ADE1F9`}),(0,Z.jsx)(`path`,{d:`M564.419 640.626C547.183 638.435 529.981 636.244 512.885 633.831C403.162 618.297 293.381 591.562 196.897 537.056C132.368 500.602 84.1434 458.368 49.694 409.024V408.966C50.3116 406.67 50.9293 404.398 51.5586 402.114C59.4717 376.067 94.4223 285.258 196.535 290.887C220.951 292.227 314.976 303.473 328.156 413.29C329.124 421.343 330.056 429.407 331.606 437.379C352.094 542.871 468.926 601.573 559.093 638.505C560.865 639.227 562.648 639.915 564.419 640.626Z`,fill:`#E1FAE1`}),(0,Z.jsx)(`path`,{d:`M1034.65 430.2C998.207 402.218 959.259 379.376 919.763 364.156C878.846 348.412 836.145 338.82 792.816 331.385C697.66 315.034 599.521 309.067 511.113 271.017C464.998 251.158 420.549 220.566 399.537 174.976C379.469 131.471 380.086 94.0032 393.885 62.5722C396.659 56.2557 402.159 51.5125 408.825 49.7411C450.547 38.6347 494.367 32.7028 539.597 32.7028C719.058 32.7028 876.759 125.97 966.822 266.693C998.405 316.013 1021.67 371.195 1034.65 430.2Z`,fill:`#32B3EF`}),(0,Z.jsx)(`path`,{d:`M935.846 855.713C842.264 972.86 697.823 1047.61 535.96 1046.47C256.484 1044.51 32.3176 818.362 32.7022 538.874C32.7605 493.983 38.6809 450.466 49.694 409.024C84.1434 458.368 132.368 500.602 196.897 537.056C293.381 591.562 403.162 618.297 512.885 633.831C529.981 636.244 547.183 638.435 564.419 640.626C648.235 651.254 732.68 661.859 807.849 699.257C864.115 727.25 914.053 775.72 938.922 832.16C942.36 839.968 941.183 849.035 935.846 855.713Z`,fill:`#5ABD5E`}),(0,Z.jsx)(`path`,{d:`M1334.39 666.764C1342.47 652.634 1354.29 641.1 1369.86 632.161C1385.43 623.221 1403.17 618.752 1423.06 618.752C1444.4 618.752 1463.58 623.798 1480.59 633.891C1497.61 643.983 1511.01 658.257 1520.82 676.712C1530.62 694.879 1535.52 716.074 1535.52 740.296C1535.52 764.23 1530.62 785.569 1520.82 804.312C1511.01 823.056 1497.46 837.618 1480.16 847.999C1463.15 858.38 1444.11 863.571 1423.06 863.571C1402.59 863.571 1384.57 859.101 1369 850.162C1353.71 841.223 1342.18 829.832 1334.39 815.991V859.678H1295.03V539.597H1334.39V666.764ZM1495.3 740.296C1495.3 722.418 1491.69 706.846 1484.48 693.582C1477.28 680.317 1467.47 670.224 1455.07 663.304C1442.96 656.383 1429.55 652.923 1414.85 652.923C1400.43 652.923 1387.02 656.527 1374.62 663.736C1362.51 670.657 1352.7 680.894 1345.21 694.447C1338 707.711 1334.39 723.139 1334.39 740.729C1334.39 758.607 1338 774.323 1345.21 787.876C1352.7 801.14 1362.51 811.377 1374.62 818.586C1387.02 825.507 1400.43 828.967 1414.85 828.967C1429.55 828.967 1442.96 825.507 1455.07 818.586C1467.47 811.377 1477.28 801.14 1484.48 787.876C1491.69 774.323 1495.3 758.463 1495.3 740.296Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M1791.5 622.645L1648.76 971.274H1608.1L1654.81 857.083L1559.22 622.645H1602.91L1677.3 814.694L1750.84 622.645H1791.5Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M1396.94 429.813C1377.61 429.813 1360.21 426.499 1344.74 419.87C1329.28 412.966 1317.13 403.299 1308.29 390.871C1299.45 378.443 1295.03 363.943 1295.03 347.372H1345.57C1346.68 359.8 1351.51 370.019 1360.07 378.028C1368.91 386.038 1381.2 390.042 1396.94 390.042C1413.24 390.042 1425.94 386.176 1435.06 378.443C1444.17 370.433 1448.73 360.214 1448.73 347.786C1448.73 338.12 1445.83 330.248 1440.03 324.172C1434.5 318.096 1427.46 313.401 1418.9 310.087C1410.61 306.773 1399.01 303.182 1384.1 299.316C1365.32 294.344 1349.99 289.373 1338.12 284.402C1326.52 279.154 1316.57 271.145 1308.29 260.374C1300 249.602 1295.86 235.241 1295.86 217.289C1295.86 200.718 1300 186.218 1308.29 173.79C1316.57 161.361 1328.17 151.833 1343.09 145.204C1358 138.576 1375.26 135.262 1394.87 135.262C1422.77 135.262 1445.55 142.304 1463.23 156.39C1481.18 170.199 1491.12 189.256 1493.06 213.56H1440.86C1440.03 203.065 1435.06 194.089 1425.94 186.632C1416.83 179.175 1404.81 175.447 1389.9 175.447C1376.37 175.447 1365.32 178.899 1356.76 185.804C1348.2 192.708 1343.92 202.651 1343.92 215.632C1343.92 224.47 1346.54 231.788 1351.79 237.588C1357.31 243.112 1364.22 247.531 1372.5 250.845C1380.79 254.159 1392.11 257.75 1406.47 261.616C1425.53 266.864 1441 272.111 1452.87 277.359C1465.02 282.606 1475.24 290.754 1483.53 301.801C1492.09 312.573 1496.37 327.072 1496.37 345.3C1496.37 359.938 1492.37 373.748 1484.36 386.728C1476.62 399.709 1465.16 410.204 1449.97 418.213C1435.06 425.946 1417.38 429.813 1396.94 429.813Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M1607.2 237.174V363.529C1607.2 372.09 1609.13 378.305 1613 382.171C1617.14 385.762 1624.04 387.557 1633.71 387.557H1662.71V426.913H1625.42C1604.16 426.913 1587.86 421.942 1576.54 411.999C1565.22 402.056 1559.55 385.9 1559.55 363.529V237.174H1532.63V198.646H1559.55V141.89H1607.2V198.646H1662.71V237.174H1607.2Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M1753.46 231.788C1760.37 220.189 1769.48 211.213 1780.81 204.86C1792.41 198.232 1806.08 194.918 1821.82 194.918V243.802H1809.81C1791.3 243.802 1777.22 248.498 1767.55 257.888C1758.16 267.278 1753.46 283.573 1753.46 306.773V426.913H1706.24V198.646H1753.46V231.788Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2074.44 307.187C2074.44 315.749 2073.89 323.482 2072.79 330.386H1898.37C1899.76 348.615 1906.52 363.252 1918.67 374.3C1930.83 385.347 1945.74 390.871 1963.42 390.871C1988.83 390.871 2006.78 380.238 2017.27 358.972H2068.23C2061.32 379.962 2048.76 397.223 2030.53 410.756C2012.58 424.013 1990.21 430.642 1963.42 430.642C1941.6 430.642 1921.99 425.808 1904.59 416.142C1887.47 406.199 1873.93 392.39 1863.99 374.714C1854.32 356.762 1849.49 336.048 1849.49 312.573C1849.49 289.097 1854.19 268.521 1863.58 250.845C1873.24 232.893 1886.64 219.084 1903.76 209.417C1921.16 199.751 1941.05 194.918 1963.42 194.918C1984.96 194.918 2004.15 199.613 2021 209.003C2037.85 218.393 2050.97 231.65 2060.36 248.774C2069.75 265.621 2074.44 285.092 2074.44 307.187ZM2025.14 292.273C2024.87 274.873 2018.65 260.926 2006.5 250.431C1994.35 239.936 1979.3 234.688 1961.34 234.688C1945.05 234.688 1931.1 239.936 1919.5 250.431C1907.9 260.65 1901 274.597 1898.79 292.273H2025.14Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2105.18 311.744C2105.18 288.821 2109.87 268.521 2119.26 250.845C2128.93 233.169 2141.91 219.498 2158.2 209.832C2174.78 199.889 2193 194.918 2212.89 194.918C2230.84 194.918 2246.45 198.508 2259.7 205.689C2273.24 212.594 2284.01 221.293 2292.02 231.788V198.646H2339.66V426.913H2292.02V392.942C2284.01 403.714 2273.1 412.69 2259.29 419.87C2245.48 427.051 2229.74 430.642 2212.06 430.642C2192.45 430.642 2174.5 425.67 2158.2 415.728C2141.91 405.509 2128.93 391.423 2119.26 373.471C2109.87 355.243 2105.18 334.667 2105.18 311.744ZM2292.02 312.573C2292.02 296.83 2288.7 283.159 2282.07 271.559C2275.72 259.959 2267.3 251.121 2256.8 245.045C2246.31 238.969 2234.98 235.931 2222.83 235.931C2210.68 235.931 2199.36 238.969 2188.86 245.045C2178.37 250.845 2169.8 259.545 2163.18 271.145C2156.82 282.468 2153.65 296.001 2153.65 311.744C2153.65 327.487 2156.82 341.296 2163.18 353.172C2169.8 365.048 2178.37 374.162 2188.86 380.514C2199.63 386.59 2210.96 389.628 2222.83 389.628C2234.98 389.628 2246.31 386.59 2256.8 380.514C2267.3 374.438 2275.72 365.6 2282.07 354C2288.7 342.124 2292.02 328.315 2292.02 312.573Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2678.01 194.918C2695.96 194.918 2711.98 198.646 2726.07 206.103C2740.43 213.56 2751.62 224.608 2759.63 239.245C2767.91 253.883 2772.05 271.559 2772.05 292.273V426.913H2725.24V299.316C2725.24 278.878 2720.13 263.273 2709.91 252.502C2699.69 241.455 2685.75 235.931 2668.07 235.931C2650.39 235.931 2636.31 241.455 2625.81 252.502C2615.59 263.273 2610.49 278.878 2610.49 299.316V426.913H2563.67V299.316C2563.67 278.878 2558.56 263.273 2548.34 252.502C2538.12 241.455 2524.18 235.931 2506.5 235.931C2488.83 235.931 2474.74 241.455 2464.25 252.502C2454.03 263.273 2448.92 278.878 2448.92 299.316V426.913H2401.69V198.646H2448.92V224.746C2456.65 215.355 2466.46 208.036 2478.33 202.789C2490.21 197.541 2502.91 194.918 2516.44 194.918C2534.67 194.918 2550.97 198.784 2565.33 206.517C2579.69 214.251 2590.74 225.436 2598.47 240.074C2605.38 226.265 2616.15 215.355 2630.78 207.346C2645.42 199.06 2661.17 194.918 2678.01 194.918Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2816.41 311.744C2816.41 288.821 2821.1 268.521 2830.49 250.845C2840.16 233.169 2853.14 219.498 2869.43 209.832C2886.01 199.889 2904.23 194.918 2924.12 194.918C2942.07 194.918 2957.68 198.508 2970.93 205.689C2984.47 212.594 2995.24 221.293 3003.25 231.788V198.646H3050.89V426.913H3003.25V392.942C2995.24 403.714 2984.33 412.69 2970.52 419.87C2956.71 427.051 2940.97 430.642 2923.29 430.642C2903.68 430.642 2885.73 425.67 2869.43 415.728C2853.14 405.509 2840.16 391.423 2830.49 373.471C2821.1 355.243 2816.41 334.667 2816.41 311.744ZM3003.25 312.573C3003.25 296.83 2999.93 283.159 2993.3 271.559C2986.95 259.959 2978.53 251.121 2968.03 245.045C2957.54 238.969 2946.21 235.931 2934.06 235.931C2921.91 235.931 2910.59 238.969 2900.09 245.045C2889.6 250.845 2881.03 259.545 2874.41 271.145C2868.05 282.468 2864.88 296.001 2864.88 311.744C2864.88 327.487 2868.05 341.296 2874.41 353.172C2881.03 365.048 2889.6 374.162 2900.09 380.514C2910.86 386.59 2922.19 389.628 2934.06 389.628C2946.21 389.628 2957.54 386.59 2968.03 380.514C2978.53 374.438 2986.95 365.6 2993.3 354C2999.93 342.124 3003.25 328.315 3003.25 312.573Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3160.15 232.617C3168.16 221.57 3179.07 212.594 3192.88 205.689C3206.96 198.508 3222.57 194.918 3239.69 194.918C3259.85 194.918 3278.08 199.751 3294.37 209.417C3310.67 219.084 3323.51 232.893 3332.9 250.845C3342.29 268.521 3346.99 288.821 3346.99 311.744C3346.99 334.667 3342.29 355.243 3332.9 373.471C3323.51 391.423 3310.53 405.509 3293.96 415.728C3277.66 425.67 3259.57 430.642 3239.69 430.642C3222.01 430.642 3206.27 427.189 3192.46 420.285C3178.93 413.38 3168.16 404.542 3160.15 393.771V426.913H3112.92V120.348H3160.15V232.617ZM3298.93 311.744C3298.93 296.001 3295.62 282.468 3288.99 271.145C3282.64 259.545 3274.07 250.845 3263.3 245.045C3252.81 238.969 3241.48 235.931 3229.33 235.931C3217.46 235.931 3206.13 238.969 3195.36 245.045C3184.87 251.121 3176.3 259.959 3169.68 271.559C3163.32 283.159 3160.15 296.83 3160.15 312.573C3160.15 328.315 3163.32 342.124 3169.68 354C3176.3 365.6 3184.87 374.438 3195.36 380.514C3206.13 386.59 3217.46 389.628 3229.33 389.628C3241.48 389.628 3252.81 386.59 3263.3 380.514C3274.07 374.162 3282.64 365.048 3288.99 353.172C3295.62 341.296 3298.93 327.487 3298.93 311.744Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3440.92 120.348V426.913H3393.69V120.348H3440.92Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3712.13 307.187C3712.13 315.749 3711.58 323.482 3710.48 330.386H3536.07C3537.45 348.615 3544.21 363.252 3556.37 374.3C3568.52 385.347 3583.43 390.871 3601.11 390.871C3626.52 390.871 3644.47 380.238 3654.96 358.972H3705.92C3699.01 379.962 3686.45 397.223 3668.22 410.756C3650.27 424.013 3627.9 430.642 3601.11 430.642C3579.29 430.642 3559.68 425.808 3542.28 416.142C3525.16 406.199 3511.62 392.39 3501.68 374.714C3492.01 356.762 3487.18 336.048 3487.18 312.573C3487.18 289.097 3491.88 268.521 3501.27 250.845C3510.93 232.893 3524.33 219.084 3541.45 209.417C3558.85 199.751 3578.74 194.918 3601.11 194.918C3622.65 194.918 3641.84 199.613 3658.69 209.003C3675.54 218.393 3688.66 231.65 3698.05 248.774C3707.44 265.621 3712.13 285.092 3712.13 307.187ZM3662.83 292.273C3662.56 274.873 3656.34 260.926 3644.19 250.431C3632.04 239.936 3616.99 234.688 3599.04 234.688C3582.74 234.688 3568.79 239.936 3557.19 250.431C3545.59 260.65 3538.69 274.597 3536.48 292.273H3662.83Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3913.45 388.8H4010.81V426.913H3866.23V138.99H3913.45V388.8Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M4259.51 307.187C4259.51 315.749 4258.96 323.482 4257.86 330.386H4083.45C4084.83 348.615 4091.59 363.252 4103.75 374.3C4115.9 385.347 4130.81 390.871 4148.49 390.871C4173.9 390.871 4191.85 380.238 4202.34 358.972H4253.3C4246.4 379.962 4233.83 397.223 4215.6 410.756C4197.65 424.013 4175.28 430.642 4148.49 430.642C4126.67 430.642 4107.06 425.808 4089.66 416.142C4072.54 406.199 4059 392.39 4049.06 374.714C4039.39 356.762 4034.56 336.048 4034.56 312.573C4034.56 289.097 4039.26 268.521 4048.65 250.845C4058.31 232.893 4071.71 219.084 4088.83 209.417C4106.23 199.751 4126.12 194.918 4148.49 194.918C4170.03 194.918 4189.22 199.613 4206.07 209.003C4222.92 218.393 4236.04 231.65 4245.43 248.774C4254.82 265.621 4259.51 285.092 4259.51 307.187ZM4210.22 292.273C4209.94 274.873 4203.72 260.926 4191.57 250.431C4179.42 239.936 4164.37 234.688 4146.42 234.688C4130.12 234.688 4116.17 239.936 4104.57 250.431C4092.97 260.65 4086.07 274.597 4083.86 292.273H4210.22Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M4290.25 311.744C4290.25 288.821 4294.94 268.521 4304.33 250.845C4314 233.169 4326.98 219.498 4343.28 209.832C4359.85 199.889 4378.07 194.918 4397.96 194.918C4415.91 194.918 4431.52 198.508 4444.77 205.689C4458.31 212.594 4469.08 221.293 4477.09 231.788V198.646H4524.73V426.913H4477.09V392.942C4469.08 403.714 4458.17 412.69 4444.36 419.87C4430.55 427.051 4414.81 430.642 4397.13 430.642C4377.52 430.642 4359.57 425.67 4343.28 415.728C4326.98 405.509 4314 391.423 4304.33 373.471C4294.94 355.243 4290.25 334.667 4290.25 311.744ZM4477.09 312.573C4477.09 296.83 4473.77 283.159 4467.14 271.559C4460.79 259.959 4452.37 251.121 4441.87 245.045C4431.38 238.969 4420.06 235.931 4407.9 235.931C4395.75 235.931 4384.43 238.969 4373.93 245.045C4363.44 250.845 4354.88 259.545 4348.25 271.145C4341.89 282.468 4338.72 296.001 4338.72 311.744C4338.72 327.487 4341.89 341.296 4348.25 353.172C4354.88 365.048 4363.44 374.162 4373.93 380.514C4384.7 386.59 4396.03 389.628 4407.9 389.628C4420.06 389.628 4431.38 386.59 4441.87 380.514C4452.37 374.438 4460.79 365.6 4467.14 354C4473.77 342.124 4477.09 328.315 4477.09 312.573Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M4633.99 231.788C4640.89 220.189 4650.01 211.213 4661.33 204.86C4672.93 198.232 4686.6 194.918 4702.34 194.918V243.802H4690.33C4671.83 243.802 4657.74 248.498 4648.07 257.888C4638.68 267.278 4633.99 283.573 4633.99 306.773V426.913H4586.76V198.646H4633.99V231.788Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M4860.93 194.918C4878.88 194.918 4894.9 198.646 4908.98 206.103C4923.34 213.56 4934.53 224.608 4942.54 239.245C4950.55 253.883 4954.55 271.559 4954.55 292.273V426.913H4907.74V299.316C4907.74 278.878 4902.63 263.273 4892.41 252.502C4882.19 241.455 4868.24 235.931 4850.57 235.931C4832.89 235.931 4818.81 241.455 4808.31 252.502C4798.09 263.273 4792.98 278.878 4792.98 299.316V426.913H4745.76V198.646H4792.98V224.746C4800.72 215.355 4810.52 208.036 4822.4 202.789C4834.55 197.541 4847.39 194.918 4860.93 194.918Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M5038.82 168.404C5030.26 168.404 5023.08 165.504 5017.28 159.704C5011.48 153.904 5008.58 146.723 5008.58 138.162C5008.58 129.6 5011.48 122.419 5017.28 116.619C5023.08 110.819 5030.26 107.919 5038.82 107.919C5047.11 107.919 5054.15 110.819 5059.95 116.619C5065.75 122.419 5068.65 129.6 5068.65 138.162C5068.65 146.723 5065.75 153.904 5059.95 159.704C5054.15 165.504 5047.11 168.404 5038.82 168.404ZM5062.02 198.646V426.913H5014.79V198.646H5062.02Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M5239.2 194.918C5257.15 194.918 5273.17 198.646 5287.25 206.103C5301.61 213.56 5312.8 224.608 5320.81 239.245C5328.82 253.883 5332.82 271.559 5332.82 292.273V426.913H5286.01V299.316C5286.01 278.878 5280.9 263.273 5270.68 252.502C5260.46 241.455 5246.52 235.931 5228.84 235.931C5211.16 235.931 5197.08 241.455 5186.58 252.502C5176.36 263.273 5171.25 278.878 5171.25 299.316V426.913H5124.03V198.646H5171.25V224.746C5178.99 215.355 5188.79 208.036 5200.67 202.789C5212.82 197.541 5225.66 194.918 5239.2 194.918Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M5485.03 194.918C5502.71 194.918 5518.31 198.508 5531.85 205.689C5545.66 212.594 5556.43 221.293 5564.16 231.788V198.646H5611.8V430.642C5611.8 451.632 5607.38 470.274 5598.55 486.569C5589.71 503.14 5576.87 516.121 5560.02 525.511C5543.45 534.901 5523.56 539.597 5500.36 539.597C5469.43 539.597 5443.74 532.278 5423.31 517.64C5402.87 503.278 5391.27 483.669 5388.51 458.812H5435.32C5438.91 470.688 5446.51 480.217 5458.11 487.398C5469.98 494.855 5484.07 498.583 5500.36 498.583C5519.42 498.583 5534.75 492.783 5546.35 481.183C5558.22 469.584 5564.16 452.736 5564.16 430.642V392.528C5556.15 403.299 5545.24 412.413 5531.43 419.87C5517.9 427.051 5502.43 430.642 5485.03 430.642C5465.15 430.642 5446.92 425.67 5430.35 415.728C5414.05 405.509 5401.07 391.423 5391.41 373.471C5382.02 355.243 5377.32 334.667 5377.32 311.744C5377.32 288.821 5382.02 268.521 5391.41 250.845C5401.07 233.169 5414.05 219.498 5430.35 209.832C5446.92 199.889 5465.15 194.918 5485.03 194.918ZM5564.16 312.573C5564.16 296.83 5560.85 283.159 5554.22 271.559C5547.87 259.959 5539.44 251.121 5528.95 245.045C5518.45 238.969 5507.13 235.931 5494.98 235.931C5482.82 235.931 5471.5 238.969 5461.01 245.045C5450.51 250.845 5441.95 259.545 5435.32 271.145C5428.97 282.468 5425.79 296.001 5425.79 311.744C5425.79 327.487 5428.97 341.296 5435.32 353.172C5441.95 365.048 5450.51 374.162 5461.01 380.514C5471.78 386.59 5483.1 389.628 5494.98 389.628C5507.13 389.628 5518.45 386.59 5528.95 380.514C5539.44 374.438 5547.87 365.6 5554.22 354C5560.85 342.124 5564.16 328.315 5564.16 312.573Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2184.73 697.312C2217.58 716.279 2217.58 763.697 2184.73 782.664L1991.16 894.421C1947.5 919.629 1898.63 870.768 1923.84 827.107L1959.92 764.627C1968.72 749.38 1968.72 730.596 1959.92 715.349L1923.84 652.867C1898.63 609.206 1947.49 560.345 1991.16 585.553L2184.73 697.312Z`,fill:`#F8981D`}),(0,Z.jsx)(`path`,{d:`M2433.01 610.671C2460.47 610.671 2484.62 617.304 2505.32 630.699C2526.06 644.116 2541.15 663.143 2550.59 687.604L2552.75 693.182H2505.75L2504.65 690.795C2498.16 676.681 2488.82 665.934 2476.64 658.407L2476.55 658.349L2476.53 658.341C2465.01 651.108 2451.1 647.289 2434.62 647.057L2433.01 647.045C2416.54 647.045 2401.88 650.874 2388.95 658.457C2376.03 666.028 2365.87 676.832 2358.46 690.984L2358.45 691.008C2351.07 704.866 2347.3 721.319 2347.3 740.501C2347.3 759.416 2351.06 775.868 2358.43 789.971L2359.15 791.291L2359.85 792.527C2367.11 805.215 2376.81 815.076 2388.95 822.192C2401.88 829.775 2416.54 833.603 2433.01 833.603L2434.62 833.592C2451.16 833.366 2465.11 829.637 2476.66 822.583C2488.83 815.056 2498.16 804.313 2504.65 790.205L2505.75 787.819H2552.76L2550.59 793.408C2541.14 817.637 2526.05 836.541 2505.32 849.951L2505.25 849.999L2505.22 850.014C2484.54 863.132 2460.42 869.625 2433.01 869.625C2409.57 869.625 2388.1 864.181 2368.67 853.251L2368.65 853.24L2368.64 853.237L2368.54 853.181L2368.52 853.169C2349.38 842.001 2334.22 826.58 2323.09 806.975C2311.9 787.282 2306.35 765.089 2306.35 740.501C2306.35 715.912 2311.9 693.719 2323.09 674.026C2334.2 654.221 2349.33 638.695 2368.44 627.526L2368.46 627.517L2368.63 627.417C2388.07 616.24 2409.56 610.671 2433.01 610.671Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2637.06 869.626H2596.11V610.676H2637.06V869.626Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2728.31 869.625H2687.37V684.982H2728.31V869.625Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2708.2 610.671C2715.28 610.671 2721.38 613.264 2726.23 618.368L2726.7 618.85C2731.48 623.866 2733.89 630.02 2733.89 637.081C2733.89 644.37 2731.32 650.692 2726.23 655.793C2721.38 660.897 2715.28 663.491 2708.2 663.491C2700.9 663.491 2694.57 660.918 2689.47 655.813C2684.36 650.707 2681.79 644.379 2681.79 637.081C2681.79 629.782 2684.36 623.454 2689.47 618.349C2694.57 613.244 2700.9 610.671 2708.2 610.671Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3454.19 869.625H3413.24V684.982H3454.19V869.625Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3434.07 610.671C3441.15 610.671 3447.25 613.264 3452.1 618.368L3452.57 618.85C3457.35 623.866 3459.76 630.02 3459.76 637.081C3459.76 644.37 3457.19 650.692 3452.1 655.793C3447.25 660.897 3441.15 663.491 3434.07 663.491C3426.77 663.491 3420.44 660.918 3415.34 655.813C3410.23 650.707 3407.66 644.379 3407.66 637.081C3407.66 629.782 3410.23 623.454 3415.34 618.349C3420.44 613.244 3426.77 610.671 3434.07 610.671Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M2855.46 684.984C2855.61 684.983 2855.92 684.978 2856.13 684.978H2856.15L2857.22 684.984C2857.4 684.983 2857.71 684.978 2857.95 684.978L2858.99 684.982C2880.69 685.144 2898.92 690.401 2913.4 701.052C2928.28 711.845 2938.05 726.83 2942.73 745.767L2943.99 750.85H2901.14L2900.29 747.879C2900.27 747.814 2900.27 747.804 2900.25 747.762C2897.15 740.415 2892.52 734.416 2886.35 729.697L2886.33 729.687L2886.26 729.633C2878.65 723.682 2869.09 720.499 2857.31 720.301L2856.12 720.292C2840.34 720.296 2827.83 726.106 2818.19 737.763L2818.19 737.774L2818.13 737.843C2815.18 741.35 2812.67 745.335 2810.59 749.815C2807.89 757.472 2806.49 766.507 2806.49 776.989L2806.49 777.999L2806.5 778.968C2806.67 788.88 2808.1 797.486 2810.72 804.846C2812.77 809.3 2815.25 813.276 2818.15 816.791C2827.79 828.485 2840.33 834.312 2856.13 834.312L2857.28 834.304C2869.11 834.116 2878.7 831.032 2886.32 825.282C2892.41 820.687 2897.07 814.545 2900.3 806.733C2900.3 806.721 2900.3 806.708 2900.31 806.69L2901.18 803.751H2944.1L2942.71 808.914C2937.8 827.227 2927.92 842.044 2913.12 853.209L2913 853.296L2912.97 853.314C2898.33 864.099 2880.25 869.453 2858.97 869.618L2857.95 869.622C2857.77 869.622 2857.51 869.619 2857.38 869.618L2856.15 869.626H2856.13C2855.8 869.626 2855.44 869.62 2855.16 869.618L2854.38 869.622H2854.37C2837.19 869.622 2821.74 865.856 2808.1 858.228L2808.08 858.218L2808.01 858.173C2794.99 850.75 2784.7 840.332 2777.17 827.003L2777.16 826.991L2777.16 826.98L2776.47 825.73L2776.46 825.719L2776.45 825.707C2769.08 812.144 2765.35 796.437 2765.12 778.71V778.69L2765.11 777.011V776.989C2765.11 758.759 2768.85 742.675 2776.46 728.875L2776.47 728.871L2777.16 727.621L2777.16 727.61L2777.17 727.598C2784.7 714.268 2794.99 703.851 2808.01 696.428L2808.08 696.383L2808.1 696.372C2821.74 688.744 2837.19 684.978 2854.37 684.978H2854.39L2855.46 684.984Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3263.09 819.014L3339.01 610.671H3382.34L3284.63 869.625H3241.19L3143.47 610.671H3187.17L3263.09 819.014Z`,fill:`white`}),(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3579.56 684.978C3596.39 684.978 3611.44 688.651 3624.61 696.11C3637.73 703.544 3647.83 713.86 3654.86 727.001L3655.42 728.018L3655.42 728.029L3655.43 728.04C3661.37 739.038 3664.7 751.245 3665.48 764.594C3665.59 766.623 3665.65 768.677 3665.65 770.755V770.768L3665.65 771.791V771.801C3665.61 777.047 3665.29 782.556 3664.7 788.322L3664.32 792H3532.34C3533.17 799.02 3534.91 805.215 3537.53 810.63C3539.52 813.937 3541.84 816.953 3544.48 819.68C3554.3 829.376 3566 834.222 3579.83 834.309C3591.23 834.265 3600.38 831.307 3607.58 825.683C3613.44 821.05 3617.94 815.283 3621.12 808.331L3622.21 805.935H3664.77L3663.31 811.142C3658.45 828.439 3648.71 842.603 3634.18 853.526L3634.17 853.533L3634.16 853.541L3634.15 853.55C3619.49 864.348 3601.42 869.625 3580.2 869.625C3580.13 869.625 3580.03 869.624 3580.03 869.623C3580.01 869.623 3579.99 869.623 3579.97 869.623L3579.58 869.625H3579.56C3562.72 869.625 3547.46 865.837 3533.91 858.184L3533.9 858.18L3533.89 858.175L3533.89 858.172L3533.88 858.17C3520.57 850.531 3510.09 839.727 3502.47 825.856L3502.46 825.831L3502.38 825.695C3494.98 811.948 3491.22 796.245 3490.99 778.693V778.671L3490.98 777.011V776.99C3490.98 758.77 3494.63 742.604 3502.06 728.616C3509.37 714.864 3519.58 704.211 3532.67 696.76L3533.3 696.408C3546.87 688.753 3562.33 684.978 3579.56 684.978ZM3578.13 720.286C3565.7 720.286 3555.27 724.02 3546.6 731.408C3539.22 737.838 3534.53 746.52 3532.67 757.743H3624C3623.45 750.674 3621.47 744.668 3618.16 739.61L3618.12 739.556L3618.12 739.547C3614.12 733.286 3608.67 728.593 3601.67 725.432L3601.65 725.426L3601.61 725.407L3601.57 725.388L3601.54 725.373C3594.62 722.006 3586.84 720.286 3578.13 720.286Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3892.36 869.626H3853.2L3815.15 744.252L3777.11 869.626H3737.96L3680 684.979H3721.46L3757.71 817.293L3796.83 684.979H3835.72L3873.87 817.206L3909.44 684.979L3949.85 684.977L3892.36 869.626Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M3022.18 756.349L3084.15 684.984H3136.42L3049.47 776.987L3136.72 869.626H3085.46L3022.18 798.395V869.626H2981.23V610.676H3022.18V756.349Z`,fill:`white`})]})}function Lw(){return(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`40`,height:`40`,viewBox:`0 0 40 40`,fill:`none`,children:[(0,Z.jsx)(`path`,{d:`M20 38.7879C30.3763 38.7879 38.7879 30.3763 38.7879 20C38.7879 9.62374 30.3763 1.21212 20 1.21212C9.62374 1.21212 1.21212 9.62374 1.21212 20C1.21212 30.3763 9.62374 38.7879 20 38.7879Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M40 20C40 8.95431 31.0457 0 20 0C8.95431 0 0 8.95431 0 20C0 31.0457 8.95431 40 20 40C31.0457 40 40 31.0457 40 20ZM38.7879 20C38.7879 30.3763 30.3763 38.7879 20 38.7879C9.62374 38.7879 1.21212 30.3763 1.21212 20C1.21212 9.62374 9.62374 1.21212 20 1.21212C30.3763 1.21212 38.7879 9.62374 38.7879 20Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M38.7879 20C38.7879 22.0082 38.4721 23.9425 37.889 25.7571C37.7071 24.466 37.2963 22.6012 36.3672 20.5494C35.2519 18.0869 31.75 14.5202 29.3855 12.2827C30.9915 12.5583 32.5742 12.9138 34.0908 13.4974C35.5547 14.0615 36.9983 14.9081 38.349 15.9452C38.6362 17.2515 38.7879 18.6078 38.7879 20Z`,fill:`#ADE1F9`}),(0,Z.jsx)(`path`,{d:`M20.92 23.7446C20.2812 23.6634 19.6436 23.5822 19.0099 23.4928C14.9431 22.917 10.8741 21.9261 7.29792 19.9058C4.90618 18.5547 3.11875 16.9893 1.84189 15.1604V15.1582C1.86479 15.0731 1.88768 14.9889 1.91101 14.9042C2.2043 13.9388 3.49974 10.573 7.28453 10.7817C8.18947 10.8313 11.6745 11.2482 12.163 15.3185C12.1989 15.617 12.2334 15.9159 12.2909 16.2113C13.0503 20.1214 17.3806 22.2971 20.7226 23.666C20.7883 23.6928 20.8544 23.7183 20.92 23.7446Z`,fill:`#E1FAE1`}),(0,Z.jsx)(`path`,{d:`M38.349 15.9452C36.9983 14.9081 35.5547 14.0615 34.0908 13.4974C32.5742 12.9138 30.9915 12.5583 29.3855 12.2827C25.8586 11.6767 22.2211 11.4555 18.9443 10.0452C17.235 9.30911 15.5875 8.17523 14.8087 6.48543C14.0649 4.87294 14.0878 3.4842 14.5992 2.31922C14.702 2.0851 14.9059 1.9093 15.153 1.84364C16.6994 1.43199 18.3236 1.21212 20 1.21212C26.6517 1.21212 32.4969 4.66906 35.835 9.88491C37.0056 11.7129 37.8678 13.7583 38.349 15.9452Z`,fill:`#32B3EF`}),(0,Z.jsx)(`path`,{d:`M34.6869 31.7168C31.2183 36.0588 25.8646 38.8293 19.8652 38.787C9.5065 38.7144 1.19784 30.3324 1.2121 19.9732C1.21426 18.3093 1.4337 16.6964 1.84189 15.1604C3.11875 16.9893 4.90618 18.5547 7.29792 19.9058C10.8741 21.9261 14.9431 22.917 19.0099 23.4928C19.6436 23.5822 20.2812 23.6634 20.92 23.7446C24.0267 24.1386 27.1566 24.5316 29.9427 25.9178C32.0282 26.9553 33.8791 28.7518 34.8009 30.8438C34.9283 31.1332 34.8847 31.4693 34.6869 31.7168Z`,fill:`#5ABD5E`})]})}function Rw(){return(0,Z.jsxs)(`div`,{className:`${Fw.logoContainer} d-flex align-items-center`,children:[(0,Z.jsx)(`div`,{className:`d-none d-sm-block h-100`,children:(0,Z.jsx)(Iw,{})}),(0,Z.jsx)(`div`,{className:`${Fw.iconLogo} d-block d-sm-none`,children:(0,Z.jsx)(Lw,{})})]})}var zw=e=>{let t=Et(Gt.currentUser()),n=Et(t.hasCompleted&&Mx.getCustomerSettingsRequest(t.data)),r=Et(t.hasCompleted&&Mx.getUserSettingsRequest(t.data)),i=Dt(),a=!!n.hasCompleted&&!!r.hasCompleted,o=e=>{if(!a||n.hasError||r.hasError)return null;let t=n.data?.[e];if(t)return t?.value;let i=r.data?.[e];return i?i?.value:null};function s(e,t,n,r,i){return e===`user`?Fx.updateUserSetting(t,n,r,i):Fx.updateCustomerSetting(t,n,r,i)}let c=(t,n,r,a,o)=>{function c(){dt.logUserAction({name:n.name,value:n.value},{location:e,entity:ct.UserSetting,actionType:B.Edit}),r?.()}jt(i,s(t,n,c,a,o))},l=(e,t)=>new Promise((n,r)=>{c(e,t,n,r)}),u=(e,t,n,r)=>c(`user`,e,t,n,r),d=(e,t,n,r)=>c(`customer`,e,t,n,r),f=e=>l(`user`,e),p=e=>l(`customer`,e);function m(){return t.data?.isAuthenticated?o(Q.HasTopicDirectories):!0}return{isLoadingSettings:!a,updateUserSetting:u,updateUserSettingAsync:f,updateCustomerSetting:d,updateCustomerSettingAsync:p,userSettings:r,shareToGoogleClassroom:o(Q.ShareToGoogleClassroom),shareToMicrosoftTeams:o(Q.ShareToMicrosoftTeams),hasLti:o(Q.LTI),defaultPlaybackQuality:o(Q.DefaultPlaybackQuality),defaultLocalCachePlaybackQuality:o(Q.DefaultLocalCachePlaybackQuality),enableSubtitlesDefault:o(Q.EnableSubtitlesDefault),hasCompletedOnboardingV1:o(Q.HasCompletedOnboardingV1),hasCompletedOnboardingV2:o(Q.HasCompletedOnboardingV2),liteUpgradeTypeCustomer:o(Q.LiteUpgradeTypeCustomer),hasNewClassificationView:o(Q.HasNewClassificationView),hasCuratedDiscoverDashboards:o(Q.HasCuratedDiscoverDashboards),hasSpecialEventCalendar:o(Q.HasSpecialEventCalendar),hasLiteSearchDropdown:o(Q.HasLiteSearchDropdown),policyEndTime:o(Q.PolicyEndTime),bulkOnboardingPreferencesState:o(Q.BulkOnboardingPreferencesState),hasOnlineTopics:o(Q.Topics),hasPreviewVideos:o(Q.PreviewVideos),hasUserEnabledPreviewVideos:o(Q.UserEnabledPreviewVideos),domainSettings:o(Q.DomainSettings),inviteColleague:o(Q.InviteColleague),myVideosFolders:o(Q.MyVideosFolders),exchangeTvProductOption:o(Q.ExchangeTvProductOption),messageFrequencyOption:o(Q.MessageFrequencyOption),tvRegion:o(Q.TvRegion),preferredTheme:o(Q.PreferredTheme),hasHubEntry:o(Q.HasHubEntry),hasEnabledViviStudentCasting:o(Q.HasEnabledViviStudentCasting),hasEnabledViviPlayback:o(Q.HasEnabledViviPlayback),hasEnabledAppleTvPlayback:o(Q.HasEnabledAppleTvPlayback),hasDisplayedTutorialVideosProductTip:o(Q.HasDisplayedTutorialVideosProductTip),hasDismissedAnalyticsTutorial:o(Q.HasDismissedAnalyticsTutorial),hasDismissedOpenClassroomsTutorial:o(Q.HasDismissedOpenClassroomsTutorial),hasDismissedSearchAndDiscoverTutorial:o(Q.HasDismissedSearchAndDiscoverTutorial),hasDismissedClassroomsTutorial:o(Q.HasDismissedClassroomsTutorial),hasDismissedMySharesTutorial:o(Q.HasDismissedMySharesTutorial),hasDismissedMyVideosTutorial:o(Q.HasDismissedMyVideosTutorial),hasDismissedPlaylistsTutorial:o(Q.HasDismissedPlaylistsTutorial),showExchangeSearchResults:o(Q.ShowExchangeSearchResultsUser),shareOverrideRestrictions:o(Q.ShareOverrideRestrictions),hasTopicDirectories:m(),hasTopicVideoListFeature:o(Q.HasTopicVideoListFeature),hasManageGroupPermissions:o(Q.HasManageGrouPermissions),experimentalInteractiveQuestions:o(Q.ExperimentalInteractiveQuestions),hasClassrooms:o(Q.HasClassrooms),hasNewSearch:o(Q.HasNewSearch),hasPlayPageTranscript:o(Q.HasPlayPageTranscript),hasShareFlowV2:o(Q.HasShareFlowV2),referralCount:o(Q.ReferralCount),hasPartnerProfiles:o(Q.HasPartnerProfiles),defaultCitationStyle:o(Q.DefaultCitationStyle),hasStudentReach:o(Q.HasStudentReach),studentReachClassroomSize:o(Q.StudentReachClassroomSize),schoolStartTime:o(Q.SchoolStartTime),schoolEndTime:o(Q.SchoolEndTime),timezone:o(Q.Timezone),clickViewLive:o(Q.ClickViewLive),hasStudentLowerPresentations:o(Q.HasStudentLowerPresentations)}},Bw={banner:`_banner_1q8e9_1`},Vw=`shared.streamableTrialBanner`,Hw=30;function Uw(){let{policyEndTime:e,isLoadingSettings:t}=zw(null),n=X.useMemo(()=>{if(t)return 0;let n=new Date(e),r=new Date;return Math.max(bt.diffBetween(n,r,`day`),0)+1},[t,e]);return t?(0,Z.jsx)(Z.Fragment,{}):(0,Z.jsx)(`div`,{className:`bg-light-green d-none d-md-block text-center ${Bw.banner}`,children:(0,Z.jsx)(Z.Fragment,{children:(0,Z.jsx)(`span`,{className:`py-3 mb-0 d-inline-block h6`,children:n<=Hw?(0,Z.jsx)(Wn,{namespace:Vw,phrase:`endTime`,options:{smartCount:n}}):(0,Z.jsx)(Wn,{namespace:Vw,phrase:`endDate`,options:{endDate:bt.format(e,`Do MMMM`)}})})})})}var Ww=()=>{let e=Et(Et(Gt.currentUser()).data?.isAuthenticated&&jx.userProducts()),t=!e.hasCompleted;return{hasProduct:n=>t||e.hasError||!e.data?.length?!1:e.data.some(e=>e.id===n),products:e,isLoadingProducts:t}},Gw=function(e){return e.Static=`Static`,e.Timed=`Timed`,e.Cft=`Cft`,e}({});function Kw(){let{hasPermissions:e,isLoaded:t}=uw(),{policyHasOption:n,accessPolicy:r,isLoaded:i}=cw(),{hasProduct:a}=Ww(),{policyEndTime:o,isLoadingSettings:s,inviteColleague:c}=zw(null),l=X.useMemo(()=>{if(s)return 0;let e=new Date(o),t=new Date;return Math.max(bt.diffBetween(e,t,`day`),0)+1},[s,o]),u=e(Rt.ViewTrialBanner)||n(ow.StreamableViewTrialBanner);return{showBanner:a(Bt.StreamableLearning)&&!s&&i&&u&&!e(Rt.StudentExperience),viewTrialDuration:[Gw.Timed,Gw.Cft].includes(r?.type),viewTrialUpgrade:e(Rt.ViewTrialUpgrade),viewInviteColleague:c&&e(Rt.ViewInviteColleague),daysLeft:l,hasLoaded:!s&&t&&i}}function qw(){let{showBanner:e,hasLoaded:t,viewTrialDuration:n}=Kw();function r(){return t&&e&&n?`trial`:`none`}return r()===`trial`?(0,Z.jsx)(Uw,{}):(0,Z.jsx)(Z.Fragment,{})}var Jw=Xe.encloseNamespace(`streamableShared.header`);function Yw({showNav:e}){let t=Et(kx.config()),n=Et(Gt.currentUser());return function(){return!n.hasCompleted||!t.hasCompleted||!n.data.isAuthenticated||!e?[]:[{label:Jw(`settings`),order:10,appLink:{application:V.SETTINGS,action:Jt.Settings.HOME},analyticsData:{url:R.getHref({application:V.SETTINGS,action:Jt.Settings.HOME})},analyticsOptions:{location:ut.UserOptions,actionType:B.Click,entity:ct.Url}}]}}var Xw=T(((e,t)=>{function n(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}t.exports=n})),Zw=T(((e,t)=>{var n=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}();t.exports=function(e){var t=e.data,r=e.multiSection;function i(e){for(e===null?e=0:e++;e<t.length&&t[e]===0;)e++;return e===t.length?null:e}function a(e){for(e===null?e=t.length-1:e--;e>=0&&t[e]===0;)e--;return e===-1?null:e}function o(e){var a=n(e,2),o=a[0],s=a[1];return r?s===null||s===t[o]-1?(o=i(o),o===null?[null,null]:[o,0]):[o,s+1]:t===0||s===t-1?[null,null]:s===null?[null,0]:[null,s+1]}function s(e){var i=n(e,2),o=i[0],s=i[1];return r?s===null||s===0?(o=a(o),o===null?[null,null]:[o,t[o]-1]):[o,s-1]:t===0||s===0?[null,null]:s===null?[null,t-1]:[null,s-1]}function c(e){return o(e)[1]===null}return{next:o,prev:s,isLast:c}}})),Qw=T(((e,t)=>{var n=Object.prototype.propertyIsEnumerable;function r(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function i(e){var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t.filter(function(t){return n.call(e,t)})}t.exports=Object.assign||function(e,t){for(var n,a,o=r(e),s=1;s<arguments.length;s++){n=arguments[s],a=i(Object(n));for(var c=0;c<a.length;c++)o[a[c]]=n[a[c]]}return o}})),$w=T(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0});var n=(function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}})();function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var a=r(Qw()),o=function(e){return e};e.default=function(e){var t=n(Array.isArray(e)&&e.length===2?e:[e,null],2),r=t[0],s=t[1];return function(e){var t=[...arguments].slice(1).map(function(e){return r[e]}).filter(o);return typeof t[0]==`string`||typeof s==`function`?{key:e,className:s?s.apply(void 0,i(t)):t.join(` `)}:{key:e,style:a.default.apply(void 0,[{}].concat(i(t)))}}},t.exports=e.default})),eT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=n;function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(e===n)return!1;var i=Object.keys(e),a=Object.keys(n);if(i.length!==a.length)return!0;var o={},s,c;for(s=0,c=r.length;s<c;s++)o[r[s]]=!0;for(s=0,c=i.length;s<c;s++){var l=i[s],u=e[l],d=n[l];if(u!==d){if(!o[l]||u===null||d===null||t(u)!==`object`||t(d)!==`object`)return!0;var f=Object.keys(u),p=Object.keys(d);if(f.length!==p.length)return!0;for(var m=0,h=f.length;m<h;m++){var g=f[m];if(u[g]!==d[g])return!0}}}return!1}})),tT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=o(ht()),n=i(Qe()),r=i(eT());function i(e){return e&&e.__esModule?e:{default:e}}function a(){if(typeof WeakMap!=`function`)return null;var e=new WeakMap;return a=function(){return e},e}function o(e){if(e&&e.__esModule)return e;if(e===null||s(e)!==`object`&&typeof e!=`function`)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function d(e){return function(){var t=h(e),n;if(m()){var r=h(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return f(this,n)}}function f(e,t){return t&&(s(t)===`object`||typeof t==`function`)?t:p(e)}function p(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function m(){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 h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){g(i,e);var n=d(i);function i(){return c(this,i),n.apply(this,arguments)}return u(i,[{key:`shouldComponentUpdate`,value:function(e){return(0,r.default)(e,this.props)}},{key:`render`,value:function(){var e=this.props,n=e.section,r=e.renderSectionTitle,i=e.theme,a=e.sectionKeyPrefix,o=r(n);return o?t.default.createElement(`div`,i(`${a}title`,`sectionTitle`),o):null}}]),i}(t.Component);e.default=y,v(y,`propTypes`,{section:n.default.any.isRequired,renderSectionTitle:n.default.func.isRequired,theme:n.default.func.isRequired,sectionKeyPrefix:n.default.string.isRequired})})),nT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=o(ht()),n=i(Qe()),r=i(eT());function i(e){return e&&e.__esModule?e:{default:e}}function a(){if(typeof WeakMap!=`function`)return null;var e=new WeakMap;return a=function(){return e},e}function o(e){if(e&&e.__esModule)return e;if(e===null||s(e)!==`object`&&typeof e!=`function`)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?l(Object(n),!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){if(e==null)return{};var n=f(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function f(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function p(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(e){return function(){var t=b(e),n;if(y()){var r=b(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return _(this,n)}}function _(e,t){return t&&(s(t)===`object`||typeof t==`function`)?t:v(e)}function v(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function y(){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 b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function x(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){x(i,e);var n=g(i);function i(){var e;p(this,i);var t=[...arguments];return e=n.call.apply(n,[this].concat(t)),C(v(e),`storeItemReference`,function(t){t!==null&&(e.item=t)}),C(v(e),`onMouseEnter`,function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onMouseEnter(t,{sectionIndex:r,itemIndex:i})}),C(v(e),`onMouseLeave`,function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onMouseLeave(t,{sectionIndex:r,itemIndex:i})}),C(v(e),`onMouseDown`,function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onMouseDown(t,{sectionIndex:r,itemIndex:i})}),C(v(e),`onClick`,function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onClick(t,{sectionIndex:r,itemIndex:i})}),e}return h(i,[{key:`shouldComponentUpdate`,value:function(e){return(0,r.default)(e,this.props,[`renderItemData`])}},{key:`render`,value:function(){var e=this.props,n=e.isHighlighted,r=e.item,i=e.renderItem,a=e.renderItemData,o=d(e,[`isHighlighted`,`item`,`renderItem`,`renderItemData`]);return delete o.sectionIndex,delete o.itemIndex,typeof o.onMouseEnter==`function`&&(o.onMouseEnter=this.onMouseEnter),typeof o.onMouseLeave==`function`&&(o.onMouseLeave=this.onMouseLeave),typeof o.onMouseDown==`function`&&(o.onMouseDown=this.onMouseDown),typeof o.onClick==`function`&&(o.onClick=this.onClick),t.default.createElement(`li`,c({role:`option`},o,{ref:this.storeItemReference}),i(r,u({isHighlighted:n},a)))}}]),i}(t.Component);e.default=w,C(w,`propTypes`,{sectionIndex:n.default.number,isHighlighted:n.default.bool.isRequired,itemIndex:n.default.number.isRequired,item:n.default.any.isRequired,renderItem:n.default.func.isRequired,renderItemData:n.default.object.isRequired,onMouseEnter:n.default.func,onMouseLeave:n.default.func,onMouseDown:n.default.func,onClick:n.default.func})})),rT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=s(ht()),n=a(Qe()),r=a(nT()),i=a(eT());function a(e){return e&&e.__esModule?e:{default:e}}function o(){if(typeof WeakMap!=`function`)return null;var e=new WeakMap;return o=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(e===null||c(e)!==`object`&&typeof e!=`function`)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function c(e){"@babel/helpers - typeof";return c=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},c(e)}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?u(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(e){return function(){var t=y(e),n;if(v()){var r=y(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return g(this,n)}}function g(e,t){return t&&(c(t)===`object`||typeof t==`function`)?t:_(e)}function _(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function v(){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 y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=function(e){b(a,e);var n=h(a);function a(){var e;f(this,a);var t=[...arguments];return e=n.call.apply(n,[this].concat(t)),S(_(e),`storeHighlightedItemReference`,function(t){e.props.onHighlightedItemChange(t===null?null:t.item)}),e}return m(a,[{key:`shouldComponentUpdate`,value:function(e){return(0,i.default)(e,this.props,[`itemProps`])}},{key:`render`,value:function(){var e=this,n=this.props,i=n.items,a=n.itemProps,o=n.renderItem,s=n.renderItemData,c=n.sectionIndex,u=n.highlightedItemIndex,f=n.getItemId,p=n.theme,m=n.keyPrefix,h=c===null?m:`${m}section-${c}-`,g=typeof a==`function`;return t.default.createElement(`ul`,l({role:`listbox`},p(`${h}items-list`,`itemsList`)),i.map(function(n,i){var m=i===0,_=i===u,v=`${h}item-${i}`,y=g?a({sectionIndex:c,itemIndex:i}):a,b=d({id:f(c,i),"aria-selected":_},p(v,`item`,m&&`itemFirst`,_&&`itemHighlighted`),{},y);return _&&(b.ref=e.storeHighlightedItemReference),t.default.createElement(r.default,l({},b,{sectionIndex:c,isHighlighted:_,itemIndex:i,item:n,renderItem:o,renderItemData:s}))}))}}]),a}(t.Component);e.default=C,S(C,`propTypes`,{items:n.default.array.isRequired,itemProps:n.default.oneOfType([n.default.object,n.default.func]),renderItem:n.default.func.isRequired,renderItemData:n.default.object.isRequired,sectionIndex:n.default.number,highlightedItemIndex:n.default.number,onHighlightedItemChange:n.default.func.isRequired,getItemId:n.default.func.isRequired,theme:n.default.func.isRequired,keyPrefix:n.default.string.isRequired}),S(C,`defaultProps`,{sectionIndex:null})})),iT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=l(ht()),n=s(Qe()),r=s(Zw()),i=s($w()),a=s(tT()),o=s(rT());function s(e){return e&&e.__esModule?e:{default:e}}function c(){if(typeof WeakMap!=`function`)return null;var e=new WeakMap;return c=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(e===null||v(e)!==`object`&&typeof e!=`function`)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?u(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){return _(e)||g(e,t)||m(e,t)||p()}function p(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
7
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(e,t){if(e){if(typeof e==`string`)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(n);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}}function h(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function _(e){if(Array.isArray(e))return e}function v(e){"@babel/helpers - typeof";return v=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},v(e)}function y(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}function S(e){return function(){var t=E(e),n;if(T()){var r=E(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return C(this,n)}}function C(e,t){return t&&(v(t)===`object`||typeof t==`function`)?t:w(e)}function w(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function T(){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 E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function D(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A={},j=function(e){return t.default.createElement(`input`,e)},M=function(e){var n=e.containerProps,r=e.children;return t.default.createElement(`div`,n,r)},N={container:`react-autowhatever__container`,containerOpen:`react-autowhatever__container--open`,input:`react-autowhatever__input`,inputOpen:`react-autowhatever__input--open`,inputFocused:`react-autowhatever__input--focused`,itemsContainer:`react-autowhatever__items-container`,itemsContainerOpen:`react-autowhatever__items-container--open`,itemsList:`react-autowhatever__items-list`,item:`react-autowhatever__item`,itemFirst:`react-autowhatever__item--first`,itemHighlighted:`react-autowhatever__item--highlighted`,sectionContainer:`react-autowhatever__section-container`,sectionContainerFirst:`react-autowhatever__section-container--first`,sectionTitle:`react-autowhatever__section-title`},P=function(e){D(s,e);var n=S(s);function s(e){var t;return y(this,s),t=n.call(this,e),k(w(t),`storeInputReference`,function(e){e!==null&&(t.input=e);var n=t.props.inputProps.ref;n&&(typeof n==`function`?n(e):v(n)===`object`&&Object.prototype.hasOwnProperty.call(n,`current`)&&(n.current=e))}),k(w(t),`storeItemsContainerReference`,function(e){e!==null&&(t.itemsContainer=e)}),k(w(t),`onHighlightedItemChange`,function(e){t.highlightedItem=e}),k(w(t),`getItemId`,function(e,n){return n===null?null:`react-autowhatever-${t.props.id}-${e===null?``:`section-${e}`}-item-${n}`}),k(w(t),`onFocus`,function(e){var n=t.props.inputProps;t.setState({isInputFocused:!0}),n.onFocus&&n.onFocus(e)}),k(w(t),`onBlur`,function(e){var n=t.props.inputProps;t.setState({isInputFocused:!1}),n.onBlur&&n.onBlur(e)}),k(w(t),`onKeyDown`,function(e){var n=t.props,r=n.inputProps,i=n.highlightedSectionIndex,a=n.highlightedItemIndex,o=e.keyCode;switch(o){case 40:case 38:var s=o===40?`next`:`prev`,c=f(t.sectionIterator[s]([i,a]),2),l=c[0],u=c[1];r.onKeyDown(e,{newHighlightedSectionIndex:l,newHighlightedItemIndex:u});break;default:r.onKeyDown(e,{highlightedSectionIndex:i,highlightedItemIndex:a})}}),t.highlightedItem=null,t.state={isInputFocused:!1},t.setSectionsItems(e),t.setSectionIterator(e),t.setTheme(e),t}return x(s,[{key:`componentDidMount`,value:function(){this.ensureHighlightedItemIsVisible()}},{key:`UNSAFE_componentWillReceiveProps`,value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),(e.items!==this.props.items||e.multiSection!==this.props.multiSection)&&this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:`componentDidUpdate`,value:function(){this.ensureHighlightedItemIsVisible()}},{key:`setSectionsItems`,value:function(e){e.multiSection&&(this.sectionsItems=e.items.map(function(t){return e.getSectionItems(t)}),this.sectionsLengths=this.sectionsItems.map(function(e){return e.length}),this.allSectionsAreEmpty=this.sectionsLengths.every(function(e){return e===0}))}},{key:`setSectionIterator`,value:function(e){this.sectionIterator=(0,r.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:`setTheme`,value:function(e){this.theme=(0,i.default)(e.theme)}},{key:`renderSections`,value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var n=this.theme,r=this.props,i=r.id,s=r.items,c=r.renderItem,l=r.renderItemData,u=r.renderSectionTitle,d=r.highlightedSectionIndex,f=r.highlightedItemIndex,p=r.itemProps;return s.map(function(r,s){var m=`react-autowhatever-${i}-`,h=`${m}section-${s}-`,g=s===0;return t.default.createElement(`div`,n(`${h}container`,`sectionContainer`,g&&`sectionContainerFirst`),t.default.createElement(a.default,{section:r,renderSectionTitle:u,theme:n,sectionKeyPrefix:h}),t.default.createElement(o.default,{items:e.sectionsItems[s],itemProps:p,renderItem:c,renderItemData:l,sectionIndex:s,highlightedItemIndex:d===s?f:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:n,keyPrefix:m,ref:e.storeItemsListReference}))})}},{key:`renderItems`,value:function(){var e=this.props.items;if(e.length===0)return null;var n=this.theme,r=this.props,i=r.id,a=r.renderItem,s=r.renderItemData,c=r.highlightedSectionIndex,l=r.highlightedItemIndex,u=r.itemProps;return t.default.createElement(o.default,{items:e,itemProps:u,renderItem:a,renderItemData:s,highlightedItemIndex:c===null?l:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:n,keyPrefix:`react-autowhatever-${i}-`})}},{key:`ensureHighlightedItemIsVisible`,value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,r=t.scrollTop;n<r?r=n:n+e.offsetHeight>r+t.offsetHeight&&(r=n+e.offsetHeight-t.offsetHeight),r!==t.scrollTop&&(t.scrollTop=r)}}},{key:`render`,value:function(){var e=this.theme,n=this.props,r=n.id,i=n.multiSection,a=n.renderInputComponent,o=n.renderItemsContainer,s=n.highlightedSectionIndex,c=n.highlightedItemIndex,l=this.state.isInputFocused,u=i?this.renderSections():this.renderItems(),f=u!==null,p=this.getItemId(s,c),m=`react-autowhatever-${r}`,h=d({role:`combobox`,"aria-haspopup":`listbox`,"aria-owns":m,"aria-expanded":f},e(`react-autowhatever-${r}-container`,`container`,f&&`containerOpen`),{},this.props.containerProps),g=a(d({type:`text`,value:``,autoComplete:`off`,"aria-autocomplete":`list`,"aria-controls":m,"aria-activedescendant":p},e(`react-autowhatever-${r}-input`,`input`,f&&`inputOpen`,l&&`inputFocused`),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),_=o({containerProps:d({id:m,role:`listbox`},e(`react-autowhatever-${r}-items-container`,`itemsContainer`,f&&`itemsContainerOpen`),{ref:this.storeItemsContainerReference}),children:u});return t.default.createElement(`div`,h,g,_)}}]),s}(t.Component);e.default=P,k(P,`propTypes`,{id:n.default.string,multiSection:n.default.bool,renderInputComponent:n.default.func,renderItemsContainer:n.default.func,items:n.default.array.isRequired,renderItem:n.default.func,renderItemData:n.default.object,renderSectionTitle:n.default.func,getSectionItems:n.default.func,containerProps:n.default.object,inputProps:n.default.object,itemProps:n.default.oneOfType([n.default.object,n.default.func]),highlightedSectionIndex:n.default.number,highlightedItemIndex:n.default.number,theme:n.default.oneOfType([n.default.object,n.default.array])}),k(P,`defaultProps`,{id:`1`,multiSection:!1,renderInputComponent:j,renderItemsContainer:M,renderItem:function(){throw Error("`renderItem` must be provided")},renderItemData:A,renderSectionTitle:function(){throw Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw Error("`getSectionItems` must be provided")},containerProps:A,inputProps:A,itemProps:A,highlightedSectionIndex:null,highlightedItemIndex:null,theme:N})})),aT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mapToAutowhateverTheme=e.defaultTheme=void 0,e.defaultTheme={container:`react-autosuggest__container`,containerOpen:`react-autosuggest__container--open`,input:`react-autosuggest__input`,inputOpen:`react-autosuggest__input--open`,inputFocused:`react-autosuggest__input--focused`,suggestionsContainer:`react-autosuggest__suggestions-container`,suggestionsContainerOpen:`react-autosuggest__suggestions-container--open`,suggestionsList:`react-autosuggest__suggestions-list`,suggestion:`react-autosuggest__suggestion`,suggestionFirst:`react-autosuggest__suggestion--first`,suggestionHighlighted:`react-autosuggest__suggestion--highlighted`,sectionContainer:`react-autosuggest__section-container`,sectionContainerFirst:`react-autosuggest__section-container--first`,sectionTitle:`react-autosuggest__section-title`},e.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case`suggestionsContainer`:t.itemsContainer=e[n];break;case`suggestionsContainerOpen`:t.itemsContainerOpen=e[n];break;case`suggestion`:t.item=e[n];break;case`suggestionFirst`:t.itemFirst=e[n];break;case`suggestionHighlighted`:t.itemHighlighted=e[n];break;case`suggestionsList`:t.itemsList=e[n];break;default:t[n]=e[n]}return t}})),oT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=c(ht()),n=o(Qe()),r=o(Xw()),i=o(iT()),a=aT();function o(e){return e&&e.__esModule?e:{default:e}}function s(){if(typeof WeakMap!=`function`)return null;var e=new WeakMap;return s=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(e===null||l(e)!==`object`&&typeof e!=`function`)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function l(e){"@babel/helpers - typeof";return l=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},l(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?u(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(e){return function(){var t=y(e),n;if(v()){var r=y(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return g(this,n)}}function g(e,t){return t&&(l(t)===`object`||typeof t==`function`)?t:_(e)}function _(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function v(){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 y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=function(){return!0},w=function(e){return e.trim().length>0},T=function(e){var n=e.containerProps,r=e.children;return t.default.createElement(`div`,n,r)},E=`suggestions-revealed`,D=`suggestions-updated`,O=`suggestion-selected`,k=`input-focused`,A=`input-changed`,j=`input-blurred`,M=`escape-pressed`,N=function(e){b(o,e);var n=h(o);function o(e){var t,r=e.alwaysRenderSuggestions;return f(this,o),t=n.call(this),S(_(t),`onDocumentMouseDown`,function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;n!==null&&n!==document;){if(n.getAttribute&&n.getAttribute(`data-suggestion-index`)!==null)return;if(n===t.suggestionsContainer){t.justClickedOnSuggestionsContainer=!0;return}n=n.parentNode}}),S(_(t),`storeAutowhateverRef`,function(e){e!==null&&(t.autowhatever=e)}),S(_(t),`onSuggestionMouseEnter`,function(e,n){var r=n.sectionIndex,i=n.itemIndex;t.updateHighlightedSuggestion(r,i),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout(function(){t.justMouseEntered=!1})}),S(_(t),`highlightFirstSuggestion`,function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)}),S(_(t),`onDocumentMouseUp`,function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null}),S(_(t),`onSuggestionMouseDown`,function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)}),S(_(t),`onSuggestionsClearRequested`,function(){var e=t.props.onSuggestionsClearRequested;e&&e()}),S(_(t),`onSuggestionSelected`,function(e,n){var r=t.props,i=r.alwaysRenderSuggestions,a=r.onSuggestionSelected,o=r.onSuggestionsFetchRequested;a&&a(e,n);var s=t.props.shouldKeepSuggestionsOnSelect(n.suggestion);i||s?o({value:n.suggestionValue,reason:O}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()}),S(_(t),`onSuggestionClick`,function(e){var n=t.props,r=n.alwaysRenderSuggestions,i=n.focusInputOnSuggestionClick,a=t.getSuggestionIndices(t.findSuggestionElement(e.target)),o=a.sectionIndex,s=a.suggestionIndex,c=t.getSuggestion(o,s),l=t.props.getSuggestionValue(c);t.maybeCallOnChange(e,l,`click`),t.onSuggestionSelected(e,{suggestion:c,suggestionValue:l,suggestionIndex:s,sectionIndex:o,method:`click`});var u=t.props.shouldKeepSuggestionsOnSelect(c);r||u||t.closeSuggestions(),i===!0?t.input.focus():t.onBlur(),setTimeout(function(){t.justSelectedSuggestion=!1})}),S(_(t),`onBlur`,function(){var e=t.props,n=e.inputProps,r=e.shouldRenderSuggestions,i=n.value,a=n.onBlur,o=t.getHighlightedSuggestion(),s=r(i,j);t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!s}),a&&a(t.blurEvent,{highlightedSuggestion:o})}),S(_(t),`onSuggestionMouseLeave`,function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)}),S(_(t),`onSuggestionTouchStart`,function(){t.justSelectedSuggestion=!0}),S(_(t),`onSuggestionTouchMove`,function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()}),S(_(t),`itemProps`,function(e){var n=e.sectionIndex,r=e.itemIndex;return{"data-section-index":n,"data-suggestion-index":r,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}}),S(_(t),`renderSuggestionsContainer`,function(e){var n=e.containerProps,r=e.children,i=t.props.renderSuggestionsContainer;return i({containerProps:n,children:r,query:t.getQuery()})}),t.state={isFocused:!1,isCollapsed:!r,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return m(o,[{key:`componentDidMount`,value:function(){document.addEventListener(`mousedown`,this.onDocumentMouseDown),document.addEventListener(`mouseup`,this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:`UNSAFE_componentWillReceiveProps`,value:function(e){var t=this.state.highlightedSuggestionIndex===0&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,r.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&this.justPressedUpDown===!1&&this.justMouseEntered===!1?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,D)?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:`componentDidUpdate`,value:function(e,t){var n=this.props,i=n.suggestions,a=n.onSuggestionHighlighted,o=n.highlightFirstSuggestion;if(!(0,r.default)(i,e.suggestions)&&i.length>0&&o){this.highlightFirstSuggestion();return}if(a){var s=this.getHighlightedSuggestion();s!=t.highlightedSuggestion&&a({suggestion:s})}}},{key:`componentWillUnmount`,value:function(){document.removeEventListener(`mousedown`,this.onDocumentMouseDown),document.removeEventListener(`mouseup`,this.onDocumentMouseUp)}},{key:`updateHighlightedSuggestion`,value:function(e,t,n){var r=this;this.setState(function(i){var a=i.valueBeforeUpDown;return t===null?a=null:a===null&&n!==void 0&&(a=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:t===null?null:r.getSuggestion(e,t),valueBeforeUpDown:a}})}},{key:`resetHighlightedSuggestion`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.setState(function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}})}},{key:`revealSuggestions`,value:function(){this.setState({isCollapsed:!1})}},{key:`closeSuggestions`,value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:`getSuggestion`,value:function(e,t){var n=this.props,r=n.suggestions,i=n.multiSection,a=n.getSectionSuggestions;return i?a(r[e])[t]:r[t]}},{key:`getHighlightedSuggestion`,value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return n===null?null:this.getSuggestion(t,n)}},{key:`getSuggestionValueByIndex`,value:function(e,t){var n=this.props.getSuggestionValue;return n(this.getSuggestion(e,t))}},{key:`getSuggestionIndices`,value:function(e){var t=e.getAttribute(`data-section-index`),n=e.getAttribute(`data-suggestion-index`);return{sectionIndex:typeof t==`string`?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:`findSuggestionElement`,value:function(e){var t=e;do{if(t.getAttribute&&t.getAttribute(`data-suggestion-index`)!==null)return t;t=t.parentNode}while(t!==null);throw console.error(`Clicked element:`,e),Error(`Couldn't find suggestion element`)}},{key:`maybeCallOnChange`,value:function(e,t,n){var r=this.props.inputProps,i=r.value,a=r.onChange;t!==i&&a(e,{newValue:t,method:n})}},{key:`willRenderSuggestions`,value:function(e,t){var n=e.suggestions,r=e.inputProps,i=e.shouldRenderSuggestions,a=r.value;return n.length>0&&i(a,t)}},{key:`getQuery`,value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(t===null?e:t).trim()}},{key:`render`,value:function(){var e=this,n=this.props,r=n.suggestions,o=n.renderInputComponent,s=n.onSuggestionsFetchRequested,c=n.renderSuggestion,l=n.inputProps,u=n.multiSection,f=n.renderSectionTitle,p=n.id,m=n.getSectionSuggestions,h=n.theme,g=n.getSuggestionValue,_=n.alwaysRenderSuggestions,v=n.highlightFirstSuggestion,y=n.containerProps,b=this.state,x=b.isFocused,S=b.isCollapsed,w=b.highlightedSectionIndex,T=b.highlightedSuggestionIndex,D=b.valueBeforeUpDown,O=_?C:this.props.shouldRenderSuggestions,j=l.value,N=l.onFocus,P=l.onKeyDown,F=this.willRenderSuggestions(this.props,`render`),I=_||x&&!S&&F,L=I?r:[],R=d({},l,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=O(j,k);e.setState({isFocused:!0,isCollapsed:!n}),N&&N(t),n&&s({value:j,reason:k})}},onBlur:function(t){if(e.justClickedOnSuggestionsContainer){e.input.focus();return}e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested())},onChange:function(t){var n=t.target.value,r=O(n,A);e.maybeCallOnChange(t,n,`type`),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(d({},v?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?s({value:n,reason:A}):e.onSuggestionsClearRequested()},onKeyDown:function(t,n){var i=t.keyCode;switch(i){case 40:case 38:if(S)O(j,E)&&(s({value:j,reason:E}),e.revealSuggestions(),t.preventDefault());else if(r.length>0){var a=n.newHighlightedSectionIndex,o=n.newHighlightedItemIndex,c=o===null?D===null?j:D:e.getSuggestionValueByIndex(a,o);e.updateHighlightedSuggestion(a,o,j),e.maybeCallOnChange(t,c,i===40?`down`:`up`),t.preventDefault()}e.justPressedUpDown=!0,setTimeout(function(){e.justPressedUpDown=!1});break;case 13:if(t.keyCode===229)break;var l=e.getHighlightedSuggestion();if(I&&!_&&e.closeSuggestions(),l!=null){t.preventDefault();var u=g(l);e.maybeCallOnChange(t,u,`enter`),e.onSuggestionSelected(t,{suggestion:l,suggestionValue:u,suggestionIndex:T,sectionIndex:w,method:`enter`}),e.justSelectedSuggestion=!0,setTimeout(function(){e.justSelectedSuggestion=!1})}break;case 27:I&&t.preventDefault();var d=I&&!_;if(D===null){if(!d){var f=``;e.maybeCallOnChange(t,f,`escape`),O(f,M)?s({value:f,reason:M}):e.onSuggestionsClearRequested()}}else e.maybeCallOnChange(t,D,`escape`);d?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion();break}P&&P(t)}}),ee={query:this.getQuery()};return t.default.createElement(i.default,{multiSection:u,items:L,renderInputComponent:o,renderItemsContainer:this.renderSuggestionsContainer,renderItem:c,renderItemData:ee,renderSectionTitle:f,getSectionItems:m,highlightedSectionIndex:w,highlightedItemIndex:T,containerProps:y,inputProps:R,itemProps:this.itemProps,theme:(0,a.mapToAutowhateverTheme)(h),id:p,ref:this.storeAutowhateverRef})}}]),o}(t.Component);e.default=N,S(N,`propTypes`,{suggestions:n.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){if(typeof e[t]!=`function`)throw Error(`'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp`)},onSuggestionsClearRequested:function(e,t){var n=e[t];if(e.alwaysRenderSuggestions===!1&&typeof n!=`function`)throw Error(`'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp`)},shouldKeepSuggestionsOnSelect:n.default.func,onSuggestionSelected:n.default.func,onSuggestionHighlighted:n.default.func,renderInputComponent:n.default.func,renderSuggestionsContainer:n.default.func,getSuggestionValue:n.default.func.isRequired,renderSuggestion:n.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n)throw Error(`'inputProps' must be passed.`);if(!Object.prototype.hasOwnProperty.call(n,`value`))throw Error(`'inputProps' must have 'value'.`);if(!Object.prototype.hasOwnProperty.call(n,`onChange`))throw Error(`'inputProps' must have 'onChange'.`)},shouldRenderSuggestions:n.default.func,alwaysRenderSuggestions:n.default.bool,multiSection:n.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(e.multiSection===!0&&typeof n!=`function`)throw Error(`'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp`)},getSectionSuggestions:function(e,t){var n=e[t];if(e.multiSection===!0&&typeof n!=`function`)throw Error(`'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp`)},focusInputOnSuggestionClick:n.default.bool,highlightFirstSuggestion:n.default.bool,theme:n.default.object,id:n.default.string,containerProps:n.default.object}),S(N,`defaultProps`,{renderSuggestionsContainer:T,shouldRenderSuggestions:w,alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:a.defaultTheme,id:`1`,containerProps:{}})})),sT=T(((e,t)=>{t.exports=oT().default})),cT=T(((e,t)=>{(function(){var e,n,r,i,a,o;typeof performance<`u`&&performance!==null&&performance.now?t.exports=function(){return performance.now()}:typeof process<`u`&&process!==null&&process.hrtime?(t.exports=function(){return(e()-a)/1e6},n=process.hrtime,e=function(){var e=n();return e[0]*1e9+e[1]},i=e(),o=process.uptime()*1e9,a=i-o):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(e)})),lT=T(((e,t)=>{for(var n=cT(),r=typeof window>`u`?globalThis:window,i=[`moz`,`webkit`],a=`AnimationFrame`,o=r[`request`+a],s=r[`cancel`+a]||r[`cancelRequest`+a],c=0;!o&&c<i.length;c++)o=r[i[c]+`Request`+a],s=r[i[c]+`Cancel`+a]||r[i[c]+`CancelRequest`+a];if(!o||!s){var l=0,u=0,d=[],f=1e3/60;o=function(e){if(d.length===0){var t=n(),r=Math.max(0,f-(t-l));l=r+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(r))}return d.push({handle:++u,callback:e,cancelled:!1}),u},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}t.exports=function(e){return o.call(r,e)},t.exports.cancel=function(){s.apply(r,arguments)},t.exports.polyfill=function(e){e||=r,e.requestAnimationFrame=o,e.cancelAnimationFrame=s}})),uT=T(((e,t)=>{var n=null,r=[`Webkit`,`Moz`,`O`,`ms`];t.exports=function(e){n||=document.createElement(`div`);var t=n.style;if(e in t)return e;for(var i=e.charAt(0).toUpperCase()+e.slice(1),a=r.length;a>=0;a--){var o=r[a]+i;if(o in t)return o}return!1}})),dT=T(((e,t)=>{t.exports=a;var n=/\s/,r=/(_|-|\.|:)/,i=/([a-z][A-Z]|[A-Z][a-z])/;function a(e){return n.test(e)?e.toLowerCase():r.test(e)?(s(e)||e).toLowerCase():i.test(e)?l(e).toLowerCase():e.toLowerCase()}var o=/[\W_]+(.|$)/g;function s(e){return e.replace(o,function(e,t){return t?` `+t:``})}var c=/(.)([A-Z]+)/g;function l(e){return e.replace(c,function(e,t,n){return t+` `+n.toLowerCase().split(``).join(` `)})}})),fT=T(((e,t)=>{var n=dT();t.exports=r;function r(e){return n(e).replace(/[\W_]+(.|$)/g,function(e,t){return t?` `+t:``}).trim()}})),pT=T(((e,t)=>{var n=fT();t.exports=r;function r(e){return n(e).replace(/\s(\w)/g,function(e,t){return t.toUpperCase()})}})),mT=T(((e,t)=>{var n={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};t.exports=function(e,t){return typeof t==`number`&&!n[e]?t+`px`:t}})),hT=T(((e,t)=>{var n=uT(),r=pT(),i={float:`cssFloat`},a=mT();function o(e,t,n){var r=i[t];if(r===void 0&&(r=c(t)),r){if(n===void 0)return e.style[r];e.style[r]=a(r,n)}}function s(e,t){for(var n in t)t.hasOwnProperty(n)&&o(e,n,t[n])}function c(e){var t=r(e),a=n(t);return i[t]=i[e]=i[a]=a,a}function l(){arguments.length===2?typeof arguments[1]==`string`?arguments[0].style.cssText=arguments[1]:s(arguments[0],arguments[1]):o(arguments[0],arguments[1],arguments[2])}t.exports=l,t.exports.set=l,t.exports.get=function(e,t){return Array.isArray(t)?t.reduce(function(t,n){return t[n]=o(e,n||``),t},{}):o(e,t||``)}})),gT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(e){return typeof e==`string`}})),_T=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=i;var t=n(hT());function n(e){return e&&e.__esModule?e:{default:e}}var r=!1;function i(){if((!(arguments.length>0&&arguments[0]!==void 0)||arguments[0])&&r!==!1)return r;if(typeof document<`u`){var e=document.createElement(`div`);(0,t.default)(e,{width:100,height:100,position:`absolute`,top:-9999,overflow:`scroll`,MsOverflowStyle:`scrollbar`}),document.body.appendChild(e),r=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else r=0;return r||0}})),vT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(){return!1}})),yT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,i=n.paddingRight;return t-parseFloat(r)-parseFloat(i)}})),bT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,i=n.paddingBottom;return t-parseFloat(r)-parseFloat(i)}})),xT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.containerStyleDefault={position:`relative`,overflow:`hidden`,width:`100%`,height:`100%`},e.containerStyleAutoHeight={height:`auto`},e.viewStyleDefault={position:`absolute`,top:0,left:0,right:0,bottom:0,overflow:`scroll`,WebkitOverflowScrolling:`touch`},e.viewStyleAutoHeight={position:`relative`,top:void 0,left:void 0,right:void 0,bottom:void 0},e.viewStyleUniversalInitial={overflow:`hidden`,marginRight:0,marginBottom:0},e.trackHorizontalStyleDefault={position:`absolute`,height:6},e.trackVerticalStyleDefault={position:`absolute`,width:6},e.thumbHorizontalStyleDefault={position:`relative`,display:`block`,height:`100%`},e.thumbVerticalStyleDefault={position:`relative`,display:`block`,width:`100%`},e.disableSelectStyle={userSelect:`none`},e.disableSelectStyleReset={userSelect:``}})),ST=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};e.renderViewDefault=a,e.renderTrackHorizontalDefault=o,e.renderTrackVerticalDefault=s,e.renderThumbHorizontalDefault=c,e.renderThumbVerticalDefault=l;var n=r(ht());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){return n.default.createElement(`div`,e)}function o(e){var r=e.style,a=i(e,[`style`]),o=t({},r,{right:2,bottom:2,left:2,borderRadius:3});return n.default.createElement(`div`,t({style:o},a))}function s(e){var r=e.style,a=i(e,[`style`]),o=t({},r,{right:2,bottom:2,top:2,borderRadius:3});return n.default.createElement(`div`,t({style:o},a))}function c(e){var r=e.style,a=i(e,[`style`]),o=t({},r,{cursor:`pointer`,borderRadius:`inherit`,backgroundColor:`rgba(0,0,0,.2)`});return n.default.createElement(`div`,t({style:o},a))}function l(e){var r=e.style,a=i(e,[`style`]),o=t({},r,{cursor:`pointer`,borderRadius:`inherit`,backgroundColor:`rgba(0,0,0,.2)`});return n.default.createElement(`div`,t({style:o},a))}})),CT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=lT(),i=h(r),a=h(hT()),o=ht(),s=h(Qe()),c=h(gT()),l=h(_T()),u=h(vT()),d=h(yT()),f=h(bT()),p=xT(),m=ST();function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function _(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function v(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function y(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=function(e){y(s,e);function s(e){var t;_(this,s);var n=[...arguments].slice(1),r=v(this,(t=s.__proto__||Object.getPrototypeOf(s)).call.apply(t,[this,e].concat(n)));return r.getScrollLeft=r.getScrollLeft.bind(r),r.getScrollTop=r.getScrollTop.bind(r),r.getScrollWidth=r.getScrollWidth.bind(r),r.getScrollHeight=r.getScrollHeight.bind(r),r.getClientWidth=r.getClientWidth.bind(r),r.getClientHeight=r.getClientHeight.bind(r),r.getValues=r.getValues.bind(r),r.getThumbHorizontalWidth=r.getThumbHorizontalWidth.bind(r),r.getThumbVerticalHeight=r.getThumbVerticalHeight.bind(r),r.getScrollLeftForOffset=r.getScrollLeftForOffset.bind(r),r.getScrollTopForOffset=r.getScrollTopForOffset.bind(r),r.scrollLeft=r.scrollLeft.bind(r),r.scrollTop=r.scrollTop.bind(r),r.scrollToLeft=r.scrollToLeft.bind(r),r.scrollToTop=r.scrollToTop.bind(r),r.scrollToRight=r.scrollToRight.bind(r),r.scrollToBottom=r.scrollToBottom.bind(r),r.handleTrackMouseEnter=r.handleTrackMouseEnter.bind(r),r.handleTrackMouseLeave=r.handleTrackMouseLeave.bind(r),r.handleHorizontalTrackMouseDown=r.handleHorizontalTrackMouseDown.bind(r),r.handleVerticalTrackMouseDown=r.handleVerticalTrackMouseDown.bind(r),r.handleHorizontalThumbMouseDown=r.handleHorizontalThumbMouseDown.bind(r),r.handleVerticalThumbMouseDown=r.handleVerticalThumbMouseDown.bind(r),r.handleWindowResize=r.handleWindowResize.bind(r),r.handleScroll=r.handleScroll.bind(r),r.handleDrag=r.handleDrag.bind(r),r.handleDragEnd=r.handleDragEnd.bind(r),r.state={didMountUniversal:!1},r}return n(s,[{key:`componentDidMount`,value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:`componentDidMountUniversal`,value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:`componentDidUpdate`,value:function(){this.update()}},{key:`componentWillUnmount`,value:function(){this.removeListeners(),(0,r.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:`getScrollLeft`,value:function(){return this.view?this.view.scrollLeft:0}},{key:`getScrollTop`,value:function(){return this.view?this.view.scrollTop:0}},{key:`getScrollWidth`,value:function(){return this.view?this.view.scrollWidth:0}},{key:`getScrollHeight`,value:function(){return this.view?this.view.scrollHeight:0}},{key:`getClientWidth`,value:function(){return this.view?this.view.clientWidth:0}},{key:`getClientHeight`,value:function(){return this.view?this.view.clientHeight:0}},{key:`getValues`,value:function(){var e=this.view||{},t=e.scrollLeft,n=t===void 0?0:t,r=e.scrollTop,i=r===void 0?0:r,a=e.scrollWidth,o=a===void 0?0:a,s=e.scrollHeight,c=s===void 0?0:s,l=e.clientWidth,u=l===void 0?0:l,d=e.clientHeight,f=d===void 0?0:d;return{left:n/(o-u)||0,top:i/(c-f)||0,scrollLeft:n,scrollTop:i,scrollWidth:o,scrollHeight:c,clientWidth:u,clientHeight:f}}},{key:`getThumbHorizontalWidth`,value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollWidth,a=r.clientWidth,o=(0,d.default)(this.trackHorizontal),s=Math.ceil(a/i*o);return o<=s?0:t||Math.max(s,n)}},{key:`getThumbVerticalHeight`,value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollHeight,a=r.clientHeight,o=(0,f.default)(this.trackVertical),s=Math.ceil(a/i*o);return o<=s?0:t||Math.max(s,n)}},{key:`getScrollLeftForOffset`,value:function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/((0,d.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)}},{key:`getScrollTopForOffset`,value:function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/((0,f.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)}},{key:`scrollLeft`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:`scrollTop`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:`scrollToLeft`,value:function(){this.view&&(this.view.scrollLeft=0)}},{key:`scrollToTop`,value:function(){this.view&&(this.view.scrollTop=0)}},{key:`scrollToRight`,value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:`scrollToBottom`,value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:`addListeners`,value:function(){if(!(typeof document>`u`||!this.view)){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.addEventListener(`scroll`,this.handleScroll),(0,l.default)()&&(t.addEventListener(`mouseenter`,this.handleTrackMouseEnter),t.addEventListener(`mouseleave`,this.handleTrackMouseLeave),t.addEventListener(`mousedown`,this.handleHorizontalTrackMouseDown),n.addEventListener(`mouseenter`,this.handleTrackMouseEnter),n.addEventListener(`mouseleave`,this.handleTrackMouseLeave),n.addEventListener(`mousedown`,this.handleVerticalTrackMouseDown),r.addEventListener(`mousedown`,this.handleHorizontalThumbMouseDown),i.addEventListener(`mousedown`,this.handleVerticalThumbMouseDown),window.addEventListener(`resize`,this.handleWindowResize))}}},{key:`removeListeners`,value:function(){if(!(typeof document>`u`||!this.view)){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.removeEventListener(`scroll`,this.handleScroll),(0,l.default)()&&(t.removeEventListener(`mouseenter`,this.handleTrackMouseEnter),t.removeEventListener(`mouseleave`,this.handleTrackMouseLeave),t.removeEventListener(`mousedown`,this.handleHorizontalTrackMouseDown),n.removeEventListener(`mouseenter`,this.handleTrackMouseEnter),n.removeEventListener(`mouseleave`,this.handleTrackMouseLeave),n.removeEventListener(`mousedown`,this.handleVerticalTrackMouseDown),r.removeEventListener(`mousedown`,this.handleHorizontalThumbMouseDown),i.removeEventListener(`mousedown`,this.handleVerticalThumbMouseDown),window.removeEventListener(`resize`,this.handleWindowResize),this.teardownDragging())}}},{key:`handleScroll`,value:function(e){var t=this,n=this.props,r=n.onScroll,i=n.onScrollFrame;r&&r(e),this.update(function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,i&&i(e)}),this.detectScrolling()}},{key:`handleScrollStart`,value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:`handleScrollStartAutoHide`,value:function(){this.props.autoHide&&this.showTracks()}},{key:`handleScrollStop`,value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:`handleScrollStopAutoHide`,value:function(){this.props.autoHide&&this.hideTracks()}},{key:`handleWindowResize`,value:function(){(0,l.default)(!1),this.forceUpdate()}},{key:`handleHorizontalTrackMouseDown`,value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,i=this.getThumbHorizontalWidth(),a=Math.abs(r-n)-i/2;this.view.scrollLeft=this.getScrollLeftForOffset(a)}},{key:`handleVerticalTrackMouseDown`,value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,i=this.getThumbVerticalHeight(),a=Math.abs(r-n)-i/2;this.view.scrollTop=this.getScrollTopForOffset(a)}},{key:`handleHorizontalThumbMouseDown`,value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX;this.prevPageX=t.offsetWidth-(n-t.getBoundingClientRect().left)}},{key:`handleVerticalThumbMouseDown`,value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY;this.prevPageY=t.offsetHeight-(n-t.getBoundingClientRect().top)}},{key:`setupDragging`,value:function(){(0,a.default)(document.body,p.disableSelectStyle),document.addEventListener(`mousemove`,this.handleDrag),document.addEventListener(`mouseup`,this.handleDragEnd),document.onselectstart=u.default}},{key:`teardownDragging`,value:function(){(0,a.default)(document.body,p.disableSelectStyleReset),document.removeEventListener(`mousemove`,this.handleDrag),document.removeEventListener(`mouseup`,this.handleDragEnd),document.onselectstart=void 0}},{key:`handleDragStart`,value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:`handleDrag`,value:function(e){if(this.prevPageX){var t=e.clientX,n=this.trackHorizontal.getBoundingClientRect().left,r=this.getThumbHorizontalWidth()-this.prevPageX,i=-n+t-r;this.view.scrollLeft=this.getScrollLeftForOffset(i)}if(this.prevPageY){var a=e.clientY,o=this.trackVertical.getBoundingClientRect().top,s=this.getThumbVerticalHeight()-this.prevPageY,c=-o+a-s;this.view.scrollTop=this.getScrollTopForOffset(c)}return!1}},{key:`handleDragEnd`,value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:`handleDragEndAutoHide`,value:function(){this.props.autoHide&&this.hideTracks()}},{key:`handleTrackMouseEnter`,value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:`handleTrackMouseEnterAutoHide`,value:function(){this.props.autoHide&&this.showTracks()}},{key:`handleTrackMouseLeave`,value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:`handleTrackMouseLeaveAutoHide`,value:function(){this.props.autoHide&&this.hideTracks()}},{key:`showTracks`,value:function(){clearTimeout(this.hideTracksTimeout),(0,a.default)(this.trackHorizontal,{opacity:1}),(0,a.default)(this.trackVertical,{opacity:1})}},{key:`hideTracks`,value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,a.default)(e.trackHorizontal,{opacity:0}),(0,a.default)(e.trackVertical,{opacity:0})},t)}}},{key:`detectScrolling`,value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop},100))}},{key:`raf`,value:function(e){var t=this;this.requestFrame&&i.default.cancel(this.requestFrame),this.requestFrame=(0,i.default)(function(){t.requestFrame=void 0,e()})}},{key:`update`,value:function(e){var t=this;this.raf(function(){return t._update(e)})}},{key:`_update`,value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,i=this.getValues();if((0,l.default)()){var o=i.scrollLeft,s=i.clientWidth,c=i.scrollWidth,u=(0,d.default)(this.trackHorizontal),p=this.getThumbHorizontalWidth(),m={width:p,transform:`translateX(`+o/(c-s)*(u-p)+`px)`},h=i.scrollTop,g=i.clientHeight,_=i.scrollHeight,v=(0,f.default)(this.trackVertical),y=this.getThumbVerticalHeight(),b={height:y,transform:`translateY(`+h/(_-g)*(v-y)+`px)`};if(r){var x={visibility:c>s?`visible`:`hidden`},S={visibility:_>g?`visible`:`hidden`};(0,a.default)(this.trackHorizontal,x),(0,a.default)(this.trackVertical,S)}(0,a.default)(this.thumbHorizontal,m),(0,a.default)(this.thumbVertical,b)}n&&n(i),typeof e==`function`&&e(i)}},{key:`render`,value:function(){var e=this,n=(0,l.default)(),r=this.props;r.onScroll,r.onScrollFrame,r.onScrollStart,r.onScrollStop,r.onUpdate;var i=r.renderView,a=r.renderTrackHorizontal,s=r.renderTrackVertical,u=r.renderThumbHorizontal,d=r.renderThumbVertical,f=r.tagName;r.hideTracksWhenNotNeeded;var m=r.autoHide;r.autoHideTimeout;var h=r.autoHideDuration;r.thumbSize,r.thumbMinSize;var _=r.universal,v=r.autoHeight,y=r.autoHeightMin,b=r.autoHeightMax,x=r.style,S=r.children,C=g(r,[`onScroll`,`onScrollFrame`,`onScrollStart`,`onScrollStop`,`onUpdate`,`renderView`,`renderTrackHorizontal`,`renderTrackVertical`,`renderThumbHorizontal`,`renderThumbVertical`,`tagName`,`hideTracksWhenNotNeeded`,`autoHide`,`autoHideTimeout`,`autoHideDuration`,`thumbSize`,`thumbMinSize`,`universal`,`autoHeight`,`autoHeightMin`,`autoHeightMax`,`style`,`children`]),w=this.state.didMountUniversal,T=t({},p.containerStyleDefault,v&&t({},p.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),x),E=t({},p.viewStyleDefault,{marginRight:n?-n:0,marginBottom:n?-n:0},v&&t({},p.viewStyleAutoHeight,{minHeight:(0,c.default)(y)?`calc(`+y+` + `+n+`px)`:y+n,maxHeight:(0,c.default)(b)?`calc(`+b+` + `+n+`px)`:b+n}),v&&_&&!w&&{minHeight:y,maxHeight:b},_&&!w&&p.viewStyleUniversalInitial),D={transition:`opacity `+h+`ms`,opacity:0},O=t({},p.trackHorizontalStyleDefault,m&&D,(!n||_&&!w)&&{display:`none`}),k=t({},p.trackVerticalStyleDefault,m&&D,(!n||_&&!w)&&{display:`none`});return(0,o.createElement)(f,t({},C,{style:T,ref:function(t){e.container=t}}),[(0,o.cloneElement)(i({style:E}),{key:`view`,ref:function(t){e.view=t}},S),(0,o.cloneElement)(a({style:O}),{key:`trackHorizontal`,ref:function(t){e.trackHorizontal=t}},(0,o.cloneElement)(u({style:p.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,o.cloneElement)(s({style:k}),{key:`trackVertical`,ref:function(t){e.trackVertical=t}},(0,o.cloneElement)(d({style:p.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),s}(o.Component);e.default=b,b.propTypes={onScroll:s.default.func,onScrollFrame:s.default.func,onScrollStart:s.default.func,onScrollStop:s.default.func,onUpdate:s.default.func,renderView:s.default.func,renderTrackHorizontal:s.default.func,renderTrackVertical:s.default.func,renderThumbHorizontal:s.default.func,renderThumbVertical:s.default.func,tagName:s.default.string,thumbSize:s.default.number,thumbMinSize:s.default.number,hideTracksWhenNotNeeded:s.default.bool,autoHide:s.default.bool,autoHideTimeout:s.default.number,autoHideDuration:s.default.number,autoHeight:s.default.bool,autoHeightMin:s.default.oneOfType([s.default.number,s.default.string]),autoHeightMax:s.default.oneOfType([s.default.number,s.default.string]),universal:s.default.bool,style:s.default.object,children:s.default.node},b.defaultProps={renderView:m.renderViewDefault,renderTrackHorizontal:m.renderTrackHorizontalDefault,renderTrackVertical:m.renderTrackVerticalDefault,renderThumbHorizontal:m.renderThumbHorizontalDefault,renderThumbVertical:m.renderThumbVerticalDefault,tagName:`div`,thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}})),wT=T((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Scrollbars=void 0;var t=n(CT());function n(e){return e&&e.__esModule?e:{default:e}}e.default=t.default,e.Scrollbars=t.default})),TT=wT(),ET=_(sT());function DT(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.jsx)(`path`,{d:`m11.959 10.641 4.402-4.296a.964.964 0 0 1 1.358 0 .95.95 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.95.95 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .95.95 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.95.95 0 0 1 0-1.35.964.964 0 0 1 1.358 0z`,fill:`currentColor`})})}var OT={inputWithoutHighlight:`_inputWithoutHighlight_1gh2d_1`,suggestionsContainerOpen:`_suggestionsContainerOpen_1gh2d_5`,sectionContainer:`_sectionContainer_1gh2d_12`,suggestionHighlighted:`_suggestionHighlighted_1gh2d_15`,clearButton:`_clearButton_1gh2d_18`,inputWithLeftIcon:`_inputWithLeftIcon_1gh2d_21`,inputWithRightIcon:`_inputWithRightIcon_1gh2d_24`,inputWithTwoRightIcons:`_inputWithTwoRightIcons_1gh2d_27`,iconContainer:`_iconContainer_1gh2d_30`,leftIconContainer:`_leftIconContainer_1gh2d_35`,rightIconContainer:`_rightIconContainer_1gh2d_38`};function kT(e,t,n,r,i){let a=`form-control text-truncate`;return n||(a+=` ${OT.inputWithoutHighlight}`),e===`left`&&(a+=` ${OT.inputWithLeftIcon}`),(e===`right`&&!t||e===`left`&&t||t)&&(a+=` ${OT.inputWithRightIcon}`),e===`right`&&t&&(a+=` ${OT.inputWithTwoRightIcons}`),i===`lg`&&(a+=` form-control-lg`),i===`sm`&&(a+=` form-control-sm`),r&&(a+=` ${r}`),a}function AT(e){let t=`d-inline-block svg-container`;return We.isFunction(e)?t+` cursor-pointer`:t}function jT(e){let{onClickSearchIcon:t,searchIconPlacement:n,showClearInputIcon:r,onClickClearInput:i,highlightOnFocus:a,className:o,formSize:s,...c}=e,l=()=>(0,Z.jsx)(`div`,{className:`d-inline-block`,children:(0,Z.jsx)(He,{svg:dw,size:Ie.Standard,onClick:t,className:AT(t)})}),u=()=>(0,Z.jsx)(`button`,{className:`d-inline-block text-secondary ${OT.clearButton}`,onMouseUp:i,children:(0,Z.jsx)(He,{svg:DT,size:Ie.Standard,className:AT(i)})});return(0,Z.jsxs)(`div`,{className:`position-relative ${OT.inputContainer}`,children:[n===`left`&&(0,Z.jsx)(`div`,{className:`${OT.iconContainer} ${OT.leftIconContainer}`,children:(0,Z.jsx)(l,{})}),(0,Z.jsx)(`input`,{className:kT(n,r,a,o,s),...c}),(n===`right`||!!r)&&(0,Z.jsxs)(`div`,{className:`${OT.iconContainer} ${OT.rightIconContainer}`,children:[!!r&&(0,Z.jsx)(u,{}),n===`right`&&(0,Z.jsx)(l,{})]})]})}var MT=function(e){return e.XS=`(max-width: 575px)`,e.SM=`(min-width: 576px) and (max-width: 767px)`,e.MD=`(min-width: 768px) and (max-width: 991px)`,e.LG=`(min-width: 992px)`,e.XL=`(min-width: 1200px)`,e.XXL=`(min-width: 1440px)`,e.SMDown=`(max-width: 576px)`,e.MDDown=`(max-width: 768px)`,e.LGDown=`(max-width: 992px)`,e.XLDown=`(max-width: 1200px)`,e}({}),NT={isNumber(e){return NT.isType(e,`number`)},isString(e){return NT.isType(e,`string`)},isType(e,t){return typeof e===t}},PT=function(e){return e.Local=`local`,e.Recent=`recent`,e.Remote=`remote`,e.Generic=`generic`,e}({});function FT(e,t){return{[PT.Recent]:t,[PT.Local]:e,[PT.Remote]:[],[PT.Generic]:[]}}function IT(e,t){return et.isObject(e)&&e.hasOwnProperty(t)&&NT.isString(e[t])}function LT(e,t,n,r){let i=e.trim().toLowerCase();return i.length<r?[]:t.filter(e=>!IT(e,n)||!NT.isString(e[n])?!1:e[n].trim().toLowerCase().includes(i))}function RT(e,t,n,r,i,a){let o=We.isFunction(e)&&e(t);if(o){if(a){Pt({resource:o,type:Ft.POST,success:n,error:r,headers:i,data:a(t)});return}Pt({resource:o,type:Ft.GET,success:n,error:r,headers:i})}}function zT(e,t){e({...FT([],[]),[PT.Generic]:[{type:t,generic:!0}]})}function BT(e,t,n){let r=We.isFunction(t.formatRemoteSuggestions)?t.formatRemoteSuggestions(e):e;if(!r.length&&t.getEmptyStateComponent){zT(n,`empty`);return}n(e=>({...e,[PT.Remote]:r,[PT.Generic]:[]}))}function VT(e,t,n){return({value:r,reason:i})=>{if((e.allowableSuggestionFetchRequestedReasons?.includes(i)??!0)&&(r.length||n(),!(r.length<e.activationLength))){if(e.local){let n=We.isFunction(e.getLocalSuggestions)?e.getLocalSuggestions(r,e.local):LT(r,e.local,e.valueKey,e.activationLength);if(!n.length&&e.getEmptyStateComponent){zT(t,`empty`);return}t(e=>({...e,[PT.Local]:n,[PT.Generic]:[]}))}if(typeof e.handleFetchSuggestions==`function`){e.replacePreviousRemoteSuggestions?t(e=>({...FT([],[]),[PT.Remote]:e.remote})):zT(t,`loading`),e.handleFetchSuggestions(r,n=>BT(n,e,t),()=>zT(t,`errored`));return}e.getRemoteUrl&&(e.replacePreviousRemoteSuggestions?t(e=>({...FT([],[]),[PT.Remote]:e.remote})):zT(t,`loading`),RT(e.getRemoteUrl,r,n=>BT(n,e,t),()=>{zT(t,`errored`)},e.requestHeaders,e.getRemotePostBody))}}}function HT(e,t){return IT(t,e)?t[e]:``}function UT(e,t){return IT(t,e)?(0,Z.jsx)(Z.Fragment,{children:t[e]}):(0,Z.jsx)(Z.Fragment,{})}function WT(e){function t(e){e.stopPropagation()}return(0,Z.jsx)(`div`,{className:`d-flex justify-content-center cursor-default ${e??``}`,onClick:t,children:(0,Z.jsx)(Ln,{as:`span`,animation:`border`,role:`status`})})}function GT(e,t,n,r,i,a){let o=t=>{let n=e[t];return n?n.map(e=>({...e,suggestionType:t})):[]},s=o(PT.Recent),c=o(PT.Local),l=o(PT.Remote),u=o(PT.Generic);if(u.length)return[{data:u,suggestionType:PT.Generic}];if(We.isFunction(r))return r([...c,...l,...s]);let d=[];return c?.length&&d.push({title:t,data:qT(c,KT(PT.Local,i)),suggestionType:PT.Local}),l?.length&&d.push({title:t,data:qT(l,KT(PT.Remote,i)),suggestionType:PT.Remote}),s?.length&&d.push({title:n,data:qT(s,KT(PT.Recent,i)),suggestionType:PT.Recent}),typeof a==`function`?a(d):d}function KT(e,t){return typeof t==`number`||typeof t==`boolean`?t:t[e]||!1}function qT(e,t){return typeof t==`boolean`||e.length<=t?e:e.slice(0,t)}function JT(e){return e.data}function YT(e,t){if(e.title)return(0,Z.jsx)(`div`,{className:`pb-1 ${t??``}`,children:(0,Z.jsx)(`strong`,{children:e.title})})}function XT(e){return{container:`position-relative`,suggestionsContainerOpen:`bg-white py-1 border rounded ${OT.suggestionsContainerOpen}`,suggestionsList:`list-unstyled m-0`,suggestion:`${e?``:`cursor-pointer`} py-1 px-2`,suggestionHighlighted:e?``:OT.suggestionHighlighted,sectionContainer:`border-bottom py-1 ${OT.sectionContainer}`}}function ZT(e,t){let n=typeof e==`function`?e(t):e,r=XT(t);return Object.assign(r,n)}function QT(e,t,n,r,i,a){X.useEffect(()=>{!e||e.current||(e.current={resetQuery:t,setQuery:n,focusInput:r,blurInput:i,setInputProperty:a})},[e?.current])}function $T(e){let[t,n]=rr(`lite:search:bar:focus`,{focus:!1});return X.useEffect(()=>{!t.focus||!e?.current||(e.current.focus(),n({focus:!1}))},[t.focus]),{focusSearchBar:()=>n({focus:!0}),shouldFocus:t.focus}}var eE=`shared.searchBar`,tE=We.isFunction;function nE(e){return e.renderAsForm?(0,Z.jsx)(`form`,{onSubmit:e.onSubmit,children:e.children}):(0,Z.jsx)(`div`,{className:`w-100`,children:e.children})}rE.defaultProps={valueKey:`name`,activationLength:3,suggestionLimit:5,recentSearches:[],initialLocalSuggestions:[],searchIconPlacement:`right`,renderAsForm:!0,onSuggestionDependencies:[],shouldUpdateQueryOnSelection:!0,focusInputOnSuggestionClick:!0,resetQueryOnEscape:!0};function rE(e){let t=FT(e.initialLocalSuggestions,e.recentSearches),[n,r]=X.useState(e.initialQuery||``),[i,a]=X.useState(t),o=X.useMemo(()=>GT(i,e.suggestionsHeading,e.recentSearchHeading||Xe.getPhrase(eE,`recentSearchesHeading`),e.getSections,e.suggestionLimit,e.transformSections),[i]);X.useEffect(()=>{et.isEqual(t,i)||n&&n.length>=e?.activationLength||a(t)},[t]),X.useEffect(()=>{typeof e.onSuggestionUpdated==`function`&&e.onSuggestionUpdated(o)},[o]);let s=X.useRef(null),c=X.useRef(!1);$T(s);let[l,u]=X.useState(e.initialQuery||``),[d,f]=X.useState(`none`),p=nr(MT.XS);X.useEffect(()=>{!e.resetSuggestionsOnNoActivation||!n||n.length>=e.activationLength||m()},[n]),X.useEffect(()=>{n.length||a(FT(e.initialLocalSuggestions,e.recentSearches))},[e.initialLocalSuggestions,e.recentSearches]),X.useEffect(()=>{let t=e.initialQuery||``;n!==t&&(r(t),u(t))},[e.initialQuery]),X.useEffect(()=>{!s.current||!e.autoFocusInput||s.current.focus()},[e.autoFocusInput]);let m=()=>{a(FT(e.initialLocalSuggestions,e.recentSearches))},h=()=>{r(``),u(``)};QT(e.controlsRef,h,r,()=>{s.current?.focus()},()=>{s.current?.blur()},(e,t)=>{s.current&&s.current?.style?.setProperty?.(e,t)});let g=(t,{newValue:n,method:i})=>{i===`type`&&u(n),!(i===`escape`&&(f(`none`),!e?.resetQueryOnEscape))&&([`up`,`down`].includes(i)||(r(n),tE(e.onQueryChange)&&e.onQueryChange(n)))},_=()=>{f(`none`)},v=t=>{t.preventDefault(),tE(e.onSubmit)&&e.onSubmit(n,s.current),e.clearQueryOnSelect&&h()},y=t=>{if(t.key===`Backspace`&&e.onBackspace&&!n){e.onBackspace();return}if(t.key===`ArrowUp`||t.key===`ArrowDown`){c.current=!0;return}},b=()=>{h(),e.resetSuggestionsOnClear&&m(),tE(e.onClickClearInput)&&e.onClickClearInput()},x=({suggestion:t})=>{d===`none`&&!t||(c.current&&e.onArrowKeyUpOrDown&&(c.current=!1,e.onArrowKeyUpOrDown()),f(t?`suggestion`:`custom`))};function S(t){return tE(e.shouldUpdateQueryOnSelection)?e.shouldUpdateQueryOnSelection(t):e.shouldUpdateQueryOnSelection}let C=X.useMemo(()=>e.debounceTime?We.debounce(VT(e,a,m),e.debounceTime):VT(e,a,m),[e.debounceTime,...e.onSuggestionDependencies]);function w(t){return tE(e.renderSectionTitle)?e.renderSectionTitle(t,e.sectionTitleClassName):YT(t,e.sectionTitleClassName)}function T(){return tE(e.renderSuggestionsOnInputFocus)?e.renderSuggestionsOnInputFocus(n):e.renderSuggestionsOnInputFocus}function E(){e.onBlur&&e.onBlur(n)}function D(){e.onFocus&&e.onFocus(n)}function O(e){e!==null&&!s.current&&(s.current=e.input)}function k(){return typeof e.alwaysRenderSuggestions==`boolean`?e.alwaysRenderSuggestions:e.alwaysRenderSuggestionsWhenFocused&&n.length>=e.activationLength?document.activeElement===s.current:!1}return(0,Z.jsx)(nE,{onSubmit:v,renderAsForm:!!e.renderAsForm,children:(0,Z.jsx)(ET.default,{ref:O,suggestions:o,onSuggestionsFetchRequested:C,onSuggestionHighlighted:x,onSuggestionsClearRequested:()=>{k()||m()},onSuggestionSelected:(t,{suggestion:n})=>{n.generic||(e.clearQueryOnSelect&&h(),e.onSuggestionSelected(n,s.current,t))},getSuggestionValue:t=>S(t)?HT(e.valueKey,t):n,renderSuggestion:(t,r)=>{if(t.generic){if(t.type===`empty`)return n.length>=e.activationLength&&tE(e.getEmptyStateComponent)?e.getEmptyStateComponent(n):(0,Z.jsx)(Z.Fragment,{});if(t.type===`errored`&&tE(e.getErrorStateComponent)){let t=VT(e,a,m);return e.getErrorStateComponent(()=>t({value:n,reason:`input-changed`}))}if(t.type===`loading`)return WT(e.loadingComponentClassName)}return tE(e.getSuggestionComponent)?e.getSuggestionComponent(t,r):UT(e.valueKey,t)},renderSuggestionsContainer:t=>{let{ref:r,...a}=t.containerProps;if(!e.customScrollbarProps){let o={suggestions:i,query:n,isDropdownOpen:!!t.children};return(0,Z.jsxs)(`div`,{ref:r,...a,onMouseOut:_,children:[t.children,e.getCreateComponent&&e.getCreateComponent({userInput:l,isActive:d===`custom`,resetQuery:h,resetSuggestions:m,...o}),e.getFooterComponent&&e.getFooterComponent(o)]})}return(0,Z.jsx)(TT.Scrollbars,{ref:r,...e.customScrollbarProps,...a,children:t.children})},alwaysRenderSuggestions:k(),focusInputOnSuggestionClick:!p&&e.focusInputOnSuggestionClick,inputProps:{id:e.id,name:e.id,"aria-errormessage":`${e.id}Error`,"aria-label":e.label,placeholder:e.placeholder||Xe.getPhrase(eE,`placeholder`),value:n,onChange:g,onKeyDown:y,autoFocus:!!e.autoFocusInput,highlightOnFocus:e.highlightInputOnFocus,onClickSearchIcon:!!e.submitOnClickSearchIcon&&v,searchIconPlacement:e.searchIconPlacement,showClearInputIcon:typeof e.showClearInputIcon==`boolean`?e.showClearInputIcon:!!n.length,onClickClearInput:b,formSize:e.size,onBlur:E,onFocus:D,disabled:e.disabled},renderInputComponent:jT,theme:ZT(e.theme,!!i.generic.length),multiSection:!0,renderSectionTitle:w,getSectionSuggestions:JT,...e.renderSuggestionsOnInputFocus?{shouldRenderSuggestions:T}:{}})})}var iE=(e,t)=>{let[n,r]=X.useState(e);return X.useEffect(()=>{let n=setTimeout(()=>r(e),t);return()=>clearTimeout(n)},[e,t]),n};function aE(e,t=[]){function n(){e()}X.useEffect(()=>(window.addEventListener(`scroll`,n),()=>window.removeEventListener(`scroll`,n)),[...t])}function oE(e){let{query:t,indices:n,analyticsOptions:r,onLog:i,shouldLog:a=!0}=e,o=iE(t,5e3),[s,c]=X.useState({[t]:!1});function l(e,t){if(a){if(!e){c({"":!0});return}s[e]||(c({[e]:!0}),dt.logUserAction({query:e,indices:n},dt.mergeOptions(r,[{actionType:B.Search,workflowPhase:$e.Complete},t])),typeof i==`function`&&i())}}function u(e,t){let n=e.name;s[n]||(c({[n]:!0}),dt.logUserAction(e,dt.mergeOptions(r,[{actionType:B.Search,workflowPhase:$e.Complete},t])))}return X.useEffect(()=>l(o),[o]),aE(()=>l(t),[t,s]),{log:l,logTrendingTopic:u}}var sE={getAppLinks(){return{getVideoAppLink:dr.videoType,getPlaylistAppLink:()=>null,getSeriesAppLink:()=>null,getCompanyAppLink:dr.company,getClassificationAppLink:dr.classification,getCollectionActions:()=>[],getPreviewQuestionsAppLink:()=>null}},isSearchAppLink(e){return e.application===V.SEARCH&&e.action===Jt.Search.HOME},useReferrerAppLink(){let e={application:V.DASHBOARD,action:Jt.Dashboard.HOME},[t,n]=X.useState(e),r=qt.getCurrentRoute();return X.useEffect(()=>{sE.isSearchAppLink(r.appLink)||n(r.appLink)},[r.appLink.application,r.appLink.action]),t},triggerAppLink(e,t={},n){let r={};t=n?et.omit(t,[`query`]):{},e&&(r.query=rt.removeExtraSpace(e)),Object.keys(t).length&&(r={...r,...t}),R.trigger({application:V.SEARCH,action:Jt.Search.HOME,params:r},{replace:n})},getInitialQuery(){let e=qt.getCurrentRoute().appLink;return sE.isSearchAppLink(e)?e.params?.query??``:``},isValidSearch(e,t){if(e?.trim())return!0;if(!sE.isSearchAppLink(t))return!1;let n=t?.params?.tagOrClassification,r=t?.params?.rating,i=t?.params?.moviesAndTv;return Array.isArray(n)?!!n.length:!!n?.length||!!r?.length||!!i?.length},getQuery(e){return e.query?e.query:e.tagOrClassification?(Array.isArray(e.tagOrClassification)?e.tagOrClassification:[e.tagOrClassification]).join(` `):``},getFilters(e,t){if(!e.hasDataLoaded||!t.hasCompleted)return null;let{schoolLevels:n,availableTopics:r}=e;return{mainFilters:[jn.Topics(r.data?.topics.map(e=>({name:e.name,id:e.topicIds.join(`:`)}))),jn.Presentation(n.data?.schoolLevels),jn.TagOrClassification(t.data)].filter(Boolean)}},getAppliedIndices(e={}){let{type:t}=e;if(t){if(!Array.isArray(t))return[t];if(t.length)return t}return[`video`]},getBackendFilters(e){if(!e.hasDataLoaded)return null;let{queryParams:t,currentPresentationId:n,streamableLibraryId:r}=e,i=Mn.buildBackendFilterParams(t,null,[n],!1,[]);return r&&(i[`${An.FILTER_PARAM_PREFIX}library`]=[r]),{queryParams:t,backendFilters:i,appliedIndices:sE.getAppliedIndices(e.queryParams).filter(e=>e!==`classification`&&e!==`company`)}}},cE={container:`_container_nptlg_1`,searchBar:`_searchBar_nptlg_6`},lE=Xe.encloseNamespace(`search.streamableSearchBar`),uE=200;function dE(e){let t=X.useMemo(sE.getInitialQuery,[]),[n,r]=X.useState(t),[i,a]=X.useState(!1),[s,c]=rr(ar.SHOW_SEARCH_MASK,!1),l=iE(n,e.queryDebounceTime),u=qt.getCurrentRoute(),d=u.appLink,f=sE.isSearchAppLink(d),p=X.useRef(null),m=sE.useReferrerAppLink(),{log:h}=oE({query:n,indices:sE.getAppliedIndices(d.params),analyticsOptions:{actionType:B.Search,entity:ct.SearchResults,location:ut.SearchBar}});function g(){c(!0),window.setTimeout(()=>{c(!1),R.trigger(m,{replace:!0})},uE)}return X.useEffect(()=>{if(!(!f&&!n)){if(i){window.setTimeout(()=>a(!1),0);return}!f&&n&&!s&&c(!0)}},[n?.trim(),i]),X.useEffect(()=>{sE.isValidSearch(n,d)||!f||g()},[d.params?.tagOrClassification]),X.useEffect(()=>{let e={...d.params};l.trim()&&e?.tagOrClassification&&!u.pageLoad&&delete e.tagOrClassification;let t=sE.isValidSearch(n,d);if(!t&&f)return g();t&&(dt.logUserAction({query:n,indices:sE.getAppliedIndices(d.params)},{actionType:B.InstantSearch,entity:ct.SearchResults,location:ut.SearchBar,workflowPhase:$e.Complete}),sE.triggerAppLink(n,e,f))},[l]),mC(fx.default.channel(o.SHELL),z.URL_CHANGE,e=>{e||=qt.getCurrentRoute().appLink,n&&!sE.isSearchAppLink(e)&&(a(!0),r(``),p.current?.resetQuery?.()),sE.isSearchAppLink(e)&&e.params?.query!==!n&&r(e.params.query??``)},[n,r]),(0,Z.jsxs)(`form`,{className:`${cE.searchBar} form-control ps-1 pe-0 d-flex align-items-center border-0`,onSubmit:e=>e.preventDefault(),children:[(0,Z.jsx)(He,{svg:dw}),(0,Z.jsx)(`div`,{className:`w-100 d-flex align-items-center ps-1`,children:(0,Z.jsx)(rE,{renderAsForm:!1,onQueryChange:r,placeholder:lE(`placeholder`),onSuggestionSelected:null,searchIconPlacement:!1,initialQuery:t,autoFocusInput:e.autoFocus,theme:{container:cE.container,input:`p-0 border-0 h-100`},onBlur:e=>e&&h(e),controlsRef:p})}),e.showCloseButton&&(0,Z.jsx)(Bn,{svg:DT,onClick:e.onClickClose,className:`btn btn-link`})]})}var fE={nav:`_nav_qrvb9_1`,headerLeft:`_headerLeft_qrvb9_10`,searchBarContainer:`_searchBarContainer_qrvb9_13`,searchBarPadding:`_searchBarPadding_qrvb9_21`,searchBarWrapper:`_searchBarWrapper_qrvb9_30`,actionButtons:`_actionButtons_qrvb9_55`},pE=`streamableShared.header`,mE=300,hE=600,gE={application:V.DASHBOARD,action:Jt.Dashboard.HOME},_E={application:V.DEFAULT,action:Jt.Default.CONTACT_US_POPUP};function vE({showNav:e}){let[t,n]=X.useState(!1),r=Et(kx.config()),i=Et(Gt.currentUser()),{hasPermissions:a,isLoaded:o}=uw(),s=aw(),c=Yw({showNav:e}),l=s.sm||s.xs,u=(l||s.md)&&!t;X.useEffect(()=>{!s.sm&&!s.xs&&!s.md&&t&&n(!1)},[s,t]);let d=i.data?.isAuthenticated?mE:hE,f=R.getHref(R.getCurrentAppLink()),p=f===`/`?{}:{redirectUrl:f},m=e&&i.data?.isAuthenticated&&o&&!a(Rt.StudentExperience);function h(){return!(!e||i.data?.isAuthenticated||R.getCurrentAppLink().action===Jt.Default.CONTACT_US)}return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(qw,{}),(0,Z.jsx)(`nav`,{className:`navbar navbar-expanded ps-4 w-100 ${fE.nav}`,children:(0,Z.jsxs)(`div`,{className:`container-fluid`,children:[!t&&(0,Z.jsx)(`div`,{className:`d-flex align-items-center justify-content-start ${fE.headerLeft}`,children:(0,Z.jsx)(zn,{appLink:gE,className:`navbar-brand py-0`,analyticsData:{url:R.getHref(gE)},analyticsOptions:{actionType:B.Click,entity:ct.Url,location:ut.TopNav,descriptor:nt.ClickViewLogo},children:(0,Z.jsx)(Rw,{})})}),e&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{className:`ms-auto me-3 ${u?`d-flex`:`d-none`} align-items-center gap-3`,children:(0,Z.jsx)(Rn,{onClick:()=>n(!0),className:`text-white`,children:(0,Z.jsx)(He,{svg:dw,size:Ie.Large})})}),(0,Z.jsx)(`div`,{className:`${fE.searchBarContainer} ${t?`px-4`:``} ${u?`d-none`:`d-block`}`,children:(0,Z.jsx)(`div`,{className:`container ${fE.searchBarPadding} ${t?`px-0 mw-100`:``}`,children:i.data&&(0,Z.jsx)(`div`,{className:fE.searchBarWrapper,children:(0,Z.jsx)(dE,{recentSearchKey:`recent:search:${i.data?.id??`public`}`,queryDebounceTime:d,showCloseButton:t,onClickClose:()=>n(!1),autoFocus:t})})})})]}),!t&&(0,Z.jsxs)(`div`,{className:`d-flex align-items-center justify-content-end gap-3 me-4 ${fE.actionButtons}`,children:[m&&(0,Z.jsxs)(zn,{appLink:{application:V.DEFAULT,action:Jt.Default.GIVE_FEEDBACK},className:`btn ${l?`p-0 border-0 text-white`:`btn-outline-dark`}`,children:[l&&(0,Z.jsx)(He,{svg:fw,size:Ie.Large}),!l&&(0,Z.jsx)(Wn,{namespace:pE,phrase:`giveFeedback`})]}),h()&&(0,Z.jsx)(zn,{appLink:_E,className:`text-white`,children:(0,Z.jsx)(Wn,{namespace:pE,phrase:`contactUsLink`})}),!!r.data&&(0,Z.jsx)(Pw,{productId:Bt.StreamableLearning,additionalItems:c(),appLinks:{signOut:{application:V.DEFAULT,action:Jt.Default.LOG_OUT,params:p},signIn:{application:V.DEFAULT,action:Jt.Default.CHALLENGE,params:p}}})]})]})})]})}var yE=`default.error`,bE=33;function xE(){let[e]=X.useState(Ne.getRandomInt(bE)+1);return tn.ErrorViews.SMALL.replace(`{number}`,e.toString())}function SE({error:e}){Xn({title:e?.heading||Xe.getPhrase(yE,`defaultPageTitle`)});let t=xE();return e?(0,Z.jsxs)(fr,{children:[(0,Z.jsx)(fr.Image,{src:t}),(0,Z.jsx)(fr.Heading,{children:e.heading}),!!e.description&&(0,Z.jsx)(fr.Info,{injectHtml:e.injectDescriptionHtml,children:e.description}),e.cta!==!1&&(0,Z.jsx)(fr.Cta,{text:e.cta?.text??Xe.getPhrase(yE,`discoverVideos`),className:e.cta?.className?e.cta.className:`info-link ${e.description?`mt-n2`:``}`,appLink:e.cta?.appLink??{application:V.DASHBOARD,action:Jt.Dashboard.HOME}})]}):(0,Z.jsx)(Z.Fragment,{})}var CE={content:`_content_sjrnn_1`,container:`_container_sjrnn_6`,mask:`_mask_sjrnn_10`,fixedBottomRightContainer:`_fixedBottomRightContainer_sjrnn_13`},wE=`banner-portal-container`,TE=e=>(DC(),rw(),X.useEffect(()=>{document.body.style.overflowY=`scroll`},[]),(0,Z.jsx)(BC,{renderError:()=>SE({error:new mx}),children:(0,Z.jsxs)(`div`,{className:CE.lockedWidth,children:[(0,Z.jsx)(vE,{showNav:e.showNav}),(0,Z.jsx)(`main`,{className:CE.content,children:(0,Z.jsxs)(YC.ReferenceContainer,{children:[(0,Z.jsx)(`div`,{className:`container-fluid ${wE}`}),(0,Z.jsx)(`div`,{className:`container ${CE.container}`,children:(0,Z.jsx)(BC,{throwError:mx,children:e.contentChild})})]})}),(0,Z.jsx)(iw,{}),(0,Z.jsx)(BC,{throwError:nw,children:e.popupChild}),(0,Z.jsx)(`div`,{className:`d-flex flex-column align-items-end`,children:!!e.alertChild&&(0,Z.jsx)(`div`,{className:CE.fixedBottomRightContainer,children:e.alertChild})})]})}));function EE(e){return(0,Z.jsx)(wt,{store:e.store,children:(0,Z.jsx)(Yn,{children:(0,Z.jsx)(ew,{children:(0,Z.jsx)(HC,{children:(0,Z.jsx)(QC,{containerClassName:wE,children:(0,Z.jsx)(TE,{...e})})})})})})}var DE=class extends zC{constructor(e){super(e),this.childComponents={},this.preventScrollTop=!1}initialize(){this.listenTo(o.SHELL,`prevent:scroll:top`,()=>this.preventScrollTop=!0)}get title(){return!1}get name(){return`DefaultLayoutView`}get template(){return()=>`</div><div id="dialog-region"></div><div class="layout-region position-relative">`}static getCacheKey(){return`${Ex.DEFAULT_LAYOUT}`}regions(){return{layout:{el:`.layout-region`,replaceEl:!0}}}getChildComponents(){return{contentChild:this.childComponents[Tx.CONTENT],popupChild:this.childComponents[Tx.POPUP],alertChild:this.childComponents[Tx.ALERT],store:this.options.store,showNav:this.options.showNav}}unsetRegion(e){delete this.childComponents[e],this.renderLayout()}closePopup(){this.unsetRegion(Tx.POPUP)}showChildView(e,t,n={}){this.childComponents[e]=t,e===Tx.CONTENT&&(!this.preventScrollTop&&!n.preventScrollTop&&(0,dC.default)(window).scrollTop(0),this.preventScrollTop=!1),this.renderLayout()}renderLayout(){let e={...this.getChildComponents()};super.showChildView(`layout`,(0,Z.jsx)(EE,{...e}))}};function OE(e,t){e.registerLayout(Ex.DEFAULT_LAYOUT,DE),t(e)}function kE(e,t,n){M.setUpVariables({isDevelopment:!1}),n(e,t)}var AE=function(e){return e.Fifo=`FifoMemoryCache`,e}({}),jE=function(e){return e.Ajax=`AjaxDataProvider`,e.Notifications=`NotificationsSignalRDataProvider`,e}({}),ME=class extends A{get defaultProps(){return[`dataProvider`,`cache`,`bootstrapData`,`defaultErrorHandler`,`alertService`]}constructor(e){super(e),F(this,`name`)||O.throw(new f(`Must provide a name when extending BaseDataService`)),F(this,`channelName`)||O.throw(new f(`Must provide a channelName for ${F(this,`name`)}`));let t=[...this.defaultProps,...this.props||[]];this.dataRequestSignatures={},this.mergeOptions(e,t)}getCursors(e){let t=this.cache.get(e);return t?t.cursors:{next:``,previous:``}}clearCacheAndGet(e){let{callback:t,errorCallback:n,eventPrefix:r}=e,{syncEvent:i,errorEvent:a}=this.getEventNames(r),o=this.cache.get(r);if(o&&o.openRequest){this.listenToOnce(this.getChannel(),i,e=>{L(n)&&this.stopListening(this.getChannel(),a,n),L(t)&&t(e)}),this.listenToOnce(this.getChannel(),a,()=>{L(t)&&this.stopListening(this.getChannel(),i,t),L(n)&&n()});return}this.cache.remove(e.eventPrefix),this.get(e)}get(e){let{callback:t,errorCallback:n,eventPrefix:r,resource:i,formatData:a,expiryTime:o,successHandler:s,errorHandler:c,bootstrapName:l,invalidateFlight:u}=e,{syncEvent:d,requestEvent:f,successEvent:p,errorEvent:m}=this.getEventNames(r),h=this.getChannel(),g=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[l]&&(this.cacheData(r,this.bootstrapData[l],a,{openRequest:!1,timestamp:g}),delete this.bootstrapData[l]);let _=this.cache.get(r),v;_&&(v=_.data);let y=_&&_.openRequest,b=this.isExpired(r,o);if(y&&(this.listenToOnce(h,d,e=>{L(n)&&this.stopListening(this.getChannel(),m,n),L(t)&&t(e)}),this.listenToOnce(h,m,()=>{L(t)&&this.stopListening(this.getChannel(),d,t),L(n)&&n()})),(!this.cache.has(r)||b)&&(h.trigger(f),this.listenToResponse({eventPrefix:r,formatData:a,cacheOptions:{timestamp:g},callback:t,errorCallback:n,successHandler:s,errorHandler:c,invalidateFlight:u}),this.cacheData(r,null,null,{openRequest:!0,timestamp:g}),this.dataProvider.read(i,{channel:this.getTransportChannel(),successEvent:p,errorEvent:m})),v&&L(t)&&!b&&t(v),v)return v}create(e){let{eventPrefix:t,resource:n,data:r,formatData:i,callback:a,errorCallback:o,invalidationKeys:s,successHandler:c,errorHandler:l,invalidateFlight:u}=e,{requestEvent:d,successEvent:f,errorEvent:p}=this.getEventNames(e.eventPrefix),m=this.getChannel(),h=this.getTransportChannel();m.trigger(d),this.listenToResponse({eventPrefix:t,formatData:i,invalidationKeys:s,callback:a,errorCallback:o,successHandler:c,errorHandler:l,invalidateFlight:u}),this.dataProvider.create(n,r,{channel:h,successEvent:f,errorEvent:p})}update(e){let{data:t,callback:n,errorCallback:r,resource:i,formatData:a,eventPrefix:o,invalidationKeys:s,errorHandler:c,successHandler:l,invalidateFlight:u}=e,{requestEvent:d,successEvent:f,errorEvent:p}=this.getEventNames(e.eventPrefix),m=this.getChannel(),h=this.getTransportChannel();m.trigger(d),this.listenToResponse({eventPrefix:o,formatData:a,invalidationKeys:s,callback:n,errorCallback:r,successHandler:l,errorHandler:c,invalidateFlight:u}),this.dataProvider.update(i,t,{channel:h,successEvent:f,errorEvent:p})}delete(e){let{eventPrefix:t,resource:n,callback:r,errorCallback:i,invalidationKeys:a,successHandler:o,errorHandler:s,invalidateFlight:c}=e,{successEvent:l,errorEvent:u}=this.getEventNames(t),d=this.getTransportChannel();this.listenToResponse({eventPrefix:t,invalidationKeys:a,callback:r,errorCallback:i,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:o,errorHandler:s,invalidateFlight:c}),this.dataProvider.delete(n,{channel:d,successEvent:l,errorEvent:u})}listenToResponse(e){let{eventPrefix:t,formatData:n,callback:r,errorCallback:i,successHandler:a,errorHandler:o,invalidationKeys:s,cacheOptions:c={},invalidateFlight:l}=e,{syncEvent:u,successEvent:d,errorEvent:f,successAlertEvent:p,errorAlertEvent:m}=this.getEventNames(t),h=this.getChannel(),g=this.getTransportChannel(),_=this.getAlertChannel();L(r)&&this.listenToOnce(h,u,r),L(i)&&this.listenToOnce(h,f,i),this.stopListening(_,p),this.stopListening(_,m),L(a)&&this.listenToOnce(_,p,a),L(o)&&this.listenToOnce(_,m,o),!L(o)&&o!==!1&&L(this.defaultErrorHandler)&&this.listenToOnce(_,m,this.defaultErrorHandler),!this.hasRequestSignature(t)&&(this.setRequestSignature(t),this.listenTo(g,d,(e,...r)=>{this.stopListening(h,f,i),_.trigger(p,e,...r);let a=c.noCache?this.formatData(e,n):this.cacheData(t,e,n);c.clearCacheKey&&this.cache.remove(t),h.trigger(u,a),s&&s.length&&this.cache.invalidate(s,e=>h.trigger(`${e}:invalidate`),l)}),this.listenTo(g,f,(...e)=>{this.stopListening(h,u,r);let n=this.dataProvider.parseError(...e);_.trigger(m,n),h.trigger(f,n),!c.noCache&&this.cacheData(t,null,null)}))}cacheData(e,t,n,r={}){let{openRequest:i=!1}=r,{timestamp:a}=r;a||=this.currentTimestamp();let o=this.processPagination(t),s=this.formatData(t,n);return this.cache.set(e,{data:s,timestamp:a,cursors:o,openRequest:i}),s}processPagination(e){if(!e)return;let{pagination:t}=e;if(t){if(t.cursors)return t.cursors;if(!g(t.offset)&&!g(t.pageSize))return this.convertOffsetPaginationToCursors(t);if(t.page)return this.convertLegacyPaginationToCursors(t)}}formatData(e,t){return L(t)?t(e):e}chain(){let e=[],t=(e,t)=>{L(e)&&e(t)},n=(n,i)=>(e.push(()=>{let r=n.callback;n.callback=n=>{t(r,n),t(e.shift())},this[i](n)}),r),r={func(t){return e.push(()=>{t(e.shift()||(()=>{}))}),r},get(e){return n(e,`get`)},create(e){return n(e,`create`)},update(e){return n(e,`update`)},delete(e){return n(e,`delete`)},run(){t(e.shift())}};return r}invalidateCache(e,t=!1){!e||!e.length||this.cache.invalidate(e,e=>this.getChannel().trigger(`${e}:invalidate`),t)}currentTimestamp(){return new Date().valueOf()}isExpired(e,t){if(!t)return!1;let n=this.cache.get(e);if(!n||!n.timestamp)return!0;let r=n.timestamp,i=t*1e3;return r<this.currentTimestamp()-i}getEventNames(e){return{syncEvent:`${e}:sync`,requestEvent:`${e}:request`,successEvent:`${e}:success`,errorEvent:`${e}:error`,successAlertEvent:`${e}:success:alert`,errorAlertEvent:`${e}:error:alert`}}getTransportChannel(){return fx.default.channel(`${this.channelName}:transport`)}getAlertChannel(){return fx.default.channel(`${this.channelName}:alert`)}setRequestSignature(e){this.dataRequestSignatures[e]=e}hasRequestSignature(e){return!!this.dataRequestSignatures[e]}convertOffsetPaginationToCursors(e){let{offset:t,pageSize:n,totalItems:r}=e,i=r>0&&t<r&&t+n,a=r>0&&t>0&&Math.max(t-n,0),o={};if(i&&i<r&&(o.next=i.toString()),m(a)&&(o.previous=a.toString()),!N(o))return o}convertLegacyPaginationToCursors(e){let{page:t,totalPages:n}=e,r=m(t)&&t>0&&t<n&&t+1,i=m(t)&&t>1&&t-1,a={};if(r&&r<=n&&(a.next=r.toString()),i&&(a.previous=i.toString()),!N(a))return a}};r();var NE=class extends A{constructor(){super(),this.viewObjects={}}static get Instance(){return this.instance||=new this}get name(){return`ViewModelService`}updateViewModel(e,t){let n=this.mergeData(t,e.toJSON());return e instanceof b&&e.set(n,{silent:!0}),e instanceof u&&!(e instanceof b)&&e.set(n,{silent:!0}),e}get(e,t={},n={}){let{update:r=!1}=n,i=this.viewObjects[e];if(i&&r)return this.updateViewModel(i,t);if(i)return i;let a=this.getLocalData(e,n);return this.set(e,t,a,n)}set(e,t={},n,r){let{ctor:i,storage:a}=r,o=this.mergeData(t,n),s=i?new i(o):new u(o);return this.viewObjects[e]=s,a&&!n?(this.setLocalData(e,s,null,r),this.setupChangeListeners(e,s,r)):a&&n&&this.setupChangeListeners(e,s,r),s}clear(e){let t=this.viewObjects[e];return t?(this.stopListening(t),t.trigger(`destroy`),delete this.viewObjects[e],!0):!1}getLocalData(e,t){let{storage:n}=t;if(n)return this.getStorageHelper(n.type).get(e)}setLocalData(e,t,n,r){let{storage:i}=r;if(!i||i&&!i.persistProps)return;typeof i.persistProps==`string`&&(i.persistProps=[i.persistProps]);let a;t instanceof u&&(a=t.pick(i.persistProps)),this.getStorageHelper(i.type).set(e,a)}setupChangeListeners(e,t,r){let{storage:i}=r;!i||i&&!i.persistProps||(typeof i.persistProps==`string`&&(i.persistProps=[i.persistProps]),n.each(i.persistProps,i=>{this.listenTo(t,`change:${i}`,n.partial(this.setLocalData,e,n,n,r))}))}mergeData(e,t){if(!t)return e;if(n.isObject(e)&&n.isObject(t))return n.extend(e,t);O.throw(new f(`defaultValues and existingData are not of the same datatype and cannot be merged`))}getStorageHelper(e){switch(e){case Zt.LocalStorage:return en;case Zt.SessionStorage:return $t}}}.Instance,PE=function(e){return e[e.Permanent=0]=`Permanent`,e[e.Temporary=1]=`Temporary`,e}({}),FE=class extends gS{constructor(e){super(e)}get name(){return`FileTypeError`}get lang(){return`upload.fileType`}get dialogOptions(){return{title:Xe.getPhrase(this.lang,`heading`),text:Xe.getPhrase(this.lang,`body`),buttons:[{text:Xe.getPhrase(this.lang,`okay`),className:`btn btn-dark`,success:!0},{text:Xe.getPhrase(this.lang,`close`),className:`btn btn-link`,close:!0}]}}};r();var IE=[`pdf`],LE=[`doc`,`docx`,`dotx`,`dot`,`rtf`,`docm`,`odt`],RE=[`csv`,`txt`],zE=[`xlsx`],BE=[`jpg`,`jpeg`,`png`,`bmp`,`gif`,`webp`],VE=[`3gp`,`3gpp`,`asx`,`avi`,`divx`,`flv`,`m2t`,`m2ts`,`m2v`,`m4v`,`mkv`,`mod`,`mov`,`mp4`,`mpe`,`mpeg`,`mpg`,`mts`,`ogv`,`qt`,`ts`,`vob`,`webm`,`wmv`],HE=[`zip`],UE=[`ppt`,`pps`,`pptx`],WE=[`srt`],GE={IMAGES:`.${BE.join(`,.`)}`,VIDEO:`.${VE.join(`,.`)}`,MIXED_MEDIA:`.${BE.join(`,.`)},${VE.join(`,.`)}`,RESOURCES:`.${[...LE,...zE,...UE,...IE,...RE,...BE,...HE].join(`,.`)}`,SUBTITLES:`.${WE.join(`,.`)}`},KE={requestUpload(e,t){let n=e.name.split(`.`),r=t===PE.Permanent?null:bt.add(new Date,7,`days`).toISOString(),i={name:n.join(`.`),extension:n.length>1?n.pop():``,size:e.size,lifestyle:t,dateExpires:r,contentType:e.type||`application/octet-stream`,chunkUploadEnabled:!0};return{url:`{gateway}/v1/files/upload`,key:`upload:file`,type:Ft.POST,data:i}}},qE=T(((e,t)=>{(function(n,r){if(typeof e==`object`&&typeof t==`object`)t.exports=r();else if(typeof define==`function`&&define.amd)define([],r);else{var i=r();for(var a in i)(typeof e==`object`?e:n)[a]=i[a]}})(self,function(){return(function(){var e={3099:(function(e){e.exports=function(e){if(typeof e!=`function`)throw TypeError(String(e)+` is not a function`);return e}}),6077:(function(e,t,n){var r=n(111);e.exports=function(e){if(!r(e)&&e!==null)throw TypeError(`Can't set `+String(e)+` as a prototype`);return e}}),1223:(function(e,t,n){var r=n(5112),i=n(30),a=n(3070),o=r(`unscopables`),s=Array.prototype;s[o]??a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}}),1530:(function(e,t,n){var r=n(8710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}}),5787:(function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError(`Incorrect `+(n?n+` `:``)+`invocation`);return e}}),9670:(function(e,t,n){var r=n(111);e.exports=function(e){if(!r(e))throw TypeError(String(e)+` is not an object`);return e}}),4019:(function(e){e.exports=typeof ArrayBuffer<`u`&&typeof DataView<`u`}),260:(function(e,t,n){var r=n(4019),i=n(9781),a=n(7854),o=n(111),s=n(6656),c=n(648),l=n(8880),u=n(1320),d=n(3070).f,f=n(9518),p=n(7674),m=n(5112),h=n(9711),g=a.Int8Array,_=g&&g.prototype,v=a.Uint8ClampedArray,y=v&&v.prototype,b=g&&f(g),x=_&&f(_),S=Object.prototype,C=S.isPrototypeOf,w=m(`toStringTag`),T=h(`TYPED_ARRAY_TAG`),E=r&&!!p&&c(a.opera)!==`Opera`,D=!1,O,k={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},A={BigInt64Array:8,BigUint64Array:8},j=function(e){if(!o(e))return!1;var t=c(e);return t===`DataView`||s(k,t)||s(A,t)},M=function(e){if(!o(e))return!1;var t=c(e);return s(k,t)||s(A,t)},N=function(e){if(M(e))return e;throw TypeError(`Target is not a typed array`)},P=function(e){if(p){if(C.call(b,e))return e}else for(var t in k)if(s(k,O)){var n=a[t];if(n&&(e===n||C.call(n,e)))return e}throw TypeError(`Target is not a typed array constructor`)},F=function(e,t,n){if(i){if(n)for(var r in k){var o=a[r];o&&s(o.prototype,e)&&delete o.prototype[e]}(!x[e]||n)&&u(x,e,n?t:E&&_[e]||t)}},I=function(e,t,n){var r,o;if(i){if(p){if(n)for(r in k)o=a[r],o&&s(o,e)&&delete o[e];if(!b[e]||n)try{return u(b,e,n?t:E&&g[e]||t)}catch{}else return}for(r in k)o=a[r],o&&(!o[e]||n)&&u(o,e,t)}};for(O in k)a[O]||(E=!1);if((!E||typeof b!=`function`||b===Function.prototype)&&(b=function(){throw TypeError(`Incorrect invocation`)},E))for(O in k)a[O]&&p(a[O],b);if((!E||!x||x===S)&&(x=b.prototype,E))for(O in k)a[O]&&p(a[O].prototype,x);if(E&&f(y)!==x&&p(y,x),i&&!s(x,w))for(O in D=!0,d(x,w,{get:function(){return o(this)?this[T]:void 0}}),k)a[O]&&l(a[O],T,O);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:E,TYPED_ARRAY_TAG:D&&T,aTypedArray:N,aTypedArrayConstructor:P,exportTypedArrayMethod:F,exportTypedArrayStaticMethod:I,isView:j,isTypedArray:M,TypedArray:b,TypedArrayPrototype:x}}),3331:(function(e,t,n){var r=n(7854),i=n(9781),a=n(4019),o=n(8880),s=n(2248),c=n(7293),l=n(5787),u=n(9958),d=n(7466),f=n(7067),p=n(1179),m=n(9518),h=n(7674),g=n(8006).f,_=n(3070).f,v=n(1285),y=n(8003),b=n(9909),x=b.get,S=b.set,C=`ArrayBuffer`,w=`DataView`,T=`prototype`,E=`Wrong length`,D=`Wrong index`,O=r[C],k=O,A=r[w],j=A&&A[T],M=Object.prototype,N=r.RangeError,P=p.pack,F=p.unpack,I=function(e){return[e&255]},L=function(e){return[e&255,e>>8&255]},R=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},ee=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},z=function(e){return P(e,23,4)},te=function(e){return P(e,52,8)},ne=function(e,t){_(e[T],t,{get:function(){return x(this)[t]}})},re=function(e,t,n,r){var i=f(n),a=x(e);if(i+t>a.byteLength)throw N(D);var o=x(a.buffer).bytes,s=i+a.byteOffset,c=o.slice(s,s+t);return r?c:c.reverse()},ie=function(e,t,n,r,i,a){var o=f(n),s=x(e);if(o+t>s.byteLength)throw N(D);for(var c=x(s.buffer).bytes,l=o+s.byteOffset,u=r(+i),d=0;d<t;d++)c[l+d]=u[a?d:t-d-1]};if(!a)k=function(e){l(this,k,C);var t=f(e);S(this,{bytes:v.call(Array(t),0),byteLength:t}),i||(this.byteLength=t)},A=function(e,t,n){l(this,A,w),l(e,k,w);var r=x(e).byteLength,a=u(t);if(a<0||a>r)throw N(`Wrong offset`);if(n=n===void 0?r-a:d(n),a+n>r)throw N(E);S(this,{buffer:e,byteLength:n,byteOffset:a}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},i&&(ne(k,`byteLength`),ne(A,`buffer`),ne(A,`byteLength`),ne(A,`byteOffset`)),s(A[T],{getInt8:function(e){return re(this,1,e)[0]<<24>>24},getUint8:function(e){return re(this,1,e)[0]},getInt16:function(e){var t=re(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=re(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return ee(re(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return ee(re(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return F(re(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return F(re(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){ie(this,1,e,I,t)},setUint8:function(e,t){ie(this,1,e,I,t)},setInt16:function(e,t){ie(this,2,e,L,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){ie(this,2,e,L,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){ie(this,4,e,R,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){ie(this,4,e,R,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){ie(this,4,e,z,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){ie(this,8,e,te,t,arguments.length>2?arguments[2]:void 0)}});else{if(!c(function(){O(1)})||!c(function(){new O(-1)})||c(function(){return new O,new O(1.5),new O(NaN),O.name!=C})){k=function(e){return l(this,k),new O(f(e))};for(var ae=k[T]=O[T],oe=g(O),se=0,ce;oe.length>se;)(ce=oe[se++])in k||o(k,ce,O[ce]);ae.constructor=k}h&&m(j)!==M&&h(j,M);var le=new A(new k(2)),ue=j.setInt8;le.setInt8(0,2147483648),le.setInt8(1,2147483649),(le.getInt8(0)||!le.getInt8(1))&&s(j,{setInt8:function(e,t){ue.call(this,e,t<<24>>24)},setUint8:function(e,t){ue.call(this,e,t<<24>>24)}},{unsafe:!0})}y(k,C),y(A,w),e.exports={ArrayBuffer:k,DataView:A}}),1048:(function(e,t,n){var r=n(7908),i=n(1400),a=n(7466),o=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=a(n.length),c=i(e,s),l=i(t,s),u=arguments.length>2?arguments[2]:void 0,d=o((u===void 0?s:i(u,s))-l,s-c),f=1;for(l<c&&c<l+d&&(f=-1,l+=d-1,c+=d-1);d-- >0;)l in n?n[c]=n[l]:delete n[c],c+=f,l+=f;return n}}),1285:(function(e,t,n){var r=n(7908),i=n(1400),a=n(7466);e.exports=function(e){for(var t=r(this),n=a(t.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),c=o>2?arguments[2]:void 0,l=c===void 0?n:i(c,n);l>s;)t[s++]=e;return t}}),8533:(function(e,t,n){var r=n(2092).forEach;e.exports=n(9341)(`forEach`)?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),8457:(function(e,t,n){var r=n(9974),i=n(7908),a=n(3411),o=n(7659),s=n(7466),c=n(6135),l=n(1246);e.exports=function(e){var t=i(e),n=typeof this==`function`?this:Array,u=arguments.length,d=u>1?arguments[1]:void 0,f=d!==void 0,p=l(t),m=0,h,g,_,v,y,b;if(f&&(d=r(d,u>2?arguments[2]:void 0,2)),p!=null&&!(n==Array&&o(p)))for(v=p.call(t),y=v.next,g=new n;!(_=y.call(v)).done;m++)b=f?a(v,d,[_.value,m],!0):_.value,c(g,m,b);else for(h=s(t.length),g=new n(h);h>m;m++)b=f?d(t[m],m):t[m],c(g,m,b);return g.length=m,g}}),1318:(function(e,t,n){var r=n(5656),i=n(7466),a=n(1400),o=function(e){return function(t,n,o){var s=r(t),c=i(s.length),l=a(o,c),u;if(e&&n!=n){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}}),2092:(function(e,t,n){var r=n(9974),i=n(8361),a=n(7908),o=n(7466),s=n(5417),c=[].push,l=function(e){var t=e==1,n=e==2,l=e==3,u=e==4,d=e==6,f=e==7,p=e==5||d;return function(m,h,g,_){for(var v=a(m),y=i(v),b=r(h,g,3),x=o(y.length),S=0,C=_||s,w=t?C(m,x):n||f?C(m,0):void 0,T,E;x>S;S++)if((p||S in y)&&(T=y[S],E=b(T,S,v),e))if(t)w[S]=E;else if(E)switch(e){case 3:return!0;case 5:return T;case 6:return S;case 2:c.call(w,T)}else switch(e){case 4:return!1;case 7:c.call(w,T)}return d?-1:l||u?u:w}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterOut:l(7)}}),6583:(function(e,t,n){var r=n(5656),i=n(9958),a=n(7466),o=n(9341),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,u=o(`lastIndexOf`);e.exports=l||!u?function(e){if(l)return c.apply(this,arguments)||0;var t=r(this),n=a(t.length),o=n-1;for(arguments.length>1&&(o=s(o,i(arguments[1]))),o<0&&(o=n+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:c}),1194:(function(e,t,n){var r=n(7293),i=n(5112),a=n(7392),o=i(`species`);e.exports=function(e){return a>=51||!r(function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},t[e](Boolean).foo!==1})}}),9341:(function(e,t,n){var r=n(7293);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}}),3671:(function(e,t,n){var r=n(3099),i=n(7908),a=n(8361),o=n(7466),s=function(e){return function(t,n,s,c){r(n);var l=i(t),u=a(l),d=o(l.length),f=e?d-1:0,p=e?-1:1;if(s<2)for(;;){if(f in u){c=u[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError(`Reduce of empty array with no initial value`)}for(;e?f>=0:d>f;f+=p)f in u&&(c=n(c,u[f],f,l));return c}};e.exports={left:s(!1),right:s(!0)}}),5417:(function(e,t,n){var r=n(111),i=n(3157),a=n(5112)(`species`);e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,typeof n==`function`&&(n===Array||i(n.prototype))?n=void 0:r(n)&&(n=n[a],n===null&&(n=void 0))),new(n===void 0?Array:n)(t===0?0:t)}}),3411:(function(e,t,n){var r=n(9670),i=n(9212);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){throw i(e),t}}}),7072:(function(e,t,n){var r=n(5112)(`iterator`),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,function(){throw 2})}catch{}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch{}return n}}),4326:(function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}}),648:(function(e,t,n){var r=n(1694),i=n(4326),a=n(5112)(`toStringTag`),o=i(function(){return arguments}())==`Arguments`,s=function(e,t){try{return e[t]}catch{}};e.exports=r?i:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=s(t=Object(e),a))==`string`?n:o?i(t):(r=i(t))==`Object`&&typeof t.callee==`function`?`Arguments`:r}}),9920:(function(e,t,n){var r=n(6656),i=n(3887),a=n(1236),o=n(3070);e.exports=function(e,t){for(var n=i(t),s=o.f,c=a.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||s(e,u,c(t,u))}}}),8544:(function(e,t,n){e.exports=!n(7293)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}),4994:(function(e,t,n){var r=n(3383).IteratorPrototype,i=n(30),a=n(9114),o=n(8003),s=n(7497),c=function(){return this};e.exports=function(e,t,n){var l=t+` Iterator`;return e.prototype=i(r,{next:a(1,n)}),o(e,l,!1,!0),s[l]=c,e}}),8880:(function(e,t,n){var r=n(9781),i=n(3070),a=n(9114);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}}),9114:(function(e){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}}),6135:(function(e,t,n){var r=n(7593),i=n(3070),a=n(9114);e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}}),654:(function(e,t,n){var r=n(2109),i=n(4994),a=n(9518),o=n(7674),s=n(8003),c=n(8880),l=n(1320),u=n(5112),d=n(1913),f=n(7497),p=n(3383),m=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,g=u(`iterator`),_=`keys`,v=`values`,y=`entries`,b=function(){return this};e.exports=function(e,t,n,u,p,x,S){i(n,t,u);var C=function(e){if(e===p&&O)return O;if(!h&&e in E)return E[e];switch(e){case _:return function(){return new n(this,e)};case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+` Iterator`,T=!1,E=e.prototype,D=E[g]||E[`@@iterator`]||p&&E[p],O=!h&&D||C(p),k=t==`Array`&&E.entries||D,A,j,M;if(k&&(A=a(k.call(new e)),m!==Object.prototype&&A.next&&(!d&&a(A)!==m&&(o?o(A,m):typeof A[g]!=`function`&&c(A,g,b)),s(A,w,!0,!0),d&&(f[w]=b))),p==v&&D&&D.name!==v&&(T=!0,O=function(){return D.call(this)}),(!d||S)&&E[g]!==O&&c(E,g,O),f[t]=O,p)if(j={values:C(v),keys:x?O:C(_),entries:C(y)},S)for(M in j)(h||T||!(M in E))&&l(E,M,j[M]);else r({target:t,proto:!0,forced:h||T},j);return j}}),9781:(function(e,t,n){e.exports=!n(7293)(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),317:(function(e,t,n){var r=n(7854),i=n(111),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}}),8324:(function(e){e.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(e,t,n){e.exports=n(5005)(`navigator`,`userAgent`)||``}),7392:(function(e,t,n){var r=n(7854),i=n(8113),a=r.process,o=a&&a.versions,s=o&&o.v8,c,l;s?(c=s.split(`.`),l=c[0]+c[1]):i&&(c=i.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=i.match(/Chrome\/(\d+)/),c&&(l=c[1]))),e.exports=l&&+l}),748:(function(e){e.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]}),2109:(function(e,t,n){var r=n(7854),i=n(1236).f,a=n(8880),o=n(1320),s=n(3505),c=n(9920),l=n(4705);e.exports=function(e,t){var n=e.target,u=e.global,d=e.stat,f,p=u?r:d?r[n]||s(n,{}):(r[n]||{}).prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.noTargetGet?(_=i(p,m),h=_&&_.value):h=p[m],f=l(u?m:n+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;c(g,h)}(e.sham||h&&h.sham)&&a(g,`sham`,!0),o(p,m,g,e)}}}),7293:(function(e){e.exports=function(e){try{return!!e()}catch{return!0}}}),7007:(function(e,t,n){n(4916);var r=n(1320),i=n(7293),a=n(5112),o=n(2261),s=n(8880),c=a(`species`),l=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}),u=(function(){return`a`.replace(/./,`$0`)===`$0`})(),d=a(`replace`),f=(function(){return/./[d]?/./[d](`a`,`$0`)===``:!1})(),p=!i(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`});e.exports=function(e,t,n,d){var m=a(e),h=!i(function(){var t={};return t[m]=function(){return 7},``[e](t)!=7}),g=h&&!i(function(){var t=!1,n=/a/;return e===`split`&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags=``,n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](``),!t});if(!h||!g||e===`replace`&&!(l&&u&&!f)||e===`split`&&!p){var _=/./[m],v=n(m,``[e],function(e,t,n,r,i){return t.exec===o?h&&!i?{done:!0,value:_.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),y=v[0],b=v[1];r(String.prototype,e,y),r(RegExp.prototype,m,t==2?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}d&&s(RegExp.prototype[m],`sham`,!0)}}),9974:(function(e,t,n){var r=n(3099);e.exports=function(e,t,n){if(r(e),t===void 0)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}}),5005:(function(e,t,n){var r=n(857),i=n(7854),a=function(e){return typeof e==`function`?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}}),1246:(function(e,t,n){var r=n(648),i=n(7497),a=n(5112)(`iterator`);e.exports=function(e){if(e!=null)return e[a]||e[`@@iterator`]||i[r(e)]}}),8554:(function(e,t,n){var r=n(9670),i=n(1246);e.exports=function(e){var t=i(e);if(typeof t!=`function`)throw TypeError(String(e)+` is not iterable`);return r(t.call(e))}}),647:(function(e,t,n){var r=n(7908),i=Math.floor,a=``.replace,o=/\$([$&'`]|\d\d?|<[^>]*>)/g,s=/\$([$&'`]|\d\d?)/g;e.exports=function(e,t,n,c,l,u){var d=n+e.length,f=c.length,p=s;return l!==void 0&&(l=r(l),p=o),a.call(u,p,function(r,a){var o;switch(a.charAt(0)){case`$`:return`$`;case`&`:return e;case"`":return t.slice(0,n);case`'`:return t.slice(d);case`<`:o=l[a.slice(1,-1)];break;default:var s=+a;if(s===0)return r;if(s>f){var u=i(s/10);return u===0?r:u<=f?c[u-1]===void 0?a.charAt(1):c[u-1]+a.charAt(1):r}o=c[s-1]}return o===void 0?``:o})}}),7854:(function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r(typeof globalThis==`object`&&globalThis)||r(typeof window==`object`&&window)||r(typeof self==`object`&&self)||r(typeof n.g==`object`&&n.g)||(function(){return this})()||Function(`return this`)()}),6656:(function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}}),3501:(function(e){e.exports={}}),490:(function(e,t,n){e.exports=n(5005)(`document`,`documentElement`)}),4664:(function(e,t,n){var r=n(9781),i=n(7293),a=n(317);e.exports=!r&&!i(function(){return Object.defineProperty(a(`div`),`a`,{get:function(){return 7}}).a!=7})}),1179:(function(e){var t=Math.abs,n=Math.pow,r=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,o,s){var c=Array(s),l=s*8-o-1,u=(1<<l)-1,d=u>>1,f=o===23?n(2,-24)-n(2,-77):0,p=e<0||e===0&&1/e<0?1:0,m=0,h,g,_;for(e=t(e),e!=e||e===1/0?(g=e==e?0:1,h=u):(h=r(i(e)/a),e*(_=n(2,-h))<1&&(h--,_*=2),h+d>=1?e+=f/_:e+=f*n(2,1-d),e*_>=2&&(h++,_/=2),h+d>=u?(g=0,h=u):h+d>=1?(g=(e*_-1)*n(2,o),h+=d):(g=e*n(2,d-1)*n(2,o),h=0));o>=8;c[m++]=g&255,g/=256,o-=8);for(h=h<<o|g,l+=o;l>0;c[m++]=h&255,h/=256,l-=8);return c[--m]|=p*128,c},unpack:function(e,t){var r=e.length,i=r*8-t-1,a=(1<<i)-1,o=a>>1,s=i-7,c=r-1,l=e[c--],u=l&127,d;for(l>>=7;s>0;u=u*256+e[c],c--,s-=8);for(d=u&(1<<-s)-1,u>>=-s,s+=t;s>0;d=d*256+e[c],c--,s-=8);if(u===0)u=1-o;else if(u===a)return d?NaN:l?-1/0:1/0;else d+=n(2,t),u-=o;return(l?-1:1)*d*n(2,u-t)}}}),8361:(function(e,t,n){var r=n(7293),i=n(4326),a=``.split;e.exports=r(function(){return!Object(`z`).propertyIsEnumerable(0)})?function(e){return i(e)==`String`?a.call(e,``):Object(e)}:Object}),9587:(function(e,t,n){var r=n(111),i=n(7674);e.exports=function(e,t,n){var a,o;return i&&typeof(a=t.constructor)==`function`&&a!==n&&r(o=a.prototype)&&o!==n.prototype&&i(e,o),e}}),2788:(function(e,t,n){var r=n(5465),i=Function.toString;typeof r.inspectSource!=`function`&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource}),9909:(function(e,t,n){var r=n(8536),i=n(7854),a=n(111),o=n(8880),s=n(6656),c=n(5465),l=n(6200),u=n(3501),d=i.WeakMap,f,p,m,h=function(e){return m(e)?p(e):f(e,{})},g=function(e){return function(t){var n;if(!a(t)||(n=p(t)).type!==e)throw TypeError(`Incompatible receiver, `+e+` required`);return n}};if(r){var _=c.state||=new d,v=_.get,y=_.has,b=_.set;f=function(e,t){return t.facade=e,b.call(_,e,t),t},p=function(e){return v.call(_,e)||{}},m=function(e){return y.call(_,e)}}else{var x=l(`state`);u[x]=!0,f=function(e,t){return t.facade=e,o(e,x,t),t},p=function(e){return s(e,x)?e[x]:{}},m=function(e){return s(e,x)}}e.exports={set:f,get:p,has:m,enforce:h,getterFor:g}}),7659:(function(e,t,n){var r=n(5112),i=n(7497),a=r(`iterator`),o=Array.prototype;e.exports=function(e){return e!==void 0&&(i.Array===e||o[a]===e)}}),3157:(function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return r(e)==`Array`}}),4705:(function(e,t,n){var r=n(7293),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==l?!0:n==c?!1:typeof t==`function`?r(t):!!t},o=a.normalize=function(e){return String(e).replace(i,`.`).toLowerCase()},s=a.data={},c=a.NATIVE=`N`,l=a.POLYFILL=`P`;e.exports=a}),111:(function(e){e.exports=function(e){return typeof e==`object`?e!==null:typeof e==`function`}}),1913:(function(e){e.exports=!1}),7850:(function(e,t,n){var r=n(111),i=n(4326),a=n(5112)(`match`);e.exports=function(e){var t;return r(e)&&((t=e[a])===void 0?i(e)==`RegExp`:!!t)}}),9212:(function(e,t,n){var r=n(9670);e.exports=function(e){var t=e.return;if(t!==void 0)return r(t.call(e)).value}}),3383:(function(e,t,n){var r=n(7293),i=n(9518),a=n(8880),o=n(6656),s=n(5112),c=n(1913),l=s(`iterator`),u=!1,d=function(){return this},f,p,m;[].keys&&(m=[].keys(),`next`in m?(p=i(i(m)),p!==Object.prototype&&(f=p)):u=!0);var h=f==null||r(function(){var e={};return f[l].call(e)!==e});h&&(f={}),(!c||h)&&!o(f,l)&&a(f,l,d),e.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:u}}),7497:(function(e){e.exports={}}),133:(function(e,t,n){var r=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})}),590:(function(e,t,n){var r=n(7293),i=n(5112),a=n(1913),o=i(`iterator`);e.exports=!r(function(){var e=new URL(`b?a=1&b=2&c=3`,`http://a`),t=e.searchParams,n=``;return e.pathname=`c%20d`,t.forEach(function(e,r){t.delete(`b`),n+=r+e}),a&&!e.toJSON||!t.sort||e.href!==`http://a/c%20d?a=1&c=3`||t.get(`c`)!==`3`||String(new URLSearchParams(`?a=1`))!==`a=1`||!t[o]||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`||n!==`a1c3`||new URL(`http://x`,void 0).host!==`x`})}),8536:(function(e,t,n){var r=n(7854),i=n(2788),a=r.WeakMap;e.exports=typeof a==`function`&&/native code/.test(i(a))}),1574:(function(e,t,n){var r=n(9781),i=n(7293),a=n(1956),o=n(5181),s=n(5296),c=n(7908),l=n(8361),u=Object.assign,d=Object.defineProperty;e.exports=!u||i(function(){if(r&&u({b:1},u(d({},`a`,{enumerable:!0,get:function(){d(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),i=`abcdefghijklmnopqrst`;return e[n]=7,i.split(``).forEach(function(e){t[e]=e}),u({},e)[n]!=7||a(u({},t)).join(``)!=i})?function(e,t){for(var n=c(e),i=arguments.length,u=1,d=o.f,f=s.f;i>u;)for(var p=l(arguments[u++]),m=d?a(p).concat(d(p)):a(p),h=m.length,g=0,_;h>g;)_=m[g++],(!r||f.call(p,_))&&(n[_]=p[_]);return n}:u}),30:(function(e,t,n){var r=n(9670),i=n(6048),a=n(748),o=n(3501),s=n(490),c=n(317),l=n(6200),u=`>`,d=`<`,f=`prototype`,p=`script`,m=l(`IE_PROTO`),h=function(){},g=function(e){return d+p+u+e+d+`/`+p+u},_=function(e){e.write(g(``)),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e=c(`iframe`),t=`java`+p+`:`,n;return e.style.display=`none`,s.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(g(`document.F=Object`)),n.close(),n.F},y,b=function(){try{y=document.domain&&new ActiveXObject(`htmlfile`)}catch{}b=y?_(y):v();for(var e=a.length;e--;)delete b[f][a[e]];return b()};o[m]=!0,e.exports=Object.create||function(e,t){var n;return e===null?n=b():(h[f]=r(e),n=new h,h[f]=null,n[m]=e),t===void 0?n:i(n,t)}}),6048:(function(e,t,n){var r=n(9781),i=n(3070),a=n(9670),o=n(1956);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n=o(t),r=n.length,s=0,c;r>s;)i.f(e,c=n[s++],t[c]);return e}}),3070:(function(e,t,n){var r=n(9781),i=n(4664),a=n(9670),o=n(7593),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch{}if(`get`in n||`set`in n)throw TypeError(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}}),1236:(function(e,t,n){var r=n(9781),i=n(5296),a=n(9114),o=n(5656),s=n(7593),c=n(6656),l=n(4664),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=s(t,!0),l)try{return u(e,t)}catch{}if(c(e,t))return a(!i.f.call(e,t),e[t])}}),8006:(function(e,t,n){var r=n(6324),i=n(748).concat(`length`,`prototype`);t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}}),5181:(function(e,t){t.f=Object.getOwnPropertySymbols}),9518:(function(e,t,n){var r=n(6656),i=n(7908),a=n(6200),o=n(8544),s=a(`IE_PROTO`),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:typeof e.constructor==`function`&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}}),6324:(function(e,t,n){var r=n(6656),i=n(5656),a=n(1318).indexOf,o=n(3501);e.exports=function(e,t){var n=i(e),s=0,c=[],l;for(l in n)!r(o,l)&&r(n,l)&&c.push(l);for(;t.length>s;)r(n,l=t[s++])&&(~a(c,l)||c.push(l));return c}}),1956:(function(e,t,n){var r=n(6324),i=n(748);e.exports=Object.keys||function(e){return r(e,i)}}),5296:(function(e,t){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor;t.f=r&&!n.call({1:2},1)?function(e){var t=r(this,e);return!!t&&t.enumerable}:n}),7674:(function(e,t,n){var r=n(9670),i=n(6077);e.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},n;try{n=Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set,n.call(t,[]),e=t instanceof Array}catch{}return function(t,a){return r(t),i(a),e?n.call(t,a):t.__proto__=a,t}}():void 0)}),288:(function(e,t,n){var r=n(1694),i=n(648);e.exports=r?{}.toString:function(){return`[object `+i(this)+`]`}}),3887:(function(e,t,n){var r=n(5005),i=n(8006),a=n(5181),o=n(9670);e.exports=r(`Reflect`,`ownKeys`)||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}}),857:(function(e,t,n){e.exports=n(7854)}),2248:(function(e,t,n){var r=n(1320);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}}),1320:(function(e,t,n){var r=n(7854),i=n(8880),a=n(6656),o=n(3505),s=n(2788),c=n(9909),l=c.get,u=c.enforce,d=String(String).split(`String`);(e.exports=function(e,t,n,s){var c=s?!!s.unsafe:!1,l=s?!!s.enumerable:!1,f=s?!!s.noTargetGet:!1,p;if(typeof n==`function`&&(typeof t==`string`&&!a(n,`name`)&&i(n,`name`,t),p=u(n),p.source||=d.join(typeof t==`string`?t:``)),e===r){l?e[t]=n:o(t,n);return}else c?!f&&e[t]&&(l=!0):delete e[t];l?e[t]=n:i(e,t,n)})(Function.prototype,`toString`,function(){return typeof this==`function`&&l(this).source||s(this)})}),7651:(function(e,t,n){var r=n(4326),i=n(2261);e.exports=function(e,t){var n=e.exec;if(typeof n==`function`){var a=n.call(e,t);if(typeof a!=`object`)throw TypeError(`RegExp exec method returned something other than an Object or null`);return a}if(r(e)!==`RegExp`)throw TypeError(`RegExp#exec called on incompatible receiver`);return i.call(e,t)}}),2261:(function(e,t,n){var r=n(7066),i=n(2999),a=RegExp.prototype.exec,o=String.prototype.replace,s=a,c=(function(){var e=/a/,t=/b*/g;return a.call(e,`a`),a.call(t,`a`),e.lastIndex!==0||t.lastIndex!==0})(),l=i.UNSUPPORTED_Y||i.BROKEN_CARET,u=/()??/.exec(``)[1]!==void 0;(c||u||l)&&(s=function(e){var t=this,n,i,s,d,f=l&&t.sticky,p=r.call(t),m=t.source,h=0,g=e;return f&&(p=p.replace(`y`,``),p.indexOf(`g`)===-1&&(p+=`g`),g=String(e).slice(t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&e[t.lastIndex-1]!==`
|
|
8
8
|
`)&&(m=`(?: `+m+`)`,g=` `+g,h++),i=RegExp(`^(?:`+m+`)`,p)),u&&(i=RegExp(`^`+m+`$(?!\\s)`,p)),c&&(n=t.lastIndex),s=a.call(f?i:t,g),f?s?(s.input=s.input.slice(h),s[0]=s[0].slice(h),s.index=t.lastIndex,t.lastIndex+=s[0].length):t.lastIndex=0:c&&s&&(t.lastIndex=t.global?s.index+s[0].length:n),u&&s&&s.length>1&&o.call(s[0],i,function(){for(d=1;d<arguments.length-2;d++)arguments[d]===void 0&&(s[d]=void 0)}),s}),e.exports=s}),7066:(function(e,t,n){var r=n(9670);e.exports=function(){var e=r(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t}}),2999:(function(e,t,n){var r=n(7293);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r(function(){var e=i(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null}),t.BROKEN_CARET=r(function(){var e=i(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})}),4488:(function(e){e.exports=function(e){if(e==null)throw TypeError(`Can't call method on `+e);return e}}),3505:(function(e,t,n){var r=n(7854),i=n(8880);e.exports=function(e,t){try{i(r,e,t)}catch{r[e]=t}return t}}),6340:(function(e,t,n){var r=n(5005),i=n(3070),a=n(5112),o=n(9781),s=a(`species`);e.exports=function(e){var t=r(e),n=i.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}}),8003:(function(e,t,n){var r=n(3070).f,i=n(6656),a=n(5112)(`toStringTag`);e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}}),6200:(function(e,t,n){var r=n(2309),i=n(9711),a=r(`keys`);e.exports=function(e){return a[e]||(a[e]=i(e))}}),5465:(function(e,t,n){var r=n(7854),i=n(3505),a=`__core-js_shared__`;e.exports=r[a]||i(a,{})}),2309:(function(e,t,n){var r=n(1913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.9.0`,mode:r?`pure`:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})}),6707:(function(e,t,n){var r=n(9670),i=n(3099),a=n(5112)(`species`);e.exports=function(e,t){var n=r(e).constructor,o;return n===void 0||(o=r(n)[a])==null?t:i(o)}}),8710:(function(e,t,n){var r=n(9958),i=n(4488),a=function(e){return function(t,n){var a=String(i(t)),o=r(n),s=a.length,c,l;return o<0||o>=s?e?``:void 0:(c=a.charCodeAt(o),c<55296||c>56319||o+1===s||(l=a.charCodeAt(o+1))<56320||l>57343?e?a.charAt(o):c:e?a.slice(o,o+2):(c-55296<<10)+(l-56320)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}}),3197:(function(e){var t=2147483647,n=36,r=1,i=26,a=38,o=700,s=72,c=128,l=`-`,u=/[^\0-\u007E]/,d=/[.\u3002\uFF0E\uFF61]/g,f=`Overflow: input needs wider integers to process`,p=n-r,m=Math.floor,h=String.fromCharCode,g=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t},_=function(e){return e+22+75*(e<26)},v=function(e,t,r){var s=0;for(e=r?m(e/o):e>>1,e+=m(e/t);e>p*i>>1;s+=n)e=m(e/p);return m(s+(p+1)*e/(e+a))},y=function(e){var a=[];e=g(e);var o=e.length,u=c,d=0,p=s,y,b;for(y=0;y<e.length;y++)b=e[y],b<128&&a.push(h(b));var x=a.length,S=x;for(x&&a.push(l);S<o;){var C=t;for(y=0;y<e.length;y++)b=e[y],b>=u&&b<C&&(C=b);var w=S+1;if(C-u>m((t-d)/w))throw RangeError(f);for(d+=(C-u)*w,u=C,y=0;y<e.length;y++){if(b=e[y],b<u&&++d>t)throw RangeError(f);if(b==u){for(var T=d,E=n;;E+=n){var D=E<=p?r:E>=p+i?i:E-p;if(T<D)break;var O=T-D,k=n-D;a.push(h(_(D+O%k))),T=m(O/k)}a.push(h(_(T))),p=v(d,w,S==x),d=0,++S}}++d,++u}return a.join(``)};e.exports=function(e){var t=[],n=e.toLowerCase().replace(d,`.`).split(`.`),r,i;for(r=0;r<n.length;r++)i=n[r],t.push(u.test(i)?`xn--`+y(i):i);return t.join(`.`)}}),6091:(function(e,t,n){var r=n(7293),i=n(1361),a=`
`;e.exports=function(e){return r(function(){return!!i[e]()||a[e]()!=a||i[e].name!==e})}}),3111:(function(e,t,n){var r=n(4488),i=`[`+n(1361)+`]`,a=RegExp(`^`+i+i+`*`),o=RegExp(i+i+`*$`),s=function(e){return function(t){var n=String(r(t));return e&1&&(n=n.replace(a,``)),e&2&&(n=n.replace(o,``)),n}};e.exports={start:s(1),end:s(2),trim:s(3)}}),1400:(function(e,t,n){var r=n(9958),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}}),7067:(function(e,t,n){var r=n(9958),i=n(7466);e.exports=function(e){if(e===void 0)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError(`Wrong length or index`);return n}}),5656:(function(e,t,n){var r=n(8361),i=n(4488);e.exports=function(e){return r(i(e))}}),9958:(function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}}),7466:(function(e,t,n){var r=n(9958),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}}),7908:(function(e,t,n){var r=n(4488);e.exports=function(e){return Object(r(e))}}),4590:(function(e,t,n){var r=n(3002);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError(`Wrong offset`);return n}}),3002:(function(e,t,n){var r=n(9958);e.exports=function(e){var t=r(e);if(t<0)throw RangeError(`The argument can't be less than 0`);return t}}),7593:(function(e,t,n){var r=n(111);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e))||typeof(n=e.valueOf)==`function`&&!r(i=n.call(e))||!t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e)))return i;throw TypeError(`Can't convert object to primitive value`)}}),1694:(function(e,t,n){var r=n(5112)(`toStringTag`),i={};i[r]=`z`,e.exports=String(i)===`[object z]`}),9843:(function(e,t,n){var r=n(2109),i=n(7854),a=n(9781),o=n(3832),s=n(260),c=n(3331),l=n(5787),u=n(9114),d=n(8880),f=n(7466),p=n(7067),m=n(4590),h=n(7593),g=n(6656),_=n(648),v=n(111),y=n(30),b=n(7674),x=n(8006).f,S=n(7321),C=n(2092).forEach,w=n(6340),T=n(3070),E=n(1236),D=n(9909),O=n(9587),k=D.get,A=D.set,j=T.f,M=E.f,N=Math.round,P=i.RangeError,F=c.ArrayBuffer,I=c.DataView,L=s.NATIVE_ARRAY_BUFFER_VIEWS,R=s.TYPED_ARRAY_TAG,ee=s.TypedArray,z=s.TypedArrayPrototype,te=s.aTypedArrayConstructor,ne=s.isTypedArray,re=`BYTES_PER_ELEMENT`,ie=`Wrong length`,ae=function(e,t){for(var n=0,r=t.length,i=new(te(e))(r);r>n;)i[n]=t[n++];return i},oe=function(e,t){j(e,t,{get:function(){return k(this)[t]}})},se=function(e){var t;return e instanceof F||(t=_(e))==`ArrayBuffer`||t==`SharedArrayBuffer`},ce=function(e,t){return ne(e)&&typeof t!=`symbol`&&t in e&&String(+t)==String(t)},le=function(e,t){return ce(e,t=h(t,!0))?u(2,e[t]):M(e,t)},ue=function(e,t,n){return ce(e,t=h(t,!0))&&v(n)&&g(n,`value`)&&!g(n,`get`)&&!g(n,`set`)&&!n.configurable&&(!g(n,`writable`)||n.writable)&&(!g(n,`enumerable`)||n.enumerable)?(e[t]=n.value,e):j(e,t,n)};a?(L||(E.f=le,T.f=ue,oe(z,`buffer`),oe(z,`byteOffset`),oe(z,`byteLength`),oe(z,`length`)),r({target:`Object`,stat:!0,forced:!L},{getOwnPropertyDescriptor:le,defineProperty:ue}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,s=e+(n?`Clamped`:``)+`Array`,c=`get`+e,u=`set`+e,h=i[s],g=h,_=g&&g.prototype,T={},E=function(e,t){var n=k(e);return n.view[c](t*a+n.byteOffset,!0)},D=function(e,t,r){var i=k(e);n&&(r=(r=N(r))<0?0:r>255?255:r&255),i.view[u](t*a+i.byteOffset,r,!0)},M=function(e,t){j(e,t,{get:function(){return E(this,t)},set:function(e){return D(this,t,e)},enumerable:!0})};L?o&&(g=t(function(e,t,n,r){return l(e,g,s),O(function(){return v(t)?se(t)?r===void 0?n===void 0?new h(t):new h(t,m(n,a)):new h(t,m(n,a),r):ne(t)?ae(g,t):S.call(g,t):new h(p(t))}(),e,g)}),b&&b(g,ee),C(x(h),function(e){e in g||d(g,e,h[e])}),g.prototype=_):(g=t(function(e,t,n,r){l(e,g,s);var i=0,o=0,c,u,d;if(!v(t))d=p(t),u=d*a,c=new F(u);else if(se(t)){c=t,o=m(n,a);var h=t.byteLength;if(r===void 0){if(h%a||(u=h-o,u<0))throw P(ie)}else if(u=f(r)*a,u+o>h)throw P(ie);d=u/a}else if(ne(t))return ae(g,t);else return S.call(g,t);for(A(e,{buffer:c,byteOffset:o,byteLength:u,length:d,view:new I(c)});i<d;)M(e,i++)}),b&&b(g,ee),_=g.prototype=y(z)),_.constructor!==g&&d(_,`constructor`,g),R&&d(_,R,s),T[s]=g,r({global:!0,forced:g!=h,sham:!L},T),re in g||d(g,re,a),re in _||d(_,re,a),w(s)}):e.exports=function(){}}),3832:(function(e,t,n){var r=n(7854),i=n(7293),a=n(7072),o=n(260).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,c=r.Int8Array;e.exports=!o||!i(function(){c(1)})||!i(function(){new c(-1)})||!a(function(e){new c,new c(null),new c(1.5),new c(e)},!0)||i(function(){return new c(new s(2),1,void 0).length!==1})}),3074:(function(e,t,n){var r=n(260).aTypedArrayConstructor,i=n(6707);e.exports=function(e,t){for(var n=i(e,e.constructor),a=0,o=t.length,s=new(r(n))(o);o>a;)s[a]=t[a++];return s}}),7321:(function(e,t,n){var r=n(7908),i=n(7466),a=n(1246),o=n(7659),s=n(9974),c=n(260).aTypedArrayConstructor;e.exports=function(e){var t=r(e),n=arguments.length,l=n>1?arguments[1]:void 0,u=l!==void 0,d=a(t),f,p,m,h,g,_;if(d!=null&&!o(d))for(g=d.call(t),_=g.next,t=[];!(h=_.call(g)).done;)t.push(h.value);for(u&&n>2&&(l=s(l,arguments[2],2)),p=i(t.length),m=new(c(this))(p),f=0;p>f;f++)m[f]=u?l(t[f],f):t[f];return m}}),9711:(function(e){var t=0,n=Math.random();e.exports=function(e){return`Symbol(`+String(e===void 0?``:e)+`)_`+(++t+n).toString(36)}}),3307:(function(e,t,n){e.exports=n(133)&&!Symbol.sham&&typeof Symbol.iterator==`symbol`}),5112:(function(e,t,n){var r=n(7854),i=n(2309),a=n(6656),o=n(9711),s=n(133),c=n(3307),l=i(`wks`),u=r.Symbol,d=c?u:u&&u.withoutSetter||o;e.exports=function(e){return a(l,e)||(s&&a(u,e)?l[e]=u[e]:l[e]=d(`Symbol.`+e)),l[e]}}),1361:(function(e){e.exports=`
|
|
9
9
|
\v\f\r \xA0 \u2028\u2029`}),8264:(function(e,t,n){var r=n(2109),i=n(7854),a=n(3331),o=n(6340),s=`ArrayBuffer`,c=a[s],l=i[s];r({global:!0,forced:l!==c},{ArrayBuffer:c}),o(s)}),2222:(function(e,t,n){var r=n(2109),i=n(7293),a=n(3157),o=n(111),s=n(7908),c=n(7466),l=n(6135),u=n(5417),d=n(1194),f=n(5112),p=n(7392),m=f(`isConcatSpreadable`),h=9007199254740991,g=`Maximum allowed index exceeded`,_=p>=51||!i(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),v=d(`concat`),y=function(e){if(!o(e))return!1;var t=e[m];return t===void 0?a(e):!!t};r({target:`Array`,proto:!0,forced:!_||!v},{concat:function(e){var t=s(this),n=u(t,0),r=0,i,a,o,d,f;for(i=-1,o=arguments.length;i<o;i++)if(f=i===-1?t:arguments[i],y(f)){if(d=c(f.length),r+d>h)throw TypeError(g);for(a=0;a<d;a++,r++)a in f&&l(n,r,f[a])}else{if(r>=h)throw TypeError(g);l(n,r++,f)}return n.length=r,n}})}),7327:(function(e,t,n){var r=n(2109),i=n(2092).filter;r({target:`Array`,proto:!0,forced:!n(1194)(`filter`)},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})}),2772:(function(e,t,n){var r=n(2109),i=n(1318).indexOf,a=n(9341),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0,c=a(`indexOf`);r({target:`Array`,proto:!0,forced:s||!c},{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})}),6992:(function(e,t,n){var r=n(5656),i=n(1223),a=n(7497),o=n(9909),s=n(654),c=`Array Iterator`,l=o.set,u=o.getterFor(c);e.exports=s(Array,`Array`,function(e,t){l(this,{type:c,target:r(e),index:0,kind:t})},function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},`values`),a.Arguments=a.Array,i(`keys`),i(`values`),i(`entries`)}),1249:(function(e,t,n){var r=n(2109),i=n(2092).map;r({target:`Array`,proto:!0,forced:!n(1194)(`map`)},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})}),7042:(function(e,t,n){var r=n(2109),i=n(111),a=n(3157),o=n(1400),s=n(7466),c=n(5656),l=n(6135),u=n(5112),d=n(1194)(`slice`),f=u(`species`),p=[].slice,m=Math.max;r({target:`Array`,proto:!0,forced:!d},{slice:function(e,t){var n=c(this),r=s(n.length),u=o(e,r),d=o(t===void 0?r:t,r),h,g,_;if(a(n)&&(h=n.constructor,typeof h==`function`&&(h===Array||a(h.prototype))?h=void 0:i(h)&&(h=h[f],h===null&&(h=void 0)),h===Array||h===void 0))return p.call(n,u,d);for(g=new(h===void 0?Array:h)(m(d-u,0)),_=0;u<d;u++,_++)u in n&&l(g,_,n[u]);return g.length=_,g}})}),561:(function(e,t,n){var r=n(2109),i=n(1400),a=n(9958),o=n(7466),s=n(7908),c=n(5417),l=n(6135),u=n(1194)(`splice`),d=Math.max,f=Math.min,p=9007199254740991,m=`Maximum allowed length exceeded`;r({target:`Array`,proto:!0,forced:!u},{splice:function(e,t){var n=s(this),r=o(n.length),u=i(e,r),h=arguments.length,g,_,v,y,b,x;if(h===0?g=_=0:h===1?(g=0,_=r-u):(g=h-2,_=f(d(a(t),0),r-u)),r+g-_>p)throw TypeError(m);for(v=c(n,_),y=0;y<_;y++)b=u+y,b in n&&l(v,y,n[b]);if(v.length=_,g<_){for(y=u;y<r-_;y++)b=y+_,x=y+g,b in n?n[x]=n[b]:delete n[x];for(y=r;y>r-_+g;y--)delete n[y-1]}else if(g>_)for(y=r-_;y>u;y--)b=y+_-1,x=y+g-1,b in n?n[x]=n[b]:delete n[x];for(y=0;y<g;y++)n[y+u]=arguments[y+2];return n.length=r-_+g,v}})}),8309:(function(e,t,n){var r=n(9781),i=n(3070).f,a=Function.prototype,o=a.toString,s=/^\s*function ([^ (]*)/,c=`name`;r&&!(c in a)&&i(a,c,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch{return``}}})}),489:(function(e,t,n){var r=n(2109),i=n(7293),a=n(7908),o=n(9518),s=n(8544);r({target:`Object`,stat:!0,forced:i(function(){o(1)}),sham:!s},{getPrototypeOf:function(e){return o(a(e))}})}),1539:(function(e,t,n){var r=n(1694),i=n(1320),a=n(288);r||i(Object.prototype,`toString`,a,{unsafe:!0})}),4916:(function(e,t,n){var r=n(2109),i=n(2261);r({target:`RegExp`,proto:!0,forced:/./.exec!==i},{exec:i})}),9714:(function(e,t,n){var r=n(1320),i=n(9670),a=n(7293),o=n(7066),s=`toString`,c=RegExp.prototype,l=c[s],u=a(function(){return l.call({source:`a`,flags:`b`})!=`/a/b`}),d=l.name!=s;(u||d)&&r(RegExp.prototype,s,function(){var e=i(this),t=String(e.source),n=e.flags,r=String(n===void 0&&e instanceof RegExp&&!(`flags`in c)?o.call(e):n);return`/`+t+`/`+r},{unsafe:!0})}),8783:(function(e,t,n){var r=n(8710).charAt,i=n(9909),a=n(654),o=`String Iterator`,s=i.set,c=i.getterFor(o);a(String,`String`,function(e){s(this,{type:o,string:String(e),index:0})},function(){var e=c(this),t=e.string,n=e.index,i;return n>=t.length?{value:void 0,done:!0}:(i=r(t,n),e.index+=i.length,{value:i,done:!1})})}),4723:(function(e,t,n){var r=n(7007),i=n(9670),a=n(7466),o=n(4488),s=n(1530),c=n(7651);r(`match`,1,function(e,t,n){return[function(t){var n=o(this),r=t?.[e];return r===void 0?new RegExp(t)[e](String(n)):r.call(t,n)},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=i(e),l=String(this);if(!o.global)return c(o,l);var u=o.unicode;o.lastIndex=0;for(var d=[],f=0,p;(p=c(o,l))!==null;){var m=String(p[0]);d[f]=m,m===``&&(o.lastIndex=s(l,a(o.lastIndex),u)),f++}return f===0?null:d}]})}),5306:(function(e,t,n){var r=n(7007),i=n(9670),a=n(7466),o=n(9958),s=n(4488),c=n(1530),l=n(647),u=n(7651),d=Math.max,f=Math.min,p=function(e){return e===void 0?e:String(e)};r(`replace`,2,function(e,t,n,r){var m=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,h=r.REPLACE_KEEPS_$0,g=m?`$`:`$0`;return[function(n,r){var i=s(this),a=n?.[e];return a===void 0?t.call(String(i),n,r):a.call(n,i,r)},function(e,r){if(!m&&h||typeof r==`string`&&r.indexOf(g)===-1){var s=n(t,e,this,r);if(s.done)return s.value}var _=i(e),v=String(this),y=typeof r==`function`;y||(r=String(r));var b=_.global;if(b){var x=_.unicode;_.lastIndex=0}for(var S=[];;){var C=u(_,v);if(C===null||(S.push(C),!b))break;String(C[0])===``&&(_.lastIndex=c(v,a(_.lastIndex),x))}for(var w=``,T=0,E=0;E<S.length;E++){C=S[E];for(var D=String(C[0]),O=d(f(o(C.index),v.length),0),k=[],A=1;A<C.length;A++)k.push(p(C[A]));var j=C.groups;if(y){var M=[D].concat(k,O,v);j!==void 0&&M.push(j);var N=String(r.apply(void 0,M))}else N=l(D,v,O,k,j,r);O>=T&&(w+=v.slice(T,O)+N,T=O+D.length)}return w+v.slice(T)}]})}),3123:(function(e,t,n){var r=n(7007),i=n(7850),a=n(9670),o=n(4488),s=n(6707),c=n(1530),l=n(7466),u=n(7651),d=n(2261),f=n(7293),p=[].push,m=Math.min,h=4294967295,g=!f(function(){return!RegExp(h,`y`)});r(`split`,2,function(e,t,n){var r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r=String(o(this)),a=n===void 0?h:n>>>0;if(a===0)return[];if(e===void 0)return[r];if(!i(e))return t.call(r,e,a);for(var s=[],c=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),l=0,u=new RegExp(e.source,c+`g`),f,m,g;(f=d.call(u,r))&&(m=u.lastIndex,!(m>l&&(s.push(r.slice(l,f.index)),f.length>1&&f.index<r.length&&p.apply(s,f.slice(1)),g=f[0].length,l=m,s.length>=a)));)u.lastIndex===f.index&&u.lastIndex++;return l===r.length?(g||!u.test(``))&&s.push(``):s.push(r.slice(l)),s.length>a?s.slice(0,a):s}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:t.call(this,e,n)}:t;return[function(t,n){var i=o(this),a=t?.[e];return a===void 0?r.call(String(i),t,n):a.call(t,i,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var d=a(e),f=String(this),p=s(d,RegExp),_=d.unicode,v=(d.ignoreCase?`i`:``)+(d.multiline?`m`:``)+(d.unicode?`u`:``)+(g?`y`:`g`),y=new p(g?d:`^(?:`+d.source+`)`,v),b=i===void 0?h:i>>>0;if(b===0)return[];if(f.length===0)return u(y,f)===null?[f]:[];for(var x=0,S=0,C=[];S<f.length;){y.lastIndex=g?S:0;var w=u(y,g?f:f.slice(S)),T;if(w===null||(T=m(l(y.lastIndex+(g?0:S)),f.length))===x)S=c(f,S,_);else{if(C.push(f.slice(x,S)),C.length===b)return C;for(var E=1;E<=w.length-1;E++)if(C.push(w[E]),C.length===b)return C;S=x=T}}return C.push(f.slice(x)),C}]},!g)}),3210:(function(e,t,n){var r=n(2109),i=n(3111).trim;r({target:`String`,proto:!0,forced:n(6091)(`trim`)},{trim:function(){return i(this)}})}),2990:(function(e,t,n){var r=n(260),i=n(1048),a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`copyWithin`,function(e,t){return i.call(a(this),e,t,arguments.length>2?arguments[2]:void 0)})}),8927:(function(e,t,n){var r=n(260),i=n(2092).every,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`every`,function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})}),3105:(function(e,t,n){var r=n(260),i=n(1285),a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`fill`,function(e){return i.apply(a(this),arguments)})}),5035:(function(e,t,n){var r=n(260),i=n(2092).filter,a=n(3074),o=r.aTypedArray,s=r.exportTypedArrayMethod;s(`filter`,function(e){var t=i(o(this),e,arguments.length>1?arguments[1]:void 0);return a(this,t)})}),7174:(function(e,t,n){var r=n(260),i=n(2092).findIndex,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`findIndex`,function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})}),4345:(function(e,t,n){var r=n(260),i=n(2092).find,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`find`,function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})}),2846:(function(e,t,n){var r=n(260),i=n(2092).forEach,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`forEach`,function(e){i(a(this),e,arguments.length>1?arguments[1]:void 0)})}),4731:(function(e,t,n){var r=n(260),i=n(1318).includes,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`includes`,function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})}),7209:(function(e,t,n){var r=n(260),i=n(1318).indexOf,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`indexOf`,function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})}),6319:(function(e,t,n){var r=n(7854),i=n(260),a=n(6992),o=n(5112)(`iterator`),s=r.Uint8Array,c=a.values,l=a.keys,u=a.entries,d=i.aTypedArray,f=i.exportTypedArrayMethod,p=s&&s.prototype[o],m=!!p&&(p.name==`values`||p.name==null),h=function(){return c.call(d(this))};f(`entries`,function(){return u.call(d(this))}),f(`keys`,function(){return l.call(d(this))}),f(`values`,h,!m),f(o,h,!m)}),8867:(function(e,t,n){var r=n(260),i=r.aTypedArray,a=r.exportTypedArrayMethod,o=[].join;a(`join`,function(e){return o.apply(i(this),arguments)})}),7789:(function(e,t,n){var r=n(260),i=n(6583),a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`lastIndexOf`,function(e){return i.apply(a(this),arguments)})}),3739:(function(e,t,n){var r=n(260),i=n(2092).map,a=n(6707),o=r.aTypedArray,s=r.aTypedArrayConstructor,c=r.exportTypedArrayMethod;c(`map`,function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0,function(e,t){return new(s(a(e,e.constructor)))(t)})})}),4483:(function(e,t,n){var r=n(260),i=n(3671).right,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`reduceRight`,function(e){return i(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)})}),9368:(function(e,t,n){var r=n(260),i=n(3671).left,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`reduce`,function(e){return i(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)})}),2056:(function(e,t,n){var r=n(260),i=r.aTypedArray,a=r.exportTypedArrayMethod,o=Math.floor;a(`reverse`,function(){for(var e=this,t=i(e).length,n=o(t/2),r=0,a;r<n;)a=e[r],e[r++]=e[--t],e[t]=a;return e})}),3462:(function(e,t,n){var r=n(260),i=n(7466),a=n(4590),o=n(7908),s=n(7293),c=r.aTypedArray,l=r.exportTypedArrayMethod;l(`set`,function(e){c(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=o(e),s=i(r.length),l=0;if(s+t>n)throw RangeError(`Wrong length`);for(;l<s;)this[t+l]=r[l++]},s(function(){new Int8Array(1).set({})}))}),678:(function(e,t,n){var r=n(260),i=n(6707),a=n(7293),o=r.aTypedArray,s=r.aTypedArrayConstructor,c=r.exportTypedArrayMethod,l=[].slice;c(`slice`,function(e,t){for(var n=l.call(o(this),e,t),r=i(this,this.constructor),a=0,c=n.length,u=new(s(r))(c);c>a;)u[a]=n[a++];return u},a(function(){new Int8Array(1).slice()}))}),7462:(function(e,t,n){var r=n(260),i=n(2092).some,a=r.aTypedArray,o=r.exportTypedArrayMethod;o(`some`,function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})}),3824:(function(e,t,n){var r=n(260),i=r.aTypedArray,a=r.exportTypedArrayMethod,o=[].sort;a(`sort`,function(e){return o.call(i(this),e)})}),5021:(function(e,t,n){var r=n(260),i=n(7466),a=n(1400),o=n(6707),s=r.aTypedArray,c=r.exportTypedArrayMethod;c(`subarray`,function(e,t){var n=s(this),r=n.length,c=a(e,r);return new(o(n,n.constructor))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,i((t===void 0?r:a(t,r))-c))})}),2974:(function(e,t,n){var r=n(7854),i=n(260),a=n(7293),o=r.Int8Array,s=i.aTypedArray,c=i.exportTypedArrayMethod,l=[].toLocaleString,u=[].slice,d=!!o&&a(function(){l.call(new o(1))});c(`toLocaleString`,function(){return l.apply(d?u.call(s(this)):s(this),arguments)},a(function(){return[1,2].toLocaleString()!=new o([1,2]).toLocaleString()})||!a(function(){o.prototype.toLocaleString.call([1,2])}))}),5016:(function(e,t,n){var r=n(260).exportTypedArrayMethod,i=n(7293),a=n(7854).Uint8Array,o=a&&a.prototype||{},s=[].toString,c=[].join;i(function(){s.call({})})&&(s=function(){return c.call(this)});var l=o.toString!=s;r(`toString`,s,l)}),2472:(function(e,t,n){n(9843)(`Uint8`,function(e){return function(t,n,r){return e(this,t,n,r)}})}),4747:(function(e,t,n){var r=n(7854),i=n(8324),a=n(8533),o=n(8880);for(var s in i){var c=r[s],l=c&&c.prototype;if(l&&l.forEach!==a)try{o(l,`forEach`,a)}catch{l.forEach=a}}}),3948:(function(e,t,n){var r=n(7854),i=n(8324),a=n(6992),o=n(8880),s=n(5112),c=s(`iterator`),l=s(`toStringTag`),u=a.values;for(var d in i){var f=r[d],p=f&&f.prototype;if(p){if(p[c]!==u)try{o(p,c,u)}catch{p[c]=u}if(p[l]||o(p,l,d),i[d]){for(var m in a)if(p[m]!==a[m])try{o(p,m,a[m])}catch{p[m]=a[m]}}}}}),1637:(function(e,t,n){n(6992);var r=n(2109),i=n(5005),a=n(590),o=n(1320),s=n(2248),c=n(8003),l=n(4994),u=n(9909),d=n(5787),f=n(6656),p=n(9974),m=n(648),h=n(9670),g=n(111),_=n(30),v=n(9114),y=n(8554),b=n(1246),x=n(5112),S=i(`fetch`),C=i(`Headers`),w=x(`iterator`),T=`URLSearchParams`,E=T+`Iterator`,D=u.set,O=u.getterFor(T),k=u.getterFor(E),A=/\+/g,j=[,,,,],M=function(e){return j[e-1]||(j[e-1]=RegExp(`((?:%[\\da-f]{2}){`+e+`})`,`gi`))},N=function(e){try{return decodeURIComponent(e)}catch{return e}},P=function(e){var t=e.replace(A,` `),n=4;try{return decodeURIComponent(t)}catch{for(;n;)t=t.replace(M(n--),N);return t}},F=/[!'()~]|%20/g,I={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`},L=function(e){return I[e]},R=function(e){return encodeURIComponent(e).replace(F,L)},ee=function(e,t){if(t)for(var n=t.split(`&`),r=0,i,a;r<n.length;)i=n[r++],i.length&&(a=i.split(`=`),e.push({key:P(a.shift()),value:P(a.join(`=`))}))},z=function(e){this.entries.length=0,ee(this.entries,e)},te=function(e,t){if(e<t)throw TypeError(`Not enough arguments`)},ne=l(function(e,t){D(this,{type:E,iterator:y(O(e).entries),kind:t})},`Iterator`,function(){var e=k(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value=t===`keys`?r.key:t===`values`?r.value:[r.key,r.value]),n}),re=function(){d(this,re,T);var e=arguments.length>0?arguments[0]:void 0,t=this,n=[],r,i,a,o,s,c,l,u,p;if(D(t,{type:T,entries:n,updateURL:function(){},updateSearchParams:z}),e!==void 0)if(g(e))if(r=b(e),typeof r==`function`)for(i=r.call(e),a=i.next;!(o=a.call(i)).done;){if(s=y(h(o.value)),c=s.next,(l=c.call(s)).done||(u=c.call(s)).done||!c.call(s).done)throw TypeError(`Expected sequence with length 2`);n.push({key:l.value+``,value:u.value+``})}else for(p in e)f(e,p)&&n.push({key:p,value:e[p]+``});else ee(n,typeof e==`string`?e.charAt(0)===`?`?e.slice(1):e:e+``)},ie=re.prototype;s(ie,{append:function(e,t){te(arguments.length,2);var n=O(this);n.entries.push({key:e+``,value:t+``}),n.updateURL()},delete:function(e){te(arguments.length,1);for(var t=O(this),n=t.entries,r=e+``,i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){te(arguments.length,1);for(var t=O(this).entries,n=e+``,r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){te(arguments.length,1);for(var t=O(this).entries,n=e+``,r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){te(arguments.length,1);for(var t=O(this).entries,n=e+``,r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){te(arguments.length,1);for(var n=O(this),r=n.entries,i=!1,a=e+``,o=t+``,s=0,c;s<r.length;s++)c=r[s],c.key===a&&(i?r.splice(s--,1):(i=!0,c.value=o));i||r.push({key:a,value:o}),n.updateURL()},sort:function(){var e=O(this),t=e.entries,n=t.slice(),r,i,a;for(t.length=0,a=0;a<n.length;a++){for(r=n[a],i=0;i<a;i++)if(t[i].key>r.key){t.splice(i,0,r);break}i===a&&t.push(r)}e.updateURL()},forEach:function(e){for(var t=O(this).entries,n=p(e,arguments.length>1?arguments[1]:void 0,3),r=0,i;r<t.length;)i=t[r++],n(i.value,i.key,this)},keys:function(){return new ne(this,`keys`)},values:function(){return new ne(this,`values`)},entries:function(){return new ne(this,`entries`)}},{enumerable:!0}),o(ie,w,ie.entries),o(ie,`toString`,function(){for(var e=O(this).entries,t=[],n=0,r;n<e.length;)r=e[n++],t.push(R(r.key)+`=`+R(r.value));return t.join(`&`)},{enumerable:!0}),c(re,T),r({global:!0,forced:!a},{URLSearchParams:re}),!a&&typeof S==`function`&&typeof C==`function`&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t=[e],n,r,i;return arguments.length>1&&(n=arguments[1],g(n)&&(r=n.body,m(r)===T&&(i=n.headers?new C(n.headers):new C,i.has(`content-type`)||i.set(`content-type`,`application/x-www-form-urlencoded;charset=UTF-8`),n=_(n,{body:v(0,String(r)),headers:v(0,i)}))),t.push(n)),S.apply(this,t)}}),e.exports={URLSearchParams:re,getState:O}}),285:(function(e,t,n){n(8783);var r=n(2109),i=n(9781),a=n(590),o=n(7854),s=n(6048),c=n(1320),l=n(5787),u=n(6656),d=n(1574),f=n(8457),p=n(8710).codeAt,m=n(3197),h=n(8003),g=n(1637),_=n(9909),v=o.URL,y=g.URLSearchParams,b=g.getState,x=_.set,S=_.getterFor(`URL`),C=Math.floor,w=Math.pow,T=`Invalid authority`,E=`Invalid scheme`,D=`Invalid host`,O=`Invalid port`,k=/[A-Za-z]/,A=/[\d+-.A-Za-z]/,j=/\d/,M=/^(0x|0X)/,N=/^[0-7]+$/,P=/^\d+$/,F=/^[\dA-Fa-f]+$/,I=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,L=/[\u0000\t\u000A\u000D #/:?@[\\]]/,R=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,ee=/[\t\u000A\u000D]/g,z,te=function(e,t){var n,r,i;if(t.charAt(0)==`[`){if(t.charAt(t.length-1)!=`]`||(n=re(t.slice(1,-1)),!n))return D;e.host=n}else if(fe(e)){if(t=m(t),I.test(t)||(n=ne(t),n===null))return D;e.host=n}else{if(L.test(t))return D;for(n=``,r=f(t),i=0;i<r.length;i++)n+=ue(r[i],oe);e.host=n}},ne=function(e){var t=e.split(`.`),n,r,i,a,o,s,c;if(t.length&&t[t.length-1]==``&&t.pop(),n=t.length,n>4)return e;for(r=[],i=0;i<n;i++){if(a=t[i],a==``)return e;if(o=10,a.length>1&&a.charAt(0)==`0`&&(o=M.test(a)?16:8,a=a.slice(o==8?1:2)),a===``)s=0;else{if(!(o==10?P:o==8?N:F).test(a))return e;s=parseInt(a,o)}r.push(s)}for(i=0;i<n;i++)if(s=r[i],i==n-1){if(s>=w(256,5-n))return null}else if(s>255)return null;for(c=r.pop(),i=0;i<r.length;i++)c+=r[i]*w(256,3-i);return c},re=function(e){var t=[0,0,0,0,0,0,0,0],n=0,r=null,i=0,a,o,s,c,l,u,d,f=function(){return e.charAt(i)};if(f()==`:`){if(e.charAt(1)!=`:`)return;i+=2,n++,r=n}for(;f();){if(n==8)return;if(f()==`:`){if(r!==null)return;i++,n++,r=n;continue}for(a=o=0;o<4&&F.test(f());)a=a*16+parseInt(f(),16),i++,o++;if(f()==`.`){if(o==0||(i-=o,n>6))return;for(s=0;f();){if(c=null,s>0)if(f()==`.`&&s<4)i++;else return;if(!j.test(f()))return;for(;j.test(f());){if(l=parseInt(f(),10),c===null)c=l;else if(c==0)return;else c=c*10+l;if(c>255)return;i++}t[n]=t[n]*256+c,s++,(s==2||s==4)&&n++}if(s!=4)return;break}else if(f()==`:`){if(i++,!f())return}else if(f())return;t[n++]=a}if(r!==null)for(u=n-r,n=7;n!=0&&u>0;)d=t[n],t[n--]=t[r+u-1],t[r+--u]=d;else if(n!=8)return;return t},ie=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)e[a]===0?(r===null&&(r=a),++i):(i>n&&(t=r,n=i),r=null,i=0);return i>n&&(t=r,n=i),t},ae=function(e){var t,n,r,i;if(typeof e==`number`){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=C(e/256);return t.join(`.`)}else if(typeof e==`object`){for(t=``,r=ie(e),n=0;n<8;n++)i&&e[n]===0||(i&&=!1,r===n?(t+=n?`:`:`::`,i=!0):(t+=e[n].toString(16),n<7&&(t+=`:`)));return`[`+t+`]`}return e},oe={},se=d({},oe,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=d({},se,{"#":1,"?":1,"{":1,"}":1}),le=d({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ue=function(e,t){var n=p(e,0);return n>32&&n<127&&!u(t,e)?e:encodeURIComponent(e)},de={ftp:21,file:null,http:80,https:443,ws:80,wss:443},fe=function(e){return u(de,e.scheme)},pe=function(e){return e.username!=``||e.password!=``},me=function(e){return!e.host||e.cannotBeABaseURL||e.scheme==`file`},he=function(e,t){var n;return e.length==2&&k.test(e.charAt(0))&&((n=e.charAt(1))==`:`||!t&&n==`|`)},ge=function(e){var t;return e.length>1&&he(e.slice(0,2))&&(e.length==2||(t=e.charAt(2))===`/`||t===`\\`||t===`?`||t===`#`)},_e=function(e){var t=e.path,n=t.length;n&&(e.scheme!=`file`||n!=1||!he(t[0],!0))&&t.pop()},ve=function(e){return e===`.`||e.toLowerCase()===`%2e`},ye=function(e){return e=e.toLowerCase(),e===`..`||e===`%2e.`||e===`.%2e`||e===`%2e%2e`},be={},xe={},Se={},Ce={},we={},Te={},Ee={},De={},Oe={},ke={},Ae={},je={},Me={},Ne={},Pe={},Fe={},Ie={},Le={},Re={},ze={},Be={},Ve=function(e,t,n,r){var i=n||be,a=0,o=``,s=!1,c=!1,l=!1,d,p,m,h;for(n||(e.scheme=``,e.username=``,e.password=``,e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(R,``)),t=t.replace(ee,``),d=f(t);a<=d.length;){switch(p=d[a],i){case be:if(p&&k.test(p))o+=p.toLowerCase(),i=xe;else if(n)return E;else{i=Se;continue}break;case xe:if(p&&(A.test(p)||p==`+`||p==`-`||p==`.`))o+=p.toLowerCase();else if(p==`:`){if(n&&(fe(e)!=u(de,o)||o==`file`&&(pe(e)||e.port!==null)||e.scheme==`file`&&!e.host))return;if(e.scheme=o,n){fe(e)&&de[e.scheme]==e.port&&(e.port=null);return}o=``,e.scheme==`file`?i=Ne:fe(e)&&r&&r.scheme==e.scheme?i=Ce:fe(e)?i=De:d[a+1]==`/`?(i=we,a++):(e.cannotBeABaseURL=!0,e.path.push(``),i=Re)}else if(n)return E;else{o=``,i=Se,a=0;continue}break;case Se:if(!r||r.cannotBeABaseURL&&p!=`#`)return E;if(r.cannotBeABaseURL&&p==`#`){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment=``,e.cannotBeABaseURL=!0,i=Be;break}i=r.scheme==`file`?Ne:Te;continue;case Ce:if(p==`/`&&d[a+1]==`/`)i=Oe,a++;else{i=Te;continue}break;case we:if(p==`/`){i=ke;break}else{i=Le;continue}case Te:if(e.scheme=r.scheme,p==z)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if(p==`/`||p==`\\`&&fe(e))i=Ee;else if(p==`?`)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=``,i=ze;else if(p==`#`)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment=``,i=Be;else{e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),i=Le;continue}break;case Ee:if(fe(e)&&(p==`/`||p==`\\`))i=Oe;else if(p==`/`)i=ke;else{e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,i=Le;continue}break;case De:if(i=Oe,p!=`/`||o.charAt(a+1)!=`/`)continue;a++;break;case Oe:if(p!=`/`&&p!=`\\`){i=ke;continue}break;case ke:if(p==`@`){s&&(o=`%40`+o),s=!0,m=f(o);for(var g=0;g<m.length;g++){var _=m[g];if(_==`:`&&!l){l=!0;continue}var v=ue(_,le);l?e.password+=v:e.username+=v}o=``}else if(p==z||p==`/`||p==`?`||p==`#`||p==`\\`&&fe(e)){if(s&&o==``)return T;a-=f(o).length+1,o=``,i=Ae}else o+=p;break;case Ae:case je:if(n&&e.scheme==`file`){i=Fe;continue}else if(p==`:`&&!c){if(o==``)return D;if(h=te(e,o),h)return h;if(o=``,i=Me,n==je)return}else if(p==z||p==`/`||p==`?`||p==`#`||p==`\\`&&fe(e)){if(fe(e)&&o==``)return D;if(n&&o==``&&(pe(e)||e.port!==null))return;if(h=te(e,o),h)return h;if(o=``,i=Ie,n)return;continue}else p==`[`?c=!0:p==`]`&&(c=!1),o+=p;break;case Me:if(j.test(p))o+=p;else if(p==z||p==`/`||p==`?`||p==`#`||p==`\\`&&fe(e)||n){if(o!=``){var y=parseInt(o,10);if(y>65535)return O;e.port=fe(e)&&y===de[e.scheme]?null:y,o=``}if(n)return;i=Ie;continue}else return O;break;case Ne:if(e.scheme=`file`,p==`/`||p==`\\`)i=Pe;else if(r&&r.scheme==`file`)if(p==z)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if(p==`?`)e.host=r.host,e.path=r.path.slice(),e.query=``,i=ze;else if(p==`#`)e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment=``,i=Be;else{ge(d.slice(a).join(``))||(e.host=r.host,e.path=r.path.slice(),_e(e)),i=Le;continue}else{i=Le;continue}break;case Pe:if(p==`/`||p==`\\`){i=Fe;break}r&&r.scheme==`file`&&!ge(d.slice(a).join(``))&&(he(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),i=Le;continue;case Fe:if(p==z||p==`/`||p==`\\`||p==`?`||p==`#`){if(!n&&he(o))i=Le;else if(o==``){if(e.host=``,n)return;i=Ie}else{if(h=te(e,o),h)return h;if(e.host==`localhost`&&(e.host=``),n)return;o=``,i=Ie}continue}else o+=p;break;case Ie:if(fe(e)){if(i=Le,p!=`/`&&p!=`\\`)continue}else if(!n&&p==`?`)e.query=``,i=ze;else if(!n&&p==`#`)e.fragment=``,i=Be;else if(p!=z&&(i=Le,p!=`/`))continue;break;case Le:if(p==z||p==`/`||p==`\\`&&fe(e)||!n&&(p==`?`||p==`#`)){if(ye(o)?(_e(e),p!=`/`&&!(p==`\\`&&fe(e))&&e.path.push(``)):ve(o)?p!=`/`&&!(p==`\\`&&fe(e))&&e.path.push(``):(e.scheme==`file`&&!e.path.length&&he(o)&&(e.host&&=``,o=o.charAt(0)+`:`),e.path.push(o)),o=``,e.scheme==`file`&&(p==z||p==`?`||p==`#`))for(;e.path.length>1&&e.path[0]===``;)e.path.shift();p==`?`?(e.query=``,i=ze):p==`#`&&(e.fragment=``,i=Be)}else o+=ue(p,ce);break;case Re:p==`?`?(e.query=``,i=ze):p==`#`?(e.fragment=``,i=Be):p!=z&&(e.path[0]+=ue(p,oe));break;case ze:!n&&p==`#`?(e.fragment=``,i=Be):p!=z&&(p==`'`&&fe(e)?e.query+=`%27`:p==`#`?e.query+=`%23`:e.query+=ue(p,oe));break;case Be:p!=z&&(e.fragment+=ue(p,se));break}a++}},He=function(e){var t=l(this,He,`URL`),n=arguments.length>1?arguments[1]:void 0,r=String(e),a=x(t,{type:`URL`}),o,s;if(n!==void 0){if(n instanceof He)o=S(n);else if(s=Ve(o={},String(n)),s)throw TypeError(s)}if(s=Ve(a,r,null,o),s)throw TypeError(s);var c=a.searchParams=new y,u=b(c);u.updateSearchParams(a.query),u.updateURL=function(){a.query=String(c)||null},i||(t.href=We.call(t),t.origin=Ge.call(t),t.protocol=Ke.call(t),t.username=qe.call(t),t.password=Je.call(t),t.host=Ye.call(t),t.hostname=Xe.call(t),t.port=Ze.call(t),t.pathname=B.call(t),t.search=Qe.call(t),t.searchParams=$e.call(t),t.hash=et.call(t))},Ue=He.prototype,We=function(){var e=S(this),t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,c=e.fragment,l=t+`:`;return i===null?t==`file`&&(l+=`//`):(l+=`//`,pe(e)&&(l+=n+(r?`:`+r:``)+`@`),l+=ae(i),a!==null&&(l+=`:`+a)),l+=e.cannotBeABaseURL?o[0]:o.length?`/`+o.join(`/`):``,s!==null&&(l+=`?`+s),c!==null&&(l+=`#`+c),l},Ge=function(){var e=S(this),t=e.scheme,n=e.port;if(t==`blob`)try{return new URL(t.path[0]).origin}catch{return`null`}return t==`file`||!fe(e)?`null`:t+`://`+ae(e.host)+(n===null?``:`:`+n)},Ke=function(){return S(this).scheme+`:`},qe=function(){return S(this).username},Je=function(){return S(this).password},Ye=function(){var e=S(this),t=e.host,n=e.port;return t===null?``:n===null?ae(t):ae(t)+`:`+n},Xe=function(){var e=S(this).host;return e===null?``:ae(e)},Ze=function(){var e=S(this).port;return e===null?``:String(e)},B=function(){var e=S(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?`/`+t.join(`/`):``},Qe=function(){var e=S(this).query;return e?`?`+e:``},$e=function(){return S(this).searchParams},et=function(){var e=S(this).fragment;return e?`#`+e:``},tt=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&s(Ue,{href:tt(We,function(e){var t=S(this),n=Ve(t,String(e));if(n)throw TypeError(n);b(t.searchParams).updateSearchParams(t.query)}),origin:tt(Ge),protocol:tt(Ke,function(e){Ve(S(this),String(e)+`:`,be)}),username:tt(qe,function(e){var t=S(this),n=f(String(e));if(!me(t)){t.username=``;for(var r=0;r<n.length;r++)t.username+=ue(n[r],le)}}),password:tt(Je,function(e){var t=S(this),n=f(String(e));if(!me(t)){t.password=``;for(var r=0;r<n.length;r++)t.password+=ue(n[r],le)}}),host:tt(Ye,function(e){var t=S(this);t.cannotBeABaseURL||Ve(t,String(e),Ae)}),hostname:tt(Xe,function(e){var t=S(this);t.cannotBeABaseURL||Ve(t,String(e),je)}),port:tt(Ze,function(e){var t=S(this);me(t)||(e=String(e),e==``?t.port=null:Ve(t,e,Me))}),pathname:tt(B,function(e){var t=S(this);t.cannotBeABaseURL||(t.path=[],Ve(t,e+``,Ie))}),search:tt(Qe,function(e){var t=S(this);e=String(e),e==``?t.query=null:(e.charAt(0)==`?`&&(e=e.slice(1)),t.query=``,Ve(t,e,ze)),b(t.searchParams).updateSearchParams(t.query)}),searchParams:tt($e),hash:tt(et,function(e){var t=S(this);if(e=String(e),e==``){t.fragment=null;return}e.charAt(0)==`#`&&(e=e.slice(1)),t.fragment=``,Ve(t,e,Be)})}),c(Ue,`toJSON`,function(){return We.call(this)},{enumerable:!0}),c(Ue,`toString`,function(){return We.call(this)},{enumerable:!0}),v){var nt=v.createObjectURL,rt=v.revokeObjectURL;nt&&c(He,`createObjectURL`,function(e){return nt.apply(v,arguments)}),rt&&c(He,`revokeObjectURL`,function(e){return rt.apply(v,arguments)})}h(He,`URL`),r({global:!0,forced:!a,sham:!i},{URL:He})})},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(function(){n.g=(function(){if(typeof globalThis==`object`)return globalThis;try{return this||Function(`return this`)()}catch{if(typeof window==`object`)return window}})()})(),(function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})(),(function(){n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})}})();var r={};return(function(){n.r(r),n.d(r,{Dropzone:function(){return O},default:function(){return I}}),n(2222),n(7327),n(2772),n(6992),n(1249),n(7042),n(561),n(8264),n(8309),n(489),n(1539),n(4916),n(9714),n(8783),n(4723),n(5306),n(3123),n(3210),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(4747),n(3948),n(285);function e(e,n){var r;if(typeof Symbol>`u`||e[Symbol.iterator]==null){if(Array.isArray(e)||(r=t(e))||n&&e&&typeof e.length==`number`){r&&(e=r);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
@@ -11,5 +11,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11
11
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}function d(e,t){if(e){if(typeof e==`string`)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}}function f(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var p={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(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e;this.element.className=`${this.element.className} dz-browser-not-supported`;var t=u(this.element.getElementsByTagName(`div`),!0),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(/(^| )dz-message($| )/.test(r.className)){e=r,r.className=`dz-message`;break}}}catch(e){t.e(e)}finally{t.f()}e||(e=O.createElement(`<div class="dz-message"><span></span></div>`),this.element.appendChild(e));var i=e.getElementsByTagName(`span`)[0];return i&&(i.textContent==null?i.innerText!=null&&(i.innerText=this.options.dictFallbackMessage):i.textContent=this.options.dictFallbackMessage),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,r){var i={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},a=e.width/e.height;t==null&&n==null?(t=i.srcWidth,n=i.srcHeight):t==null?t=n*a:n??=t/a,t=Math.min(t,i.srcWidth),n=Math.min(n,i.srcHeight);var o=t/n;if(i.srcWidth>t||i.srcHeight>n)if(r===`crop`)a>o?(i.srcHeight=e.height,i.srcWidth=i.srcHeight*o):(i.srcWidth=e.width,i.srcHeight=i.srcWidth/o);else if(r===`contain`)a>o?n=t/a:t=n*a;else throw Error(`Unknown resizeMethod '${r}'`);return i.srcX=(e.width-i.srcWidth)/2,i.srcY=(e.height-i.srcHeight)/2,i.trgWidth=t,i.trgHeight=n,i},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:l,drop:function(e){return this.element.classList.remove(`dz-drag-hover`)},dragstart:function(e){},dragend:function(e){return this.element.classList.remove(`dz-drag-hover`)},dragenter:function(e){return this.element.classList.add(`dz-drag-hover`)},dragover:function(e){return this.element.classList.add(`dz-drag-hover`)},dragleave:function(e){return this.element.classList.remove(`dz-drag-hover`)},paste:function(e){},reset:function(){return this.element.classList.remove(`dz-started`)},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add(`dz-started`),this.previewsContainer&&!this.options.disablePreviews){e.previewElement=O.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);var n=u(e.previewElement.querySelectorAll(`[data-dz-name]`),!0),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;i.textContent=e.name}}catch(e){n.e(e)}finally{n.f()}var a=u(e.previewElement.querySelectorAll(`[data-dz-size]`),!0),o;try{for(a.s();!(o=a.n()).done;)i=o.value,i.innerHTML=this.filesize(e.size)}catch(e){a.e(e)}finally{a.f()}this.options.addRemoveLinks&&(e._removeLink=O.createElement(`<a class="dz-remove" href="javascript:undefined;" data-dz-remove>${this.options.dictRemoveFile}</a>`),e.previewElement.appendChild(e._removeLink));var s=function(n){return n.preventDefault(),n.stopPropagation(),e.status===O.UPLOADING?O.confirm(t.options.dictCancelUploadConfirmation,function(){return t.removeFile(e)}):t.options.dictRemoveFileConfirmation?O.confirm(t.options.dictRemoveFileConfirmation,function(){return t.removeFile(e)}):t.removeFile(e)},c=u(e.previewElement.querySelectorAll(`[data-dz-remove]`),!0),l;try{for(c.s();!(l=c.n()).done;)l.value.addEventListener(`click`,s)}catch(e){c.e(e)}finally{c.f()}}},removedfile:function(e){return e.previewElement!=null&&e.previewElement.parentNode!=null&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove(`dz-file-preview`);var n=u(e.previewElement.querySelectorAll(`[data-dz-thumbnail]`),!0),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;i.alt=e.name,i.src=t}}catch(e){n.e(e)}finally{n.f()}return setTimeout(function(){return e.previewElement.classList.add(`dz-image-preview`)},1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add(`dz-error`),typeof t!=`string`&&t.error&&(t=t.error);var n=u(e.previewElement.querySelectorAll(`[data-dz-errormessage]`),!0),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;i.textContent=t}}catch(e){n.e(e)}finally{n.f()}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add(`dz-processing`),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement){var r=u(e.previewElement.querySelectorAll(`[data-dz-uploadprogress]`),!0),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;a.nodeName===`PROGRESS`?a.value=t:a.style.width=`${t}%`}}catch(e){r.e(e)}finally{r.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add(`dz-success`)},successmultiple:function(){},canceled:function(e){return this.emit(`error`,e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add(`dz-complete`)},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}};function m(e){"@babel/helpers - typeof";return m=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},m(e)}function h(e,t){var n;if(typeof Symbol>`u`||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=g(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
12
12
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}function g(e,t){if(e){if(typeof e==`string`)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}}function _(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}function x(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function C(e){var t=E();return function(){var n=D(e),r;if(t){var i=D(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return w(this,r)}}function w(e,t){return t&&(m(t)===`object`||typeof t==`function`)?t:T(e)}function T(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function E(){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 D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}var O=function(e){x(n,e);var t=C(n);function n(e,r){var i;v(this,n),i=t.call(this);var a;if(i.element=e,i.version=n.version,i.clickableElements=[],i.listeners=[],i.files=[],typeof i.element==`string`&&(i.element=document.querySelector(i.element)),!i.element||i.element.nodeType==null)throw Error(`Invalid dropzone element.`);if(i.element.dropzone)throw Error(`Dropzone already attached.`);n.instances.push(T(i)),i.element.dropzone=T(i);var o=n.optionsForElement(i.element)??{};if(i.options=n.extend({},p,o,r??{}),i.options.previewTemplate=i.options.previewTemplate.replace(/\n*/g,``),i.options.forceFallback||!n.isBrowserSupported())return w(i,i.options.fallback.call(T(i)));if(i.options.url??(i.options.url=i.element.getAttribute(`action`)),!i.options.url)throw Error(`No URL provided.`);if(i.options.acceptedFiles&&i.options.acceptedMimeTypes)throw Error(`You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.`);if(i.options.uploadMultiple&&i.options.chunking)throw Error(`You cannot set both: uploadMultiple and chunking.`);return i.options.acceptedMimeTypes&&(i.options.acceptedFiles=i.options.acceptedMimeTypes,delete i.options.acceptedMimeTypes),i.options.renameFilename!=null&&(i.options.renameFile=function(e){return i.options.renameFilename.call(T(i),e.name,e)}),typeof i.options.method==`string`&&(i.options.method=i.options.method.toUpperCase()),(a=i.getExistingFallback())&&a.parentNode&&a.parentNode.removeChild(a),i.options.previewsContainer!==!1&&(i.options.previewsContainer?i.previewsContainer=n.getElement(i.options.previewsContainer,`previewsContainer`):i.previewsContainer=i.element),i.options.clickable&&(i.options.clickable===!0?i.clickableElements=[i.element]:i.clickableElements=n.getElements(i.options.clickable,`clickable`)),i.init(),i}return b(n,[{key:`getAcceptedFiles`,value:function(){return this.files.filter(function(e){return e.accepted}).map(function(e){return e})}},{key:`getRejectedFiles`,value:function(){return this.files.filter(function(e){return!e.accepted}).map(function(e){return e})}},{key:`getFilesWithStatus`,value:function(e){return this.files.filter(function(t){return t.status===e}).map(function(e){return e})}},{key:`getQueuedFiles`,value:function(){return this.getFilesWithStatus(n.QUEUED)}},{key:`getUploadingFiles`,value:function(){return this.getFilesWithStatus(n.UPLOADING)}},{key:`getAddedFiles`,value:function(){return this.getFilesWithStatus(n.ADDED)}},{key:`getActiveFiles`,value:function(){return this.files.filter(function(e){return e.status===n.UPLOADING||e.status===n.QUEUED}).map(function(e){return e})}},{key:`init`,value:function(){var e=this;this.element.tagName===`form`&&this.element.setAttribute(`enctype`,`multipart/form-data`),this.element.classList.contains(`dropzone`)&&!this.element.querySelector(`.dz-message`)&&this.element.appendChild(n.createElement(`<div class="dz-default dz-message"><button class="dz-button" type="button">${this.options.dictDefaultMessage}</button></div>`)),this.clickableElements.length&&(function t(){e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement(`input`),e.hiddenFileInput.setAttribute(`type`,`file`),(e.options.maxFiles===null||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute(`multiple`,`multiple`),e.hiddenFileInput.className=`dz-hidden-input`,e.options.acceptedFiles!==null&&e.hiddenFileInput.setAttribute(`accept`,e.options.acceptedFiles),e.options.capture!==null&&e.hiddenFileInput.setAttribute(`capture`,e.options.capture),e.hiddenFileInput.setAttribute(`tabindex`,`-1`),e.hiddenFileInput.style.visibility=`hidden`,e.hiddenFileInput.style.position=`absolute`,e.hiddenFileInput.style.top=`0`,e.hiddenFileInput.style.left=`0`,e.hiddenFileInput.style.height=`0`,e.hiddenFileInput.style.width=`0`,n.getElement(e.options.hiddenInputContainer,`hiddenInputContainer`).appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener(`change`,function(){var n=e.hiddenFileInput.files;if(n.length){var r=h(n,!0),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;e.addFile(a)}}catch(e){r.e(e)}finally{r.f()}}e.emit(`addedfiles`,n),t()})})(),this.URL=window.URL===null?window.webkitURL:window.URL;var t=h(this.events,!0),r;try{for(t.s();!(r=t.n()).done;){var i=r.value;this.on(i,this.options[i])}}catch(e){t.e(e)}finally{t.f()}this.on(`uploadprogress`,function(){return e.updateTotalUploadProgress()}),this.on(`removedfile`,function(){return e.updateTotalUploadProgress()}),this.on(`canceled`,function(t){return e.emit(`complete`,t)}),this.on(`complete`,function(t){if(e.getAddedFiles().length===0&&e.getUploadingFiles().length===0&&e.getQueuedFiles().length===0)return setTimeout(function(){return e.emit(`queuecomplete`)},0)});var a=function(e){if(e.dataTransfer.types){for(var t=0;t<e.dataTransfer.types.length;t++)if(e.dataTransfer.types[t]===`Files`)return!0}return!1},o=function(e){if(a(e))return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit(`dragstart`,t)},dragenter:function(t){return o(t),e.emit(`dragenter`,t)},dragover:function(t){var n;try{n=t.dataTransfer.effectAllowed}catch{}return t.dataTransfer.dropEffect=n===`move`||n===`linkMove`?`move`:`copy`,o(t),e.emit(`dragover`,t)},dragleave:function(t){return e.emit(`dragleave`,t)},drop:function(t){return o(t),e.drop(t)},dragend:function(t){return e.emit(`dragend`,t)}}}],this.clickableElements.forEach(function(t){return e.listeners.push({element:t,events:{click:function(r){return(t!==e.element||r.target===e.element||n.elementInside(r.target,e.element.querySelector(`.dz-message`)))&&e.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,n.instances.splice(n.instances.indexOf(this),1)}},{key:`updateTotalUploadProgress`,value:function(){var e,t=0,n=0;if(this.getActiveFiles().length){var r=h(this.getActiveFiles(),!0),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;t+=a.upload.bytesSent,n+=a.upload.total}}catch(e){r.e(e)}finally{r.f()}e=100*t/n}else e=100;return this.emit(`totaluploadprogress`,e,n,t)}},{key:`_getParamName`,value:function(e){return typeof this.options.paramName==`function`?this.options.paramName(e):`${this.options.paramName}${this.options.uploadMultiple?`[${e}]`:``}`}},{key:`_renameFile`,value:function(e){return typeof this.options.renameFile==`function`?this.options.renameFile(e):e.name}},{key:`getFallbackForm`,value:function(){var e,t;if(e=this.getExistingFallback())return e;var r=`<div class="dz-fallback">`;this.options.dictFallbackText&&(r+=`<p>${this.options.dictFallbackText}</p>`),r+=`<input type="file" name="${this._getParamName(0)}" ${this.options.uploadMultiple?`multiple="multiple"`:void 0} /><input type="submit" value="Upload!"></div>`;var i=n.createElement(r);return this.element.tagName===`FORM`?(this.element.setAttribute(`enctype`,`multipart/form-data`),this.element.setAttribute(`method`,this.options.method)):(t=n.createElement(`<form action="${this.options.url}" enctype="multipart/form-data" method="${this.options.method}"></form>`),t.appendChild(i)),t??i}},{key:`getExistingFallback`,value:function(){for(var e=function(e){var t=h(e,!0),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(/(^| )fallback($| )/.test(r.className))return r}}catch(e){t.e(e)}finally{t.f()}},t=0,n=[`div`,`form`];t<n.length;t++){var r=n[t],i;if(i=e(this.element.getElementsByTagName(r)))return i}}},{key:`setupEventListeners`,value:function(){return this.listeners.map(function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.addEventListener(n,r,!1))}return t}()})}},{key:`removeEventListeners`,value:function(){return this.listeners.map(function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.removeEventListener(n,r,!1))}return t}()})}},{key:`disable`,value:function(){var e=this;return this.clickableElements.forEach(function(e){return e.classList.remove(`dz-clickable`)}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(t){return e.cancelUpload(t)})}},{key:`enable`,value:function(){return delete this.disabled,this.clickableElements.forEach(function(e){return e.classList.add(`dz-clickable`)}),this.setupEventListeners()}},{key:`filesize`,value:function(e){var t=0,n=`b`;if(e>0){for(var r=[`tb`,`gb`,`mb`,`kb`,`b`],i=0;i<r.length;i++){var a=r[i];if(e>=this.options.filesizeBase**(4-i)/10){t=e/this.options.filesizeBase**(4-i),n=a;break}}t=Math.round(10*t)/10}return`<strong>${t}</strong> ${this.options.dictFileSizeUnits[n]}`}},{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(e){if(e.dataTransfer){this.emit(`drop`,e);for(var t=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(t.length){var r=e.dataTransfer.items;r&&r.length&&r[0].webkitGetAsEntry!=null?this._addFilesFromItems(r):this.handleFiles(t)}this.emit(`addedfiles`,t)}}},{key:`paste`,value:function(e){if(P(e?.clipboardData,function(e){return e.items})!=null){this.emit(`paste`,e);var t=e.clipboardData.items;if(t.length)return this._addFilesFromItems(t)}}},{key:`handleFiles`,value:function(e){var t=h(e,!0),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;this.addFile(r)}}catch(e){t.e(e)}finally{t.f()}}},{key:`_addFilesFromItems`,value:function(e){var t=this;return function(){var n=[],r=h(e,!0),i;try{for(r.s();!(i=r.n()).done;){var a=i.value,o;a.webkitGetAsEntry!=null&&(o=a.webkitGetAsEntry())?o.isFile?n.push(t.addFile(a.getAsFile())):o.isDirectory?n.push(t._addFilesFromDirectory(o,o.name)):n.push(void 0):a.getAsFile==null?n.push(void 0):a.kind==null||a.kind===`file`?n.push(t.addFile(a.getAsFile())):n.push(void 0)}}catch(e){r.e(e)}finally{r.f()}return n}()}},{key:`_addFilesFromDirectory`,value:function(e,t){var n=this,r=e.createReader(),i=function(e){return F(console,`log`,function(t){return t.log(e)})};return function e(){return r.readEntries(function(r){if(r.length>0){var i=h(r,!0),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;o.isFile?o.file(function(e){if(!(n.options.ignoreHiddenFiles&&e.name.substring(0,1)===`.`))return e.fullPath=`${t}/${e.name}`,n.addFile(e)}):o.isDirectory&&n._addFilesFromDirectory(o,`${t}/${o.name}`)}}catch(e){i.e(e)}finally{i.f()}e()}return null},i)}()}},{key:`accept`,value:function(e,t){this.options.maxFilesize&&e.size>this.options.maxFilesize*1024*1024?t(this.options.dictFileTooBig.replace(`{{filesize}}`,Math.round(e.size/1024/10.24)/100).replace(`{{maxFilesize}}`,this.options.maxFilesize)):n.isValidFile(e,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace(`{{maxFiles}}`,this.options.maxFiles)),this.emit(`maxfilesexceeded`,e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:`addFile`,value:function(e){var t=this;e.upload={uuid:n.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e)},this.files.push(e),e.status=n.ADDED,this.emit(`addedfile`,e),this._enqueueThumbnail(e),this.accept(e,function(n){n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()})}},{key:`enqueueFiles`,value:function(e){var t=h(e,!0),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;this.enqueueFile(r)}}catch(e){t.e(e)}finally{t.f()}return null}},{key:`enqueueFile`,value:function(e){var t=this;if(e.status===n.ADDED&&e.accepted===!0){if(e.status=n.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return t.processQueue()},0)}else throw Error(`This file can't be queued because it has already been processed or was rejected.`)}},{key:`_enqueueThumbnail`,value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(e),setTimeout(function(){return t._processThumbnailQueue()},0)}},{key:`_processThumbnailQueue`,value:function(){var e=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(n){return e.emit(`thumbnail`,t,n),e._processingThumbnail=!1,e._processThumbnailQueue()})}}},{key:`removeFile`,value:function(e){if(e.status===n.UPLOADING&&this.cancelUpload(e),this.files=k(this.files,e),this.emit(`removedfile`,e),this.files.length===0)return this.emit(`reset`)}},{key:`removeAllFiles`,value:function(e){e??=!1;var t=h(this.files.slice(),!0),r;try{for(t.s();!(r=t.n()).done;){var i=r.value;(i.status!==n.UPLOADING||e)&&this.removeFile(i)}}catch(e){t.e(e)}finally{t.f()}return null}},{key:`resizeImage`,value:function(e,t,r,i,a){var o=this;return this.createThumbnail(e,t,r,i,!0,function(t,r){if(r==null)return a(e);var i=o.options.resizeMimeType;i??=e.type;var s=r.toDataURL(i,o.options.resizeQuality);return(i===`image/jpeg`||i===`image/jpg`)&&(s=N.restore(e.dataURL,s)),a(n.dataURItoBlob(s))})}},{key:`createThumbnail`,value:function(e,t,n,r,i,a){var o=this,s=new FileReader;s.onload=function(){if(e.dataURL=s.result,e.type===`image/svg+xml`){a?.(s.result);return}o.createThumbnailFromUrl(e,t,n,r,i,a)},s.readAsDataURL(e)}},{key:`displayExistingFile`,value:function(e,t,n,r){var i=this,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;this.emit(`addedfile`,e),this.emit(`complete`,e),a?(e.dataURL=t,this.createThumbnailFromUrl(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,function(t){i.emit(`thumbnail`,e,t),n&&n()},r)):(this.emit(`thumbnail`,e,t),n&&n())}},{key:`createThumbnailFromUrl`,value:function(e,t,n,r,i,a,o){var s=this,c=document.createElement(`img`);return o&&(c.crossOrigin=o),i=getComputedStyle(document.body).imageOrientation==`from-image`?!1:i,c.onload=function(){var o=function(e){return e(1)};return typeof EXIF<`u`&&EXIF!==null&&i&&(o=function(e){return EXIF.getData(c,function(){return e(EXIF.getTag(this,`Orientation`))})}),o(function(i){e.width=c.width,e.height=c.height;var o=s.options.resize.call(s,e,t,n,r),l=document.createElement(`canvas`),u=l.getContext(`2d`);switch(l.width=o.trgWidth,l.height=o.trgHeight,i>4&&(l.width=o.trgHeight,l.height=o.trgWidth),i){case 2:u.translate(l.width,0),u.scale(-1,1);break;case 3:u.translate(l.width,l.height),u.rotate(Math.PI);break;case 4:u.translate(0,l.height),u.scale(1,-1);break;case 5:u.rotate(.5*Math.PI),u.scale(1,-1);break;case 6:u.rotate(.5*Math.PI),u.translate(0,-l.width);break;case 7:u.rotate(.5*Math.PI),u.translate(l.height,-l.width),u.scale(-1,1);break;case 8:u.rotate(-.5*Math.PI),u.translate(-l.height,0);break}M(u,c,o.srcX==null?0:o.srcX,o.srcY==null?0:o.srcY,o.srcWidth,o.srcHeight,o.trgX==null?0:o.trgX,o.trgY==null?0:o.trgY,o.trgWidth,o.trgHeight);var d=l.toDataURL(`image/png`);if(a!=null)return a(d,l)})},a!=null&&(c.onerror=a),c.src=e.dataURL}},{key:`processQueue`,value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,e-t));for(;n<e;){if(!r.length)return;this.processFile(r.shift()),n++}}}}},{key:`processFile`,value:function(e){return this.processFiles([e])}},{key:`processFiles`,value:function(e){var t=h(e,!0),r;try{for(t.s();!(r=t.n()).done;){var i=r.value;i.processing=!0,i.status=n.UPLOADING,this.emit(`processing`,i)}}catch(e){t.e(e)}finally{t.f()}return this.options.uploadMultiple&&this.emit(`processingmultiple`,e),this.uploadFiles(e)}},{key:`_getFilesWithXhr`,value:function(e){return this.files.filter(function(t){return t.xhr===e}).map(function(e){return e})}},{key:`cancelUpload`,value:function(e){if(e.status===n.UPLOADING){var t=this._getFilesWithXhr(e.xhr),r=h(t,!0),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;a.status=n.CANCELED}}catch(e){r.e(e)}finally{r.f()}e.xhr!==void 0&&e.xhr.abort();var o=h(t,!0),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;this.emit(`canceled`,c)}}catch(e){o.e(e)}finally{o.f()}this.options.uploadMultiple&&this.emit(`canceledmultiple`,t)}else (e.status===n.ADDED||e.status===n.QUEUED)&&(e.status=n.CANCELED,this.emit(`canceled`,e),this.options.uploadMultiple&&this.emit(`canceledmultiple`,[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:`resolveOption`,value:function(e){if(typeof e==`function`){var t=[...arguments].slice(1);return e.apply(this,t)}return e}},{key:`uploadFile`,value:function(e){return this.uploadFiles([e])}},{key:`uploadFiles`,value:function(e){var t=this;this._transformFiles(e,function(r){if(t.options.chunking){var i=r[0];e[0].upload.chunked=t.options.chunking&&(t.options.forceChunking||i.size>t.options.chunkSize),e[0].upload.totalChunkCount=Math.ceil(i.size/t.options.chunkSize)}if(e[0].upload.chunked){var a=e[0],o=r[0],s=0;a.upload.chunks=[];var c=function(){for(var r=0;a.upload.chunks[r]!==void 0;)r++;if(!(r>=a.upload.totalChunkCount)){s++;var i=r*t.options.chunkSize,c=Math.min(i+t.options.chunkSize,o.size),l={name:t._getParamName(0),data:o.webkitSlice?o.webkitSlice(i,c):o.slice(i,c),filename:a.upload.filename,chunkIndex:r};a.upload.chunks[r]={file:a,index:r,dataBlock:l,status:n.UPLOADING,progress:0,retries:0},t._uploadData(e,[l])}};if(a.upload.finishedChunkUpload=function(r,i){var o=!0;r.status=n.SUCCESS,r.dataBlock=null,r.xhr=null;for(var s=0;s<a.upload.totalChunkCount;s++){if(a.upload.chunks[s]===void 0)return c();a.upload.chunks[s].status!==n.SUCCESS&&(o=!1)}o&&t.options.chunksUploaded(a,function(){t._finished(e,i,null)})},t.options.parallelChunkUploads)for(var l=0;l<a.upload.totalChunkCount;l++)c();else c()}else{for(var u=[],d=0;d<e.length;d++)u[d]={name:t._getParamName(d),data:r[d],filename:e[d].upload.filename};t._uploadData(e,u)}})}},{key:`_getChunk`,value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(e.upload.chunks[n]!==void 0&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:`_uploadData`,value:function(e,t){var r=this,i=new XMLHttpRequest,a=h(e,!0),o;try{for(a.s();!(o=a.n()).done;){var s=o.value;s.xhr=i}}catch(e){a.e(e)}finally{a.f()}e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=i);var c=this.resolveOption(this.options.method,e),l=this.resolveOption(this.options.url,e);i.open(c,l,!0),this.resolveOption(this.options.timeout,e)&&(i.timeout=this.resolveOption(this.options.timeout,e)),i.withCredentials=!!this.options.withCredentials,i.onload=function(t){r._finishedUploading(e,i,t)},i.ontimeout=function(){r._handleUploadError(e,i,`Request timedout after ${r.options.timeout/1e3} seconds`)},i.onerror=function(){r._handleUploadError(e,i)};var u=i.upload==null?i:i.upload;u.onprogress=function(t){return r._updateFilesUploadProgress(e,i,t)};var d={Accept:`application/json`,"Cache-Control":`no-cache`,"X-Requested-With":`XMLHttpRequest`};for(var f in this.options.headers&&n.extend(d,this.options.headers),d){var p=d[f];p&&i.setRequestHeader(f,p)}var m=new FormData;if(this.options.params){var g=this.options.params;for(var _ in typeof g==`function`&&(g=g.call(this,e,i,e[0].upload.chunked?this._getChunk(e[0],i):null)),g){var v=g[_];if(Array.isArray(v))for(var y=0;y<v.length;y++)m.append(_,v[y]);else m.append(_,v)}}var b=h(e,!0),x;try{for(b.s();!(x=b.n()).done;){var S=x.value;this.emit(`sending`,S,i,m)}}catch(e){b.e(e)}finally{b.f()}this.options.uploadMultiple&&this.emit(`sendingmultiple`,e,i,m),this._addFormElementData(m);for(var C=0;C<t.length;C++){var w=t[C];m.append(w.name,w.data,w.filename)}this.submitRequest(i,m,e)}},{key:`_transformFiles`,value:function(e,t){for(var n=this,r=[],i=0,a=function(a){n.options.transformFile.call(n,e[a],function(n){r[a]=n,++i===e.length&&t(r)})},o=0;o<e.length;o++)a(o)}},{key:`_addFormElementData`,value:function(e){if(this.element.tagName===`FORM`){var t=h(this.element.querySelectorAll(`input, textarea, select, button`),!0),n;try{for(t.s();!(n=t.n()).done;){var r=n.value,i=r.getAttribute(`name`),a=r.getAttribute(`type`);if(a&&=a.toLowerCase(),i!=null)if(r.tagName===`SELECT`&&r.hasAttribute(`multiple`)){var o=h(r.options,!0),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;c.selected&&e.append(i,c.value)}}catch(e){o.e(e)}finally{o.f()}}else (!a||a!==`checkbox`&&a!==`radio`||r.checked)&&e.append(i,r.value)}}catch(e){t.e(e)}finally{t.f()}}}},{key:`_updateFilesUploadProgress`,value:function(e,t,n){if(e[0].upload.chunked){var r=e[0],i=this._getChunk(r,t);n?(i.progress=100*n.loaded/n.total,i.total=n.total,i.bytesSent=n.loaded):(i.progress=100,i.bytesSent=i.total),r.upload.progress=0,r.upload.total=0,r.upload.bytesSent=0;for(var a=0;a<r.upload.totalChunkCount;a++)r.upload.chunks[a]&&r.upload.chunks[a].progress!==void 0&&(r.upload.progress+=r.upload.chunks[a].progress,r.upload.total+=r.upload.chunks[a].total,r.upload.bytesSent+=r.upload.chunks[a].bytesSent);r.upload.progress=r.upload.progress/r.upload.totalChunkCount,this.emit(`uploadprogress`,r,r.upload.progress,r.upload.bytesSent)}else{var o=h(e,!0),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;c.upload.total&&c.upload.bytesSent&&c.upload.bytesSent==c.upload.total||(n?(c.upload.progress=100*n.loaded/n.total,c.upload.total=n.total,c.upload.bytesSent=n.loaded):(c.upload.progress=100,c.upload.bytesSent=c.upload.total),this.emit(`uploadprogress`,c,c.upload.progress,c.upload.bytesSent))}}catch(e){o.e(e)}finally{o.f()}}}},{key:`_finishedUploading`,value:function(e,t,r){var i;if(e[0].status!==n.CANCELED&&t.readyState===4){if(t.responseType!==`arraybuffer`&&t.responseType!==`blob`&&(i=t.responseText,t.getResponseHeader(`content-type`)&&~t.getResponseHeader(`content-type`).indexOf(`application/json`)))try{i=JSON.parse(i)}catch(e){r=e,i=`Invalid JSON response from server.`}this._updateFilesUploadProgress(e,t),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t),i):this._finished(e,i,r):this._handleUploadError(e,t,i)}}},{key:`_handleUploadError`,value:function(e,t,r){if(e[0].status!==n.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var i=this._getChunk(e[0],t);if(i.retries++<this.options.retryChunksLimit){this._uploadData(e,[i.dataBlock]);return}else console.warn(`Retried this chunk too often. Giving up.`)}this._errorProcessing(e,r||this.options.dictResponseError.replace(`{{statusCode}}`,t.status),t)}}},{key:`submitRequest`,value:function(e,t,n){if(e.readyState!=1){console.warn(`Cannot send this request because the XMLHttpRequest.readyState is not OPENED.`);return}e.send(t)}},{key:`_finished`,value:function(e,t,r){var i=h(e,!0),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;o.status=n.SUCCESS,this.emit(`success`,o,t,r),this.emit(`complete`,o)}}catch(e){i.e(e)}finally{i.f()}if(this.options.uploadMultiple&&(this.emit(`successmultiple`,e,t,r),this.emit(`completemultiple`,e)),this.options.autoProcessQueue)return this.processQueue()}},{key:`_errorProcessing`,value:function(e,t,r){var i=h(e,!0),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;o.status=n.ERROR,this.emit(`error`,o,t,r),this.emit(`complete`,o)}}catch(e){i.e(e)}finally{i.f()}if(this.options.uploadMultiple&&(this.emit(`errormultiple`,e,t,r),this.emit(`completemultiple`,e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:`initClass`,value:function(){this.prototype.Emitter=c,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`.split(`.`),this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:`extend`,value:function(e){for(var t=[...arguments].slice(1),n=0,r=t;n<r.length;n++){var i=r[n];for(var a in i)e[a]=i[a]}return e}},{key:`uuidv4`,value:function(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(e){var t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}}]),n}(c);O.initClass(),O.version=`5.9.3`,O.options={},O.optionsForElement=function(e){if(e.getAttribute(`id`))return O.options[A(e.getAttribute(`id`))]},O.instances=[],O.forElement=function(e){if(typeof e==`string`&&(e=document.querySelector(e)),e?.dropzone==null)throw 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 e.dropzone},O.autoDiscover=!0,O.discover=function(){var e;if(document.querySelectorAll)e=document.querySelectorAll(`.dropzone`);else{e=[];var t=function(t){return function(){var n=[],r=h(t,!0),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;/(^| )dropzone($| )/.test(a.className)?n.push(e.push(a)):n.push(void 0)}}catch(e){r.e(e)}finally{r.f()}return n}()};t(document.getElementsByTagName(`div`)),t(document.getElementsByTagName(`form`))}return function(){var t=[],n=h(e,!0),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;O.optionsForElement(i)===!1?t.push(void 0):t.push(new O(i))}}catch(e){n.e(e)}finally{n.f()}return t}()},O.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],O.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!(`classList`in document.createElement(`a`)))e=!1;else{O.blacklistedBrowsers!==void 0&&(O.blockedBrowsers=O.blacklistedBrowsers);var t=h(O.blockedBrowsers,!0),n;try{for(t.s();!(n=t.n()).done;)if(n.value.test(navigator.userAgent)){e=!1;continue}}catch(e){t.e(e)}finally{t.f()}}else e=!1;return e},O.dataURItoBlob=function(e){for(var t=atob(e.split(`,`)[1]),n=e.split(`,`)[0].split(`:`)[1].split(`;`)[0],r=new ArrayBuffer(t.length),i=new Uint8Array(r),a=0,o=t.length,s=0<=o;s?a<=o:a>=o;s?a++:a--)i[a]=t.charCodeAt(a);return new Blob([r],{type:n})};var k=function(e,t){return e.filter(function(e){return e!==t}).map(function(e){return e})},A=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})};O.createElement=function(e){var t=document.createElement(`div`);return t.innerHTML=e,t.childNodes[0]},O.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},O.getElement=function(e,t){var n;if(typeof e==`string`?n=document.querySelector(e):e.nodeType!=null&&(n=e),n==null)throw Error(`Invalid \`${t}\` option provided. Please provide a CSS selector or a plain HTML element.`);return n},O.getElements=function(e,t){var n,r;if(e instanceof Array){r=[];try{var i=h(e,!0),a;try{for(i.s();!(a=i.n()).done;)n=a.value,r.push(this.getElement(n,t))}catch(e){i.e(e)}finally{i.f()}}catch{r=null}}else if(typeof e==`string`){r=[];var o=h(document.querySelectorAll(e),!0),s;try{for(o.s();!(s=o.n()).done;)n=s.value,r.push(n)}catch(e){o.e(e)}finally{o.f()}}else e.nodeType!=null&&(r=[e]);if(r==null||!r.length)throw Error(`Invalid \`${t}\` option provided. Please provide a CSS selector, a plain HTML element or a list of those.`);return r},O.confirm=function(e,t,n){if(window.confirm(e))return t();if(n!=null)return n()},O.isValidFile=function(e,t){if(!t)return!0;t=t.split(`,`);var n=e.type,r=n.replace(/\/.*$/,``),i=h(t,!0),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;if(o=o.trim(),o.charAt(0)===`.`){if(e.name.toLowerCase().indexOf(o.toLowerCase(),e.name.length-o.length)!==-1)return!0}else if(/\/\*$/.test(o)){if(r===o.replace(/\/.*$/,``))return!0}else if(n===o)return!0}}catch(e){i.e(e)}finally{i.f()}return!1},typeof jQuery<`u`&&jQuery!==null&&(jQuery.fn.dropzone=function(e){return this.each(function(){return new O(this,e)})}),O.ADDED=`added`,O.QUEUED=`queued`,O.ACCEPTED=O.QUEUED,O.UPLOADING=`uploading`,O.PROCESSING=O.UPLOADING,O.CANCELED=`canceled`,O.ERROR=`error`,O.SUCCESS=`success`;var j=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement(`canvas`);n.width=1,n.height=t;var r=n.getContext(`2d`);r.drawImage(e,0,0);for(var i=r.getImageData(1,0,1,t).data,a=0,o=t,s=t;s>a;)i[(s-1)*4+3]===0?o=s:a=s,s=o+a>>1;var c=s/t;return c===0?1:c},M=function(e,t,n,r,i,a,o,s,c,l){var u=j(t);return e.drawImage(t,n,r,i,a,o,s,c,l/u)},N=function(){function e(){v(this,e)}return b(e,null,[{key:`initClass`,value:function(){this.KEY_STR=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`}},{key:`encode64`,value:function(e){for(var t=``,n=void 0,r=void 0,i=``,a=void 0,o=void 0,s=void 0,c=``,l=0;n=e[l++],r=e[l++],i=e[l++],a=n>>2,o=(n&3)<<4|r>>4,s=(r&15)<<2|i>>6,c=i&63,isNaN(r)?s=c=64:isNaN(i)&&(c=64),t=t+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(c),n=r=i=``,a=o=s=c=``,l<e.length;);return t}},{key:`restore`,value:function(e,t){if(!e.match(`data:image/jpeg;base64,`))return t;var n=this.decode64(e.replace(`data:image/jpeg;base64,`,``)),r=this.slice2Segments(n),i=this.exifManipulation(t,r);return`data:image/jpeg;base64,${this.encode64(i)}`}},{key:`exifManipulation`,value:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)}},{key:`getExifArray`,value:function(e){for(var t=void 0,n=0;n<e.length;){if(t=e[n],t[0]===255&t[1]===225)return t;n++}return[]}},{key:`insertExif`,value:function(e,t){var n=e.replace(`data:image/jpeg;base64,`,``),r=this.decode64(n),i=r.indexOf(255,3),a=r.slice(0,i),o=r.slice(i),s=a;return s=s.concat(t),s=s.concat(o),s}},{key:`slice2Segments`,value:function(e){for(var t=0,n=[];;){var r;if(e[t]===255&e[t+1]===218)break;if(e[t]===255&e[t+1]===216)t+=2;else{r=e[t+2]*256+e[t+3];var i=t+r+2,a=e.slice(t,i);n.push(a),t=i}if(t>e.length)break}return n}},{key:`decode64`,value:function(e){var t=void 0,n=void 0,r=``,i=void 0,a=void 0,o=void 0,s=``,c=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn(`There were invalid base64 characters in the input text.
|
|
13
13
|
Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
|
|
14
|
-
Expect errors in decoding.`),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,``);i=this.KEY_STR.indexOf(e.charAt(c++)),a=this.KEY_STR.indexOf(e.charAt(c++)),o=this.KEY_STR.indexOf(e.charAt(c++)),s=this.KEY_STR.indexOf(e.charAt(c++)),t=i<<2|a>>4,n=(a&15)<<4|o>>2,r=(o&3)<<6|s,l.push(t),o!==64&&l.push(n),s!==64&&l.push(r),t=n=r=``,i=a=o=s=``,c<e.length;);return l}}]),e}();N.initClass(),O._autoDiscoverFunction=function(){if(O.autoDiscover)return O.discover()},function(e,t){var n=!1,r=!0,i=e.document,a=i.documentElement,o=i.addEventListener?`addEventListener`:`attachEvent`,s=i.addEventListener?`removeEventListener`:`detachEvent`,c=i.addEventListener?``:`on`,l=function r(a){if(!(a.type===`readystatechange`&&i.readyState!==`complete`)&&((a.type===`load`?e:i)[s](c+a.type,r,!1),!n&&(n=!0)))return t.call(e,a.type||a)},u=function e(){try{a.doScroll(`left`)}catch{setTimeout(e,50);return}return l(`poll`)};if(i.readyState!==`complete`){if(i.createEventObject&&a.doScroll){try{r=!e.frameElement}catch{}r&&u()}return i[o](c+`DOMContentLoaded`,l,!1),i[o](c+`readystatechange`,l,!1),e[o](c+`load`,l,!1)}}(window,O._autoDiscoverFunction);function P(e,t){return e==null?void 0:t(e)}function F(e,t,n){if(e!=null&&typeof e[t]==`function`)return n(e,t)}window.Dropzone=O;var I=O})(),r})()})})),JE=_(qE()),YE=`upload.internetConnectivityError`,XE=class extends gS{constructor(){super(Xe.getPhrase(YE,`title`))}get name(){return`InternetConnectivityError`}get dialogOptions(){return{title:Xe.getPhrase(YE,`heading`),text:Xe.getPhrase(YE,`body`),buttons:[{text:Xe.getPhrase(YE,`okay`),className:`btn btn-outline-dark`,success:!0}]}}},ZE=`upload.slowInternetError`,QE=class extends gS{constructor(){super(Xe.getPhrase(ZE,`title`))}get name(){return`SlowInternetError`}get dialogOptions(){return{title:Xe.getPhrase(ZE,`heading`),text:Xe.getPhrase(ZE,`body`),buttons:[{text:Xe.getPhrase(ZE,`okay`),className:`btn btn-outline-dark`,success:!0}]}}};r();var $E=[],eD=class extends A{get name(){return`DropzoneWrapper`}constructor(e){super(e),this.slowInternetTimeout={},this.showSlowInternetTimeout=!0}initialize(e){let{loggingEnabled:t}=this.options,r=fx.default.channel(e.channelName),i=this;this.dropzone=new JE.default(document.createElement(`div`),{url:(e=>{let{ingestUrl:t}=e[0].cvUpload;return t}),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(){t&&(n.each($E,e=>{this.on(e,(...t)=>{let n=t[0]instanceof File?t[0].name:t[0];console.info(e,n,t)})}),this.on(`uploadprogress`,(e,t,n)=>{let a=n/e.size*100;r.trigger(`progress`,i.getId(e),a,n)}),this.on(`success`,e=>{let t=e.upload.chunks,i=n.last(t),a=i.xhr;a||=i.file.xhr;let o=JSON.parse(a.response);e.cvUpload.fileId=o.id,r.trigger(wS.UPLOAD_SUCCESS,e,o)}),this.on(`error`,(e,t,n)=>{if(n&&n.status===0){O.throw(new XE);return}e.status!==`canceled`&&O.throw(new CS(Xe.getPhrase(`upload.services`,`uploadError`,{fileName:e.name,message:t.message})))}),this.on(`sending`,e=>{window.clearTimeout(i.slowInternetTimeout[e.path]),i.showSlowInternetTimeout&&(i.slowInternetTimeout[e.path]=window.setTimeout(()=>{i.showSlowInternetTimeout&&O.throw(new QE),i.showSlowInternetTimeout=!1},3e4))}),this.on(`complete`,e=>window.clearTimeout(i.slowInternetTimeout[e.path])))},params:(e,t,n)=>{if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:()=>{},thumbnail:()=>{},uploadprogress:()=>{}})}getId(e){return e.upload.uuid}addFile(e){this.dropzone.addFile(e)}removeFile(e){this.dropzone.removeFile(e)}start(){this.dropzone.processQueue()}destroy(){this.dropzone.destroy()}static isValidFile(e,t){return JE.default.isValidFile(e,t)}};r();var tD=class extends ME{constructor(){super({dataProvider:an.getInstance(jE.Ajax),cache:an.getInstance(AE.Fifo),alertService:an.getInstance(Ye.ALERT)}),this.incrementingUploadId=0}get name(){return`UploadDataService`}get channelName(){return`private:upload:data:service`}requestUploads(e,t,n,r,i){let a=this.chain();k(t,t=>{this.incrementingUploadId++,a.create({resource:e,eventPrefix:`request:upload:${this.incrementingUploadId}`,data:this.getFileUploadRequest(t,n),callback:e=>{r(t,e)},errorHandler:this.alertService.error(`Something went wrong while we were uploading your video. Please try again.`)})}),a.func(()=>{i()}).run()}cancelUpload(e,t,n){this.create({resource:`/api/upload/cancel`,eventPrefix:`cancel:upload`,data:{uploadId:e,ingestUrl:t},callback:n})}getFileUploadRequest(e,t){let n=e.name.split(`.`);return{name:n.join(`.`),extension:n.length>1?n.pop():``,fileSize:e.size,fileLifestyle:t}}onDestroy(){an.releaseInstance(jE.Ajax).releaseInstance(AE.Fifo)}},nD=function(e){return e[e.Video=0]=`Video`,e[e.LearningResource=1]=`LearningResource`,e[e.Subtitle=2]=`Subtitle`,e[e.MixedMedia=3]=`MixedMedia`,e}({}),rD={[nD.Video]:GE.VIDEO,[nD.LearningResource]:GE.RESOURCES,[nD.Subtitle]:GE.SUBTITLES,[nD.MixedMedia]:GE.MIXED_MEDIA},iD={[nD.Video]:TS.VIDEO_UPLOAD,[nD.LearningResource]:TS.RESOURCE_UPLOAD,[nD.Subtitle]:TS.SUBTITLE_UPLOAD,[nD.MixedMedia]:TS.MIXED_MEDIA_UPLOAD},aD=1024*1024*4,oD=1024*1024*1024*50,sD=class extends A{initialize(){this.uploadDataService=new tD,this.progressViewModel=NE.get(`upload:progress:${this.uploadType}`),this.bindListeners()}get channelName(){return iD[this.uploadType]}get lang(){return`uploadShared.services`}initUploader(e,t){if(this.uploader)return;let n=aD;e&&n<e&&(n=e),t&&n>t&&(n=t),this.uploader=new eD({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:oD,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}bindListeners(){this.listenTo(this.channelName,`progress`,this.onProgress),this.listenTo(this.channelName,wS.UPLOAD_SUCCESS,this.onSuccess)}onProgress(e,t,n){let r=this.collection.get(e);r&&(r.set({progress:t>100?100:t,totalUploaded:n}),this.setOverallProgress())}isUploading(){return!!this.getCollection().length}getCollection(){return this.collection||=new C,this.collection}setOverallProgress(){let e=0,t=0,n=this.getCollection();if(!n.length){this.progressViewModel.set({progress:0});return}n.each(n=>{e+=n.get(`totalUploaded`)||0,t+=n.get(`file`).size||0});let r=e/t*100,i=r>=100,a=()=>{this.progressViewModel.set({progress:i?100:r,done:i})};if(!i){a();return}window.setTimeout(a,2e3)}isValidFile(e){return eD.isValidFile(e,this.getAcceptedFiles())}addFiles(e,t){if(c(e,e=>!this.isValidFile(e))){O.throw(new FE(Xe.getPhrase(this.lang,`invalidFileType`)));return}this.requestUploads(e,t)}async requestUploads(e,t){let n=this.isUploading(),r=this.getCollection();for(let t of e){let e=await Tt(this.options.store.dispatch,KE.requestUpload(t,this.fileLifestyle));`minChunkSize`in e&&`maxChunkSize`in e&&this.initUploader(e.minChunkSize,e.maxChunkSize),t.cvUpload={uploadId:e.uploadId,ingestUrl:e.uploadUrl},this.uploader.addFile(t);let n=t.name;this.uploadType===nD.Video&&(n=n.replace(/\.[^/.]+$/,``));let i=this.uploader.getId(t);r.add({id:i,file:t,name:n,...this.getAdditionalFileInfo(t,e)},{at:r.length-1})}t&&dt.logUserAction({uploadCount:e.length},t),fx.default.channel(this.channelName).trigger(wS.FILES_ADDED,e,n)}addFile(e,t){this.addFiles([e],t)}cancelUpload(e){let t=this.getCollection(),n=t.get(e);if(!n)return;let r=n.get(`file`);this.uploader.removeFile(r),t.remove(n),this.uploadDataService.cancelUpload(r.cvUpload.uploadId,r.cvUpload.ingestUrl,()=>{dt.logUserAction(n.toJSON(),{entity:ct.Video,actionType:B.Upload,workflowPhase:$e.Discard,descriptor:it.Single,location:ut.MyUploads}),fx.default.channel(this.channelName).trigger(wS.UPLOAD_CANCELLED)}),this.setOverallProgress()}onSuccess(e,t){let n=this.uploader.getId(e),r=this.getCollection().get(n);r.set(`fileInfo`,t),dt.logUserAction({id:e.cvUpload.uploadId},{entity:ct.Video,actionType:B.Upload,workflowPhase:$e.Complete,descriptor:it.Single,location:ut.VideoUpload}),fx.default.channel(this.channelName).trigger(wS.UPLOAD_COMPLETE,r)}cancelAllUploads(){k(this.getCollection().map(e=>e.get(`id`)),e=>this.cancelUpload(e))}getUpload(e){let t=this.uploader.getId(e);return this.getCollection().get(t)}getAcceptedFiles(){return rD[this.uploadType]}getAdditionalFileInfo(e,t){return{}}},cD=class extends sD{get uploadType(){return nD.MixedMedia}get name(){return Kt.MixedMediaUpload}get fileLifestyle(){return PE.Temporary}},lD=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return US(e,t)})},uD=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return GS(e,t)})},dD=function(e){dn(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&Tn(e),r&&(this.appliedClasses[t][n]=r,lD(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&uD(e,r),i&&uD(e,i),a&&uD(e,a)},n.render=function(){var e=this.props;e.classNames;var t=st(e,[`classNames`]);return X.createElement(sn,Ze({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(X.Component);dD.defaultProps={classNames:``},dD.propTypes={};function fD(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function pD(e,t){var n=function(e){return t&&(0,X.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&X.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function mD(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function hD(e,t,n){return n[t]==null?e.props[t]:n[t]}function gD(e,t){return pD(e.children,function(n){return(0,X.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:hD(n,`appear`,e),enter:hD(n,`enter`,e),exit:hD(n,`exit`,e)})})}function _D(e,t,n){var r=pD(e.children),i=mD(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,X.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,X.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,X.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:hD(o,`exit`,e),enter:hD(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,X.cloneElement)(o,{in:!1}):c&&s&&(0,X.isValidElement)(l)&&(i[a]=(0,X.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:hD(o,`exit`,e),enter:hD(o,`enter`,e)}))}}),i}var vD=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},yD={component:`div`,childFactory:function(e){return e}},bD=function(e){dn(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(fD(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?gD(e,r):_D(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=pD(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Ze({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=st(e,[`component`,`childFactory`]),i=this.state.contextValue,a=vD(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?X.createElement(fn.Provider,{value:i},a):X.createElement(fn.Provider,{value:i},X.createElement(t,r,a))},t}(X.Component);bD.propTypes={},bD.defaultProps=yD;function xD(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.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 SD(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.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 CD(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.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 wD(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.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`})})}var TD={alertItem:`_alertItem_i5y1z_1`,alertBox:`_alertBox_i5y1z_11`,alertList:`_alertList_i5y1z_11`,icon:`_icon_i5y1z_28`,alertContent:`_alertContent_i5y1z_32`,heading:`_heading_i5y1z_40`};function ED(e){let{alert:t,svg:n,svgClassName:r,closeAlert:i}=e,{message:a,heading:o,appLink:s,appLinkText:c,appLinkClassName:l=``,extLink:u,extLinkText:d,extLinkClassName:f}=t;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{className:`d-inline-block ${TD.icon}`,children:(0,Z.jsx)(He,{svg:n,className:`svg-container ${r}`})}),(0,Z.jsxs)(`div`,{role:t.type===rn.Fail?`alert`:`status`,className:`ps-2 d-inline-block ${TD.alertContent}`,children:[(0,Z.jsx)(`p`,{className:`p-0 m-0 pb-1 ${TD.heading}`,children:o}),(0,Z.jsx)(`p`,{className:`p-0 text-break clamp-4 ${TD.message}`,dangerouslySetInnerHTML:{__html:a}}),!!s&&(0,Z.jsx)(zn,{className:l,appLink:s,children:(0,Z.jsx)(`span`,{dangerouslySetInnerHTML:{__html:c}})}),!!u&&d&&(0,Z.jsx)(`a`,{href:u,className:f,target:`_blank`,children:d})]}),(0,Z.jsx)(`div`,{className:`btn-close d-inline-block cursor-pointer`,role:`button`,"aria-label":`Close`,onClick:i})]})}var DD=e=>{switch(e.type){case rn.Success:return xD;case rn.Fail:case rn.Warning:return wD;case rn.Pending:return CD;case rn.Info:default:return SD}},OD=e=>e.type===rn.Pending?`text-info`:`text-${e.type}`;kD.defaultProps={timeout:3e3};function kD({alert:e,closeAlert:t,timeout:n}){let[r,i]=X.useState(!0),a=X.useRef(null);return X.useEffect(()=>{if(!r){clearTimeout(a.current);return}a.current=window.setTimeout(t,n)},[r]),(0,Z.jsx)(`li`,{className:`bg-white mt-2 p-2 show clearfix ${TD.alertItem}`,onMouseEnter:()=>i(!1),onMouseLeave:()=>i(!0),children:(0,Z.jsx)(ED,{alert:e,svg:DD(e),svgClassName:OD(e),closeAlert:t})})}function AD({alerts:e,removeAlert:t}){return(0,Z.jsx)(`div`,{className:TD.alertBox,children:(0,Z.jsx)(bD,{component:`ul`,className:`${TD.alertList} list-unstyled`,children:e&&e.map((e,n)=>(0,Z.jsx)(dD,{timeout:200,classNames:`alert`,children:(0,Z.jsx)(kD,{alert:e,closeAlert:()=>t(e.id),timeout:e.timeout})},n))})})}var jD={[Lt.US]:`en-us`},MD={getInstanceRegion(e,t){return e.instanceRegion?e.instanceRegion:hr.getInstanceRegion(t?.countryCode)},BRAZE_CLIENT_SOURCE:`cv_product_braze_client_service`},ND={shouldInitialize(e){return!!e.isAuthenticated}};async function PD(e){let t=Ct(e.store,kx.config()),n=Ct(e.store,kx.version());return{currentUser:await Ct(e.store,Gt.currentUser()),config:await t,version:await n}}var FD={countryCode:pr.US};async function ID(e,t){try{let{currentUser:n,config:r,version:i}=await PD(e);yt.setCurrentRegion(jD[n.instanceRegion]);let a={maxAlerts:3,defaultSuccessAlert:{heading:AC.Success,type:rn.Success},defaultErrorAlert:{heading:AC.Fail,type:rn.Fail},alertViewCtor:AD};an.registerSingleton(new nn(a)).registerInstance(cD,{store:e.store}),await o(),t(e);async function o(){let{BrazeClientService:e}=await Ht(async()=>{let{BrazeClientService:e}=await import(`./m9QbGES0.chunk.js`);return{BrazeClientService:e}},__vite__mapDeps([234,1,200,89])),t=MD.getInstanceRegion(n,FD),a={client:{productName:`streamable.web`,version:i,apiKey:r.braze[t].apiKey,baseUrl:r.braze[t].url,shouldInitialize:ND.shouldInitialize(n),geoLocation:FD},context:{user:n},eventOptions:{logAttributionData:!0,logUtmParameters:!0}};an.registerInstance(e,a)}}catch{O.throw(new mx)}}function LD(e){var t,n=e.Symbol;return typeof n==`function`?n.observable?t=n.observable:(t=n(`observable`),n.observable=t):t=`@@observable`,t}var RD=LD(typeof self<`u`?self:typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof module<`u`?module:Function(`return this`)()),zD=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},BD={INIT:`@@redux/INIT`+zD(),REPLACE:`@@redux/REPLACE`+zD(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+zD()}};function VD(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function HD(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw 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`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(`Expected the enhancer to be a function.`);return n(HD)(e,t)}if(typeof e!=`function`)throw Error(`Expected the reducer to be a function.`);var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw 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 d(e){if(typeof e!=`function`)throw Error(`Expected the listener to be a function.`);if(c)throw 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 t=!0;return l(),s.push(e),function(){if(t){if(c)throw 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.`);t=!1,l();var n=s.indexOf(e);s.splice(n,1)}}}function f(e){if(!VD(e))throw Error(`Actions must be plain objects. Use custom middleware for async actions.`);if(e.type===void 0)throw Error(`Actions may not have an undefined "type" property. Have you misspelled a constant?`);if(c)throw Error(`Reducers may not dispatch actions.`);try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(`Expected the nextReducer to be a function.`);i=e,f({type:BD.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw TypeError(`Expected the observer to be an object.`);function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[RD]=function(){return this},e}return f({type:BD.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[RD]=m,r}function UD(e,t){var n=t&&t.type;return`Given `+(n&&`action "`+String(n)+`"`||`an action`)+`, 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 WD(e){Object.keys(e).forEach(function(t){var n=e[t];if(n(void 0,{type:BD.INIT})===void 0)throw 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(n(void 0,{type:BD.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(`Reducer "`+t+`" returned undefined when probed with a random type. `+(`Don't try to handle `+BD.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 GD(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}var a=Object.keys(n),o;try{WD(n)}catch(e){o=e}return function(e,t){if(e===void 0&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=n[c],u=e[c],d=l(u,t);if(d===void 0){var f=UD(c,t);throw Error(f)}i[c]=d,r||=d!==u}return r?i:e}}function KD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qD(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n}function JD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qD(n,!0).forEach(function(t){KD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qD(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YD(){var e=[...arguments];return e.length===0?function(e){return e}:e.length===1?e[0]:e.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function XD(){var e=[...arguments];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw Error(`Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.`)},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=e.map(function(e){return e(i)});return r=YD.apply(void 0,a)(n.dispatch),JD({},n,{dispatch:r})}}}var ZD={X_APP_VERSION:`X-App-Version`};function QD(e){let{oldVersionError:t,authenticationError:n}=e;return function(e){return r=>i=>{let a=i;if(i.type===St.API_ERROR&&n&&a?.xhr?.status===v.Unauthorized)return O.throw(new n(`dark`));if(i.type!==St.API_RESPONSE){r(i);return}let o=e.getState().applicationData.version,s=a?.xhr?.getResponseHeader(ZD.X_APP_VERSION);t&&o&&s&&s!==o&&O.throw(new t(o,s)),r(i)}}}function $D(e,t){if(!et.isObject(t.xhr))return e;let n=t.xhr.getResponseHeader(ZD.X_APP_VERSION);return n?{...e,version:n}:e}var eO={version:null};function tO(e=eO,t){switch(t.type){case St.API_RESPONSE:return $D(e,t)}return e}function nO(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})}function rO(e={},t){switch(t.type){case ir.UPDATE:return nO(e,t)}return e}var iO={SHORT:120,STANDARD:600},aO=`shared.authentication`,oO=class extends gS{constructor(e){super(Xe.getPhrase(aO,`title`)),this.btnVariant=e}get name(){return`AuthenticationError`}get dialogOptions(){return{title:Xe.getPhrase(aO,`heading`),text:Xe.getPhrase(aO,`body`),buttons:[{text:Xe.getPhrase(aO,`reload`),className:`btn btn-${this.btnVariant}`,success:!0}]}}onDone(){d.Reload()}},sO=class extends oO{onDone(){d.PageLoad(`/login?returnUrl=${encodeURIComponent(d.GetCurrentUrl())}`)}};async function cO(e,t,n){let r=kt(n.getState(),Gt.currentUser().key).data;return r?{...e,resource:At.isPublicRequest(t)&&!r.isAuthenticated?t.publicUrl:t.url}:e}var lO={hasTokenExpired(e){return typeof e?.localTTL==`number`?new Date().getTime()>e.localTTL:!1},getToken(e,t){let n=kt(e.getState(),Wt.TOKEN),r=lO.hasTokenExpired(n.data);if((n.shouldFetch||r)&&!n.isFetching){jt(e.dispatch,t);return}if(n.isFetching){let n=!1,r=e.subscribe(()=>{r(),!n&&(n=!0,lO.getToken(e,t))});return}n.hasError?(t.error?.({status:n.statusCode,getResponseHeader:null}),t.always?.()):(t.success?.(n.data),t.always?.())},async getTokenAsync(e){return fO.getToken()||new Promise((t,n)=>{lO.getToken(e,Gt.token(e=>t(e),e=>n(e)))})}},uO=uC.default.Router.prototype._routeToRegExp(`share/embed/:id(/)`),dO=uC.default.Router.prototype._routeToRegExp(`videos/embed/:id(/)`),fO={applyToken(e){let t=qt.getCurrentRoute().appLink,n=R.getHref({...t,params:{...typeof t.params==`object`?t.params:{},embedToken:e?.value,localTTL:e?.localTTL,a:!0}});d.PageLoad(n)},getToken(){let e=uC.default.history.getFragment(d.GetCurrentPath()),t=uO.test(e),n=dO.test(e);if(!t&&!n||!window.URLSearchParams)return null;let r=new URLSearchParams(window.location.search),i=r.get(`embedToken`),a=parseInt(r.get(`localTTL`));if(!i||!a)return null;let o={value:i,localTTL:isNaN(a)?null:a};return lO.hasTokenExpired(o)?null:o}};function pO(){let e=fO.getToken();return e?function(t,n){if(!t.resource.startsWith(`/`))return n(t);lO.hasTokenExpired(e)||(t.headers={...t.headers??{},authorization:`Bearer ${e.value}`}),n(t)}:(e,t)=>t(e)}var mO={safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith(`/`)||(n+=`/`),t&&(n+=t.startsWith(`/`)?t.slice(1):t),n}},hO={"{gateway}":`gatewayApiUrl`,"{image}":`imageCdnUrl`,"{integrations}":`integrationsApiUrl`,"{player}":`playerApiUrl`};function gO(e){return async function(t,n){let r=Object.keys(hO).find(e=>t.resource.startsWith(e));if(!r)return n(t);function i(e,i){let a=e[hO[r]],o={...t,resource:mO.safeUrlConcat(a,t.resource.split(`${r}/`)[1])};i?.value&&(o.headers={...o.headers??{},authorization:`Bearer ${i.value}`}),n(o)}try{let t=await Ct(e,kx.config());if(!(await Ct(e,Gt.currentUser())).isAuthenticated){i(t);return}i(t,await lO.getTokenAsync(e))}catch{n(t)}}}var _O=/\(([^()]*)\)/g;function vO(e,t){return function(n,r){r({...n,resource:n.resource.replace(e,t)})}}function yO(e,t){function n(e){return function(n){let r=t[n];if(typeof r==`string`){e.useAsync(vO(n,r));return}r&&e.useAsync(r)}}return function(t,r){let i=new p,a=new p,o={resource:t.resource,store:e},s={resource:null,store:e},c=t.data?.ogql;if(decodeURIComponent(t.resource).replace(_O,n(i)),c){let e=JSON.stringify(t.data.ogql);s.resource=e,e.replace(_O,n(a))}i.goAsync(o,e=>{a.goAsync(s,n=>{r({...t,resource:e.resource,data:c?{...t.data,ogql:JSON.parse(n.resource)}:t.data})})})}}function bO(e,t){return function(n){let r=new p;r.useAsync(gO(e.store)),r.useAsync(yO(e.store,t)),r.useAsync(pO()),r.goAsync(n,e=>{Pt(e)})}}function xO(e,t){return async function(n,r){if(!t?.length)return n;try{let i=n;for(let n of t)i=await n(i,r,e.store);return i}catch{return n}}}var SO=[Q.DefaultPlaybackQuality,Q.DefaultLocalCachePlaybackQuality,Q.EnableSubtitlesDefault,Q.PolicyEndTime,Q.ClickViewLive];function CO(e){return function(t,n){let r=SO.map(e=>`type=${e}`).join(`&`),i=t.resource.replace(e,r);n({...t,resource:i})}}var wO=[Q.HasCompletedOnboardingV1];function TO(e){return function(t,n){let r=wO.map(e=>`type=${e}`).join(`&`),i=t.resource.replace(e,r);n({...t,resource:i})}}var EO=`thumbnail,_rating,series,season,productionCompanies[logo]`,DO=`subtitles{limit:1}`;function OO(e){return function(t,n){Mt(t.store,Gt.currentUser(r=>{let i=`${EO}`;r.isAuthenticated&&(i+=`,favouritedby{id:${r.id}}`),e===Ut.VIDEO_COLLECTION&&(i+=`,`+DO);let a=t.resource.replace(e,i);n({...t,resource:a})},()=>n(t)))}}var kO={[Ut.VIDEO_COLLECTION]:OO(Ut.VIDEO_COLLECTION),"(customerSettings)":CO(`(customerSettings)`),"(userSettings)":TO(`(userSettings)`)};async function AO(e,t){let n=GD({flightData:Nt,viewModelData:rO,applicationData:tO}),r=Ot({fetchData:bO(e,kO),getFetchDataOptions:xO(e,[cO]),bootstrappedData:window.bootstrapData||{},defaultCacheDuration:iO.STANDARD}),i=QD({authenticationError:sO,oldVersionError:SS});async function a(n){e.registerStore(n),t(e),delete window.bootstrapData}await a(HD(n,XD(r,i)))}var jO=`application:options`;r();var MO=class extends A{constructor(e){super(),this.clients={},this.enrichers={},NE.get(jO).set(e??{})}get name(){return tt.Analytics}registerTransport(e,t){return this.transport=new e(t),this.bindTransportListeners(),this}bindTransportListeners(){this.listenTo(ft.ANALYTICS,at.Inlet,this.onEvent)}registerClient(e,t){return this.validateConstructor(e),this.clients[e.prototype.name]=e.prototype.name,this.transport.subscribe(new e(t)),this}registerEnricher(t,n){this.validateConstructor(t);let r=new t(n);return this.enrichers[r.name]=r,this.registerMiddleware(e(r.enrich,r)),this}hasEnricher(e){return!!this.enrichers[e.prototype.name]}onEvent(e){this.executeMiddleware(e,e=>{this.transport.publish(e)})}validateConstructor(e){let t=e.prototype.name;t||O.throw(new f(`Classes registered with ${this.name} must have a unique name property.`));let n=t=>We.isFunction(e.prototype.isType)&&e.prototype.isType(t);(n(`BaseAnalyticsClient`)||t===`CollectionApiClient`)&&this.clients[t]&&O.throw(new f(`A client class with the name: ${t} has already been registered with ${this.name}`)),n(`BaseAnalyticsEnricher`)&&this.enrichers[t]&&O.throw(new f(`An enricher class named: ${t} has already been registered with ${this.name}`))}registerMiddleware(e){this.executeMiddleware=(t=>(n,r)=>t(n,()=>e(n,r)))(this.executeMiddleware)}executeMiddleware(e,t){t(e)}},NO=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,PO=`UINT8ARRAY not supported by this environment`;function FO(e,t,n,r){let i,a,o,s=t||[0],c=(n||=0)>>>3,l=r===-1?3:0;for(i=0;i<e.length;i+=1)o=i+c,a=o>>>2,s.length<=a&&s.push(0),s[a]|=e[i]<<8*(l+o%4*r);return{value:s,binLen:8*e.length+n}}function IO(e,t,n){switch(t){case`UTF8`:case`UTF16BE`:case`UTF16LE`:break;default:throw Error(`encoding must be UTF8, UTF16BE, or UTF16LE`)}switch(e){case`HEX`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s;if(e.length%2!=0)throw Error(`String of HEX type must be in byte increments`);let c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(i=0;i<e.length;i+=2){if(a=parseInt(e.substr(i,2),16),isNaN(a))throw Error(`String of HEX type contains invalid characters`);for(s=(i>>>1)+l,o=s>>>2;c.length<=o;)c.push(0);c[o]|=a<<8*(u+s%4*r)}return{value:c,binLen:4*e.length+n}}(e,t,r,n)};case`TEXT`:return function(e,r,i){return function(e,t,n,r,i){let a,o,s,c,l,u,d,f,p=0,m=n||[0],h=(r||=0)>>>3;if(t===`UTF8`)for(d=i===-1?3:0,s=0;s<e.length;s+=1)for(a=e.charCodeAt(s),o=[],128>a?o.push(a):2048>a?(o.push(192|a>>>6),o.push(128|63&a)):55296>a||57344<=a?o.push(224|a>>>12,128|a>>>6&63,128|63&a):(s+=1,a=65536+((1023&a)<<10|1023&e.charCodeAt(s)),o.push(240|a>>>18,128|a>>>12&63,128|a>>>6&63,128|63&a)),c=0;c<o.length;c+=1){for(u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=o[c]<<8*(d+u%4*i),p+=1}else for(d=i===-1?2:0,f=t===`UTF16LE`&&i!==1||t!==`UTF16LE`&&i===1,s=0;s<e.length;s+=1){for(a=e.charCodeAt(s),!0===f&&(c=255&a,a=c<<8|a>>>8),u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=a<<8*(d+u%4*i),p+=2}return{value:m,binLen:8*p+r}}(e,t,r,i,n)};case`B64`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c,l,u,d=0,f=t||[0],p=(n||=0)>>>3,m=r===-1?3:0,h=e.indexOf(`=`);if(e.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw Error(`Invalid character in base-64 string`);if(e=e.replace(/=/g,``),h!==-1&&h<e.length)throw Error(`Invalid '=' found in base-64 string`);for(a=0;a<e.length;a+=4){for(c=e.substr(a,4),s=0,o=0;o<c.length;o+=1)i=NO.indexOf(c.charAt(o)),s|=i<<18-6*o;for(o=0;o<c.length-1;o+=1){for(u=d+p,l=u>>>2;f.length<=l;)f.push(0);f[l]|=(s>>>16-8*o&255)<<8*(m+u%4*r),d+=1}}return{value:f,binLen:8*d+n}}(e,t,r,n)};case`BYTES`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(a=0;a<e.length;a+=1)i=e.charCodeAt(a),s=a+l,o=s>>>2,c.length<=o&&c.push(0),c[o]|=i<<8*(u+s%4*r);return{value:c,binLen:8*e.length+n}}(e,t,r,n)};case`ARRAYBUFFER`:return function(e,t,r){return function(e,t,n,r){return FO(new Uint8Array(e),t,n,r)}(e,t,r,n)};case`UINT8ARRAY`:try{new Uint8Array}catch{throw Error(PO)}return function(e,t,r){return FO(e,t,r,n)};default:throw Error(`format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function LO(e,t,n,r){switch(e){case`HEX`:return function(e){return function(e,t,n,r){let i=`0123456789abcdef`,a,o,s=``,c=t/8,l=n===-1?3:0;for(a=0;a<c;a+=1)o=e[a>>>2]>>>8*(l+a%4*n),s+=i.charAt(o>>>4&15)+i.charAt(15&o);return r.outputUpper?s.toUpperCase():s}(e,t,n,r)};case`B64`:return function(e){return function(e,t,n,r){let i,a,o,s,c,l=``,u=t/8,d=n===-1?3:0;for(i=0;i<u;i+=3)for(s=i+1<u?e[i+1>>>2]:0,c=i+2<u?e[i+2>>>2]:0,o=(e[i>>>2]>>>8*(d+i%4*n)&255)<<16|(s>>>8*(d+n*((i+1)%4))&255)<<8|c>>>8*(d+n*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=t?NO.charAt(o>>>6*(3-a)&63):r.b64Pad;return l}(e,t,n,r)};case`BYTES`:return function(e){return function(e,t,n){let r,i,a=``,o=t/8,s=n===-1?3:0;for(r=0;r<o;r+=1)i=e[r>>>2]>>>8*(s+r%4*n)&255,a+=String.fromCharCode(i);return a}(e,t,n)};case`ARRAYBUFFER`:return function(e){return function(e,t,n){let r,i=t/8,a=new ArrayBuffer(i),o=new Uint8Array(a),s=n===-1?3:0;for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(s+r%4*n)&255;return a}(e,t,n)};case`UINT8ARRAY`:try{new Uint8Array}catch{throw Error(PO)}return function(e){return function(e,t,n){let r,i=t/8,a=n===-1?3:0,o=new Uint8Array(i);for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(a+r%4*n)&255;return o}(e,t,n)};default:throw Error(`format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function RO(e){let t={outputUpper:!1,b64Pad:`=`,outputLen:-1},n=e||{},r=`Output length must be a multiple of 8`;if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw Error(r);t.outputLen=n.shakeLen}if(typeof t.outputUpper!=`boolean`)throw Error(`Invalid outputUpper formatting option`);if(typeof t.b64Pad!=`string`)throw Error(`Invalid b64Pad formatting option`);return t}var zO=class{constructor(e,t,n){let r=n||{};if(this.t=t,this.i=r.encoding||`UTF8`,this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw Error(`numRounds must a integer >= 1`);this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.p=!1,this.U=[],this.R=[]}update(e){let t,n=0,r=this.T>>>5,i=this.F(e,this.h,this.u),a=i.binLen,o=i.value,s=a>>>5;for(t=0;t<s;t+=r)n+this.T<=a&&(this.m=this.g(o.slice(t,t+r),this.m),n+=this.T);return this.A+=n,this.h=o.slice(n>>>5),this.u=a%this.T,this.l=!0,this}getHash(e,t){let n,r,i=this.B,a=RO(t);if(this.v){if(a.outputLen===-1)throw Error(`Output length must be specified in options`);i=a.outputLen}let o=LO(e,i,this.H,a);if(this.p&&this.C)return o(this.C(a));for(r=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),i),n=1;n<this.numRounds;n+=1)this.v&&i%32!=0&&(r[r.length-1]&=16777215>>>24-i%32),r=this.Y(r,i,0,this.L(this.o),i);return o(r)}setHMACKey(e,t,n){if(!this.M)throw Error(`Variant does not support HMAC`);if(this.l)throw Error(`Cannot set MAC key after calling update`);let r=IO(t,(n||{}).encoding||`UTF8`,this.H);this.N(r(e))}N(e){let t=this.T>>>3,n=t/4-1,r;if(this.numRounds!==1)throw Error(`Cannot set numRounds with MAC`);if(this.p)throw Error(`MAC key already set`);for(t<e.binLen/8&&(e.value=this.Y(e.value,e.binLen,0,this.L(this.o),this.B));e.value.length<=n;)e.value.push(0);for(r=0;r<=n;r+=1)this.U[r]=909522486^e.value[r],this.R[r]=1549556828^e.value[r];this.m=this.g(this.U,this.m),this.A=this.T,this.p=!0}getHMAC(e,t){let n=RO(t);return LO(e,this.B,this.H,n)(this.S())}S(){let e;if(!this.p)throw Error(`Cannot call getHMAC without first setting MAC key`);let t=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),this.B);return e=this.g(this.R,this.L(this.o)),e=this.Y(t,this.B,this.T,e,this.B),e}};function BO(e,t){return e<<t|e>>>32-t}function VO(e,t,n){return e^t^n}function HO(e,t,n){return e&t^e&n^t&n}function UO(e,t){let n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function WO(e,t,n,r,i){let a=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function GO(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function KO(e,t){let n,r,i,a,o,s,c,l=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],c=0;c<80;c+=1)l[c]=c<16?e[c]:BO(l[c-3]^l[c-8]^l[c-14]^l[c-16],1),s=c<20?WO(BO(n,5),(u=r)&i^~u&a,o,1518500249,l[c]):c<40?WO(BO(n,5),VO(r,i,a),o,1859775393,l[c]):c<60?WO(BO(n,5),HO(r,i,a),o,2400959708,l[c]):WO(BO(n,5),VO(r,i,a),o,3395469782,l[c]),o=a,a=i,i=BO(r,30),r=n,n=s;var u;return t[0]=UO(n,t[0]),t[1]=UO(r,t[1]),t[2]=UO(i,t[2]),t[3]=UO(a,t[3]),t[4]=UO(o,t[4]),t}function qO(e,t,n,r){let i,a=15+(t+65>>>9<<4),o=t+n;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)r=KO(e.slice(i,i+16),r);return r}var JO=class extends zO{constructor(e,t,n){if(e!==`SHA-1`)throw Error(`Chosen SHA variant is not supported`);super(e,t,n);let r=n||{};this.M=!0,this.C=this.S,this.H=-1,this.F=IO(this.t,this.i,this.H),this.g=KO,this.I=function(e){return e.slice()},this.L=GO,this.Y=qO,this.m=[1732584193,4023233417,2562383102,271733878,3285377520],this.T=512,this.B=160,this.v=!1,r.hmacKey&&this.N(function(e,t,n,r){let i=e+` must include a value and format`;if(!t){if(!r)throw Error(i);return r}if(t.value===void 0||!t.format)throw Error(i);return IO(t.format,t.encoding||`UTF8`,n)(t.value)}(`hmacKey`,r.hmacKey,this.H))}},YO={CvApSoutheast1:{systemName:mr.CvApSoutheast1},CvApSoutheast2:{systemName:mr.CvApSoutheast2},CvEuWest1:{systemName:mr.CvEuWest1},CvNaWest1:{systemName:mr.CvNaWest1}},XO=`r`,ZO=`cv:r`,QO=`cv:r:e`,$O=`referrer`,ek=`cv:originalReferrer`,tk=28800,nk=[`internalReferrer`],rk={getDecodedAttributionData(){let e=en.cacheGet(ZO);return e&&Object.keys(e).length>0?e:ik()?.decoded},getEncodedAttributionData(){let e=en.cacheGet(QO);return e?.length?e:ik().encoded},getProfileId(){return rk.getDecodedAttributionData()?.profileId??null},setAttributionData(e){e&&uk(lk(e),e)},decodeRValue(e){if(e)try{let t=atob(e),n=JSON.parse(t);if(!ok(n))throw Error(`Decoded R value is invalid: ${JSON.stringify(n)}`);return n}catch(e){let t=e instanceof Error?e.message:e?.toString();console.error(t)}}};function ik(){let e=en.cacheGet(ZO),t=en.cacheGet(QO);return ok(e)?{encoded:t,decoded:e}:ak()}function ak(){en.cacheRemove(ZO),en.cacheRemove(QO);let e=ck(),t=rk.decodeRValue(e);if(t)return uk(e,t),{decoded:t,encoded:e};let n={internalReferrer:window.location.origin+window.location.pathname,originalReferrer:sk()},r=lk(n);return uk(r,n),{decoded:n,encoded:r}}function ok(e){return!e||typeof e!=`object`||Object.keys(e).length<nk.length?!1:nk.every(t=>typeof e[t]==`string`)}function sk(){let e=en.cacheGet(ek);if(e&&typeof e==`string`)return e;let t=document.referrer??``;if(window.URLSearchParams){let e=new URLSearchParams(window.location.search),n=e.has($O)&&e.get($O);e.has($O)&&e.get($O)&&(t=n)}return t&&en.cacheSet(ek,t,tk),t}function ck(){if(!window.URLSearchParams)return;let e=new URLSearchParams(window.location.search);if(e.has(XO))return e.get(XO)}function lk(e){if(ok(e))try{return btoa(JSON.stringify(e))}catch{console.error(`R value could not be encoded: ${JSON.stringify(e)}`)}}function uk(e,t){try{en.cacheSet(ZO,t,tk),en.cacheSet(QO,e,tk)}catch{console.error(`Could not store attribution data in session storage`)}}var dk=3,fk=5e3,pk=6,mk={},hk=class{constructor(e){this.key=e.toString()}getCount(){return mk[this.key]||0}increment(){mk[this.key]=this.getCount()+1}reset(){delete mk[this.key]}shouldBreak(){return this.getCount()>=pk}},gk=class{constructor(){this.attempt=0}async wait(){await new Promise(e=>setTimeout(e,fk*2**this.attempt)),this.attempt++}};async function _k(e,t){let n=new gk,r=new hk(e);async function i(){let n=await fetch(e,t);if(n.status>=500&&!r.shouldBreak())throw Error(`Server error: ${n.status}`);return n.ok&&r.reset(),n}for(let e=1;e<=dk;e++)try{return await i()}catch(t){if(e>=dk||r.shouldBreak())throw t;r.increment(),await n.wait()}}var vk,yk=new Uint8Array(16);function bk(){if(!vk&&(vk=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<`u`&&typeof msCrypto.getRandomValues==`function`&&msCrypto.getRandomValues.bind(msCrypto),!vk))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return vk(yk)}var xk=/^(?:[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 Sk(e){return typeof e==`string`&&xk.test(e)}for(var Ck=[],wk=0;wk<256;++wk)Ck.push((wk+256).toString(16).substr(1));function Tk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Ck[e[t+0]]+Ck[e[t+1]]+Ck[e[t+2]]+Ck[e[t+3]]+`-`+Ck[e[t+4]]+Ck[e[t+5]]+`-`+Ck[e[t+6]]+Ck[e[t+7]]+`-`+Ck[e[t+8]]+Ck[e[t+9]]+`-`+Ck[e[t+10]]+Ck[e[t+11]]+Ck[e[t+12]]+Ck[e[t+13]]+Ck[e[t+14]]+Ck[e[t+15]]).toLowerCase();if(!Sk(n))throw TypeError(`Stringified UUID is invalid`);return n}function Ek(e,t,n){e||={};var r=e.random||(e.rng||bk)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n||=0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Tk(r)}function Dk(e){if(!Sk(e))throw TypeError(`Invalid UUID`);return parseInt(e.substr(14,1),16)}var Ok=`cv:session:`,kk=`cv:window:v2:`,Ak=1e3*60*30,jk=4;function Mk(e){if(e===Zt.LocalStorage)return en.isAvailable()?en:Qt;if(e===Zt.SessionStorage)return $t.isAvailable()?$t:Qt}function Nk(e){return new Date().getTime()+e}function Pk(){return Ek()}function Fk(e,t){return e+(t||`0`)}function Ik(e){return new Date().getTime()>e}function Lk(e){return!(typeof e!=`object`||typeof e?.id!=`string`||!Sk(e.id)||Dk(e.id)!==jk||typeof e?.ttl!=`number`||e?.ttl<=0||isNaN(e?.ttl))}function Rk(e,t,n){let r=Mk(n),i=Fk(e,t),a=r.get(i);return!Lk(a)||Ik(a?.ttl)?null:a}function zk(e,t,n,r){let i=Mk(n),a=Fk(e,t),o={id:Pk(),ttl:Nk(r)};return i.set(a,o),o}function Bk(e,t,n,r,i){let a=Mk(n),o=Fk(e,t);a.set(o,{id:r.id,ttl:Nk(i)})}function Vk(e,t,n){let r=Mk(n);if(!r?.isAvailable())return;let i=Fk(e,t);r.remove(i)}var Hk=null,Uk={getClientSessionData(e){let t=Rk(Ok,e,Zt.LocalStorage);t?Bk(Ok,e,Zt.LocalStorage,t,Ak):t=zk(Ok,e,Zt.LocalStorage,Ak);let n=Rk(kk,e,Zt.SessionStorage);return n?Hk===null&&Bk(kk,e,Zt.SessionStorage,n,Ak):n=zk(kk,e,Zt.SessionStorage,Hk??Ak),{id:t.id,windowId:n.id}},resetClientSession(e){Vk(Ok,e,Zt.LocalStorage),Vk(kk,e,Zt.SessionStorage)},lockWindowSession(e,t){Hk=t;let n=Rk(kk,e,Zt.SessionStorage);n&&Bk(kk,e,Zt.SessionStorage,n,t)},unlockWindowSession(e){Hk=null;let t=Rk(kk,e,Zt.SessionStorage);t&&Bk(kk,e,Zt.SessionStorage,t,Ak)}},Wk={isObject(e){let t=typeof e;return t===`function`||t===`object`&&!!e},isFunction(e){return typeof e==`function`}},Gk={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},Kk=`Unknown`;function qk(e,t,n){let[r]=t.exec(n)||[];return r||=Kk,{name:e,version:r}}function Jk(e,t,n){if(!t)return{name:e,version:Kk};let r=t.exec(n);return{name:e,version:r&&r.length?r[0].trim():Kk}}function Yk(e,t){let n={name:e,version:null};return Gk.win2000.test(t)&&(n.version=`2000`),Gk.winXP.test(t)&&(n.version=`XP`),Gk.winVista.test(t)&&(n.version=`Vista`),Gk.win7.test(t)&&(n.version=`7`),Gk.win8.test(t)&&(n.version=`8`),Gk.win81.test(t)&&(n.version=`8.1`),Gk.win10.test(t)&&(n.version=`10`),n.version||=Kk,n}var Xk={getDeviceType(){let e=window.navigator.userAgent;return Gk.mobileDevice.test(e)?Gk.iphone.test(e)?`iPhone`:Gk.ipad.test(e)?`iPad`:Gk.android.test(e)?`Android`:Gk.blackberry.test(e)?`Blackberry`:Gk.windowsPhone.test(e)?`Windows Phone`:Kk:`Desktop`},getOperatingSystem(){let e=window.navigator.userAgent;return Gk.android.test(e)?Jk(`Android`,Gk.androidVersion,e):Gk.iphone.test(e)||Gk.ipad.test(e)?Jk(`iOS`,Gk.iosVersion,e):Gk.linux.test(e)?Jk(`Linux`,null,e):Gk.unix.test(e)?Jk(`Unix`,null,e):Gk.mac.test(e)?Jk(`Macintosh`,Gk.osxVersion,e):Gk.windows.test(e)?Yk(`Windows`,e):Gk.blackberry.test(e)?Jk(`BlackBerry`,Gk.blackberryVersion,e):Gk.windowsPhone.test(e)?Jk(`Windows Phone`,Gk.windowsPhoneVersion,e):{name:Kk,version:Kk}},getBrowser(){let e=window.navigator.userAgent;return Gk.chrome.test(e)?qk(`Chrome`,Gk.generalVersion,e):Gk.firefox.test(e)?qk(`Firefox`,Gk.generalVersion,e):Gk.safari.test(e)?qk(`Safari`,Gk.generalVersion,e):Gk.ie.test(e)?qk(`Internet Explorer`,Gk.ieVersion,e):Gk.edge.test(e)?qk(`Edge`,Gk.edgeVersion,e):Gk.opera.test(e)?qk(`Opera`,Gk.operaVersion,e):{name:Kk,version:Kk}},isTouchScreen(){return!!(`ontouchstart`in window||navigator.maxTouchPoints)}},Zk=28800,Qk=`cv:utmparams`,$k=[[`source`,`utm_source`],[`medium`,`utm_medium`],[`campaign`,`utm_campaign`],[`term`,`utm_term`],[`content`,`utm_content`]],eA=$k.reduce((e,[t])=>({...e,[t]:t}),{}),tA={getUtmParameters(){if(!window.URLSearchParams)return null;let e=new URLSearchParams(window.location.search),t={};return $k.forEach(([n,r])=>{e.has(r)&&(t[n]=e.get(r))}),nA(t)},setUtmParameters(e){if(!e)return;let t={};return Object.keys(e).forEach(n=>{eA[n]&&(t[n]=e[n])}),nA(t)},getURLSearchParams(){if(!window.URLSearchParams)return null;let e=new URLSearchParams,t=tA.getUtmParameters();return t?($k.forEach(([n,r])=>{t[n]&&e.set(r,t[n])}),e):null}};function nA(e){if(Object.keys(e).length)return en.cacheSet(Qk,e,Zk),e;let t=en.cacheGet(Qk);return t&&typeof t==`object`&&Object.keys(t).length?t:null}var rA={name:`@clickview/analytics`,version:`2.3.0`,description:`Analytics`,main:`dist/app.js`,types:`dist/analytics/src/app.d.ts`,type:`module`,private:!0,repository:{type:`git`,url:`https://gitlab.cvinternal.net/front-end/clickview`},scripts:{start:`npm run build`,"type-check":`tsc --noEmit`,build:`npm run type-check && node ../../../node_modules/vite/bin/vite.js build`,prebuild:`npm run clean`,clean:`npx rimraf dist`},author:``,license:`ISC`,devDependencies:{"@types/uuid":`8.3.4`,"tsc-alias":`1.8.16`},dependencies:{jssha:`3.3.1`,uuid:`8.3.2`}},iA=`zXJL9nOHxzDlMUDjiP41`,aA=`unknown`,oA=class{constructor(e){this.options=e,this.initialize()}initialize(){this.validateOptions(),this.options.logUtmParameters&&(this.utmParameters=tA.getUtmParameters()),this.options.logAttributionData&&(this.attributionData=rk.getDecodedAttributionData())}get name(){return`CollectionApiClient`}async log(e){if(Array.isArray(e))return this.logBulk(e);this.shouldLog(e)&&(this.validateEvent(e),await this.postData(await this.formatData(e)))}async logBulk(e){let t=e.filter(e=>this.shouldLog(e));if(!t.length)return;t.forEach(e=>this.validateEvent(e));let n=await Promise.all(t.map(e=>this.formatData(e)));await this.postData(n)}validateOptions(){if(!Wk.isFunction(this.options.getUser))throw Error(`getUser option is required.`)}shouldLog(e){return Wk.isFunction(this.options.shouldLog)?this.options.shouldLog(e):!0}async postData(e){let t=await this.getRegionalUrl(this.options.collectionApiUrls),n=JSON.stringify(e),r={"Content-Type":`application/json`,...this.getSignatureHeader(n)},i=mO.safeUrlConcat(t,`/v1/ingest`);Array.isArray(e)&&(i=mO.safeUrlConcat(i,`/bulk`));try{let e=await _k(i,{method:`POST`,mode:`cors`,headers:r,body:n});e.ok||this.logError(Error(`CollectionApiClient failed to log event. Status: ${e.status} ${e.statusText}`),!1,this.getResponseAsObject(e))}catch(e){this.logError(e)}}getResponseAsObject(e){return{headers:e.headers,ok:e.ok,redirected:e.redirected,status:e.status,statusText:e.statusText,type:e.type,url:e.url,body:e.text()}}getSignatureHeader(e){let t=new JO(`SHA-1`,`TEXT`,{hmacKey:{value:iA,format:`TEXT`,encoding:`UTF8`}});return t.update(e),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${t.getHash(`B64`)}`}}async getRegionalUrl(e){switch((await this.getRegion()).systemName){case mr.CvEuWest1:return e.cvEuWest1;case mr.CvApSoutheast2:return e.cvApSoutheast2;case mr.CvNaWest1:return e.cvNaWest1;case mr.CvApSoutheast1:default:return e.cvApSoutheast1}}validateEvent(e){typeof e.type!=`string`&&this.logError(Error(`Event type is required.`),!0),Wk.isObject(e.actionContext)||this.logError(Error(`Event actionContext is required.`),!0),e.actionContext.entity||this.logError(Error(`Event actionContext entity is required.`),!0)}async formatData(e){return{type:e.type,data:await this.getEventData(e),metadata:this.getEventMetadata(e)}}async getEventData(e){let t=e.actionContext,n=this.getPlatformMetadata(),r=await this.getUserData(),i=await this.getSessionData(),a={name:this.options.productName,version:this.options.productVersion};this.options.productVariant&&(a.variant=this.options.productVariant);let o={user:r,action:t,platform:n,product:a,session:i};this.utmParameters&&(o.utm=this.utmParameters);let s=this.extractData(e),c=Object.keys(o).map(e=>e.toLowerCase()),l=Object.keys(s).map(e=>e.toLowerCase());return c.forEach(e=>{l.includes(e)&&this.logError(Error(`${e} is a reserved key.`),!0)}),{...o,...s}}extractData(e){return Wk.isFunction(this.options.formatData)?this.options.formatData(e):{[e.actionContext.entity]:e.data}}async getUserData(){let e;try{e=await this.options.getProfileId?.()}catch(e){this.logError(e)}try{let t=await this.options.getUser();return t?.id?{id:t.id,role:t.role?.toLowerCase()||aA,userGroup:(t.userGroup??fC.Unknown).toLowerCase(),yearGroup:this.normalizeYearGroup(t.yearGroup),profileId:e,customer:{id:t.customerId,name:t.customerName,customerGuid:t.customerGuid,crmId:t.crmId,country:t.countryCode,region:await this.getRegion(),openCustomer:!1,accessPolicy:t.accessPolicy}}:e?{profileId:e}:void 0}catch(e){this.logError(e)}}async getRegion(){let e=this.options.regionName;try{let t=await this.options.getUser();t?.instanceRegion&&(e=t.instanceRegion)}catch(e){this.logError(e)}return e||this.logError(Error(`RegionName is not set.`),!0),this.getRegionByName(e.toLowerCase())}async getSessionData(){try{let e=await this.options.getUser();return{...Uk.getClientSessionData(e?.id),authSessionId:e?.sessionId}}catch(e){return console.error(e),Uk.getClientSessionData(null)}}getPlatformMetadata(){let e={url:window.location.href,referrer:document.referrer};return this.attributionData?.internalReferrer&&(e.internalReferrer=this.attributionData.internalReferrer),this.attributionData?.originalReferrer&&(e.originalReferrer=this.attributionData.originalReferrer),{browser:Xk.getBrowser(),os:Xk.getOperatingSystem(),request:e,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}getEventMetadata(e){return{client:{name:`${this.name}.ts`,version:rA.version,region:this.getRegionByName(this.options.regionName)},timestamp:new Date().toISOString(),eventVersion:e.eventVersion}}getRegionByName(e){let t;return Object.values(YO).forEach(n=>{n.systemName===e&&(t=n)}),t}normalizeYearGroup(e){return e?e.toLowerCase().split(` `).join(`_`):aA}logError(e,t,...n){if(this.options.logError&&this.options.logError(e,...n),t)throw e}},sA=class e extends A{static{this.type=`BaseAnalyticsClient`}constructor(e){super(e)}shouldLog(e){return!0}log(e){}isType(t){return t===e.type}};r();var cA=class extends sA{get name(){return`DebuggerClient`}shouldLog(){return M.isDevelopment}log(e){let t=j(e);for(let n in e){let e=t[n];(e instanceof u||e instanceof C)&&(t[n]=e.toJSON())}console.log(`Event Debugger: `,t)}},lA=function(e){return e.PageView=`cv_page_view`,e.Click=`cv_click`,e.FormSubmission=`cv_form_submission`,e}({}),uA={needsConsent(e){return!(e===void 0||!e.isRequired||e.hasConsent)}},dA=`cookie:consent:accepted`,fA=class e extends sA{constructor(e){super(e)}get name(){return`GoogleAnalyticsClient`}initialize(e){if(this.setup(),e.logUtmParameters&&(this.utmParameters=tA.getUtmParameters()),e.logAttributionData&&(this.attributionData=rk.getDecodedAttributionData()),!uA.needsConsent(e.consent)){this.updateGAConsent(`granted`);return}this.listenTo(o.SHELL,dA,this.onConsent)}onConsent(e){e?.analytics&&this.updateGAConsent(`granted`)}updateGAConsent(e){if(!this.ready){console.error(`gtag is not ready`);return}window.gtag(`consent`,`update`,{ad_user_data:e,ad_personalization:e,ad_storage:e,analytics_storage:e})}setup(){if(typeof window.gtag!=`function`){this.ready=!1;return}this.ready=!0}shouldLog(t){if(!this.ready||!Array.isArray(window.dataLayer))return!1;let n=e.eventWhitelist[t.type];return typeof n==`function`?n(t):!1}log(e){let{eventName:t,eventData:n}=this.getEventData(e)??{};t&&this.logEvent(t,n)}logEvent(e,t={}){this.ready&&(this.utmParameters&&(t.utm=this.utmParameters),this.attributionData?.internalReferrer&&(t.internalReferrer=this.attributionData.internalReferrer),this.attributionData?.originalReferrer&&(t.originalReferrer=this.attributionData.originalReferrer),window.gtag(`event`,e,t||{}))}getEventData(t){if(t.isType(B.PageView))return e.getPageViewData(t);if(t.isType(B.Click))return e.getClickData(t);if(t.isType(B.Create))return e.getCreateEventData(t)}static getCreateEventData(t){if(e.isTrialCreatedEvent(t))return{eventName:lA.FormSubmission,eventData:{event_category:`sign_up`,event_label:`created`}};if(e.isTrialRequestedEvent(t))return{eventName:lA.FormSubmission,eventData:{event_category:`sign_up`,event_label:`trial_requested`}};if(e.isTrialCustomerEvent(t))return{eventName:lA.FormSubmission,eventData:{event_category:`sign_up`,event_label:`customer`}};if(e.isTrialExistingEvent(t))return{eventName:lA.FormSubmission,eventData:{event_category:`sign_up`,event_label:`existing_trial`}}}static getPageViewData(e){if(!(!(`url`in e.data)||!e.data.url))return{eventName:lA.PageView,eventData:{url:e.data?.url}}}static getClickData(e){if(e.actionContext?.entity!==ct.Url)return{eventName:lA.Click,eventData:{entity:e.actionContext?.entity,context:e.actionContext?.descriptor||e.actionContext?.location,id:e.data?.id,value:e.data?.name}}}static get eventWhitelist(){return{[B.PageView]:e.isPageViewEvent,[B.Click]:e.isClickEvent,[B.Create]:e.isCreateEvent}}static isPageViewEvent(e){return`url`in e.data}static isClickEvent(e){return e.type===B.Click}static isCreateEvent(t){return t.type===B.Create?e.isTrialCreatedEvent(t)||e.isTrialRequestedEvent(t)||e.isTrialCustomerEvent(t)||e.isTrialExistingEvent(t):!1}static isTrialCreatedEvent(e){return!(e.type!==B.Create||e.actionContext.descriptor!==gt.TrialCreated||e.actionContext.workflowPhase!==$e.Complete)}static isTrialRequestedEvent(e){if(e.type!==B.Create)return!1;let{entity:t,descriptor:n}=e.actionContext;return!(t!==ct.SignUp||n!==gt.TrialRequested||e.actionContext.workflowPhase!==$e.Complete)}static isTrialCustomerEvent(e){if(e.type!==B.Create)return!1;let{entity:t,descriptor:n}=e.actionContext;return!(t!==ct.SignUp||n!==gt.DeadEnd||!(`trialStatus`in e.data)||e.data.trialStatus!==`not-required`)}static isTrialExistingEvent(e){if(e.type!==B.Create)return!1;let{entity:t,descriptor:n}=e.actionContext;return!(t!==ct.SignUp||n!==gt.DeadEnd||!(`trialStatus`in e.data)||e.data.trialStatus!==`active`)}},pA=`cv:profileId`,mA=class{get name(){return tt.ProfileApiClient}constructor(e){this.options=e,this.storage=Xt.getStorage(),this.masterId=``,this.bindFunctions(),this.options.attributedProfileId&&(this.profileRequest=this.getSetAttributedProfileId())}bindFunctions(){this.createOrUpdate=this.createOrUpdate.bind(this),this.getProfileId=this.getProfileId.bind(this)}getSetAttributedProfileId(){return this.storage.setItem(this.getProfileIdKey(this.masterId),this.options.attributedProfileId),Promise.resolve(this.options.attributedProfileId)}async createOrUpdate(e,t){try{let n=this.buildRequest(e,t);this.profileRequest=this.fetchProfileId(n),await this.profileRequest}catch(e){this.options.onError?.(e)}}async fetchProfileId(e){let t={"Content-Type":`application/json`},n=mO.safeUrlConcat(this.options.hostUrl||window.location.origin,this.options.path||`/v1/profiles`),r=await fetch(n,{method:`POST`,headers:t,mode:`cors`,body:JSON.stringify(e)});return await this.handleResponse(r)}async getProfileId(){try{return await this.profileRequest}catch{return}}getStoredProfileId(){return this.storage.getItem(this.getProfileIdKey(this.masterId))}getProfileIdKey(e=``){return e?`${pA}:${e}`:pA}buildRequest(e,t={}){let n={...t,countryCode:e?.countryCode,crmId:e?.crmId,email:e?.email,firstName:e?.firstName,lastName:e?.lastName,masterId:e?.masterId,phone:e?.phone},r={};for(let e in n){let t=n[e];t!=null&&(t=t.toString().trim(),t&&(r[e]=t))}return e.masterId&&(this.masterId=e.masterId),{id:this.getStoredProfileId(),instanceRegion:this.options.instanceRegion,properties:r}}async handleResponse(e){if(!e.ok)throw Error(`ProfileApiClient failed to log properties. Status: ${e.status} ${e.statusText}`);let t=await e.json();return this.masterId&&this.storage.removeItem(this.getProfileIdKey()),this.storage.setItem(this.getProfileIdKey(this.masterId),t.id),t.id}},hA={Lite:`lite.web`,Curator:`curator.web`,Analytics:`analytics.web`,StreamableLearning:`streamablelearning.web`,Cloud:`cloud.web`,Exchange:`exchange.web`},gA={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)/},_A=`Unknown`;function vA(e,t,n){let[r]=t.exec(n)||[];return r||=_A,{browser:e,version:r}}function yA(e,t,n){if(!t)return{os:e,version:_A};let r=t.exec(n);return{os:e,version:r&&r.length?r[0].trim():_A}}function bA(e,t){let n={os:e};return gA.win2000.test(t)&&(n.version=`2000`),gA.winXP.test(t)&&(n.version=`XP`),gA.winVista.test(t)&&(n.version=`Vista`),gA.win7.test(t)&&(n.version=`7`),gA.win8.test(t)&&(n.version=`8`),gA.win81.test(t)&&(n.version=`8.1`),gA.win10.test(t)&&(n.version=`10`),n.version||=_A,n}var xA={getDeviceType(){let e=window.navigator.userAgent;return gA.mobileDevice.test(e)?gA.iphone.test(e)?`iPhone`:gA.ipad.test(e)?`iPad`:gA.android.test(e)?`Android`:gA.blackberry.test(e)?`Blackberry`:gA.windowsPhone.test(e)?`Windows Phone`:_A:`Desktop`},getOperatingSystem(){let e=window.navigator.userAgent;return gA.android.test(e)?yA(`Android`,gA.androidVersion,e):gA.iphone.test(e)||gA.ipad.test(e)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1?yA(`iOS`,gA.iosVersion,e):gA.linux.test(e)?yA(`Linux`,null,e):gA.unix.test(e)?yA(`Unix`,null,e):gA.mac.test(e)?yA(`Macintosh`,gA.osxVersion,e):gA.windows.test(e)?bA(`Windows`,e):gA.blackberry.test(e)?yA(`BlackBerry`,gA.blackberryVersion,e):gA.windowsPhone.test(e)?yA(`Windows Phone`,gA.windowsPhoneVersion,e):{os:_A,version:_A}},getBrowser(){let e=window.navigator.userAgent;return gA.chrome.test(e)?vA(`Chrome`,gA.generalVersion,e):gA.firefox.test(e)?vA(`Firefox`,gA.generalVersion,e):gA.safari.test(e)?vA(`Safari`,gA.generalVersion,e):gA.ie.test(e)?vA(`Internet Explorer`,gA.ieVersion,e):gA.edge.test(e)?vA(`Edge`,gA.edgeVersion,e):gA.opera.test(e)?vA(`Opera`,gA.operaVersion,e):{browser:_A,version:_A}},isTouchScreen(){return!!(`ontouchstart`in window||navigator.maxTouchPoints)},isTabletOrMobile(){return xA.isTouchScreen()?gA.tablet.test(navigator.userAgent)||gA.mobile.test(navigator.userAgent):!1},isAndroid(){return xA.getOperatingSystem().os===`Android`},isIOS(){return xA.getOperatingSystem().os===`iOS`}},SA=class e extends A{static{this.type=`BaseAnalyticsEnricher`}enrich(e,t){}isType(t){return t===e.type}},CA=class extends SA{constructor(e){super(e),this.productName=e.productName,this.productVersion=e.productVersion}get name(){return`CoreContextEnricher`}shouldEnrich(e){return!0}enrich(e,t){this.shouldEnrich(e)||t(e),e.enrich(`coreContext`,this.getCoreContext()),t(e)}getCoreContext(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}getTimestamp(){return bt.getUtcISOString()}getProductInfo(){return{name:this.productName,version:this.productVersion}}getRequestInfo(){return{referrer:d.GetCurrentReferrer(),requestUrl:d.GetCurrentUrl()}}getClientInfo(){let e=xA.getOperatingSystem(),t=xA.getBrowser();return{os:e.os,osVersion:e.version,browser:t.browser,browserVersion:t.version,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}},wA=_(l());r();var TA=class extends wA.MnObject{},EA=class extends TA{get name(){return`EventTransport`}get channelName(){return`event:transport`}publish(e){this.getChannel().trigger(at.Outlet,e)}subscribe(e){let t=e,n=n=>{We.isFunction(t.shouldLog)&&!t.shouldLog(n)||e.log(n)};L(t.listenTo)?t.listenTo(this.getChannel(),at.Outlet,n):this.listenTo(this.getChannel(),at.Outlet,n)}};function DA(e){return!Wk.isObject(e)||!Wk.isObject(e.actionContext)?{}:{entity:e.actionContext.entity,location:e.actionContext.location,descriptor:e.actionContext.descriptor}}function OA(e){let t={},n=(e,t)=>{switch(t){case`description`:return mt.ValueUpdated;case`channel`:case`rating`:case`series`:case`distributor`:case`producer`:return e&&e.id||mt.EntityRemoved;default:return e}};return Object.keys(e).forEach(r=>{t[r]=n(e[r],r)}),t}var kA={passthrough(e){return e},getEditData(e,t){let{entity:n,location:r}=DA(t);return n===ct.Video&&r===ut.EditVideoDetails?OA(e):e}},$={allow:()=>!0,restrict:()=>!1},AA={getShareData(e){let{id:t,search:n,pagePositionIndex:r,shareId:i,shareType:a}=e,o={id:t,search:n,pagePositionIndex:r,shareId:i,shareType:a};return e.video?.id&&(o.video={id:e.video.id}),e.clip?.id&&(o.clip={id:e.clip.id},e.clip.video?.id&&(o.video={id:e.clip.video?.id})),e.shareCount!==void 0&&(o.shareCount=e.shareCount),e.embedDetails&&(o.embedDetails=e.embedDetails),o}},jA={getUploadData(e,t){let{entity:n}=t.actionContext;if(n===ct.Video)return jA.formatVideoUpload(e,t);if(n===ct.Resource||n===ct.Subtitle)return jA.formatResourceUpload(e);if(n===ct.Banner||n===ct.Thumbnail||n===ct.MixedMedia)return e;throw Error(`Upload data event not correctly formatted.`)},formatVideoUpload(e,t){let{workflowPhase:n}=t.actionContext;if(n===$e.Start)return jA.getStartVideoUploadData(e);if(n===$e.Discard)return jA.getDiscardVideoUploadData(e);if(n===$e.Complete)return jA.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){let t=t=>{let{type:n,name:r,status:i,cvUpload:a}=t.file,o={fileName:r,count:Array.isArray(e)?e.length:1,type:n,status:i};return t.progress&&(o.progress=t.progress.toFixed(2)),a&&(o.uploadId=a.uploadId),o};return Array.isArray(e)?e.map(e=>t(e)):[t(e)]},getCompleteUploadData(e){return!e||!e.length?[]:e.map(t=>{let{fileName:n,libraryId:r,folderId:i,autoCaption:a}=t;return{fileName:n,libraryId:r,folderId:i,autoCaption:a,count:e.length}})},formatResourceUpload(e){let{id:t,name:n}=e,r={id:t,name:n};return Wk.isObject(e.metadata)&&(r.type=e.metadata.type),r}},MA={[B.Navigate]:$.restrict,[B.Click]:$.allow,[B.Search]:$.allow,[B.InstantSearch]:$.allow,[B.Play]:$.allow,[B.Stream]:$.allow,[B.WebPlayerStream]:$.allow,[B.StreamProgress]:$.allow,[B.PreviewStreamProgress]:$.allow,[B.StreamBuffering]:$.allow,[B.Rename]:$.allow,[B.Move]:$.allow,[B.Create]:$.allow,[B.Delete]:$.allow,[B.Associate]:$.allow,[B.Dissociate]:$.allow,[B.Filter]:$.allow,[B.Sort]:$.allow,[B.Approve]:$.allow,[B.Reject]:$.allow,[B.Disable]:$.allow,[B.Upload]:$.allow,[B.Download]:$.allow,[B.SetAccess]:$.allow,[B.AddToLocalCache]:$.restrict,[B.Share]:$.allow,[B.Unshare]:$.allow,[B.Edit]:$.allow,[B.Suggest]:$.allow,[B.Favourite]:$.allow,[B.WorkspaceAdd]:$.allow,[B.ResolveWarning]:$.allow,[B.DismissWarning]:$.allow,[B.EditAssoc]:$.allow,[B.Follow]:$.allow,[B.Print]:$.allow,[B.Copy]:$.allow,[B.Activate]:$.allow,[B.VerifyEmail]:$.allow,[B.ChangePassword]:$.allow,[B.Export]:$.allow,[B.SendEmail]:$.allow,[B.Publish]:$.allow,[B.Submit]:$.allow,[B.Complete]:$.allow,[B.Archive]:$.allow,[B.Promote]:$.allow,[B.Demote]:$.allow,[B.BulkAction]:$.allow,[B.Remove]:$.allow,[B.Dismiss]:$.allow,[B.Open]:$.allow,[B.Hide]:$.allow,[B.PageView]:$.allow,[B.Select]:$.allow,[B.SwitchCustomer]:$.allow,[B.Focus]:$.allow,[B.Blur]:$.allow,[B.Hover]:$.allow,[B.Unhover]:$.allow},NA={[B.Search]:kA.passthrough,[B.InstantSearch]:kA.passthrough,[B.Play]:kA.passthrough,[B.Stream]:kA.passthrough,[B.StreamProgress]:kA.passthrough,[B.PreviewStreamProgress]:kA.passthrough,[B.StreamBuffering]:kA.passthrough,[B.Click]:kA.passthrough,[B.Filter]:kA.passthrough,[B.Sort]:kA.passthrough,[B.SetAccess]:kA.passthrough,[B.Approve]:kA.passthrough,[B.Reject]:kA.passthrough,[B.Create]:kA.passthrough,[B.Delete]:kA.passthrough,[B.Rename]:kA.passthrough,[B.Move]:kA.passthrough,[B.Edit]:kA.passthrough,[B.Share]:AA.getShareData,[B.Disable]:kA.passthrough,[B.Suggest]:kA.passthrough,[B.Upload]:jA.getUploadData,[B.ResolveWarning]:kA.passthrough,[B.DismissWarning]:kA.passthrough,[B.Follow]:kA.passthrough,[B.Print]:kA.passthrough,[B.Copy]:kA.passthrough},PA={[B.Search]:()=>`search`,[B.InstantSearch]:()=>`search`,[B.Filter]:()=>`filter`,[B.Stream]:()=>ct.Video},FA={user:`target_user`,product:`target_product`},IA={[B.StreamProgress]:!0,[B.WebPlayerStream]:!0,[B.PreviewStreamProgress]:!0,[B.StreamBuffering]:!0},LA={shouldLog(e){return!!MA[e.type](e)},formatData(e){let t=NA[e.type],n=Wk.isFunction(t)?t(e.data,e):e.data;if(IA[e.type])return n;let r=e.actionContext.entity;return Wk.isFunction(PA[e.type])&&(r=PA[e.type](e)),FA[r]&&(r=FA[r]),{[r]:n}}},RA={customer(e,t,n,r){return{url:Vt.urlBuilder(`{gateway}/v1/objects/${e}`,{query:r?`organisation`:``}),key:`customers:${e}:${r?`with-organization`:``}`,success:t,error:n}},yearGroups(e){return{url:`{gateway}/v1/customers/${e}/year-groups?query={orderby:value}rating`,key:`year:groups`}},updateYearGroupRatings(e,t,n,r){return{url:`{gateway}/v1/customers/${e}/year-groups`,key:`update:year:group:ratings`,type:Ft.PUT,data:t,success:n,error:r,invalidationKeys:[`year:groups`]}}},zA=`staff`;async function BA(e){try{return await Ct(e.store,Gt.accessPolicy())}catch{return null}}var VA={async getUser(e){let t=await Ct(e.store,Gt.currentUser());if(!t.isAuthenticated)return null;let n=Ct(e.store,RA.customer(t.customerId)),r=Ct(e.store,Gt.user(t.id)),i=BA(e);return VA.mapCurrentUserToAnalyticsUser(t,await r,await n,await i)},mapCurrentUserToAnalyticsUser(e,t,n,r){let i=lr.getUserType(t);return{id:e?.id,countryCode:e?.countryCode,contentRegion:e?.contentRegion,instanceRegion:e?.instanceRegion,customerId:e?.customerId,customerGuid:n?.customerGuid,customerName:e?.customerName,crmId:n?.crmId,role:e?.role,sessionId:e?.sessionId,userGroup:i,yearGroup:i===ur.Staff?zA:t?.masterYearGroup?.name,accessPolicy:r?.id}}},HA={logError(e,...t){We.isFunction(trackJs?.track)&&(t&&We.isFunction(trackJs.console?.info)&&trackJs.console.info(...t),trackJs.track(e))}},UA={shouldRegisterGoogleAnalyticsClient(e,t){return!(!e?.googleAnalyticsProjectId||qn.isBot()||!t||t[Rt.StudentExperience])}},WA={isRequired:!1,hasConsent:!1,consentKey:`analytics`};async function GA(e,t){let[n,r,i]=await Promise.all([Ct(e.store,Gt.currentUser()),Ct(e.store,kx.config()),Ct(e.store,Gt.permissions())]),a=null;n.isAuthenticated&&(a=await Ct(e.store,RA.customer(n.customerId)));let o=Ct(e.store,kx.version()),s=new MO({user:n,config:r}),c=KA({instanceRegion:r.instanceRegion,currentUser:n,customer:a});an.registerSingleton(s),an.registerSingleton(c),s.registerTransport(EA),s.registerClient(cA);let l=await o;s.registerClient(oA,{productName:hA.StreamableLearning,productVersion:l,regionName:r.instanceRegion,collectionApiUrls:r.collectionApiUrls,collectionApiClientId:r.collectionApiClientId,getUser:()=>VA.getUser(e),shouldLog:LA.shouldLog,formatData:LA.formatData,logError:HA.logError,logUtmParameters:!0,logAttributionData:!0,getProfileId:c.getProfileId}),s.registerEnricher(CA,{productName:`Streamable Learning`,productVersion:l}),UA.shouldRegisterGoogleAnalyticsClient(r,i)&&s.registerClient(fA,{projectId:r.googleAnalyticsProjectId,logUtmParameters:!0,logAttributionData:!0,consent:WA}),t(e)}function KA(e){let{instanceRegion:t,currentUser:n,customer:r}=e,i=new mA({path:`/api/profile/v1/profiles`,instanceRegion:t}),a={};return e.currentUser.isAuthenticated&&r&&(a={countryCode:n.countryCode,crmId:r.crmId,email:n.email,firstName:n.givenName,lastName:n.familyName,masterId:n.id}),i.createOrUpdate(a),i}async function qA(e,t){try{let t=await Ct(e.store,kx.config());Tw.initialize({product:Bt.Primary,liteSupportSiteUrl:t.liteSupportSiteUrl,instanceRegion:t.instanceRegion})}finally{t(e)}}var JA={locale(){return{url:`/api/locale`,key:`locale`,bootstrapName:Wt.LOCALE}},phrases(){return{url:`/api/phrases`,key:`phrases`,bootstrapName:Wt.PHRASES}}};async function YA(e,t){let n;try{n=Ct(e.store,JA.phrases());let t=Ct(e.store,JA.locale());Xe.setConfig({locale:await t,phrases:await n})}catch(e){console.error(e)}finally{t(e)}}var XA={setLocalPermissions(e,t){e.dispatch({type:ir.UPDATE,payload:{viewModelKey:ar.LOCAL_PERMISSIONS,dataOrKey:t}})}};async function ZA(e,t){try{let t=QA(await Ct(e.store,Gt.currentUser()));XA.setLocalPermissions(e.store,t)}catch(e){console.error(e)}finally{t(e)}}function QA(e){let t=e?.isAuthenticated;return{[zt.ManagePublicPresentation]:!t,[zt.ManageDiscoverPreferences]:t,[zt.ViewPlaylistsLanding]:!t,[zt.ViewMyVideosLanding]:!t,[zt.ViewMyFavouritesLanding]:!t,[zt.ViewWatchHistoryLanding]:!t,[zt.WatchVideos]:t,[zt.UseVideoActions]:t,[zt.UseSeriesActions]:t,[zt.ViewTrendingTopics]:t,[zt.FollowComingSoonTopics]:t,[zt.ViewVideoResourceItems]:t,[zt.ViewMySharesLanding]:t}}var $A=function(e){return 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}({}),ej={type:$A.Unknown,message:``,code:0},tj={parseErrorMessage(e,t,n){if(!n||!n.errorCode)return e[t];let r=`${n.errorCode}`;return n.errorSubCode&&(r+=`.${n.errorSubCode}`),e[r]||e[t]}};r();var nj=class extends wA.MnObject{constructor(e){super(e),dC.default.ajaxSetup({cache:e.cacheRequests??!1,contentType:`application/json; charset=utf-8`}),this.successMiddleware={},this.errorMiddleware={},this.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,this.defaultErrorMessageKey=e.defaultErrorMessageKey}get name(){return jE.Ajax}parseUrl(e){let t=document.createElement(`a`);return t.href=e,t.host===``&&(t.href=t.href),t}makeHttps(e){let t=this.parseUrl(e);return t.protocol===`http:`&&(t.protocol=`https:`),t.href}base(e,t,r,i={}){r||=Ft.GET;let a=n.defaults(i,{forceHttps:!1}),o={url:e,method:r,type:r};t&&(o.data=r===Ft.POST||r===Ft.PUT?JSON.stringify(t):t),a.forceHttps&&(o.url=this.makeHttps(o.url)),a.traditional&&(o.traditional=a.traditional);let s=dC.default.ajax(o);return n.keys(this.successMiddleware).length&&s.done(n.values(this.successMiddleware)),n.keys(this.errorMiddleware).length&&s.fail(n.values(this.errorMiddleware)),s}create(e,t,n){let{channel:r,successEvent:i,errorEvent:a}=n;this.base(e,t,Ft.POST).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(a,e,t,n))}read(e,t){let{channel:n,successEvent:r,errorEvent:i}=t;this.base(e,null,Ft.GET).done((e,t,i)=>{n.trigger(r,e,t,i)}).fail((e,t,r)=>{n.trigger(i,e,t,r)})}update(e,t,n){let{channel:r,successEvent:i,errorEvent:a}=n;this.base(e,t,Ft.PUT).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(a,e,t,n))}delete(e,t){let{channel:n,successEvent:r,errorEvent:i}=t;this.base(e,null,Ft.DELETE).done((e,t,i)=>n.trigger(r,e,t,i)).fail((e,t,r)=>n.trigger(i,e,t,r))}useMiddleware(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}useErrorMiddleware(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}parseError(e){let t=e.responseJSON,n=ej;switch(n.code=e.status,n.message=tj.parseErrorMessage(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=$A.BadRequest;break;case 401:n.type=$A.Unauthorized;break;case 403:n.type=$A.Forbidden;break;case 404:n.type=$A.NotFound;break;case 500:n.type=$A.InternalServer;break}return n}};function rj(e,t){an.registerSingleton(new nj({dataServiceErrorMessageMappings:{temp:`Error`},defaultErrorMessageKey:`temp`,cacheRequests:!0})),t(e)}r();var ij=class extends A{constructor(e){super(),this.size=e.size,this.cache={},this.cachedkeys=[],this.store=e.store}get name(){return AE.Fifo}removeCacheKey(e){this.cachedkeys=a(this.cachedkeys,e)}has(e){return!!this.cache[e]}get(e){return this.cache[e]}set(e,t){(!e||!t)&&O.throw(new f(`Must provide a cache key and a value to cache in FifoMemoryCache.`)),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}getOrSet(e,t){if(this.has(e))return this.get(e);let n=t();return this.set(e,n),n}remove(e){return this.has(e)?(delete this.cache[e],this.removeCacheKey(e),!0):!1}invalidate(e,t,n=!1){let r=S(this.cachedkeys,this.cachedkeys),o=[];k(e,e=>{r[e]&&o.push(e);let t=new RegExp(e,`i`),n=i(r,e=>t.test(e));o.push(...n)}),o.length&&(o=x(o),k(o,e=>{delete this.cache[e],L(t)&&t(e)}),this.cachedkeys=a(this.cachedkeys,...o)),!(!this.store||!n)&&this.store.dispatch({type:St.INVALIDATE,keys:e})}};function aj(e,t){an.registerInstance(ij,{size:100}),t(e)}function oj(e,t){Fx.setPublicFormatSettings(()=>[]),t(e)}async function sj(e,t){Jn.initialize({product:`Streamable Learning`,getDefaultOpenGraph:()=>({image:{url:Vt.safeUrlConcat(document.location.origin,tn.Default.OG_IMAGE),type:`image/png`,width:1200,height:675,alt:`Streamable Learning OG image`}})}),t(e)}var cj=new P({region:`#app`,layoutService:new E({})});cj.addInitializationStep(oj).addInitializationStep(OE).addInitializationStep(aj).addInitializationStep(rj).addInitializationStep(AO).addInitializationStep(YA).addInitializationStep(sj).addInitializationStep(ZA).addInitializationStep(ID).addInitializationStep(GA).addInitializationStep(RC).addInitializationStep(hS).addInitializationStep(qA),cj.addStartUpStep(kE),cj.start();export{gx as $,pw as A,hC as B,NT as C,Lw as D,wT as E,YC as F,gS as G,pC as H,jC as I,jx as J,Yx as K,kC as L,uw as M,aw as N,Tw as O,ZC as P,_x as Q,vC as R,UT as S,DT as T,TS as U,mC as V,wS as W,kx as X,Ax as Y,vx as Z,xE as _,oA as a,af as at,rE as b,rk as c,ru as ct,jD as d,$s as dt,mx as et,SD as f,Fo as ft,SE as g,GE as h,to as ht,xA as i,pf as it,dw as j,yw as k,mO as l,eu as lt,qE as m,fo as mt,RA as n,am as nt,tA as o,ef as ot,fD as p,wo as pt,Bx as q,LA as r,Qp as rt,Uk as s,hd as st,HA as t,om as tt,MD as u,wl as ut,sE as v,MT as w,LT as x,iE as y,gC as z};
|
|
15
|
-
//# sourceMappingURL=app-
|
|
14
|
+
Expect errors in decoding.`),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,``);i=this.KEY_STR.indexOf(e.charAt(c++)),a=this.KEY_STR.indexOf(e.charAt(c++)),o=this.KEY_STR.indexOf(e.charAt(c++)),s=this.KEY_STR.indexOf(e.charAt(c++)),t=i<<2|a>>4,n=(a&15)<<4|o>>2,r=(o&3)<<6|s,l.push(t),o!==64&&l.push(n),s!==64&&l.push(r),t=n=r=``,i=a=o=s=``,c<e.length;);return l}}]),e}();N.initClass(),O._autoDiscoverFunction=function(){if(O.autoDiscover)return O.discover()},function(e,t){var n=!1,r=!0,i=e.document,a=i.documentElement,o=i.addEventListener?`addEventListener`:`attachEvent`,s=i.addEventListener?`removeEventListener`:`detachEvent`,c=i.addEventListener?``:`on`,l=function r(a){if(!(a.type===`readystatechange`&&i.readyState!==`complete`)&&((a.type===`load`?e:i)[s](c+a.type,r,!1),!n&&(n=!0)))return t.call(e,a.type||a)},u=function e(){try{a.doScroll(`left`)}catch{setTimeout(e,50);return}return l(`poll`)};if(i.readyState!==`complete`){if(i.createEventObject&&a.doScroll){try{r=!e.frameElement}catch{}r&&u()}return i[o](c+`DOMContentLoaded`,l,!1),i[o](c+`readystatechange`,l,!1),e[o](c+`load`,l,!1)}}(window,O._autoDiscoverFunction);function P(e,t){return e==null?void 0:t(e)}function F(e,t,n){if(e!=null&&typeof e[t]==`function`)return n(e,t)}window.Dropzone=O;var I=O})(),r})()})})),JE=_(qE()),YE=`upload.internetConnectivityError`,XE=class extends gS{constructor(){super(Xe.getPhrase(YE,`title`))}get name(){return`InternetConnectivityError`}get dialogOptions(){return{title:Xe.getPhrase(YE,`heading`),text:Xe.getPhrase(YE,`body`),buttons:[{text:Xe.getPhrase(YE,`okay`),className:`btn btn-outline-dark`,success:!0}]}}},ZE=`upload.slowInternetError`,QE=class extends gS{constructor(){super(Xe.getPhrase(ZE,`title`))}get name(){return`SlowInternetError`}get dialogOptions(){return{title:Xe.getPhrase(ZE,`heading`),text:Xe.getPhrase(ZE,`body`),buttons:[{text:Xe.getPhrase(ZE,`okay`),className:`btn btn-outline-dark`,success:!0}]}}};r();var $E=[],eD=class extends A{get name(){return`DropzoneWrapper`}constructor(e){super(e),this.slowInternetTimeout={},this.showSlowInternetTimeout=!0}initialize(e){let{loggingEnabled:t}=this.options,r=fx.default.channel(e.channelName),i=this;this.dropzone=new JE.default(document.createElement(`div`),{url:(e=>{let{ingestUrl:t}=e[0].cvUpload;return t}),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(){t&&(n.each($E,e=>{this.on(e,(...t)=>{let n=t[0]instanceof File?t[0].name:t[0];console.info(e,n,t)})}),this.on(`uploadprogress`,(e,t,n)=>{let a=n/e.size*100;r.trigger(`progress`,i.getId(e),a,n)}),this.on(`success`,e=>{let t=e.upload.chunks,i=n.last(t),a=i.xhr;a||=i.file.xhr;let o=JSON.parse(a.response);e.cvUpload.fileId=o.id,r.trigger(wS.UPLOAD_SUCCESS,e,o)}),this.on(`error`,(e,t,n)=>{if(n&&n.status===0){O.throw(new XE);return}e.status!==`canceled`&&O.throw(new CS(Xe.getPhrase(`upload.services`,`uploadError`,{fileName:e.name,message:t.message})))}),this.on(`sending`,e=>{window.clearTimeout(i.slowInternetTimeout[e.path]),i.showSlowInternetTimeout&&(i.slowInternetTimeout[e.path]=window.setTimeout(()=>{i.showSlowInternetTimeout&&O.throw(new QE),i.showSlowInternetTimeout=!1},3e4))}),this.on(`complete`,e=>window.clearTimeout(i.slowInternetTimeout[e.path])))},params:(e,t,n)=>{if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:()=>{},thumbnail:()=>{},uploadprogress:()=>{}})}getId(e){return e.upload.uuid}addFile(e){this.dropzone.addFile(e)}removeFile(e){this.dropzone.removeFile(e)}start(){this.dropzone.processQueue()}destroy(){this.dropzone.destroy()}static isValidFile(e,t){return JE.default.isValidFile(e,t)}};r();var tD=class extends ME{constructor(){super({dataProvider:an.getInstance(jE.Ajax),cache:an.getInstance(AE.Fifo),alertService:an.getInstance(Ye.ALERT)}),this.incrementingUploadId=0}get name(){return`UploadDataService`}get channelName(){return`private:upload:data:service`}requestUploads(e,t,n,r,i){let a=this.chain();k(t,t=>{this.incrementingUploadId++,a.create({resource:e,eventPrefix:`request:upload:${this.incrementingUploadId}`,data:this.getFileUploadRequest(t,n),callback:e=>{r(t,e)},errorHandler:this.alertService.error(`Something went wrong while we were uploading your video. Please try again.`)})}),a.func(()=>{i()}).run()}cancelUpload(e,t,n){this.create({resource:`/api/upload/cancel`,eventPrefix:`cancel:upload`,data:{uploadId:e,ingestUrl:t},callback:n})}getFileUploadRequest(e,t){let n=e.name.split(`.`);return{name:n.join(`.`),extension:n.length>1?n.pop():``,fileSize:e.size,fileLifestyle:t}}onDestroy(){an.releaseInstance(jE.Ajax).releaseInstance(AE.Fifo)}},nD=function(e){return e[e.Video=0]=`Video`,e[e.LearningResource=1]=`LearningResource`,e[e.Subtitle=2]=`Subtitle`,e[e.MixedMedia=3]=`MixedMedia`,e}({}),rD={[nD.Video]:GE.VIDEO,[nD.LearningResource]:GE.RESOURCES,[nD.Subtitle]:GE.SUBTITLES,[nD.MixedMedia]:GE.MIXED_MEDIA},iD={[nD.Video]:TS.VIDEO_UPLOAD,[nD.LearningResource]:TS.RESOURCE_UPLOAD,[nD.Subtitle]:TS.SUBTITLE_UPLOAD,[nD.MixedMedia]:TS.MIXED_MEDIA_UPLOAD},aD=1024*1024*4,oD=1024*1024*1024*50,sD=class extends A{initialize(){this.uploadDataService=new tD,this.progressViewModel=NE.get(`upload:progress:${this.uploadType}`),this.bindListeners()}get channelName(){return iD[this.uploadType]}get lang(){return`uploadShared.services`}initUploader(e,t){if(this.uploader)return;let n=aD;e&&n<e&&(n=e),t&&n>t&&(n=t),this.uploader=new eD({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:oD,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}bindListeners(){this.listenTo(this.channelName,`progress`,this.onProgress),this.listenTo(this.channelName,wS.UPLOAD_SUCCESS,this.onSuccess)}onProgress(e,t,n){let r=this.collection.get(e);r&&(r.set({progress:t>100?100:t,totalUploaded:n}),this.setOverallProgress())}isUploading(){return!!this.getCollection().length}getCollection(){return this.collection||=new C,this.collection}setOverallProgress(){let e=0,t=0,n=this.getCollection();if(!n.length){this.progressViewModel.set({progress:0});return}n.each(n=>{e+=n.get(`totalUploaded`)||0,t+=n.get(`file`).size||0});let r=e/t*100,i=r>=100,a=()=>{this.progressViewModel.set({progress:i?100:r,done:i})};if(!i){a();return}window.setTimeout(a,2e3)}isValidFile(e){return eD.isValidFile(e,this.getAcceptedFiles())}addFiles(e,t){if(c(e,e=>!this.isValidFile(e))){O.throw(new FE(Xe.getPhrase(this.lang,`invalidFileType`)));return}this.requestUploads(e,t)}async requestUploads(e,t){let n=this.isUploading(),r=this.getCollection();for(let t of e){let e=await Tt(this.options.store.dispatch,KE.requestUpload(t,this.fileLifestyle));`minChunkSize`in e&&`maxChunkSize`in e&&this.initUploader(e.minChunkSize,e.maxChunkSize),t.cvUpload={uploadId:e.uploadId,ingestUrl:e.uploadUrl},this.uploader.addFile(t);let n=t.name;this.uploadType===nD.Video&&(n=n.replace(/\.[^/.]+$/,``));let i=this.uploader.getId(t);r.add({id:i,file:t,name:n,...this.getAdditionalFileInfo(t,e)},{at:r.length-1})}t&&dt.logUserAction({uploadCount:e.length},t),fx.default.channel(this.channelName).trigger(wS.FILES_ADDED,e,n)}addFile(e,t){this.addFiles([e],t)}cancelUpload(e){let t=this.getCollection(),n=t.get(e);if(!n)return;let r=n.get(`file`);this.uploader.removeFile(r),t.remove(n),this.uploadDataService.cancelUpload(r.cvUpload.uploadId,r.cvUpload.ingestUrl,()=>{dt.logUserAction(n.toJSON(),{entity:ct.Video,actionType:B.Upload,workflowPhase:$e.Discard,descriptor:it.Single,location:ut.MyUploads}),fx.default.channel(this.channelName).trigger(wS.UPLOAD_CANCELLED)}),this.setOverallProgress()}onSuccess(e,t){let n=this.uploader.getId(e),r=this.getCollection().get(n);r.set(`fileInfo`,t),dt.logUserAction({id:e.cvUpload.uploadId},{entity:ct.Video,actionType:B.Upload,workflowPhase:$e.Complete,descriptor:it.Single,location:ut.VideoUpload}),fx.default.channel(this.channelName).trigger(wS.UPLOAD_COMPLETE,r)}cancelAllUploads(){k(this.getCollection().map(e=>e.get(`id`)),e=>this.cancelUpload(e))}getUpload(e){let t=this.uploader.getId(e);return this.getCollection().get(t)}getAcceptedFiles(){return rD[this.uploadType]}getAdditionalFileInfo(e,t){return{}}},cD=class extends sD{get uploadType(){return nD.MixedMedia}get name(){return Kt.MixedMediaUpload}get fileLifestyle(){return PE.Temporary}},lD=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return US(e,t)})},uD=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return GS(e,t)})},dD=function(e){dn(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&Tn(e),r&&(this.appliedClasses[t][n]=r,lD(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&uD(e,r),i&&uD(e,i),a&&uD(e,a)},n.render=function(){var e=this.props;e.classNames;var t=st(e,[`classNames`]);return X.createElement(sn,Ze({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(X.Component);dD.defaultProps={classNames:``},dD.propTypes={};function fD(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function pD(e,t){var n=function(e){return t&&(0,X.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&X.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function mD(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function hD(e,t,n){return n[t]==null?e.props[t]:n[t]}function gD(e,t){return pD(e.children,function(n){return(0,X.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:hD(n,`appear`,e),enter:hD(n,`enter`,e),exit:hD(n,`exit`,e)})})}function _D(e,t,n){var r=pD(e.children),i=mD(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,X.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,X.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,X.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:hD(o,`exit`,e),enter:hD(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,X.cloneElement)(o,{in:!1}):c&&s&&(0,X.isValidElement)(l)&&(i[a]=(0,X.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:hD(o,`exit`,e),enter:hD(o,`enter`,e)}))}}),i}var vD=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},yD={component:`div`,childFactory:function(e){return e}},bD=function(e){dn(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(fD(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?gD(e,r):_D(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=pD(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Ze({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=st(e,[`component`,`childFactory`]),i=this.state.contextValue,a=vD(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?X.createElement(fn.Provider,{value:i},a):X.createElement(fn.Provider,{value:i},X.createElement(t,r,a))},t}(X.Component);bD.propTypes={},bD.defaultProps=yD;function xD(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.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 SD(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.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 CD(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.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 wD(e){return(0,Z.jsx)(`svg`,{...e,children:(0,Z.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`})})}var TD={alertItem:`_alertItem_i5y1z_1`,alertBox:`_alertBox_i5y1z_11`,alertList:`_alertList_i5y1z_11`,icon:`_icon_i5y1z_28`,alertContent:`_alertContent_i5y1z_32`,heading:`_heading_i5y1z_40`};function ED(e){let{alert:t,svg:n,svgClassName:r,closeAlert:i}=e,{message:a,heading:o,appLink:s,appLinkText:c,appLinkClassName:l=``,extLink:u,extLinkText:d,extLinkClassName:f}=t;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{className:`d-inline-block ${TD.icon}`,children:(0,Z.jsx)(He,{svg:n,className:`svg-container ${r}`})}),(0,Z.jsxs)(`div`,{role:t.type===rn.Fail?`alert`:`status`,className:`ps-2 d-inline-block ${TD.alertContent}`,children:[(0,Z.jsx)(`p`,{className:`p-0 m-0 pb-1 ${TD.heading}`,children:o}),(0,Z.jsx)(`p`,{className:`p-0 text-break clamp-4 ${TD.message}`,dangerouslySetInnerHTML:{__html:a}}),!!s&&(0,Z.jsx)(zn,{className:l,appLink:s,children:(0,Z.jsx)(`span`,{dangerouslySetInnerHTML:{__html:c}})}),!!u&&d&&(0,Z.jsx)(`a`,{href:u,className:f,target:`_blank`,children:d})]}),(0,Z.jsx)(`div`,{className:`btn-close d-inline-block cursor-pointer`,role:`button`,"aria-label":`Close`,onClick:i})]})}var DD=e=>{switch(e.type){case rn.Success:return xD;case rn.Fail:case rn.Warning:return wD;case rn.Pending:return CD;case rn.Info:default:return SD}},OD=e=>e.type===rn.Pending?`text-info`:`text-${e.type}`;kD.defaultProps={timeout:3e3};function kD({alert:e,closeAlert:t,timeout:n}){let[r,i]=X.useState(!0),a=X.useRef(null);return X.useEffect(()=>{if(!r){clearTimeout(a.current);return}a.current=window.setTimeout(t,n)},[r]),(0,Z.jsx)(`li`,{className:`bg-white mt-2 p-2 show clearfix ${TD.alertItem}`,onMouseEnter:()=>i(!1),onMouseLeave:()=>i(!0),children:(0,Z.jsx)(ED,{alert:e,svg:DD(e),svgClassName:OD(e),closeAlert:t})})}function AD({alerts:e,removeAlert:t}){return(0,Z.jsx)(`div`,{className:TD.alertBox,children:(0,Z.jsx)(bD,{component:`ul`,className:`${TD.alertList} list-unstyled`,children:e&&e.map((e,n)=>(0,Z.jsx)(dD,{timeout:200,classNames:`alert`,children:(0,Z.jsx)(kD,{alert:e,closeAlert:()=>t(e.id),timeout:e.timeout})},n))})})}var jD={[Lt.US]:`en-us`},MD={getInstanceRegion(e,t){return e.instanceRegion?e.instanceRegion:hr.getInstanceRegion(t?.countryCode)},BRAZE_CLIENT_SOURCE:`cv_product_braze_client_service`},ND={shouldInitialize(e){return!!e.isAuthenticated}};async function PD(e){let t=Ct(e.store,kx.config()),n=Ct(e.store,kx.version());return{currentUser:await Ct(e.store,Gt.currentUser()),config:await t,version:await n}}var FD={countryCode:pr.US};async function ID(e,t){try{let{currentUser:n,config:r,version:i}=await PD(e);yt.setCurrentRegion(jD[n.instanceRegion]);let a={maxAlerts:3,defaultSuccessAlert:{heading:AC.Success,type:rn.Success},defaultErrorAlert:{heading:AC.Fail,type:rn.Fail},alertViewCtor:AD};an.registerSingleton(new nn(a)).registerInstance(cD,{store:e.store}),await o(),t(e);async function o(){let{BrazeClientService:e}=await Ht(async()=>{let{BrazeClientService:e}=await import(`./ACTQklJQ.chunk.js`);return{BrazeClientService:e}},__vite__mapDeps([234,1,200,89])),t=MD.getInstanceRegion(n,FD),a={client:{productName:`streamable.web`,version:i,apiKey:r.braze[t].apiKey,baseUrl:r.braze[t].url,shouldInitialize:ND.shouldInitialize(n),geoLocation:FD},context:{user:n},eventOptions:{logAttributionData:!0,logUtmParameters:!0}};an.registerInstance(e,a)}}catch{O.throw(new mx)}}function LD(e){var t,n=e.Symbol;return typeof n==`function`?n.observable?t=n.observable:(t=n(`observable`),n.observable=t):t=`@@observable`,t}var RD=LD(typeof self<`u`?self:typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof module<`u`?module:Function(`return this`)()),zD=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},BD={INIT:`@@redux/INIT`+zD(),REPLACE:`@@redux/REPLACE`+zD(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+zD()}};function VD(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function HD(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw 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`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(`Expected the enhancer to be a function.`);return n(HD)(e,t)}if(typeof e!=`function`)throw Error(`Expected the reducer to be a function.`);var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw 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 d(e){if(typeof e!=`function`)throw Error(`Expected the listener to be a function.`);if(c)throw 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 t=!0;return l(),s.push(e),function(){if(t){if(c)throw 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.`);t=!1,l();var n=s.indexOf(e);s.splice(n,1)}}}function f(e){if(!VD(e))throw Error(`Actions must be plain objects. Use custom middleware for async actions.`);if(e.type===void 0)throw Error(`Actions may not have an undefined "type" property. Have you misspelled a constant?`);if(c)throw Error(`Reducers may not dispatch actions.`);try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(`Expected the nextReducer to be a function.`);i=e,f({type:BD.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw TypeError(`Expected the observer to be an object.`);function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[RD]=function(){return this},e}return f({type:BD.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[RD]=m,r}function UD(e,t){var n=t&&t.type;return`Given `+(n&&`action "`+String(n)+`"`||`an action`)+`, 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 WD(e){Object.keys(e).forEach(function(t){var n=e[t];if(n(void 0,{type:BD.INIT})===void 0)throw 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(n(void 0,{type:BD.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(`Reducer "`+t+`" returned undefined when probed with a random type. `+(`Don't try to handle `+BD.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 GD(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}var a=Object.keys(n),o;try{WD(n)}catch(e){o=e}return function(e,t){if(e===void 0&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=n[c],u=e[c],d=l(u,t);if(d===void 0){var f=UD(c,t);throw Error(f)}i[c]=d,r||=d!==u}return r?i:e}}function KD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qD(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n}function JD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qD(n,!0).forEach(function(t){KD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qD(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YD(){var e=[...arguments];return e.length===0?function(e){return e}:e.length===1?e[0]:e.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function XD(){var e=[...arguments];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw Error(`Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.`)},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=e.map(function(e){return e(i)});return r=YD.apply(void 0,a)(n.dispatch),JD({},n,{dispatch:r})}}}var ZD={X_APP_VERSION:`X-App-Version`};function QD(e){let{oldVersionError:t,authenticationError:n}=e;return function(e){return r=>i=>{let a=i;if(i.type===St.API_ERROR&&n&&a?.xhr?.status===v.Unauthorized)return O.throw(new n(`dark`));if(i.type!==St.API_RESPONSE){r(i);return}let o=e.getState().applicationData.version,s=a?.xhr?.getResponseHeader(ZD.X_APP_VERSION);t&&o&&s&&s!==o&&O.throw(new t(o,s)),r(i)}}}function $D(e,t){if(!et.isObject(t.xhr))return e;let n=t.xhr.getResponseHeader(ZD.X_APP_VERSION);return n?{...e,version:n}:e}var eO={version:null};function tO(e=eO,t){switch(t.type){case St.API_RESPONSE:return $D(e,t)}return e}function nO(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})}function rO(e={},t){switch(t.type){case ir.UPDATE:return nO(e,t)}return e}var iO={SHORT:120,STANDARD:600},aO=`shared.authentication`,oO=class extends gS{constructor(e){super(Xe.getPhrase(aO,`title`)),this.btnVariant=e}get name(){return`AuthenticationError`}get dialogOptions(){return{title:Xe.getPhrase(aO,`heading`),text:Xe.getPhrase(aO,`body`),buttons:[{text:Xe.getPhrase(aO,`reload`),className:`btn btn-${this.btnVariant}`,success:!0}]}}onDone(){d.Reload()}},sO=class extends oO{onDone(){d.PageLoad(`/login?returnUrl=${encodeURIComponent(d.GetCurrentUrl())}`)}};async function cO(e,t,n){let r=kt(n.getState(),Gt.currentUser().key).data;return r?{...e,resource:At.isPublicRequest(t)&&!r.isAuthenticated?t.publicUrl:t.url}:e}var lO={hasTokenExpired(e){return typeof e?.localTTL==`number`?new Date().getTime()>e.localTTL:!1},getToken(e,t){let n=kt(e.getState(),Wt.TOKEN),r=lO.hasTokenExpired(n.data);if((n.shouldFetch||r)&&!n.isFetching){jt(e.dispatch,t);return}if(n.isFetching){let n=!1,r=e.subscribe(()=>{r(),!n&&(n=!0,lO.getToken(e,t))});return}n.hasError?(t.error?.({status:n.statusCode,getResponseHeader:null}),t.always?.()):(t.success?.(n.data),t.always?.())},async getTokenAsync(e){return fO.getToken()||new Promise((t,n)=>{lO.getToken(e,Gt.token(e=>t(e),e=>n(e)))})}},uO=uC.default.Router.prototype._routeToRegExp(`share/embed/:id(/)`),dO=uC.default.Router.prototype._routeToRegExp(`videos/embed/:id(/)`),fO={applyToken(e){let t=qt.getCurrentRoute().appLink,n=R.getHref({...t,params:{...typeof t.params==`object`?t.params:{},embedToken:e?.value,localTTL:e?.localTTL,a:!0}});d.PageLoad(n)},getToken(){let e=uC.default.history.getFragment(d.GetCurrentPath()),t=uO.test(e),n=dO.test(e);if(!t&&!n||!window.URLSearchParams)return null;let r=new URLSearchParams(window.location.search),i=r.get(`embedToken`),a=parseInt(r.get(`localTTL`));if(!i||!a)return null;let o={value:i,localTTL:isNaN(a)?null:a};return lO.hasTokenExpired(o)?null:o}};function pO(){let e=fO.getToken();return e?function(t,n){if(!t.resource.startsWith(`/`))return n(t);lO.hasTokenExpired(e)||(t.headers={...t.headers??{},authorization:`Bearer ${e.value}`}),n(t)}:(e,t)=>t(e)}var mO={safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith(`/`)||(n+=`/`),t&&(n+=t.startsWith(`/`)?t.slice(1):t),n}},hO={"{gateway}":`gatewayApiUrl`,"{image}":`imageCdnUrl`,"{integrations}":`integrationsApiUrl`,"{player}":`playerApiUrl`};function gO(e){return async function(t,n){let r=Object.keys(hO).find(e=>t.resource.startsWith(e));if(!r)return n(t);function i(e,i){let a=e[hO[r]],o={...t,resource:mO.safeUrlConcat(a,t.resource.split(`${r}/`)[1])};i?.value&&(o.headers={...o.headers??{},authorization:`Bearer ${i.value}`}),n(o)}try{let t=await Ct(e,kx.config());if(!(await Ct(e,Gt.currentUser())).isAuthenticated){i(t);return}i(t,await lO.getTokenAsync(e))}catch{n(t)}}}var _O=/\(([^()]*)\)/g;function vO(e,t){return function(n,r){r({...n,resource:n.resource.replace(e,t)})}}function yO(e,t){function n(e){return function(n){let r=t[n];if(typeof r==`string`){e.useAsync(vO(n,r));return}r&&e.useAsync(r)}}return function(t,r){let i=new p,a=new p,o={resource:t.resource,store:e},s={resource:null,store:e},c=t.data?.ogql;if(decodeURIComponent(t.resource).replace(_O,n(i)),c){let e=JSON.stringify(t.data.ogql);s.resource=e,e.replace(_O,n(a))}i.goAsync(o,e=>{a.goAsync(s,n=>{r({...t,resource:e.resource,data:c?{...t.data,ogql:JSON.parse(n.resource)}:t.data})})})}}function bO(e,t){return function(n){let r=new p;r.useAsync(gO(e.store)),r.useAsync(yO(e.store,t)),r.useAsync(pO()),r.goAsync(n,e=>{Pt(e)})}}function xO(e,t){return async function(n,r){if(!t?.length)return n;try{let i=n;for(let n of t)i=await n(i,r,e.store);return i}catch{return n}}}var SO=[Q.DefaultPlaybackQuality,Q.DefaultLocalCachePlaybackQuality,Q.EnableSubtitlesDefault,Q.PolicyEndTime,Q.ClickViewLive];function CO(e){return function(t,n){let r=SO.map(e=>`type=${e}`).join(`&`),i=t.resource.replace(e,r);n({...t,resource:i})}}var wO=[Q.HasCompletedOnboardingV1];function TO(e){return function(t,n){let r=wO.map(e=>`type=${e}`).join(`&`),i=t.resource.replace(e,r);n({...t,resource:i})}}var EO=`thumbnail,_rating,series,season,productionCompanies[logo]`,DO=`subtitles{limit:1}`;function OO(e){return function(t,n){Mt(t.store,Gt.currentUser(r=>{let i=`${EO}`;r.isAuthenticated&&(i+=`,favouritedby{id:${r.id}}`),e===Ut.VIDEO_COLLECTION&&(i+=`,`+DO);let a=t.resource.replace(e,i);n({...t,resource:a})},()=>n(t)))}}var kO={[Ut.VIDEO_COLLECTION]:OO(Ut.VIDEO_COLLECTION),"(customerSettings)":CO(`(customerSettings)`),"(userSettings)":TO(`(userSettings)`)};async function AO(e,t){let n=GD({flightData:Nt,viewModelData:rO,applicationData:tO}),r=Ot({fetchData:bO(e,kO),getFetchDataOptions:xO(e,[cO]),bootstrappedData:window.bootstrapData||{},defaultCacheDuration:iO.STANDARD}),i=QD({authenticationError:sO,oldVersionError:SS});async function a(n){e.registerStore(n),t(e),delete window.bootstrapData}await a(HD(n,XD(r,i)))}var jO=`application:options`;r();var MO=class extends A{constructor(e){super(),this.clients={},this.enrichers={},NE.get(jO).set(e??{})}get name(){return tt.Analytics}registerTransport(e,t){return this.transport=new e(t),this.bindTransportListeners(),this}bindTransportListeners(){this.listenTo(ft.ANALYTICS,at.Inlet,this.onEvent)}registerClient(e,t){return this.validateConstructor(e),this.clients[e.prototype.name]=e.prototype.name,this.transport.subscribe(new e(t)),this}registerEnricher(t,n){this.validateConstructor(t);let r=new t(n);return this.enrichers[r.name]=r,this.registerMiddleware(e(r.enrich,r)),this}hasEnricher(e){return!!this.enrichers[e.prototype.name]}onEvent(e){this.executeMiddleware(e,e=>{this.transport.publish(e)})}validateConstructor(e){let t=e.prototype.name;t||O.throw(new f(`Classes registered with ${this.name} must have a unique name property.`));let n=t=>We.isFunction(e.prototype.isType)&&e.prototype.isType(t);(n(`BaseAnalyticsClient`)||t===`CollectionApiClient`)&&this.clients[t]&&O.throw(new f(`A client class with the name: ${t} has already been registered with ${this.name}`)),n(`BaseAnalyticsEnricher`)&&this.enrichers[t]&&O.throw(new f(`An enricher class named: ${t} has already been registered with ${this.name}`))}registerMiddleware(e){this.executeMiddleware=(t=>(n,r)=>t(n,()=>e(n,r)))(this.executeMiddleware)}executeMiddleware(e,t){t(e)}},NO=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,PO=`UINT8ARRAY not supported by this environment`;function FO(e,t,n,r){let i,a,o,s=t||[0],c=(n||=0)>>>3,l=r===-1?3:0;for(i=0;i<e.length;i+=1)o=i+c,a=o>>>2,s.length<=a&&s.push(0),s[a]|=e[i]<<8*(l+o%4*r);return{value:s,binLen:8*e.length+n}}function IO(e,t,n){switch(t){case`UTF8`:case`UTF16BE`:case`UTF16LE`:break;default:throw Error(`encoding must be UTF8, UTF16BE, or UTF16LE`)}switch(e){case`HEX`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s;if(e.length%2!=0)throw Error(`String of HEX type must be in byte increments`);let c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(i=0;i<e.length;i+=2){if(a=parseInt(e.substr(i,2),16),isNaN(a))throw Error(`String of HEX type contains invalid characters`);for(s=(i>>>1)+l,o=s>>>2;c.length<=o;)c.push(0);c[o]|=a<<8*(u+s%4*r)}return{value:c,binLen:4*e.length+n}}(e,t,r,n)};case`TEXT`:return function(e,r,i){return function(e,t,n,r,i){let a,o,s,c,l,u,d,f,p=0,m=n||[0],h=(r||=0)>>>3;if(t===`UTF8`)for(d=i===-1?3:0,s=0;s<e.length;s+=1)for(a=e.charCodeAt(s),o=[],128>a?o.push(a):2048>a?(o.push(192|a>>>6),o.push(128|63&a)):55296>a||57344<=a?o.push(224|a>>>12,128|a>>>6&63,128|63&a):(s+=1,a=65536+((1023&a)<<10|1023&e.charCodeAt(s)),o.push(240|a>>>18,128|a>>>12&63,128|a>>>6&63,128|63&a)),c=0;c<o.length;c+=1){for(u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=o[c]<<8*(d+u%4*i),p+=1}else for(d=i===-1?2:0,f=t===`UTF16LE`&&i!==1||t!==`UTF16LE`&&i===1,s=0;s<e.length;s+=1){for(a=e.charCodeAt(s),!0===f&&(c=255&a,a=c<<8|a>>>8),u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=a<<8*(d+u%4*i),p+=2}return{value:m,binLen:8*p+r}}(e,t,r,i,n)};case`B64`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c,l,u,d=0,f=t||[0],p=(n||=0)>>>3,m=r===-1?3:0,h=e.indexOf(`=`);if(e.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw Error(`Invalid character in base-64 string`);if(e=e.replace(/=/g,``),h!==-1&&h<e.length)throw Error(`Invalid '=' found in base-64 string`);for(a=0;a<e.length;a+=4){for(c=e.substr(a,4),s=0,o=0;o<c.length;o+=1)i=NO.indexOf(c.charAt(o)),s|=i<<18-6*o;for(o=0;o<c.length-1;o+=1){for(u=d+p,l=u>>>2;f.length<=l;)f.push(0);f[l]|=(s>>>16-8*o&255)<<8*(m+u%4*r),d+=1}}return{value:f,binLen:8*d+n}}(e,t,r,n)};case`BYTES`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(a=0;a<e.length;a+=1)i=e.charCodeAt(a),s=a+l,o=s>>>2,c.length<=o&&c.push(0),c[o]|=i<<8*(u+s%4*r);return{value:c,binLen:8*e.length+n}}(e,t,r,n)};case`ARRAYBUFFER`:return function(e,t,r){return function(e,t,n,r){return FO(new Uint8Array(e),t,n,r)}(e,t,r,n)};case`UINT8ARRAY`:try{new Uint8Array}catch{throw Error(PO)}return function(e,t,r){return FO(e,t,r,n)};default:throw Error(`format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function LO(e,t,n,r){switch(e){case`HEX`:return function(e){return function(e,t,n,r){let i=`0123456789abcdef`,a,o,s=``,c=t/8,l=n===-1?3:0;for(a=0;a<c;a+=1)o=e[a>>>2]>>>8*(l+a%4*n),s+=i.charAt(o>>>4&15)+i.charAt(15&o);return r.outputUpper?s.toUpperCase():s}(e,t,n,r)};case`B64`:return function(e){return function(e,t,n,r){let i,a,o,s,c,l=``,u=t/8,d=n===-1?3:0;for(i=0;i<u;i+=3)for(s=i+1<u?e[i+1>>>2]:0,c=i+2<u?e[i+2>>>2]:0,o=(e[i>>>2]>>>8*(d+i%4*n)&255)<<16|(s>>>8*(d+n*((i+1)%4))&255)<<8|c>>>8*(d+n*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=t?NO.charAt(o>>>6*(3-a)&63):r.b64Pad;return l}(e,t,n,r)};case`BYTES`:return function(e){return function(e,t,n){let r,i,a=``,o=t/8,s=n===-1?3:0;for(r=0;r<o;r+=1)i=e[r>>>2]>>>8*(s+r%4*n)&255,a+=String.fromCharCode(i);return a}(e,t,n)};case`ARRAYBUFFER`:return function(e){return function(e,t,n){let r,i=t/8,a=new ArrayBuffer(i),o=new Uint8Array(a),s=n===-1?3:0;for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(s+r%4*n)&255;return a}(e,t,n)};case`UINT8ARRAY`:try{new Uint8Array}catch{throw Error(PO)}return function(e){return function(e,t,n){let r,i=t/8,a=n===-1?3:0,o=new Uint8Array(i);for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(a+r%4*n)&255;return o}(e,t,n)};default:throw Error(`format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function RO(e){let t={outputUpper:!1,b64Pad:`=`,outputLen:-1},n=e||{},r=`Output length must be a multiple of 8`;if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw Error(r);t.outputLen=n.shakeLen}if(typeof t.outputUpper!=`boolean`)throw Error(`Invalid outputUpper formatting option`);if(typeof t.b64Pad!=`string`)throw Error(`Invalid b64Pad formatting option`);return t}var zO=class{constructor(e,t,n){let r=n||{};if(this.t=t,this.i=r.encoding||`UTF8`,this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw Error(`numRounds must a integer >= 1`);this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.p=!1,this.U=[],this.R=[]}update(e){let t,n=0,r=this.T>>>5,i=this.F(e,this.h,this.u),a=i.binLen,o=i.value,s=a>>>5;for(t=0;t<s;t+=r)n+this.T<=a&&(this.m=this.g(o.slice(t,t+r),this.m),n+=this.T);return this.A+=n,this.h=o.slice(n>>>5),this.u=a%this.T,this.l=!0,this}getHash(e,t){let n,r,i=this.B,a=RO(t);if(this.v){if(a.outputLen===-1)throw Error(`Output length must be specified in options`);i=a.outputLen}let o=LO(e,i,this.H,a);if(this.p&&this.C)return o(this.C(a));for(r=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),i),n=1;n<this.numRounds;n+=1)this.v&&i%32!=0&&(r[r.length-1]&=16777215>>>24-i%32),r=this.Y(r,i,0,this.L(this.o),i);return o(r)}setHMACKey(e,t,n){if(!this.M)throw Error(`Variant does not support HMAC`);if(this.l)throw Error(`Cannot set MAC key after calling update`);let r=IO(t,(n||{}).encoding||`UTF8`,this.H);this.N(r(e))}N(e){let t=this.T>>>3,n=t/4-1,r;if(this.numRounds!==1)throw Error(`Cannot set numRounds with MAC`);if(this.p)throw Error(`MAC key already set`);for(t<e.binLen/8&&(e.value=this.Y(e.value,e.binLen,0,this.L(this.o),this.B));e.value.length<=n;)e.value.push(0);for(r=0;r<=n;r+=1)this.U[r]=909522486^e.value[r],this.R[r]=1549556828^e.value[r];this.m=this.g(this.U,this.m),this.A=this.T,this.p=!0}getHMAC(e,t){let n=RO(t);return LO(e,this.B,this.H,n)(this.S())}S(){let e;if(!this.p)throw Error(`Cannot call getHMAC without first setting MAC key`);let t=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),this.B);return e=this.g(this.R,this.L(this.o)),e=this.Y(t,this.B,this.T,e,this.B),e}};function BO(e,t){return e<<t|e>>>32-t}function VO(e,t,n){return e^t^n}function HO(e,t,n){return e&t^e&n^t&n}function UO(e,t){let n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function WO(e,t,n,r,i){let a=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function GO(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function KO(e,t){let n,r,i,a,o,s,c,l=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],c=0;c<80;c+=1)l[c]=c<16?e[c]:BO(l[c-3]^l[c-8]^l[c-14]^l[c-16],1),s=c<20?WO(BO(n,5),(u=r)&i^~u&a,o,1518500249,l[c]):c<40?WO(BO(n,5),VO(r,i,a),o,1859775393,l[c]):c<60?WO(BO(n,5),HO(r,i,a),o,2400959708,l[c]):WO(BO(n,5),VO(r,i,a),o,3395469782,l[c]),o=a,a=i,i=BO(r,30),r=n,n=s;var u;return t[0]=UO(n,t[0]),t[1]=UO(r,t[1]),t[2]=UO(i,t[2]),t[3]=UO(a,t[3]),t[4]=UO(o,t[4]),t}function qO(e,t,n,r){let i,a=15+(t+65>>>9<<4),o=t+n;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)r=KO(e.slice(i,i+16),r);return r}var JO=class extends zO{constructor(e,t,n){if(e!==`SHA-1`)throw Error(`Chosen SHA variant is not supported`);super(e,t,n);let r=n||{};this.M=!0,this.C=this.S,this.H=-1,this.F=IO(this.t,this.i,this.H),this.g=KO,this.I=function(e){return e.slice()},this.L=GO,this.Y=qO,this.m=[1732584193,4023233417,2562383102,271733878,3285377520],this.T=512,this.B=160,this.v=!1,r.hmacKey&&this.N(function(e,t,n,r){let i=e+` must include a value and format`;if(!t){if(!r)throw Error(i);return r}if(t.value===void 0||!t.format)throw Error(i);return IO(t.format,t.encoding||`UTF8`,n)(t.value)}(`hmacKey`,r.hmacKey,this.H))}},YO={CvApSoutheast1:{systemName:mr.CvApSoutheast1},CvApSoutheast2:{systemName:mr.CvApSoutheast2},CvEuWest1:{systemName:mr.CvEuWest1},CvNaWest1:{systemName:mr.CvNaWest1}},XO=`r`,ZO=`cv:r`,QO=`cv:r:e`,$O=`referrer`,ek=`cv:originalReferrer`,tk=28800,nk=[`internalReferrer`],rk={getDecodedAttributionData(){let e=en.cacheGet(ZO);return e&&Object.keys(e).length>0?e:ik()?.decoded},getEncodedAttributionData(){let e=en.cacheGet(QO);return e?.length?e:ik().encoded},getProfileId(){return rk.getDecodedAttributionData()?.profileId??null},setAttributionData(e){e&&uk(lk(e),e)},decodeRValue(e){if(e)try{let t=atob(e),n=JSON.parse(t);if(!ok(n))throw Error(`Decoded R value is invalid: ${JSON.stringify(n)}`);return n}catch(e){let t=e instanceof Error?e.message:e?.toString();console.error(t)}}};function ik(){let e=en.cacheGet(ZO),t=en.cacheGet(QO);return ok(e)?{encoded:t,decoded:e}:ak()}function ak(){en.cacheRemove(ZO),en.cacheRemove(QO);let e=ck(),t=rk.decodeRValue(e);if(t)return uk(e,t),{decoded:t,encoded:e};let n={internalReferrer:window.location.origin+window.location.pathname,originalReferrer:sk()},r=lk(n);return uk(r,n),{decoded:n,encoded:r}}function ok(e){return!e||typeof e!=`object`||Object.keys(e).length<nk.length?!1:nk.every(t=>typeof e[t]==`string`)}function sk(){let e=en.cacheGet(ek);if(e&&typeof e==`string`)return e;let t=document.referrer??``;if(window.URLSearchParams){let e=new URLSearchParams(window.location.search),n=e.has($O)&&e.get($O);e.has($O)&&e.get($O)&&(t=n)}return t&&en.cacheSet(ek,t,tk),t}function ck(){if(!window.URLSearchParams)return;let e=new URLSearchParams(window.location.search);if(e.has(XO))return e.get(XO)}function lk(e){if(ok(e))try{return btoa(JSON.stringify(e))}catch{console.error(`R value could not be encoded: ${JSON.stringify(e)}`)}}function uk(e,t){try{en.cacheSet(ZO,t,tk),en.cacheSet(QO,e,tk)}catch{console.error(`Could not store attribution data in session storage`)}}var dk=3,fk=5e3,pk=6,mk={},hk=class{constructor(e){this.key=e.toString()}getCount(){return mk[this.key]||0}increment(){mk[this.key]=this.getCount()+1}reset(){delete mk[this.key]}shouldBreak(){return this.getCount()>=pk}},gk=class{constructor(){this.attempt=0}async wait(){await new Promise(e=>setTimeout(e,fk*2**this.attempt)),this.attempt++}};async function _k(e,t){let n=new gk,r=new hk(e);async function i(){let n=await fetch(e,t);if(n.status>=500&&!r.shouldBreak())throw Error(`Server error: ${n.status}`);return n.ok&&r.reset(),n}for(let e=1;e<=dk;e++)try{return await i()}catch(t){if(e>=dk||r.shouldBreak())throw t;r.increment(),await n.wait()}}var vk,yk=new Uint8Array(16);function bk(){if(!vk&&(vk=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<`u`&&typeof msCrypto.getRandomValues==`function`&&msCrypto.getRandomValues.bind(msCrypto),!vk))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return vk(yk)}var xk=/^(?:[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 Sk(e){return typeof e==`string`&&xk.test(e)}for(var Ck=[],wk=0;wk<256;++wk)Ck.push((wk+256).toString(16).substr(1));function Tk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Ck[e[t+0]]+Ck[e[t+1]]+Ck[e[t+2]]+Ck[e[t+3]]+`-`+Ck[e[t+4]]+Ck[e[t+5]]+`-`+Ck[e[t+6]]+Ck[e[t+7]]+`-`+Ck[e[t+8]]+Ck[e[t+9]]+`-`+Ck[e[t+10]]+Ck[e[t+11]]+Ck[e[t+12]]+Ck[e[t+13]]+Ck[e[t+14]]+Ck[e[t+15]]).toLowerCase();if(!Sk(n))throw TypeError(`Stringified UUID is invalid`);return n}function Ek(e,t,n){e||={};var r=e.random||(e.rng||bk)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n||=0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Tk(r)}function Dk(e){if(!Sk(e))throw TypeError(`Invalid UUID`);return parseInt(e.substr(14,1),16)}var Ok=`cv:session:`,kk=`cv:window:v2:`,Ak=1e3*60*30,jk=4;function Mk(e){if(e===Zt.LocalStorage)return en.isAvailable()?en:Qt;if(e===Zt.SessionStorage)return $t.isAvailable()?$t:Qt}function Nk(e){return new Date().getTime()+e}function Pk(){return Ek()}function Fk(e,t){return e+(t||`0`)}function Ik(e){return new Date().getTime()>e}function Lk(e){return!(typeof e!=`object`||typeof e?.id!=`string`||!Sk(e.id)||Dk(e.id)!==jk||typeof e?.ttl!=`number`||e?.ttl<=0||isNaN(e?.ttl))}function Rk(e,t,n){let r=Mk(n),i=Fk(e,t),a=r.get(i);return!Lk(a)||Ik(a?.ttl)?null:a}function zk(e,t,n,r){let i=Mk(n),a=Fk(e,t),o={id:Pk(),ttl:Nk(r)};return i.set(a,o),o}function Bk(e,t,n,r,i){let a=Mk(n),o=Fk(e,t);a.set(o,{id:r.id,ttl:Nk(i)})}function Vk(e,t,n){let r=Mk(n);if(!r?.isAvailable())return;let i=Fk(e,t);r.remove(i)}var Hk=null,Uk={getClientSessionData(e){let t=Rk(Ok,e,Zt.LocalStorage);t?Bk(Ok,e,Zt.LocalStorage,t,Ak):t=zk(Ok,e,Zt.LocalStorage,Ak);let n=Rk(kk,e,Zt.SessionStorage);return n?Hk===null&&Bk(kk,e,Zt.SessionStorage,n,Ak):n=zk(kk,e,Zt.SessionStorage,Hk??Ak),{id:t.id,windowId:n.id}},resetClientSession(e){Vk(Ok,e,Zt.LocalStorage),Vk(kk,e,Zt.SessionStorage)},lockWindowSession(e,t){Hk=t;let n=Rk(kk,e,Zt.SessionStorage);n&&Bk(kk,e,Zt.SessionStorage,n,t)},unlockWindowSession(e){Hk=null;let t=Rk(kk,e,Zt.SessionStorage);t&&Bk(kk,e,Zt.SessionStorage,t,Ak)}},Wk={isObject(e){let t=typeof e;return t===`function`||t===`object`&&!!e},isFunction(e){return typeof e==`function`}},Gk={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},Kk=`Unknown`;function qk(e,t,n){let[r]=t.exec(n)||[];return r||=Kk,{name:e,version:r}}function Jk(e,t,n){if(!t)return{name:e,version:Kk};let r=t.exec(n);return{name:e,version:r&&r.length?r[0].trim():Kk}}function Yk(e,t){let n={name:e,version:null};return Gk.win2000.test(t)&&(n.version=`2000`),Gk.winXP.test(t)&&(n.version=`XP`),Gk.winVista.test(t)&&(n.version=`Vista`),Gk.win7.test(t)&&(n.version=`7`),Gk.win8.test(t)&&(n.version=`8`),Gk.win81.test(t)&&(n.version=`8.1`),Gk.win10.test(t)&&(n.version=`10`),n.version||=Kk,n}var Xk={getDeviceType(){let e=window.navigator.userAgent;return Gk.mobileDevice.test(e)?Gk.iphone.test(e)?`iPhone`:Gk.ipad.test(e)?`iPad`:Gk.android.test(e)?`Android`:Gk.blackberry.test(e)?`Blackberry`:Gk.windowsPhone.test(e)?`Windows Phone`:Kk:`Desktop`},getOperatingSystem(){let e=window.navigator.userAgent;return Gk.android.test(e)?Jk(`Android`,Gk.androidVersion,e):Gk.iphone.test(e)||Gk.ipad.test(e)?Jk(`iOS`,Gk.iosVersion,e):Gk.linux.test(e)?Jk(`Linux`,null,e):Gk.unix.test(e)?Jk(`Unix`,null,e):Gk.mac.test(e)?Jk(`Macintosh`,Gk.osxVersion,e):Gk.windows.test(e)?Yk(`Windows`,e):Gk.blackberry.test(e)?Jk(`BlackBerry`,Gk.blackberryVersion,e):Gk.windowsPhone.test(e)?Jk(`Windows Phone`,Gk.windowsPhoneVersion,e):{name:Kk,version:Kk}},getBrowser(){let e=window.navigator.userAgent;return Gk.chrome.test(e)?qk(`Chrome`,Gk.generalVersion,e):Gk.firefox.test(e)?qk(`Firefox`,Gk.generalVersion,e):Gk.safari.test(e)?qk(`Safari`,Gk.generalVersion,e):Gk.ie.test(e)?qk(`Internet Explorer`,Gk.ieVersion,e):Gk.edge.test(e)?qk(`Edge`,Gk.edgeVersion,e):Gk.opera.test(e)?qk(`Opera`,Gk.operaVersion,e):{name:Kk,version:Kk}},isTouchScreen(){return!!(`ontouchstart`in window||navigator.maxTouchPoints)}},Zk=28800,Qk=`cv:utmparams`,$k=[[`source`,`utm_source`],[`medium`,`utm_medium`],[`campaign`,`utm_campaign`],[`term`,`utm_term`],[`content`,`utm_content`]],eA=$k.reduce((e,[t])=>({...e,[t]:t}),{}),tA={getUtmParameters(){if(!window.URLSearchParams)return null;let e=new URLSearchParams(window.location.search),t={};return $k.forEach(([n,r])=>{e.has(r)&&(t[n]=e.get(r))}),nA(t)},setUtmParameters(e){if(!e)return;let t={};return Object.keys(e).forEach(n=>{eA[n]&&(t[n]=e[n])}),nA(t)},getURLSearchParams(){if(!window.URLSearchParams)return null;let e=new URLSearchParams,t=tA.getUtmParameters();return t?($k.forEach(([n,r])=>{t[n]&&e.set(r,t[n])}),e):null}};function nA(e){if(Object.keys(e).length)return en.cacheSet(Qk,e,Zk),e;let t=en.cacheGet(Qk);return t&&typeof t==`object`&&Object.keys(t).length?t:null}var rA={name:`@clickview/analytics`,version:`2.3.0`,description:`Analytics`,main:`dist/app.js`,types:`dist/analytics/src/app.d.ts`,type:`module`,private:!0,repository:{type:`git`,url:`https://gitlab.cvinternal.net/front-end/clickview`},scripts:{start:`npm run build`,"type-check":`tsc --noEmit`,build:`npm run type-check && node ../../../node_modules/vite/bin/vite.js build`,prebuild:`npm run clean`,clean:`npx rimraf dist`},author:``,license:`ISC`,devDependencies:{"@types/uuid":`8.3.4`,"tsc-alias":`1.8.16`},dependencies:{jssha:`3.3.1`,uuid:`8.3.2`}},iA=`zXJL9nOHxzDlMUDjiP41`,aA=`unknown`,oA=class{constructor(e){this.options=e,this.initialize()}initialize(){this.validateOptions(),this.options.logUtmParameters&&(this.utmParameters=tA.getUtmParameters()),this.options.logAttributionData&&(this.attributionData=rk.getDecodedAttributionData())}get name(){return`CollectionApiClient`}async log(e){if(Array.isArray(e))return this.logBulk(e);this.shouldLog(e)&&(this.validateEvent(e),await this.postData(await this.formatData(e)))}async logBulk(e){let t=e.filter(e=>this.shouldLog(e));if(!t.length)return;t.forEach(e=>this.validateEvent(e));let n=await Promise.all(t.map(e=>this.formatData(e)));await this.postData(n)}validateOptions(){if(!Wk.isFunction(this.options.getUser))throw Error(`getUser option is required.`)}shouldLog(e){return Wk.isFunction(this.options.shouldLog)?this.options.shouldLog(e):!0}async postData(e){let t=await this.getRegionalUrl(this.options.collectionApiUrls),n=JSON.stringify(e),r={"Content-Type":`application/json`,...this.getSignatureHeader(n)},i=mO.safeUrlConcat(t,`/v1/ingest`);Array.isArray(e)&&(i=mO.safeUrlConcat(i,`/bulk`));try{let e=await _k(i,{method:`POST`,mode:`cors`,headers:r,body:n});e.ok||this.logError(Error(`CollectionApiClient failed to log event. Status: ${e.status} ${e.statusText}`),!1,this.getResponseAsObject(e))}catch(e){this.logError(e)}}getResponseAsObject(e){return{headers:e.headers,ok:e.ok,redirected:e.redirected,status:e.status,statusText:e.statusText,type:e.type,url:e.url,body:e.text()}}getSignatureHeader(e){let t=new JO(`SHA-1`,`TEXT`,{hmacKey:{value:iA,format:`TEXT`,encoding:`UTF8`}});return t.update(e),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${t.getHash(`B64`)}`}}async getRegionalUrl(e){switch((await this.getRegion()).systemName){case mr.CvEuWest1:return e.cvEuWest1;case mr.CvApSoutheast2:return e.cvApSoutheast2;case mr.CvNaWest1:return e.cvNaWest1;case mr.CvApSoutheast1:default:return e.cvApSoutheast1}}validateEvent(e){typeof e.type!=`string`&&this.logError(Error(`Event type is required.`),!0),Wk.isObject(e.actionContext)||this.logError(Error(`Event actionContext is required.`),!0),e.actionContext.entity||this.logError(Error(`Event actionContext entity is required.`),!0)}async formatData(e){return{type:e.type,data:await this.getEventData(e),metadata:this.getEventMetadata(e)}}async getEventData(e){let t=e.actionContext,n=this.getPlatformMetadata(),r=await this.getUserData(),i=await this.getSessionData(),a={name:this.options.productName,version:this.options.productVersion};this.options.productVariant&&(a.variant=this.options.productVariant);let o={user:r,action:t,platform:n,product:a,session:i};this.utmParameters&&(o.utm=this.utmParameters);let s=this.extractData(e),c=Object.keys(o).map(e=>e.toLowerCase()),l=Object.keys(s).map(e=>e.toLowerCase());return c.forEach(e=>{l.includes(e)&&this.logError(Error(`${e} is a reserved key.`),!0)}),{...o,...s}}extractData(e){return Wk.isFunction(this.options.formatData)?this.options.formatData(e):{[e.actionContext.entity]:e.data}}async getUserData(){let e;try{e=await this.options.getProfileId?.()}catch(e){this.logError(e)}try{let t=await this.options.getUser();return t?.id?{id:t.id,role:t.role?.toLowerCase()||aA,userGroup:(t.userGroup??fC.Unknown).toLowerCase(),yearGroup:this.normalizeYearGroup(t.yearGroup),profileId:e,customer:{id:t.customerId,name:t.customerName,customerGuid:t.customerGuid,crmId:t.crmId,country:t.countryCode,region:await this.getRegion(),openCustomer:!1,accessPolicy:t.accessPolicy}}:e?{profileId:e}:void 0}catch(e){this.logError(e)}}async getRegion(){let e=this.options.regionName;try{let t=await this.options.getUser();t?.instanceRegion&&(e=t.instanceRegion)}catch(e){this.logError(e)}return e||this.logError(Error(`RegionName is not set.`),!0),this.getRegionByName(e.toLowerCase())}async getSessionData(){try{let e=await this.options.getUser();return{...Uk.getClientSessionData(e?.id),authSessionId:e?.sessionId}}catch(e){return console.error(e),Uk.getClientSessionData(null)}}getPlatformMetadata(){let e={url:window.location.href,referrer:document.referrer};return this.attributionData?.internalReferrer&&(e.internalReferrer=this.attributionData.internalReferrer),this.attributionData?.originalReferrer&&(e.originalReferrer=this.attributionData.originalReferrer),{browser:Xk.getBrowser(),os:Xk.getOperatingSystem(),request:e,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}getEventMetadata(e){return{client:{name:`${this.name}.ts`,version:rA.version,region:this.getRegionByName(this.options.regionName)},timestamp:new Date().toISOString(),eventVersion:e.eventVersion}}getRegionByName(e){let t;return Object.values(YO).forEach(n=>{n.systemName===e&&(t=n)}),t}normalizeYearGroup(e){return e?e.toLowerCase().split(` `).join(`_`):aA}logError(e,t,...n){if(this.options.logError&&this.options.logError(e,...n),t)throw e}},sA=class e extends A{static{this.type=`BaseAnalyticsClient`}constructor(e){super(e)}shouldLog(e){return!0}log(e){}isType(t){return t===e.type}};r();var cA=class extends sA{get name(){return`DebuggerClient`}shouldLog(){return M.isDevelopment}log(e){let t=j(e);for(let n in e){let e=t[n];(e instanceof u||e instanceof C)&&(t[n]=e.toJSON())}console.log(`Event Debugger: `,t)}},lA=function(e){return e.PageView=`cv_page_view`,e.Click=`cv_click`,e.FormSubmission=`cv_form_submission`,e}({}),uA={needsConsent(e){return!(e===void 0||!e.isRequired||e.hasConsent)}},dA=`cookie:consent:accepted`,fA=class e extends sA{constructor(e){super(e)}get name(){return`GoogleAnalyticsClient`}initialize(e){if(this.setup(),e.logUtmParameters&&(this.utmParameters=tA.getUtmParameters()),e.logAttributionData&&(this.attributionData=rk.getDecodedAttributionData()),!uA.needsConsent(e.consent)){this.updateGAConsent(`granted`);return}this.listenTo(o.SHELL,dA,this.onConsent)}onConsent(e){e?.analytics&&this.updateGAConsent(`granted`)}updateGAConsent(e){if(!this.ready){console.error(`gtag is not ready`);return}window.gtag(`consent`,`update`,{ad_user_data:e,ad_personalization:e,ad_storage:e,analytics_storage:e})}setup(){if(typeof window.gtag!=`function`){this.ready=!1;return}this.ready=!0}shouldLog(t){if(!this.ready||!Array.isArray(window.dataLayer))return!1;let n=e.eventWhitelist[t.type];return typeof n==`function`?n(t):!1}log(e){let{eventName:t,eventData:n}=this.getEventData(e)??{};t&&this.logEvent(t,n)}logEvent(e,t={}){this.ready&&(this.utmParameters&&(t.utm=this.utmParameters),this.attributionData?.internalReferrer&&(t.internalReferrer=this.attributionData.internalReferrer),this.attributionData?.originalReferrer&&(t.originalReferrer=this.attributionData.originalReferrer),window.gtag(`event`,e,t||{}))}getEventData(t){if(t.isType(B.PageView))return e.getPageViewData(t);if(t.isType(B.Click))return e.getClickData(t);if(t.isType(B.Create))return e.getCreateEventData(t)}static getCreateEventData(t){if(e.isTrialCreatedEvent(t))return{eventName:lA.FormSubmission,eventData:{event_category:`sign_up`,event_label:`created`}};if(e.isTrialRequestedEvent(t))return{eventName:lA.FormSubmission,eventData:{event_category:`sign_up`,event_label:`trial_requested`}};if(e.isTrialCustomerEvent(t))return{eventName:lA.FormSubmission,eventData:{event_category:`sign_up`,event_label:`customer`}};if(e.isTrialExistingEvent(t))return{eventName:lA.FormSubmission,eventData:{event_category:`sign_up`,event_label:`existing_trial`}}}static getPageViewData(e){if(!(!(`url`in e.data)||!e.data.url))return{eventName:lA.PageView,eventData:{url:e.data?.url}}}static getClickData(e){if(e.actionContext?.entity!==ct.Url)return{eventName:lA.Click,eventData:{entity:e.actionContext?.entity,context:e.actionContext?.descriptor||e.actionContext?.location,id:e.data?.id,value:e.data?.name}}}static get eventWhitelist(){return{[B.PageView]:e.isPageViewEvent,[B.Click]:e.isClickEvent,[B.Create]:e.isCreateEvent}}static isPageViewEvent(e){return`url`in e.data}static isClickEvent(e){return e.type===B.Click}static isCreateEvent(t){return t.type===B.Create?e.isTrialCreatedEvent(t)||e.isTrialRequestedEvent(t)||e.isTrialCustomerEvent(t)||e.isTrialExistingEvent(t):!1}static isTrialCreatedEvent(e){return!(e.type!==B.Create||e.actionContext.descriptor!==gt.TrialCreated||e.actionContext.workflowPhase!==$e.Complete)}static isTrialRequestedEvent(e){if(e.type!==B.Create)return!1;let{entity:t,descriptor:n}=e.actionContext;return!(t!==ct.SignUp||n!==gt.TrialRequested||e.actionContext.workflowPhase!==$e.Complete)}static isTrialCustomerEvent(e){if(e.type!==B.Create)return!1;let{entity:t,descriptor:n}=e.actionContext;return!(t!==ct.SignUp||n!==gt.DeadEnd||!(`trialStatus`in e.data)||e.data.trialStatus!==`not-required`)}static isTrialExistingEvent(e){if(e.type!==B.Create)return!1;let{entity:t,descriptor:n}=e.actionContext;return!(t!==ct.SignUp||n!==gt.DeadEnd||!(`trialStatus`in e.data)||e.data.trialStatus!==`active`)}},pA=`cv:profileId`,mA=class{get name(){return tt.ProfileApiClient}constructor(e){this.options=e,this.storage=Xt.getStorage(),this.masterId=``,this.bindFunctions(),this.options.attributedProfileId&&(this.profileRequest=this.getSetAttributedProfileId())}bindFunctions(){this.createOrUpdate=this.createOrUpdate.bind(this),this.getProfileId=this.getProfileId.bind(this)}getSetAttributedProfileId(){return this.storage.setItem(this.getProfileIdKey(this.masterId),this.options.attributedProfileId),Promise.resolve(this.options.attributedProfileId)}async createOrUpdate(e,t){try{let n=this.buildRequest(e,t);this.profileRequest=this.fetchProfileId(n),await this.profileRequest}catch(e){this.options.onError?.(e)}}async fetchProfileId(e){let t={"Content-Type":`application/json`},n=mO.safeUrlConcat(this.options.hostUrl||window.location.origin,this.options.path||`/v1/profiles`),r=await fetch(n,{method:`POST`,headers:t,mode:`cors`,body:JSON.stringify(e)});return await this.handleResponse(r)}async getProfileId(){try{return await this.profileRequest}catch{return}}getStoredProfileId(){return this.storage.getItem(this.getProfileIdKey(this.masterId))}getProfileIdKey(e=``){return e?`${pA}:${e}`:pA}buildRequest(e,t={}){let n={...t,countryCode:e?.countryCode,crmId:e?.crmId,email:e?.email,firstName:e?.firstName,lastName:e?.lastName,masterId:e?.masterId,phone:e?.phone},r={};for(let e in n){let t=n[e];t!=null&&(t=t.toString().trim(),t&&(r[e]=t))}return e.masterId&&(this.masterId=e.masterId),{id:this.getStoredProfileId(),instanceRegion:this.options.instanceRegion,properties:r}}async handleResponse(e){if(!e.ok)throw Error(`ProfileApiClient failed to log properties. Status: ${e.status} ${e.statusText}`);let t=await e.json();return this.masterId&&this.storage.removeItem(this.getProfileIdKey()),this.storage.setItem(this.getProfileIdKey(this.masterId),t.id),t.id}},hA={Lite:`lite.web`,Curator:`curator.web`,Analytics:`analytics.web`,StreamableLearning:`streamablelearning.web`,Cloud:`cloud.web`,Exchange:`exchange.web`},gA={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)/},_A=`Unknown`;function vA(e,t,n){let[r]=t.exec(n)||[];return r||=_A,{browser:e,version:r}}function yA(e,t,n){if(!t)return{os:e,version:_A};let r=t.exec(n);return{os:e,version:r&&r.length?r[0].trim():_A}}function bA(e,t){let n={os:e};return gA.win2000.test(t)&&(n.version=`2000`),gA.winXP.test(t)&&(n.version=`XP`),gA.winVista.test(t)&&(n.version=`Vista`),gA.win7.test(t)&&(n.version=`7`),gA.win8.test(t)&&(n.version=`8`),gA.win81.test(t)&&(n.version=`8.1`),gA.win10.test(t)&&(n.version=`10`),n.version||=_A,n}var xA={getDeviceType(){let e=window.navigator.userAgent;return gA.mobileDevice.test(e)?gA.iphone.test(e)?`iPhone`:gA.ipad.test(e)?`iPad`:gA.android.test(e)?`Android`:gA.blackberry.test(e)?`Blackberry`:gA.windowsPhone.test(e)?`Windows Phone`:_A:`Desktop`},getOperatingSystem(){let e=window.navigator.userAgent;return gA.android.test(e)?yA(`Android`,gA.androidVersion,e):gA.iphone.test(e)||gA.ipad.test(e)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1?yA(`iOS`,gA.iosVersion,e):gA.linux.test(e)?yA(`Linux`,null,e):gA.unix.test(e)?yA(`Unix`,null,e):gA.mac.test(e)?yA(`Macintosh`,gA.osxVersion,e):gA.windows.test(e)?bA(`Windows`,e):gA.blackberry.test(e)?yA(`BlackBerry`,gA.blackberryVersion,e):gA.windowsPhone.test(e)?yA(`Windows Phone`,gA.windowsPhoneVersion,e):{os:_A,version:_A}},getBrowser(){let e=window.navigator.userAgent;return gA.chrome.test(e)?vA(`Chrome`,gA.generalVersion,e):gA.firefox.test(e)?vA(`Firefox`,gA.generalVersion,e):gA.safari.test(e)?vA(`Safari`,gA.generalVersion,e):gA.ie.test(e)?vA(`Internet Explorer`,gA.ieVersion,e):gA.edge.test(e)?vA(`Edge`,gA.edgeVersion,e):gA.opera.test(e)?vA(`Opera`,gA.operaVersion,e):{browser:_A,version:_A}},isTouchScreen(){return!!(`ontouchstart`in window||navigator.maxTouchPoints)},isTabletOrMobile(){return xA.isTouchScreen()?gA.tablet.test(navigator.userAgent)||gA.mobile.test(navigator.userAgent):!1},isAndroid(){return xA.getOperatingSystem().os===`Android`},isIOS(){return xA.getOperatingSystem().os===`iOS`}},SA=class e extends A{static{this.type=`BaseAnalyticsEnricher`}enrich(e,t){}isType(t){return t===e.type}},CA=class extends SA{constructor(e){super(e),this.productName=e.productName,this.productVersion=e.productVersion}get name(){return`CoreContextEnricher`}shouldEnrich(e){return!0}enrich(e,t){this.shouldEnrich(e)||t(e),e.enrich(`coreContext`,this.getCoreContext()),t(e)}getCoreContext(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}getTimestamp(){return bt.getUtcISOString()}getProductInfo(){return{name:this.productName,version:this.productVersion}}getRequestInfo(){return{referrer:d.GetCurrentReferrer(),requestUrl:d.GetCurrentUrl()}}getClientInfo(){let e=xA.getOperatingSystem(),t=xA.getBrowser();return{os:e.os,osVersion:e.version,browser:t.browser,browserVersion:t.version,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}},wA=_(l());r();var TA=class extends wA.MnObject{},EA=class extends TA{get name(){return`EventTransport`}get channelName(){return`event:transport`}publish(e){this.getChannel().trigger(at.Outlet,e)}subscribe(e){let t=e,n=n=>{We.isFunction(t.shouldLog)&&!t.shouldLog(n)||e.log(n)};L(t.listenTo)?t.listenTo(this.getChannel(),at.Outlet,n):this.listenTo(this.getChannel(),at.Outlet,n)}};function DA(e){return!Wk.isObject(e)||!Wk.isObject(e.actionContext)?{}:{entity:e.actionContext.entity,location:e.actionContext.location,descriptor:e.actionContext.descriptor}}function OA(e){let t={},n=(e,t)=>{switch(t){case`description`:return mt.ValueUpdated;case`channel`:case`rating`:case`series`:case`distributor`:case`producer`:return e&&e.id||mt.EntityRemoved;default:return e}};return Object.keys(e).forEach(r=>{t[r]=n(e[r],r)}),t}var kA={passthrough(e){return e},getEditData(e,t){let{entity:n,location:r}=DA(t);return n===ct.Video&&r===ut.EditVideoDetails?OA(e):e}},$={allow:()=>!0,restrict:()=>!1},AA={getShareData(e){let{id:t,search:n,pagePositionIndex:r,shareId:i,shareType:a}=e,o={id:t,search:n,pagePositionIndex:r,shareId:i,shareType:a};return e.video?.id&&(o.video={id:e.video.id}),e.clip?.id&&(o.clip={id:e.clip.id},e.clip.video?.id&&(o.video={id:e.clip.video?.id})),e.shareCount!==void 0&&(o.shareCount=e.shareCount),e.embedDetails&&(o.embedDetails=e.embedDetails),o}},jA={getUploadData(e,t){let{entity:n}=t.actionContext;if(n===ct.Video)return jA.formatVideoUpload(e,t);if(n===ct.Resource||n===ct.Subtitle)return jA.formatResourceUpload(e);if(n===ct.Banner||n===ct.Thumbnail||n===ct.MixedMedia)return e;throw Error(`Upload data event not correctly formatted.`)},formatVideoUpload(e,t){let{workflowPhase:n}=t.actionContext;if(n===$e.Start)return jA.getStartVideoUploadData(e);if(n===$e.Discard)return jA.getDiscardVideoUploadData(e);if(n===$e.Complete)return jA.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){let t=t=>{let{type:n,name:r,status:i,cvUpload:a}=t.file,o={fileName:r,count:Array.isArray(e)?e.length:1,type:n,status:i};return t.progress&&(o.progress=t.progress.toFixed(2)),a&&(o.uploadId=a.uploadId),o};return Array.isArray(e)?e.map(e=>t(e)):[t(e)]},getCompleteUploadData(e){return!e||!e.length?[]:e.map(t=>{let{fileName:n,libraryId:r,folderId:i,autoCaption:a}=t;return{fileName:n,libraryId:r,folderId:i,autoCaption:a,count:e.length}})},formatResourceUpload(e){let{id:t,name:n}=e,r={id:t,name:n};return Wk.isObject(e.metadata)&&(r.type=e.metadata.type),r}},MA={[B.Navigate]:$.restrict,[B.Click]:$.allow,[B.Search]:$.allow,[B.InstantSearch]:$.allow,[B.Play]:$.allow,[B.Stream]:$.allow,[B.WebPlayerStream]:$.allow,[B.StreamProgress]:$.allow,[B.PreviewStreamProgress]:$.allow,[B.StreamBuffering]:$.allow,[B.Rename]:$.allow,[B.Move]:$.allow,[B.Create]:$.allow,[B.Delete]:$.allow,[B.Associate]:$.allow,[B.Dissociate]:$.allow,[B.Filter]:$.allow,[B.Sort]:$.allow,[B.Approve]:$.allow,[B.Reject]:$.allow,[B.Disable]:$.allow,[B.Upload]:$.allow,[B.Download]:$.allow,[B.SetAccess]:$.allow,[B.AddToLocalCache]:$.restrict,[B.Share]:$.allow,[B.Unshare]:$.allow,[B.Edit]:$.allow,[B.Suggest]:$.allow,[B.Favourite]:$.allow,[B.WorkspaceAdd]:$.allow,[B.ResolveWarning]:$.allow,[B.DismissWarning]:$.allow,[B.EditAssoc]:$.allow,[B.Follow]:$.allow,[B.Print]:$.allow,[B.Copy]:$.allow,[B.Activate]:$.allow,[B.VerifyEmail]:$.allow,[B.ChangePassword]:$.allow,[B.Export]:$.allow,[B.SendEmail]:$.allow,[B.Publish]:$.allow,[B.Submit]:$.allow,[B.Complete]:$.allow,[B.Archive]:$.allow,[B.Promote]:$.allow,[B.Demote]:$.allow,[B.BulkAction]:$.allow,[B.Remove]:$.allow,[B.Dismiss]:$.allow,[B.Open]:$.allow,[B.Hide]:$.allow,[B.PageView]:$.allow,[B.Select]:$.allow,[B.SwitchCustomer]:$.allow,[B.Focus]:$.allow,[B.Blur]:$.allow,[B.Hover]:$.allow,[B.Unhover]:$.allow},NA={[B.Search]:kA.passthrough,[B.InstantSearch]:kA.passthrough,[B.Play]:kA.passthrough,[B.Stream]:kA.passthrough,[B.StreamProgress]:kA.passthrough,[B.PreviewStreamProgress]:kA.passthrough,[B.StreamBuffering]:kA.passthrough,[B.Click]:kA.passthrough,[B.Filter]:kA.passthrough,[B.Sort]:kA.passthrough,[B.SetAccess]:kA.passthrough,[B.Approve]:kA.passthrough,[B.Reject]:kA.passthrough,[B.Create]:kA.passthrough,[B.Delete]:kA.passthrough,[B.Rename]:kA.passthrough,[B.Move]:kA.passthrough,[B.Edit]:kA.passthrough,[B.Share]:AA.getShareData,[B.Disable]:kA.passthrough,[B.Suggest]:kA.passthrough,[B.Upload]:jA.getUploadData,[B.ResolveWarning]:kA.passthrough,[B.DismissWarning]:kA.passthrough,[B.Follow]:kA.passthrough,[B.Print]:kA.passthrough,[B.Copy]:kA.passthrough},PA={[B.Search]:()=>`search`,[B.InstantSearch]:()=>`search`,[B.Filter]:()=>`filter`,[B.Stream]:()=>ct.Video},FA={user:`target_user`,product:`target_product`},IA={[B.StreamProgress]:!0,[B.WebPlayerStream]:!0,[B.PreviewStreamProgress]:!0,[B.StreamBuffering]:!0},LA={shouldLog(e){return!!MA[e.type](e)},formatData(e){let t=NA[e.type],n=Wk.isFunction(t)?t(e.data,e):e.data;if(IA[e.type])return n;let r=e.actionContext.entity;return Wk.isFunction(PA[e.type])&&(r=PA[e.type](e)),FA[r]&&(r=FA[r]),{[r]:n}}},RA={customer(e,t,n,r){return{url:Vt.urlBuilder(`{gateway}/v1/objects/${e}`,{query:r?`organisation`:``}),key:`customers:${e}:${r?`with-organization`:``}`,success:t,error:n}},yearGroups(e){return{url:`{gateway}/v1/customers/${e}/year-groups?query={orderby:value}rating`,key:`year:groups`}},updateYearGroupRatings(e,t,n,r){return{url:`{gateway}/v1/customers/${e}/year-groups`,key:`update:year:group:ratings`,type:Ft.PUT,data:t,success:n,error:r,invalidationKeys:[`year:groups`]}}},zA=`staff`;async function BA(e){try{return await Ct(e.store,Gt.accessPolicy())}catch{return null}}var VA={async getUser(e){let t=await Ct(e.store,Gt.currentUser());if(!t.isAuthenticated)return null;let n=Ct(e.store,RA.customer(t.customerId)),r=Ct(e.store,Gt.user(t.id)),i=BA(e);return VA.mapCurrentUserToAnalyticsUser(t,await r,await n,await i)},mapCurrentUserToAnalyticsUser(e,t,n,r){let i=lr.getUserType(t);return{id:e?.id,countryCode:e?.countryCode,contentRegion:e?.contentRegion,instanceRegion:e?.instanceRegion,customerId:e?.customerId,customerGuid:n?.customerGuid,customerName:e?.customerName,crmId:n?.crmId,role:e?.role,sessionId:e?.sessionId,userGroup:i,yearGroup:i===ur.Staff?zA:t?.masterYearGroup?.name,accessPolicy:r?.id}}},HA={logError(e,...t){We.isFunction(trackJs?.track)&&(t&&We.isFunction(trackJs.console?.info)&&trackJs.console.info(...t),trackJs.track(e))}},UA={shouldRegisterGoogleAnalyticsClient(e,t){return!(!e?.googleAnalyticsProjectId||qn.isBot()||!t||t[Rt.StudentExperience])}},WA={isRequired:!1,hasConsent:!1,consentKey:`analytics`};async function GA(e,t){let[n,r,i]=await Promise.all([Ct(e.store,Gt.currentUser()),Ct(e.store,kx.config()),Ct(e.store,Gt.permissions())]),a=null;n.isAuthenticated&&(a=await Ct(e.store,RA.customer(n.customerId)));let o=Ct(e.store,kx.version()),s=new MO({user:n,config:r}),c=KA({instanceRegion:r.instanceRegion,currentUser:n,customer:a});an.registerSingleton(s),an.registerSingleton(c),s.registerTransport(EA),s.registerClient(cA);let l=await o;s.registerClient(oA,{productName:hA.StreamableLearning,productVersion:l,regionName:r.instanceRegion,collectionApiUrls:r.collectionApiUrls,collectionApiClientId:r.collectionApiClientId,getUser:()=>VA.getUser(e),shouldLog:LA.shouldLog,formatData:LA.formatData,logError:HA.logError,logUtmParameters:!0,logAttributionData:!0,getProfileId:c.getProfileId}),s.registerEnricher(CA,{productName:`Streamable Learning`,productVersion:l}),UA.shouldRegisterGoogleAnalyticsClient(r,i)&&s.registerClient(fA,{projectId:r.googleAnalyticsProjectId,logUtmParameters:!0,logAttributionData:!0,consent:WA}),t(e)}function KA(e){let{instanceRegion:t,currentUser:n,customer:r}=e,i=new mA({path:`/api/profile/v1/profiles`,instanceRegion:t}),a={};return e.currentUser.isAuthenticated&&r&&(a={countryCode:n.countryCode,crmId:r.crmId,email:n.email,firstName:n.givenName,lastName:n.familyName,masterId:n.id}),i.createOrUpdate(a),i}async function qA(e,t){try{let t=await Ct(e.store,kx.config());Tw.initialize({product:Bt.Primary,liteSupportSiteUrl:t.liteSupportSiteUrl,instanceRegion:t.instanceRegion})}finally{t(e)}}var JA={locale(){return{url:`/api/locale`,key:`locale`,bootstrapName:Wt.LOCALE}},phrases(){return{url:`/api/phrases`,key:`phrases`,bootstrapName:Wt.PHRASES}}};async function YA(e,t){let n;try{n=Ct(e.store,JA.phrases());let t=Ct(e.store,JA.locale());Xe.setConfig({locale:await t,phrases:await n})}catch(e){console.error(e)}finally{t(e)}}var XA={setLocalPermissions(e,t){e.dispatch({type:ir.UPDATE,payload:{viewModelKey:ar.LOCAL_PERMISSIONS,dataOrKey:t}})}};async function ZA(e,t){try{let t=QA(await Ct(e.store,Gt.currentUser()));XA.setLocalPermissions(e.store,t)}catch(e){console.error(e)}finally{t(e)}}function QA(e){let t=e?.isAuthenticated;return{[zt.ManagePublicPresentation]:!t,[zt.ManageDiscoverPreferences]:t,[zt.ViewPlaylistsLanding]:!t,[zt.ViewMyVideosLanding]:!t,[zt.ViewMyFavouritesLanding]:!t,[zt.ViewWatchHistoryLanding]:!t,[zt.WatchVideos]:t,[zt.UseVideoActions]:t,[zt.UseSeriesActions]:t,[zt.ViewTrendingTopics]:t,[zt.FollowComingSoonTopics]:t,[zt.ViewVideoResourceItems]:t,[zt.ViewMySharesLanding]:t}}var $A=function(e){return 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}({}),ej={type:$A.Unknown,message:``,code:0},tj={parseErrorMessage(e,t,n){if(!n||!n.errorCode)return e[t];let r=`${n.errorCode}`;return n.errorSubCode&&(r+=`.${n.errorSubCode}`),e[r]||e[t]}};r();var nj=class extends wA.MnObject{constructor(e){super(e),dC.default.ajaxSetup({cache:e.cacheRequests??!1,contentType:`application/json; charset=utf-8`}),this.successMiddleware={},this.errorMiddleware={},this.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,this.defaultErrorMessageKey=e.defaultErrorMessageKey}get name(){return jE.Ajax}parseUrl(e){let t=document.createElement(`a`);return t.href=e,t.host===``&&(t.href=t.href),t}makeHttps(e){let t=this.parseUrl(e);return t.protocol===`http:`&&(t.protocol=`https:`),t.href}base(e,t,r,i={}){r||=Ft.GET;let a=n.defaults(i,{forceHttps:!1}),o={url:e,method:r,type:r};t&&(o.data=r===Ft.POST||r===Ft.PUT?JSON.stringify(t):t),a.forceHttps&&(o.url=this.makeHttps(o.url)),a.traditional&&(o.traditional=a.traditional);let s=dC.default.ajax(o);return n.keys(this.successMiddleware).length&&s.done(n.values(this.successMiddleware)),n.keys(this.errorMiddleware).length&&s.fail(n.values(this.errorMiddleware)),s}create(e,t,n){let{channel:r,successEvent:i,errorEvent:a}=n;this.base(e,t,Ft.POST).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(a,e,t,n))}read(e,t){let{channel:n,successEvent:r,errorEvent:i}=t;this.base(e,null,Ft.GET).done((e,t,i)=>{n.trigger(r,e,t,i)}).fail((e,t,r)=>{n.trigger(i,e,t,r)})}update(e,t,n){let{channel:r,successEvent:i,errorEvent:a}=n;this.base(e,t,Ft.PUT).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(a,e,t,n))}delete(e,t){let{channel:n,successEvent:r,errorEvent:i}=t;this.base(e,null,Ft.DELETE).done((e,t,i)=>n.trigger(r,e,t,i)).fail((e,t,r)=>n.trigger(i,e,t,r))}useMiddleware(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}useErrorMiddleware(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}parseError(e){let t=e.responseJSON,n=ej;switch(n.code=e.status,n.message=tj.parseErrorMessage(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=$A.BadRequest;break;case 401:n.type=$A.Unauthorized;break;case 403:n.type=$A.Forbidden;break;case 404:n.type=$A.NotFound;break;case 500:n.type=$A.InternalServer;break}return n}};function rj(e,t){an.registerSingleton(new nj({dataServiceErrorMessageMappings:{temp:`Error`},defaultErrorMessageKey:`temp`,cacheRequests:!0})),t(e)}r();var ij=class extends A{constructor(e){super(),this.size=e.size,this.cache={},this.cachedkeys=[],this.store=e.store}get name(){return AE.Fifo}removeCacheKey(e){this.cachedkeys=a(this.cachedkeys,e)}has(e){return!!this.cache[e]}get(e){return this.cache[e]}set(e,t){(!e||!t)&&O.throw(new f(`Must provide a cache key and a value to cache in FifoMemoryCache.`)),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}getOrSet(e,t){if(this.has(e))return this.get(e);let n=t();return this.set(e,n),n}remove(e){return this.has(e)?(delete this.cache[e],this.removeCacheKey(e),!0):!1}invalidate(e,t,n=!1){let r=S(this.cachedkeys,this.cachedkeys),o=[];k(e,e=>{r[e]&&o.push(e);let t=new RegExp(e,`i`),n=i(r,e=>t.test(e));o.push(...n)}),o.length&&(o=x(o),k(o,e=>{delete this.cache[e],L(t)&&t(e)}),this.cachedkeys=a(this.cachedkeys,...o)),!(!this.store||!n)&&this.store.dispatch({type:St.INVALIDATE,keys:e})}};function aj(e,t){an.registerInstance(ij,{size:100}),t(e)}function oj(e,t){Fx.setPublicFormatSettings(()=>[]),t(e)}async function sj(e,t){Jn.initialize({product:`Streamable Learning`,getDefaultOpenGraph:()=>({image:{url:Vt.safeUrlConcat(document.location.origin,tn.Default.OG_IMAGE),type:`image/png`,width:1200,height:675,alt:`Streamable Learning OG image`}})}),t(e)}var cj=new P({region:`#app`,layoutService:new E({})});cj.addInitializationStep(oj).addInitializationStep(OE).addInitializationStep(aj).addInitializationStep(rj).addInitializationStep(AO).addInitializationStep(YA).addInitializationStep(sj).addInitializationStep(ZA).addInitializationStep(ID).addInitializationStep(GA).addInitializationStep(RC).addInitializationStep(hS).addInitializationStep(qA),cj.addStartUpStep(kE),cj.start();export{gx as $,pw as A,hC as B,NT as C,Lw as D,wT as E,YC as F,gS as G,pC as H,jC as I,jx as J,Yx as K,kC as L,uw as M,aw as N,Tw as O,ZC as P,_x as Q,vC as R,UT as S,DT as T,TS as U,mC as V,wS as W,kx as X,Ax as Y,vx as Z,xE as _,oA as a,af as at,rE as b,rk as c,ru as ct,jD as d,$s as dt,mx as et,SD as f,Fo as ft,SE as g,GE as h,to as ht,xA as i,pf as it,dw as j,yw as k,mO as l,eu as lt,qE as m,fo as mt,RA as n,am as nt,tA as o,ef as ot,fD as p,wo as pt,Bx as q,LA as r,Qp as rt,Uk as s,hd as st,HA as t,om as tt,MD as u,wl as ut,sE as v,MT as w,LT as x,iE as y,gC as z};
|
|
15
|
+
//# sourceMappingURL=app-BIigh9wv.js.map
|