@jesec/flood 0.0.0-master.a99a64f → 0.0.0-master.a9c8b4b
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/CHANGELOG.md +307 -1
- package/README.md +32 -12
- package/SECURITY.md +27 -0
- package/dist/assets/icon_128x128.png +0 -0
- package/dist/assets/icon_192x192.png +0 -0
- package/dist/assets/icon_256x256.png +0 -0
- package/dist/assets/icon_384x384.png +0 -0
- package/dist/assets/icon_512x512.png +0 -0
- package/dist/assets/icon_96x96.png +0 -0
- package/dist/assets/icon_maskable.png +0 -0
- package/dist/assets/icon_maskable_180x180.png +0 -0
- package/dist/assets/index.html +1 -1
- package/dist/assets/manifest.json +35 -7
- package/dist/assets/static/css/694.576adeff92f714a9c991.css +1 -0
- package/dist/assets/static/css/main.fc7b4a6c663b4cda8255.css +1 -0
- package/dist/assets/static/js/151.9e8b7c56.chunk.js +1 -0
- package/dist/assets/static/js/483.7871df3a.chunk.js +1 -0
- package/dist/assets/static/js/694.cfbf5610.chunk.js +1 -0
- package/dist/assets/static/js/913.7e8b6f4a.chunk.js +1 -0
- package/dist/assets/static/js/about.ef9ef3c1.chunk.js +1 -0
- package/dist/assets/static/js/flag0.bf11a5d9.chunk.js +1 -0
- package/dist/assets/static/js/flag2.b0967964.chunk.js +1 -0
- package/dist/assets/static/js/flag8.90252071.chunk.js +1 -0
- package/dist/assets/static/js/i18n1.314895a0.chunk.js +1 -0
- package/dist/assets/static/js/i18n10.e13f4aea.chunk.js +1 -0
- package/dist/assets/static/js/i18n12.8d919a59.chunk.js +1 -0
- package/dist/assets/static/js/i18n13.09f816d4.chunk.js +1 -0
- package/dist/assets/static/js/i18n14.754622fd.chunk.js +1 -0
- package/dist/assets/static/js/i18n15.6a2ccd51.chunk.js +1 -0
- package/dist/assets/static/js/i18n16.2c06a097.chunk.js +1 -0
- package/dist/assets/static/js/i18n17.184811b9.chunk.js +1 -0
- package/dist/assets/static/js/i18n18.9964fcd1.chunk.js +1 -0
- package/dist/assets/static/js/i18n19.4ae4a9ec.chunk.js +1 -0
- package/dist/assets/static/js/i18n2.46756d38.chunk.js +1 -0
- package/dist/assets/static/js/i18n20.49ca02f9.chunk.js +1 -0
- package/dist/assets/static/js/i18n21.0cde092b.chunk.js +1 -0
- package/dist/assets/static/js/i18n23.c8b4d3e1.chunk.js +1 -0
- package/dist/assets/static/js/i18n24.f64b951d.chunk.js +1 -0
- package/dist/assets/static/js/i18n25.6d6db53e.chunk.js +1 -0
- package/dist/assets/static/js/i18n27.9b245302.chunk.js +1 -0
- package/dist/assets/static/js/i18n28.be2accff.chunk.js +1 -0
- package/dist/assets/static/js/i18n3.4e17de22.chunk.js +1 -0
- package/dist/assets/static/js/i18n4.27368eaf.chunk.js +1 -0
- package/dist/assets/static/js/i18n5.5cfa8017.chunk.js +1 -0
- package/dist/assets/static/js/i18n8.676fe465.chunk.js +1 -0
- package/dist/assets/static/js/i18n9.f9efdd2f.chunk.js +1 -0
- package/dist/assets/static/js/main.a084d140.js +1 -0
- package/dist/assets/static/media/ad.1b24595d.png +0 -0
- package/dist/assets/static/media/ae.4dd8f55e.png +0 -0
- package/dist/assets/static/media/af.4ce660eb.png +0 -0
- package/dist/assets/static/media/ag.fd9409e4.png +0 -0
- package/dist/assets/static/media/al.a297aacf.png +0 -0
- package/dist/assets/static/media/am.c84ee0cf.png +0 -0
- package/dist/assets/static/media/ao.a7c9214e.png +0 -0
- package/dist/assets/static/media/ar.7e57ef92.png +0 -0
- package/dist/assets/static/media/at.5aa9728a.png +0 -0
- package/dist/assets/static/media/au.155b51d8.png +0 -0
- package/dist/assets/static/media/az.63afef5b.png +0 -0
- package/dist/assets/static/media/ba.5ce8f273.png +0 -0
- package/dist/assets/static/media/bb.f369fc62.png +0 -0
- package/dist/assets/static/media/bd.516278fc.png +0 -0
- package/dist/assets/static/media/be.08ec4a8d.png +0 -0
- package/dist/assets/static/media/bf.50bfcb31.png +0 -0
- package/dist/assets/static/media/bg.d9346b96.png +0 -0
- package/dist/assets/static/media/bh.f06d5914.png +0 -0
- package/dist/assets/static/media/bi.4923e3a3.png +0 -0
- package/dist/assets/static/media/bj.019fa79b.png +0 -0
- package/dist/assets/static/media/bn.077671e2.png +0 -0
- package/dist/assets/static/media/bo.8fb15fc6.png +0 -0
- package/dist/assets/static/media/br.ec051f0c.png +0 -0
- package/dist/assets/static/media/bs.a74a126f.png +0 -0
- package/dist/assets/static/media/bt.4217b804.png +0 -0
- package/dist/assets/static/media/bw.21fe1567.png +0 -0
- package/dist/assets/static/media/by.d247fe16.png +0 -0
- package/dist/assets/static/media/bz.98ec59f6.png +0 -0
- package/dist/assets/static/media/ca.25743e11.png +0 -0
- package/dist/assets/static/media/cd.a5bfda53.png +0 -0
- package/dist/assets/static/media/cf.de7d5d92.png +0 -0
- package/dist/assets/static/media/cg.a47b626b.png +0 -0
- package/dist/assets/static/media/ch.445f47a1.png +0 -0
- package/dist/assets/static/media/ci.a6009c5b.png +0 -0
- package/dist/assets/static/media/cl.de1d715e.png +0 -0
- package/dist/assets/static/media/cm.3ce8a86a.png +0 -0
- package/dist/assets/static/media/cn.e6a26073.png +0 -0
- package/dist/assets/static/media/co.e9244faa.png +0 -0
- package/dist/assets/static/media/cr.c895e035.png +0 -0
- package/dist/assets/static/media/cu.e486c055.png +0 -0
- package/dist/assets/static/media/cv.a9585acf.png +0 -0
- package/dist/assets/static/media/cw.df13039d.png +0 -0
- package/dist/assets/static/media/cy.b31f43a9.png +0 -0
- package/dist/assets/static/media/cz.8ec5948b.png +0 -0
- package/dist/assets/static/media/de.d12f391a.png +0 -0
- package/dist/assets/static/media/dj.154c3580.png +0 -0
- package/dist/assets/static/media/dk.da382fe2.png +0 -0
- package/dist/assets/static/media/dm.f452e6cd.png +0 -0
- package/dist/assets/static/media/do.c6bd7637.png +0 -0
- package/dist/assets/static/media/dz.672a69c0.png +0 -0
- package/dist/assets/static/media/ec.349d9bd7.png +0 -0
- package/dist/assets/static/media/ee.2396205f.png +0 -0
- package/dist/assets/static/media/eg.ccbf3f45.png +0 -0
- package/dist/assets/static/media/eh.af65674a.png +0 -0
- package/dist/assets/static/media/er.21afb638.png +0 -0
- package/dist/assets/static/media/es.2a6eaee4.png +0 -0
- package/dist/assets/static/media/et.8beb65c8.png +0 -0
- package/dist/assets/static/media/fi.331f70fd.png +0 -0
- package/dist/assets/static/media/fj.7724d800.png +0 -0
- package/dist/assets/static/media/fm.eeaf71e9.png +0 -0
- package/dist/assets/static/media/fr.5d5ab008.png +0 -0
- package/dist/assets/static/media/ga.77ed474c.png +0 -0
- package/dist/assets/static/media/gb.e00065bf.png +0 -0
- package/dist/assets/static/media/gd.b4522267.png +0 -0
- package/dist/assets/static/media/ge.91a7654d.png +0 -0
- package/dist/assets/static/media/gh.4759f92f.png +0 -0
- package/dist/assets/static/media/gm.81cd9f75.png +0 -0
- package/dist/assets/static/media/gn.9f3d376e.png +0 -0
- package/dist/assets/static/media/gq.e8ad58be.png +0 -0
- package/dist/assets/static/media/gr.26f3ac0b.png +0 -0
- package/dist/assets/static/media/gt.9d81c52e.png +0 -0
- package/dist/assets/static/media/gw.dc906982.png +0 -0
- package/dist/assets/static/media/gy.a4f62b6c.png +0 -0
- package/dist/assets/static/media/hk.56555c3f.png +0 -0
- package/dist/assets/static/media/hn.64ee6aad.png +0 -0
- package/dist/assets/static/media/hr.93ebecd3.png +0 -0
- package/dist/assets/static/media/ht.42ca1596.png +0 -0
- package/dist/assets/static/media/hu.bb30f05d.png +0 -0
- package/dist/assets/static/media/id.2cb49f2d.png +0 -0
- package/dist/assets/static/media/ie.b4dd1f19.png +0 -0
- package/dist/assets/static/media/il.cd1d1faf.png +0 -0
- package/dist/assets/static/media/in.2df03847.png +0 -0
- package/dist/assets/static/media/iq.a9b670ab.png +0 -0
- package/dist/assets/static/media/ir.9a3de085.png +0 -0
- package/dist/assets/static/media/is.d88f4fc9.png +0 -0
- package/dist/assets/static/media/it.b73713e3.png +0 -0
- package/dist/assets/static/media/je.0353f56a.png +0 -0
- package/dist/assets/static/media/jm.20330ef4.png +0 -0
- package/dist/assets/static/media/jo.eb66f1d1.png +0 -0
- package/dist/assets/static/media/jp.63e382ae.png +0 -0
- package/dist/assets/static/media/ke.ab2e43b8.png +0 -0
- package/dist/assets/static/media/kg.2c47c2af.png +0 -0
- package/dist/assets/static/media/kh.4732c810.png +0 -0
- package/dist/assets/static/media/ki.5fba09fd.png +0 -0
- package/dist/assets/static/media/km.7bbed3e9.png +0 -0
- package/dist/assets/static/media/kn.a9595a16.png +0 -0
- package/dist/assets/static/media/kp.8a4dc30a.png +0 -0
- package/dist/assets/static/media/kr.5273be1d.png +0 -0
- package/dist/assets/static/media/ks.99f78645.png +0 -0
- package/dist/assets/static/media/kw.af3521bc.png +0 -0
- package/dist/assets/static/media/kz.ea47ef79.png +0 -0
- package/dist/assets/static/media/la.78a598d7.png +0 -0
- package/dist/assets/static/media/lb.7a7c15a9.png +0 -0
- package/dist/assets/static/media/lc.6083a4ff.png +0 -0
- package/dist/assets/static/media/li.61c564a4.png +0 -0
- package/dist/assets/static/media/lk.6fa85802.png +0 -0
- package/dist/assets/static/media/lr.8063f7db.png +0 -0
- package/dist/assets/static/media/ls.901ddb71.png +0 -0
- package/dist/assets/static/media/lt.9209ace3.png +0 -0
- package/dist/assets/static/media/lu.c9872bc1.png +0 -0
- package/dist/assets/static/media/lv.7bcacf0a.png +0 -0
- package/dist/assets/static/media/ly.2830aa63.png +0 -0
- package/dist/assets/static/media/ma.ce5f697b.png +0 -0
- package/dist/assets/static/media/mc.4bd5d57a.png +0 -0
- package/dist/assets/static/media/md.fb4b5bdf.png +0 -0
- package/dist/assets/static/media/me.1f1d1772.png +0 -0
- package/dist/assets/static/media/mg.89101bd2.png +0 -0
- package/dist/assets/static/media/mh.ff11dff7.png +0 -0
- package/dist/assets/static/media/mk.8420e604.png +0 -0
- package/dist/assets/static/media/ml.4db47c66.png +0 -0
- package/dist/assets/static/media/mm.8e4ac30a.png +0 -0
- package/dist/assets/static/media/mn.dc1daa04.png +0 -0
- package/dist/assets/static/media/mr.7cbca6d0.png +0 -0
- package/dist/assets/static/media/mt.28a4b863.png +0 -0
- package/dist/assets/static/media/mu.d93db6c7.png +0 -0
- package/dist/assets/static/media/mv.7d026bf1.png +0 -0
- package/dist/assets/static/media/mw.960cd4fb.png +0 -0
- package/dist/assets/static/media/mx.39b78eb2.png +0 -0
- package/dist/assets/static/media/my.916a8392.png +0 -0
- package/dist/assets/static/media/mz.facb4ea3.png +0 -0
- package/dist/assets/static/media/na.472666a9.png +0 -0
- package/dist/assets/static/media/ne.d774701f.png +0 -0
- package/dist/assets/static/media/ng.7b06a49f.png +0 -0
- package/dist/assets/static/media/ni.7140131c.png +0 -0
- package/dist/assets/static/media/nl.4c04aa96.png +0 -0
- package/dist/assets/static/media/no.c19eb00d.png +0 -0
- package/dist/assets/static/media/np.54fb4f2f.png +0 -0
- package/dist/assets/static/media/nr.7527cc38.png +0 -0
- package/dist/assets/static/media/nz.738be05b.png +0 -0
- package/dist/assets/static/media/om.b25e0a17.png +0 -0
- package/dist/assets/static/media/pa.b28a9059.png +0 -0
- package/dist/assets/static/media/pe.c1fc1d96.png +0 -0
- package/dist/assets/static/media/pg.380115db.png +0 -0
- package/dist/assets/static/media/ph.02199ddc.png +0 -0
- package/dist/assets/static/media/pk.094f9517.png +0 -0
- package/dist/assets/static/media/pl.41521283.png +0 -0
- package/dist/assets/static/media/pt.1f82dc04.png +0 -0
- package/dist/assets/static/media/pw.a26c2316.png +0 -0
- package/dist/assets/static/media/py.926c65ed.png +0 -0
- package/dist/assets/static/media/qa.c6a3c20e.png +0 -0
- package/dist/assets/static/media/ro.a36876c9.png +0 -0
- package/dist/assets/static/media/rs.c6629de8.png +0 -0
- package/dist/assets/static/media/ru.a9b948c1.png +0 -0
- package/dist/assets/static/media/rw.e8aecba0.png +0 -0
- package/dist/assets/static/media/sa.859049c8.png +0 -0
- package/dist/assets/static/media/sb.4ad27b27.png +0 -0
- package/dist/assets/static/media/sc.3293efde.png +0 -0
- package/dist/assets/static/media/sd.19c94faa.png +0 -0
- package/dist/assets/static/media/se.195b3f93.png +0 -0
- package/dist/assets/static/media/sg.19d81907.png +0 -0
- package/dist/assets/static/media/si.367c5443.png +0 -0
- package/dist/assets/static/media/sk.4e5b8a39.png +0 -0
- package/dist/assets/static/media/sl.4b174b1c.png +0 -0
- package/dist/assets/static/media/sm.2cba3dac.png +0 -0
- package/dist/assets/static/media/sn.a4c1041d.png +0 -0
- package/dist/assets/static/media/so.b455e3bf.png +0 -0
- package/dist/assets/static/media/sr.5adc1c00.png +0 -0
- package/dist/assets/static/media/st.5ae44155.png +0 -0
- package/dist/assets/static/media/sv.43aa6cdf.png +0 -0
- package/dist/assets/static/media/sy.0fbd24f7.png +0 -0
- package/dist/assets/static/media/sz.ff204912.png +0 -0
- package/dist/assets/static/media/td.c7aa2a4e.png +0 -0
- package/dist/assets/static/media/tg.857c3bec.png +0 -0
- package/dist/assets/static/media/th.683600c7.png +0 -0
- package/dist/assets/static/media/tj.d20c5570.png +0 -0
- package/dist/assets/static/media/tl.5edd8ea7.png +0 -0
- package/dist/assets/static/media/tm.15960215.png +0 -0
- package/dist/assets/static/media/tn.40df718e.png +0 -0
- package/dist/assets/static/media/to.c3b054df.png +0 -0
- package/dist/assets/static/media/tr.adeace6d.png +0 -0
- package/dist/assets/static/media/tt.839bd7f1.png +0 -0
- package/dist/assets/static/media/tv.628cae3e.png +0 -0
- package/dist/assets/static/media/tw.4e885914.png +0 -0
- package/dist/assets/static/media/tz.b2f0dc37.png +0 -0
- package/dist/assets/static/media/ua.6b103313.png +0 -0
- package/dist/assets/static/media/ug.c84042fc.png +0 -0
- package/dist/assets/static/media/us.8523c31d.png +0 -0
- package/dist/assets/static/media/uy.a943f85e.png +0 -0
- package/dist/assets/static/media/uz.25552673.png +0 -0
- package/dist/assets/static/media/va.a29e1b53.png +0 -0
- package/dist/assets/static/media/vc.7480bd37.png +0 -0
- package/dist/assets/static/media/ve.fd4273c2.png +0 -0
- package/dist/assets/static/media/vn.7d2eff1b.png +0 -0
- package/dist/assets/static/media/vu.48b64cf3.png +0 -0
- package/dist/assets/static/media/ws.f3d9202f.png +0 -0
- package/dist/assets/static/media/ye.311a0e50.png +0 -0
- package/dist/assets/static/media/za.090a856f.png +0 -0
- package/dist/assets/static/media/zm.8371e197.png +0 -0
- package/dist/assets/static/media/zw.a6809447.png +0 -0
- package/dist/index.js +2 -1
- package/node_modules/async/CHANGELOG.md +278 -0
- package/node_modules/async/LICENSE +19 -0
- package/node_modules/async/README.md +56 -0
- package/node_modules/async/all.js +50 -0
- package/node_modules/async/allLimit.js +42 -0
- package/node_modules/async/allSeries.js +37 -0
- package/node_modules/async/any.js +52 -0
- package/node_modules/async/anyLimit.js +43 -0
- package/node_modules/async/anySeries.js +38 -0
- package/node_modules/async/apply.js +68 -0
- package/node_modules/async/applyEach.js +51 -0
- package/node_modules/async/applyEachSeries.js +37 -0
- package/node_modules/async/asyncify.js +110 -0
- package/node_modules/async/auto.js +289 -0
- package/node_modules/async/autoInject.js +170 -0
- package/node_modules/async/bower.json +17 -0
- package/node_modules/async/cargo.js +94 -0
- package/node_modules/async/compose.js +58 -0
- package/node_modules/async/concat.js +43 -0
- package/node_modules/async/concatLimit.js +65 -0
- package/node_modules/async/concatSeries.js +36 -0
- package/node_modules/async/constant.js +66 -0
- package/node_modules/async/detect.js +61 -0
- package/node_modules/async/detectLimit.js +48 -0
- package/node_modules/async/detectSeries.js +38 -0
- package/node_modules/async/dir.js +43 -0
- package/node_modules/async/dist/async.js +5612 -0
- package/node_modules/async/dist/async.min.js +2 -0
- package/node_modules/async/dist/async.min.map +1 -0
- package/node_modules/async/doDuring.js +66 -0
- package/node_modules/async/doUntil.js +39 -0
- package/node_modules/async/doWhilst.js +59 -0
- package/node_modules/async/during.js +76 -0
- package/node_modules/async/each.js +82 -0
- package/node_modules/async/eachLimit.js +45 -0
- package/node_modules/async/eachOf.js +111 -0
- package/node_modules/async/eachOfLimit.js +41 -0
- package/node_modules/async/eachOfSeries.js +35 -0
- package/node_modules/async/eachSeries.js +37 -0
- package/node_modules/async/ensureAsync.js +73 -0
- package/node_modules/async/every.js +50 -0
- package/node_modules/async/everyLimit.js +42 -0
- package/node_modules/async/everySeries.js +37 -0
- package/node_modules/async/filter.js +45 -0
- package/node_modules/async/filterLimit.js +37 -0
- package/node_modules/async/filterSeries.js +35 -0
- package/node_modules/async/find.js +61 -0
- package/node_modules/async/findLimit.js +48 -0
- package/node_modules/async/findSeries.js +38 -0
- package/node_modules/async/foldl.js +78 -0
- package/node_modules/async/foldr.js +44 -0
- package/node_modules/async/forEach.js +82 -0
- package/node_modules/async/forEachLimit.js +45 -0
- package/node_modules/async/forEachOf.js +111 -0
- package/node_modules/async/forEachOfLimit.js +41 -0
- package/node_modules/async/forEachOfSeries.js +35 -0
- package/node_modules/async/forEachSeries.js +37 -0
- package/node_modules/async/forever.js +65 -0
- package/node_modules/async/groupBy.js +54 -0
- package/node_modules/async/groupByLimit.js +71 -0
- package/node_modules/async/groupBySeries.js +37 -0
- package/node_modules/async/index.js +582 -0
- package/node_modules/async/inject.js +78 -0
- package/node_modules/async/internal/DoublyLinkedList.js +88 -0
- package/node_modules/async/internal/applyEach.js +38 -0
- package/node_modules/async/internal/breakLoop.js +9 -0
- package/node_modules/async/internal/consoleFunc.js +42 -0
- package/node_modules/async/internal/createTester.js +44 -0
- package/node_modules/async/internal/doLimit.js +12 -0
- package/node_modules/async/internal/doParallel.js +23 -0
- package/node_modules/async/internal/doParallelLimit.js +23 -0
- package/node_modules/async/internal/eachOfLimit.js +74 -0
- package/node_modules/async/internal/filter.js +75 -0
- package/node_modules/async/internal/findGetResult.js +10 -0
- package/node_modules/async/internal/getIterator.js +13 -0
- package/node_modules/async/internal/initialParams.js +21 -0
- package/node_modules/async/internal/iterator.js +61 -0
- package/node_modules/async/internal/map.js +35 -0
- package/node_modules/async/internal/notId.js +10 -0
- package/node_modules/async/internal/once.js +15 -0
- package/node_modules/async/internal/onlyOnce.js +15 -0
- package/node_modules/async/internal/parallel.js +42 -0
- package/node_modules/async/internal/queue.js +204 -0
- package/node_modules/async/internal/reject.js +21 -0
- package/node_modules/async/internal/setImmediate.js +42 -0
- package/node_modules/async/internal/slice.js +16 -0
- package/node_modules/async/internal/withoutIndex.js +12 -0
- package/node_modules/async/internal/wrapAsync.js +25 -0
- package/node_modules/async/log.js +41 -0
- package/node_modules/async/map.js +54 -0
- package/node_modules/async/mapLimit.js +37 -0
- package/node_modules/async/mapSeries.js +36 -0
- package/node_modules/async/mapValues.js +63 -0
- package/node_modules/async/mapValuesLimit.js +61 -0
- package/node_modules/async/mapValuesSeries.js +37 -0
- package/node_modules/async/memoize.js +101 -0
- package/node_modules/async/nextTick.js +51 -0
- package/node_modules/async/package.json +80 -0
- package/node_modules/async/parallel.js +90 -0
- package/node_modules/async/parallelLimit.js +40 -0
- package/node_modules/async/priorityQueue.js +98 -0
- package/node_modules/async/queue.js +130 -0
- package/node_modules/async/race.js +70 -0
- package/node_modules/async/reduce.js +78 -0
- package/node_modules/async/reduceRight.js +44 -0
- package/node_modules/async/reflect.js +81 -0
- package/node_modules/async/reflectAll.js +105 -0
- package/node_modules/async/reject.js +45 -0
- package/node_modules/async/rejectLimit.js +37 -0
- package/node_modules/async/rejectSeries.js +35 -0
- package/node_modules/async/retry.js +156 -0
- package/node_modules/async/retryable.js +65 -0
- package/node_modules/async/select.js +45 -0
- package/node_modules/async/selectLimit.js +37 -0
- package/node_modules/async/selectSeries.js +35 -0
- package/node_modules/async/seq.js +91 -0
- package/node_modules/async/series.js +85 -0
- package/node_modules/async/setImmediate.js +45 -0
- package/node_modules/async/some.js +52 -0
- package/node_modules/async/someLimit.js +43 -0
- package/node_modules/async/someSeries.js +38 -0
- package/node_modules/async/sortBy.js +91 -0
- package/node_modules/async/timeout.js +89 -0
- package/node_modules/async/times.js +50 -0
- package/node_modules/async/timesLimit.js +42 -0
- package/node_modules/async/timesSeries.js +32 -0
- package/node_modules/async/transform.js +87 -0
- package/node_modules/async/tryEach.js +81 -0
- package/node_modules/async/unmemoize.js +25 -0
- package/node_modules/async/until.js +41 -0
- package/node_modules/async/waterfall.js +113 -0
- package/node_modules/async/whilst.js +72 -0
- package/node_modules/async/wrapSync.js +110 -0
- package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/node_modules/balanced-match/LICENSE.md +21 -0
- package/node_modules/balanced-match/README.md +97 -0
- package/node_modules/balanced-match/index.js +62 -0
- package/node_modules/balanced-match/package.json +48 -0
- package/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/brace-expansion/README.md +129 -0
- package/node_modules/brace-expansion/index.js +201 -0
- package/node_modules/brace-expansion/package.json +47 -0
- package/node_modules/buffer-crc32/LICENSE +19 -0
- package/node_modules/buffer-crc32/README.md +47 -0
- package/node_modules/buffer-crc32/index.js +111 -0
- package/node_modules/buffer-crc32/package.json +39 -0
- package/node_modules/concat-map/.travis.yml +4 -0
- package/node_modules/concat-map/LICENSE +18 -0
- package/node_modules/concat-map/README.markdown +62 -0
- package/node_modules/concat-map/example/map.js +6 -0
- package/node_modules/concat-map/index.js +13 -0
- package/node_modules/concat-map/package.json +43 -0
- package/node_modules/concat-map/test/map.js +39 -0
- package/node_modules/fd-slicer/.npmignore +2 -0
- package/node_modules/fd-slicer/.travis.yml +7 -0
- package/node_modules/fd-slicer/CHANGELOG.md +49 -0
- package/node_modules/fd-slicer/LICENSE +21 -0
- package/node_modules/fd-slicer/README.md +199 -0
- package/node_modules/fd-slicer/index.js +296 -0
- package/node_modules/fd-slicer/package.json +36 -0
- package/node_modules/fd-slicer/test/test.js +350 -0
- package/node_modules/fs.realpath/LICENSE +43 -0
- package/node_modules/fs.realpath/README.md +33 -0
- package/node_modules/fs.realpath/index.js +66 -0
- package/node_modules/fs.realpath/old.js +303 -0
- package/node_modules/fs.realpath/package.json +26 -0
- package/node_modules/geoip-country/EULA +108 -0
- package/node_modules/geoip-country/LICENSE +48 -0
- package/node_modules/geoip-country/README.md +122 -0
- package/node_modules/geoip-country/data/geoip-country.dat +0 -0
- package/node_modules/geoip-country/data/geoip-country6.dat +0 -0
- package/node_modules/geoip-country/lib/fsWatcher.js +78 -0
- package/node_modules/geoip-country/lib/geoip.js +485 -0
- package/node_modules/geoip-country/lib/utils.js +98 -0
- package/node_modules/geoip-country/node_modules/colors/LICENSE +25 -0
- package/node_modules/geoip-country/node_modules/colors/README.md +221 -0
- package/node_modules/geoip-country/node_modules/colors/examples/normal-usage.js +82 -0
- package/node_modules/geoip-country/node_modules/colors/examples/safe-string.js +79 -0
- package/node_modules/geoip-country/node_modules/colors/index.d.ts +136 -0
- package/node_modules/geoip-country/node_modules/colors/lib/colors.js +211 -0
- package/node_modules/geoip-country/node_modules/colors/lib/custom/trap.js +46 -0
- package/node_modules/geoip-country/node_modules/colors/lib/custom/zalgo.js +110 -0
- package/node_modules/geoip-country/node_modules/colors/lib/extendStringPrototype.js +110 -0
- package/node_modules/geoip-country/node_modules/colors/lib/index.js +13 -0
- package/node_modules/geoip-country/node_modules/colors/lib/maps/america.js +10 -0
- package/node_modules/geoip-country/node_modules/colors/lib/maps/rainbow.js +12 -0
- package/node_modules/geoip-country/node_modules/colors/lib/maps/random.js +11 -0
- package/node_modules/geoip-country/node_modules/colors/lib/maps/zebra.js +5 -0
- package/node_modules/geoip-country/node_modules/colors/lib/styles.js +95 -0
- package/node_modules/geoip-country/node_modules/colors/lib/system/has-flag.js +35 -0
- package/node_modules/geoip-country/node_modules/colors/lib/system/supports-colors.js +151 -0
- package/node_modules/geoip-country/node_modules/colors/package.json +45 -0
- package/node_modules/geoip-country/node_modules/colors/safe.d.ts +48 -0
- package/node_modules/geoip-country/node_modules/colors/safe.js +10 -0
- package/node_modules/geoip-country/node_modules/colors/themes/generic-logging.js +12 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/Changelog.md +184 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/README.md +166 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/sbcs-data.js +179 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/utf32.js +281 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/lib/index.d.ts +41 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/lib/index.js +153 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/lib/streams.js +121 -0
- package/node_modules/geoip-country/node_modules/iconv-lite/package.json +45 -0
- package/node_modules/geoip-country/node_modules/rimraf/LICENSE +15 -0
- package/node_modules/geoip-country/node_modules/rimraf/README.md +101 -0
- package/node_modules/geoip-country/node_modules/rimraf/bin.js +50 -0
- package/node_modules/geoip-country/node_modules/rimraf/package.json +29 -0
- package/node_modules/geoip-country/node_modules/rimraf/rimraf.js +372 -0
- package/node_modules/geoip-country/package.json +55 -0
- package/node_modules/geoip-country/scripts/release.sh +6 -0
- package/node_modules/geoip-country/scripts/update-package.js +10 -0
- package/node_modules/geoip-country/scripts/updatedb.js +583 -0
- package/node_modules/geoip-country/test/geo-lookup.js +56 -0
- package/node_modules/geoip-country/test/tests.js +50 -0
- package/node_modules/glob/LICENSE +21 -0
- package/node_modules/glob/README.md +378 -0
- package/node_modules/glob/common.js +238 -0
- package/node_modules/glob/glob.js +790 -0
- package/node_modules/glob/package.json +55 -0
- package/node_modules/glob/sync.js +486 -0
- package/node_modules/inflight/LICENSE +15 -0
- package/node_modules/inflight/README.md +37 -0
- package/node_modules/inflight/inflight.js +54 -0
- package/node_modules/inflight/package.json +29 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/ip-address/LICENSE +19 -0
- package/node_modules/ip-address/README.md +96 -0
- package/node_modules/ip-address/ip-address.js +8 -0
- package/node_modules/ip-address/lib/common.js +39 -0
- package/node_modules/ip-address/lib/ipv4.js +320 -0
- package/node_modules/ip-address/lib/ipv6.js +971 -0
- package/node_modules/ip-address/lib/v4/constants.js +6 -0
- package/node_modules/ip-address/lib/v6/attributes.js +106 -0
- package/node_modules/ip-address/lib/v6/constants.js +79 -0
- package/node_modules/ip-address/lib/v6/helpers.js +64 -0
- package/node_modules/ip-address/lib/v6/html.js +107 -0
- package/node_modules/ip-address/lib/v6/regular-expressions.js +159 -0
- package/node_modules/ip-address/package.json +50 -0
- package/node_modules/jsbn/.npmignore +2 -0
- package/node_modules/jsbn/CHANGELOG.md +16 -0
- package/node_modules/jsbn/LICENSE +40 -0
- package/node_modules/jsbn/README.md +173 -0
- package/node_modules/jsbn/example.html +11 -0
- package/node_modules/jsbn/example.js +5 -0
- package/node_modules/jsbn/index.js +1361 -0
- package/node_modules/jsbn/package.json +21 -0
- package/node_modules/jsbn/test/es6-import.js +3 -0
- package/node_modules/lazy/.npmignore +1 -0
- package/node_modules/lazy/README.md +185 -0
- package/node_modules/lazy/lazy.js +349 -0
- package/node_modules/lazy/lazy.js~ +348 -0
- package/node_modules/lazy/package.json +32 -0
- package/node_modules/lazy/package.json~ +32 -0
- package/node_modules/lazy/test/bucket.js +37 -0
- package/node_modules/lazy/test/complex.js +52 -0
- package/node_modules/lazy/test/custom.js +32 -0
- package/node_modules/lazy/test/em.js +33 -0
- package/node_modules/lazy/test/filter.js +27 -0
- package/node_modules/lazy/test/foldr.js +26 -0
- package/node_modules/lazy/test/forEach.js +31 -0
- package/node_modules/lazy/test/head.js +26 -0
- package/node_modules/lazy/test/join.js +26 -0
- package/node_modules/lazy/test/lines.js +89 -0
- package/node_modules/lazy/test/map.js +29 -0
- package/node_modules/lazy/test/pipe.js +38 -0
- package/node_modules/lazy/test/product.js +26 -0
- package/node_modules/lazy/test/range.js +272 -0
- package/node_modules/lazy/test/skip.js +27 -0
- package/node_modules/lazy/test/sum.js +26 -0
- package/node_modules/lazy/test/tail.js +27 -0
- package/node_modules/lazy/test/take.js +26 -0
- package/node_modules/lazy/test/takeWhile.js +26 -0
- package/node_modules/lodash/LICENSE +47 -0
- package/node_modules/lodash/README.md +39 -0
- package/node_modules/lodash/_DataView.js +7 -0
- package/node_modules/lodash/_Hash.js +32 -0
- package/node_modules/lodash/_LazyWrapper.js +28 -0
- package/node_modules/lodash/_ListCache.js +32 -0
- package/node_modules/lodash/_LodashWrapper.js +22 -0
- package/node_modules/lodash/_Map.js +7 -0
- package/node_modules/lodash/_MapCache.js +32 -0
- package/node_modules/lodash/_Promise.js +7 -0
- package/node_modules/lodash/_Set.js +7 -0
- package/node_modules/lodash/_SetCache.js +27 -0
- package/node_modules/lodash/_Stack.js +27 -0
- package/node_modules/lodash/_Symbol.js +6 -0
- package/node_modules/lodash/_Uint8Array.js +6 -0
- package/node_modules/lodash/_WeakMap.js +7 -0
- package/node_modules/lodash/_apply.js +21 -0
- package/node_modules/lodash/_arrayAggregator.js +22 -0
- package/node_modules/lodash/_arrayEach.js +22 -0
- package/node_modules/lodash/_arrayEachRight.js +21 -0
- package/node_modules/lodash/_arrayEvery.js +23 -0
- package/node_modules/lodash/_arrayFilter.js +25 -0
- package/node_modules/lodash/_arrayIncludes.js +17 -0
- package/node_modules/lodash/_arrayIncludesWith.js +22 -0
- package/node_modules/lodash/_arrayLikeKeys.js +49 -0
- package/node_modules/lodash/_arrayMap.js +21 -0
- package/node_modules/lodash/_arrayPush.js +20 -0
- package/node_modules/lodash/_arrayReduce.js +26 -0
- package/node_modules/lodash/_arrayReduceRight.js +24 -0
- package/node_modules/lodash/_arraySample.js +15 -0
- package/node_modules/lodash/_arraySampleSize.js +17 -0
- package/node_modules/lodash/_arrayShuffle.js +15 -0
- package/node_modules/lodash/_arraySome.js +23 -0
- package/node_modules/lodash/_asciiSize.js +12 -0
- package/node_modules/lodash/_asciiToArray.js +12 -0
- package/node_modules/lodash/_asciiWords.js +15 -0
- package/node_modules/lodash/_assignMergeValue.js +20 -0
- package/node_modules/lodash/_assignValue.js +28 -0
- package/node_modules/lodash/_assocIndexOf.js +21 -0
- package/node_modules/lodash/_baseAggregator.js +21 -0
- package/node_modules/lodash/_baseAssign.js +17 -0
- package/node_modules/lodash/_baseAssignIn.js +17 -0
- package/node_modules/lodash/_baseAssignValue.js +25 -0
- package/node_modules/lodash/_baseAt.js +23 -0
- package/node_modules/lodash/_baseClamp.js +22 -0
- package/node_modules/lodash/_baseClone.js +166 -0
- package/node_modules/lodash/_baseConforms.js +18 -0
- package/node_modules/lodash/_baseConformsTo.js +27 -0
- package/node_modules/lodash/_baseCreate.js +30 -0
- package/node_modules/lodash/_baseDelay.js +21 -0
- package/node_modules/lodash/_baseDifference.js +67 -0
- package/node_modules/lodash/_baseEach.js +14 -0
- package/node_modules/lodash/_baseEachRight.js +14 -0
- package/node_modules/lodash/_baseEvery.js +21 -0
- package/node_modules/lodash/_baseExtremum.js +32 -0
- package/node_modules/lodash/_baseFill.js +32 -0
- package/node_modules/lodash/_baseFilter.js +21 -0
- package/node_modules/lodash/_baseFindIndex.js +24 -0
- package/node_modules/lodash/_baseFindKey.js +23 -0
- package/node_modules/lodash/_baseFlatten.js +38 -0
- package/node_modules/lodash/_baseFor.js +16 -0
- package/node_modules/lodash/_baseForOwn.js +16 -0
- package/node_modules/lodash/_baseForOwnRight.js +16 -0
- package/node_modules/lodash/_baseForRight.js +15 -0
- package/node_modules/lodash/_baseFunctions.js +19 -0
- package/node_modules/lodash/_baseGet.js +24 -0
- package/node_modules/lodash/_baseGetAllKeys.js +20 -0
- package/node_modules/lodash/_baseGetTag.js +28 -0
- package/node_modules/lodash/_baseGt.js +14 -0
- package/node_modules/lodash/_baseHas.js +19 -0
- package/node_modules/lodash/_baseHasIn.js +13 -0
- package/node_modules/lodash/_baseInRange.js +18 -0
- package/node_modules/lodash/_baseIndexOf.js +20 -0
- package/node_modules/lodash/_baseIndexOfWith.js +23 -0
- package/node_modules/lodash/_baseIntersection.js +74 -0
- package/node_modules/lodash/_baseInverter.js +21 -0
- package/node_modules/lodash/_baseInvoke.js +24 -0
- package/node_modules/lodash/_baseIsArguments.js +18 -0
- package/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
- package/node_modules/lodash/_baseIsDate.js +18 -0
- package/node_modules/lodash/_baseIsEqual.js +28 -0
- package/node_modules/lodash/_baseIsEqualDeep.js +83 -0
- package/node_modules/lodash/_baseIsMap.js +18 -0
- package/node_modules/lodash/_baseIsMatch.js +62 -0
- package/node_modules/lodash/_baseIsNaN.js +12 -0
- package/node_modules/lodash/_baseIsNative.js +47 -0
- package/node_modules/lodash/_baseIsRegExp.js +18 -0
- package/node_modules/lodash/_baseIsSet.js +18 -0
- package/node_modules/lodash/_baseIsTypedArray.js +60 -0
- package/node_modules/lodash/_baseIteratee.js +31 -0
- package/node_modules/lodash/_baseKeys.js +30 -0
- package/node_modules/lodash/_baseKeysIn.js +33 -0
- package/node_modules/lodash/_baseLodash.js +10 -0
- package/node_modules/lodash/_baseLt.js +14 -0
- package/node_modules/lodash/_baseMap.js +22 -0
- package/node_modules/lodash/_baseMatches.js +22 -0
- package/node_modules/lodash/_baseMatchesProperty.js +33 -0
- package/node_modules/lodash/_baseMean.js +20 -0
- package/node_modules/lodash/_baseMerge.js +42 -0
- package/node_modules/lodash/_baseMergeDeep.js +94 -0
- package/node_modules/lodash/_baseNth.js +20 -0
- package/node_modules/lodash/_baseOrderBy.js +49 -0
- package/node_modules/lodash/_basePick.js +19 -0
- package/node_modules/lodash/_basePickBy.js +30 -0
- package/node_modules/lodash/_baseProperty.js +14 -0
- package/node_modules/lodash/_basePropertyDeep.js +16 -0
- package/node_modules/lodash/_basePropertyOf.js +14 -0
- package/node_modules/lodash/_basePullAll.js +51 -0
- package/node_modules/lodash/_basePullAt.js +37 -0
- package/node_modules/lodash/_baseRandom.js +18 -0
- package/node_modules/lodash/_baseRange.js +28 -0
- package/node_modules/lodash/_baseReduce.js +23 -0
- package/node_modules/lodash/_baseRepeat.js +35 -0
- package/node_modules/lodash/_baseRest.js +17 -0
- package/node_modules/lodash/_baseSample.js +15 -0
- package/node_modules/lodash/_baseSampleSize.js +18 -0
- package/node_modules/lodash/_baseSet.js +51 -0
- package/node_modules/lodash/_baseSetData.js +17 -0
- package/node_modules/lodash/_baseSetToString.js +22 -0
- package/node_modules/lodash/_baseShuffle.js +15 -0
- package/node_modules/lodash/_baseSlice.js +31 -0
- package/node_modules/lodash/_baseSome.js +22 -0
- package/node_modules/lodash/_baseSortBy.js +21 -0
- package/node_modules/lodash/_baseSortedIndex.js +42 -0
- package/node_modules/lodash/_baseSortedIndexBy.js +67 -0
- package/node_modules/lodash/_baseSortedUniq.js +30 -0
- package/node_modules/lodash/_baseSum.js +24 -0
- package/node_modules/lodash/_baseTimes.js +20 -0
- package/node_modules/lodash/_baseToNumber.js +24 -0
- package/node_modules/lodash/_baseToPairs.js +18 -0
- package/node_modules/lodash/_baseToString.js +37 -0
- package/node_modules/lodash/_baseTrim.js +19 -0
- package/node_modules/lodash/_baseUnary.js +14 -0
- package/node_modules/lodash/_baseUniq.js +72 -0
- package/node_modules/lodash/_baseUnset.js +20 -0
- package/node_modules/lodash/_baseUpdate.js +18 -0
- package/node_modules/lodash/_baseValues.js +19 -0
- package/node_modules/lodash/_baseWhile.js +26 -0
- package/node_modules/lodash/_baseWrapperValue.js +25 -0
- package/node_modules/lodash/_baseXor.js +36 -0
- package/node_modules/lodash/_baseZipObject.js +23 -0
- package/node_modules/lodash/_cacheHas.js +13 -0
- package/node_modules/lodash/_castArrayLikeObject.js +14 -0
- package/node_modules/lodash/_castFunction.js +14 -0
- package/node_modules/lodash/_castPath.js +21 -0
- package/node_modules/lodash/_castRest.js +14 -0
- package/node_modules/lodash/_castSlice.js +18 -0
- package/node_modules/lodash/_charsEndIndex.js +19 -0
- package/node_modules/lodash/_charsStartIndex.js +20 -0
- package/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- package/node_modules/lodash/_cloneBuffer.js +35 -0
- package/node_modules/lodash/_cloneDataView.js +16 -0
- package/node_modules/lodash/_cloneRegExp.js +17 -0
- package/node_modules/lodash/_cloneSymbol.js +18 -0
- package/node_modules/lodash/_cloneTypedArray.js +16 -0
- package/node_modules/lodash/_compareAscending.js +41 -0
- package/node_modules/lodash/_compareMultiple.js +44 -0
- package/node_modules/lodash/_composeArgs.js +39 -0
- package/node_modules/lodash/_composeArgsRight.js +41 -0
- package/node_modules/lodash/_copyArray.js +20 -0
- package/node_modules/lodash/_copyObject.js +40 -0
- package/node_modules/lodash/_copySymbols.js +16 -0
- package/node_modules/lodash/_copySymbolsIn.js +16 -0
- package/node_modules/lodash/_coreJsData.js +6 -0
- package/node_modules/lodash/_countHolders.js +21 -0
- package/node_modules/lodash/_createAggregator.js +23 -0
- package/node_modules/lodash/_createAssigner.js +37 -0
- package/node_modules/lodash/_createBaseEach.js +32 -0
- package/node_modules/lodash/_createBaseFor.js +25 -0
- package/node_modules/lodash/_createBind.js +28 -0
- package/node_modules/lodash/_createCaseFirst.js +33 -0
- package/node_modules/lodash/_createCompounder.js +24 -0
- package/node_modules/lodash/_createCtor.js +37 -0
- package/node_modules/lodash/_createCurry.js +46 -0
- package/node_modules/lodash/_createFind.js +25 -0
- package/node_modules/lodash/_createFlow.js +78 -0
- package/node_modules/lodash/_createHybrid.js +92 -0
- package/node_modules/lodash/_createInverter.js +17 -0
- package/node_modules/lodash/_createMathOperation.js +38 -0
- package/node_modules/lodash/_createOver.js +27 -0
- package/node_modules/lodash/_createPadding.js +33 -0
- package/node_modules/lodash/_createPartial.js +43 -0
- package/node_modules/lodash/_createRange.js +30 -0
- package/node_modules/lodash/_createRecurry.js +56 -0
- package/node_modules/lodash/_createRelationalOperation.js +20 -0
- package/node_modules/lodash/_createRound.js +35 -0
- package/node_modules/lodash/_createSet.js +19 -0
- package/node_modules/lodash/_createToPairs.js +30 -0
- package/node_modules/lodash/_createWrap.js +106 -0
- package/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
- package/node_modules/lodash/_customDefaultsMerge.js +28 -0
- package/node_modules/lodash/_customOmitClone.js +16 -0
- package/node_modules/lodash/_deburrLetter.js +71 -0
- package/node_modules/lodash/_defineProperty.js +11 -0
- package/node_modules/lodash/_equalArrays.js +84 -0
- package/node_modules/lodash/_equalByTag.js +112 -0
- package/node_modules/lodash/_equalObjects.js +90 -0
- package/node_modules/lodash/_escapeHtmlChar.js +21 -0
- package/node_modules/lodash/_escapeStringChar.js +22 -0
- package/node_modules/lodash/_flatRest.js +16 -0
- package/node_modules/lodash/_freeGlobal.js +4 -0
- package/node_modules/lodash/_getAllKeys.js +16 -0
- package/node_modules/lodash/_getAllKeysIn.js +17 -0
- package/node_modules/lodash/_getData.js +15 -0
- package/node_modules/lodash/_getFuncName.js +31 -0
- package/node_modules/lodash/_getHolder.js +13 -0
- package/node_modules/lodash/_getMapData.js +18 -0
- package/node_modules/lodash/_getMatchData.js +24 -0
- package/node_modules/lodash/_getNative.js +17 -0
- package/node_modules/lodash/_getPrototype.js +6 -0
- package/node_modules/lodash/_getRawTag.js +46 -0
- package/node_modules/lodash/_getSymbols.js +30 -0
- package/node_modules/lodash/_getSymbolsIn.js +25 -0
- package/node_modules/lodash/_getTag.js +58 -0
- package/node_modules/lodash/_getValue.js +13 -0
- package/node_modules/lodash/_getView.js +33 -0
- package/node_modules/lodash/_getWrapDetails.js +17 -0
- package/node_modules/lodash/_hasPath.js +39 -0
- package/node_modules/lodash/_hasUnicode.js +26 -0
- package/node_modules/lodash/_hasUnicodeWord.js +15 -0
- package/node_modules/lodash/_hashClear.js +15 -0
- package/node_modules/lodash/_hashDelete.js +17 -0
- package/node_modules/lodash/_hashGet.js +30 -0
- package/node_modules/lodash/_hashHas.js +23 -0
- package/node_modules/lodash/_hashSet.js +23 -0
- package/node_modules/lodash/_initCloneArray.js +26 -0
- package/node_modules/lodash/_initCloneByTag.js +77 -0
- package/node_modules/lodash/_initCloneObject.js +18 -0
- package/node_modules/lodash/_insertWrapDetails.js +23 -0
- package/node_modules/lodash/_isFlattenable.js +20 -0
- package/node_modules/lodash/_isIndex.js +25 -0
- package/node_modules/lodash/_isIterateeCall.js +30 -0
- package/node_modules/lodash/_isKey.js +29 -0
- package/node_modules/lodash/_isKeyable.js +15 -0
- package/node_modules/lodash/_isLaziable.js +28 -0
- package/node_modules/lodash/_isMaskable.js +14 -0
- package/node_modules/lodash/_isMasked.js +20 -0
- package/node_modules/lodash/_isPrototype.js +18 -0
- package/node_modules/lodash/_isStrictComparable.js +15 -0
- package/node_modules/lodash/_iteratorToArray.js +18 -0
- package/node_modules/lodash/_lazyClone.js +23 -0
- package/node_modules/lodash/_lazyReverse.js +23 -0
- package/node_modules/lodash/_lazyValue.js +69 -0
- package/node_modules/lodash/_listCacheClear.js +13 -0
- package/node_modules/lodash/_listCacheDelete.js +35 -0
- package/node_modules/lodash/_listCacheGet.js +19 -0
- package/node_modules/lodash/_listCacheHas.js +16 -0
- package/node_modules/lodash/_listCacheSet.js +26 -0
- package/node_modules/lodash/_mapCacheClear.js +21 -0
- package/node_modules/lodash/_mapCacheDelete.js +18 -0
- package/node_modules/lodash/_mapCacheGet.js +16 -0
- package/node_modules/lodash/_mapCacheHas.js +16 -0
- package/node_modules/lodash/_mapCacheSet.js +22 -0
- package/node_modules/lodash/_mapToArray.js +18 -0
- package/node_modules/lodash/_matchesStrictComparable.js +20 -0
- package/node_modules/lodash/_memoizeCapped.js +26 -0
- package/node_modules/lodash/_mergeData.js +90 -0
- package/node_modules/lodash/_metaMap.js +6 -0
- package/node_modules/lodash/_nativeCreate.js +6 -0
- package/node_modules/lodash/_nativeKeys.js +6 -0
- package/node_modules/lodash/_nativeKeysIn.js +20 -0
- package/node_modules/lodash/_nodeUtil.js +30 -0
- package/node_modules/lodash/_objectToString.js +22 -0
- package/node_modules/lodash/_overArg.js +15 -0
- package/node_modules/lodash/_overRest.js +36 -0
- package/node_modules/lodash/_parent.js +16 -0
- package/node_modules/lodash/_reEscape.js +4 -0
- package/node_modules/lodash/_reEvaluate.js +4 -0
- package/node_modules/lodash/_reInterpolate.js +4 -0
- package/node_modules/lodash/_realNames.js +4 -0
- package/node_modules/lodash/_reorder.js +29 -0
- package/node_modules/lodash/_replaceHolders.js +29 -0
- package/node_modules/lodash/_root.js +9 -0
- package/node_modules/lodash/_safeGet.js +21 -0
- package/node_modules/lodash/_setCacheAdd.js +19 -0
- package/node_modules/lodash/_setCacheHas.js +14 -0
- package/node_modules/lodash/_setData.js +20 -0
- package/node_modules/lodash/_setToArray.js +18 -0
- package/node_modules/lodash/_setToPairs.js +18 -0
- package/node_modules/lodash/_setToString.js +14 -0
- package/node_modules/lodash/_setWrapToString.js +21 -0
- package/node_modules/lodash/_shortOut.js +37 -0
- package/node_modules/lodash/_shuffleSelf.js +28 -0
- package/node_modules/lodash/_stackClear.js +15 -0
- package/node_modules/lodash/_stackDelete.js +18 -0
- package/node_modules/lodash/_stackGet.js +14 -0
- package/node_modules/lodash/_stackHas.js +14 -0
- package/node_modules/lodash/_stackSet.js +34 -0
- package/node_modules/lodash/_strictIndexOf.js +23 -0
- package/node_modules/lodash/_strictLastIndexOf.js +21 -0
- package/node_modules/lodash/_stringSize.js +18 -0
- package/node_modules/lodash/_stringToArray.js +18 -0
- package/node_modules/lodash/_stringToPath.js +27 -0
- package/node_modules/lodash/_toKey.js +21 -0
- package/node_modules/lodash/_toSource.js +26 -0
- package/node_modules/lodash/_trimmedEndIndex.js +19 -0
- package/node_modules/lodash/_unescapeHtmlChar.js +21 -0
- package/node_modules/lodash/_unicodeSize.js +44 -0
- package/node_modules/lodash/_unicodeToArray.js +40 -0
- package/node_modules/lodash/_unicodeWords.js +69 -0
- package/node_modules/lodash/_updateWrapDetails.js +46 -0
- package/node_modules/lodash/_wrapperClone.js +23 -0
- package/node_modules/lodash/add.js +22 -0
- package/node_modules/lodash/after.js +42 -0
- package/node_modules/lodash/array.js +67 -0
- package/node_modules/lodash/ary.js +29 -0
- package/node_modules/lodash/assign.js +58 -0
- package/node_modules/lodash/assignIn.js +40 -0
- package/node_modules/lodash/assignInWith.js +38 -0
- package/node_modules/lodash/assignWith.js +37 -0
- package/node_modules/lodash/at.js +23 -0
- package/node_modules/lodash/attempt.js +35 -0
- package/node_modules/lodash/before.js +40 -0
- package/node_modules/lodash/bind.js +57 -0
- package/node_modules/lodash/bindAll.js +41 -0
- package/node_modules/lodash/bindKey.js +68 -0
- package/node_modules/lodash/camelCase.js +29 -0
- package/node_modules/lodash/capitalize.js +23 -0
- package/node_modules/lodash/castArray.js +44 -0
- package/node_modules/lodash/ceil.js +26 -0
- package/node_modules/lodash/chain.js +38 -0
- package/node_modules/lodash/chunk.js +50 -0
- package/node_modules/lodash/clamp.js +39 -0
- package/node_modules/lodash/clone.js +36 -0
- package/node_modules/lodash/cloneDeep.js +29 -0
- package/node_modules/lodash/cloneDeepWith.js +40 -0
- package/node_modules/lodash/cloneWith.js +42 -0
- package/node_modules/lodash/collection.js +30 -0
- package/node_modules/lodash/commit.js +33 -0
- package/node_modules/lodash/compact.js +31 -0
- package/node_modules/lodash/concat.js +43 -0
- package/node_modules/lodash/cond.js +60 -0
- package/node_modules/lodash/conforms.js +35 -0
- package/node_modules/lodash/conformsTo.js +32 -0
- package/node_modules/lodash/constant.js +26 -0
- package/node_modules/lodash/core.js +3877 -0
- package/node_modules/lodash/core.min.js +29 -0
- package/node_modules/lodash/countBy.js +40 -0
- package/node_modules/lodash/create.js +43 -0
- package/node_modules/lodash/curry.js +57 -0
- package/node_modules/lodash/curryRight.js +54 -0
- package/node_modules/lodash/date.js +3 -0
- package/node_modules/lodash/debounce.js +191 -0
- package/node_modules/lodash/deburr.js +45 -0
- package/node_modules/lodash/defaultTo.js +25 -0
- package/node_modules/lodash/defaults.js +64 -0
- package/node_modules/lodash/defaultsDeep.js +30 -0
- package/node_modules/lodash/defer.js +26 -0
- package/node_modules/lodash/delay.js +28 -0
- package/node_modules/lodash/difference.js +33 -0
- package/node_modules/lodash/differenceBy.js +44 -0
- package/node_modules/lodash/differenceWith.js +40 -0
- package/node_modules/lodash/divide.js +22 -0
- package/node_modules/lodash/drop.js +38 -0
- package/node_modules/lodash/dropRight.js +39 -0
- package/node_modules/lodash/dropRightWhile.js +45 -0
- package/node_modules/lodash/dropWhile.js +45 -0
- package/node_modules/lodash/each.js +1 -0
- package/node_modules/lodash/eachRight.js +1 -0
- package/node_modules/lodash/endsWith.js +43 -0
- package/node_modules/lodash/entries.js +1 -0
- package/node_modules/lodash/entriesIn.js +1 -0
- package/node_modules/lodash/eq.js +37 -0
- package/node_modules/lodash/escape.js +43 -0
- package/node_modules/lodash/escapeRegExp.js +32 -0
- package/node_modules/lodash/every.js +56 -0
- package/node_modules/lodash/extend.js +1 -0
- package/node_modules/lodash/extendWith.js +1 -0
- package/node_modules/lodash/fill.js +45 -0
- package/node_modules/lodash/filter.js +52 -0
- package/node_modules/lodash/find.js +42 -0
- package/node_modules/lodash/findIndex.js +55 -0
- package/node_modules/lodash/findKey.js +44 -0
- package/node_modules/lodash/findLast.js +25 -0
- package/node_modules/lodash/findLastIndex.js +59 -0
- package/node_modules/lodash/findLastKey.js +44 -0
- package/node_modules/lodash/first.js +1 -0
- package/node_modules/lodash/flake.lock +40 -0
- package/node_modules/lodash/flake.nix +20 -0
- package/node_modules/lodash/flatMap.js +29 -0
- package/node_modules/lodash/flatMapDeep.js +31 -0
- package/node_modules/lodash/flatMapDepth.js +31 -0
- package/node_modules/lodash/flatten.js +22 -0
- package/node_modules/lodash/flattenDeep.js +25 -0
- package/node_modules/lodash/flattenDepth.js +33 -0
- package/node_modules/lodash/flip.js +28 -0
- package/node_modules/lodash/floor.js +26 -0
- package/node_modules/lodash/flow.js +27 -0
- package/node_modules/lodash/flowRight.js +26 -0
- package/node_modules/lodash/forEach.js +41 -0
- package/node_modules/lodash/forEachRight.js +31 -0
- package/node_modules/lodash/forIn.js +39 -0
- package/node_modules/lodash/forInRight.js +37 -0
- package/node_modules/lodash/forOwn.js +36 -0
- package/node_modules/lodash/forOwnRight.js +34 -0
- package/node_modules/lodash/fp/F.js +1 -0
- package/node_modules/lodash/fp/T.js +1 -0
- package/node_modules/lodash/fp/__.js +1 -0
- package/node_modules/lodash/fp/_baseConvert.js +569 -0
- package/node_modules/lodash/fp/_convertBrowser.js +18 -0
- package/node_modules/lodash/fp/_falseOptions.js +7 -0
- package/node_modules/lodash/fp/_mapping.js +358 -0
- package/node_modules/lodash/fp/_util.js +16 -0
- package/node_modules/lodash/fp/add.js +5 -0
- package/node_modules/lodash/fp/after.js +5 -0
- package/node_modules/lodash/fp/all.js +1 -0
- package/node_modules/lodash/fp/allPass.js +1 -0
- package/node_modules/lodash/fp/always.js +1 -0
- package/node_modules/lodash/fp/any.js +1 -0
- package/node_modules/lodash/fp/anyPass.js +1 -0
- package/node_modules/lodash/fp/apply.js +1 -0
- package/node_modules/lodash/fp/array.js +2 -0
- package/node_modules/lodash/fp/ary.js +5 -0
- package/node_modules/lodash/fp/assign.js +5 -0
- package/node_modules/lodash/fp/assignAll.js +5 -0
- package/node_modules/lodash/fp/assignAllWith.js +5 -0
- package/node_modules/lodash/fp/assignIn.js +5 -0
- package/node_modules/lodash/fp/assignInAll.js +5 -0
- package/node_modules/lodash/fp/assignInAllWith.js +5 -0
- package/node_modules/lodash/fp/assignInWith.js +5 -0
- package/node_modules/lodash/fp/assignWith.js +5 -0
- package/node_modules/lodash/fp/assoc.js +1 -0
- package/node_modules/lodash/fp/assocPath.js +1 -0
- package/node_modules/lodash/fp/at.js +5 -0
- package/node_modules/lodash/fp/attempt.js +5 -0
- package/node_modules/lodash/fp/before.js +5 -0
- package/node_modules/lodash/fp/bind.js +5 -0
- package/node_modules/lodash/fp/bindAll.js +5 -0
- package/node_modules/lodash/fp/bindKey.js +5 -0
- package/node_modules/lodash/fp/camelCase.js +5 -0
- package/node_modules/lodash/fp/capitalize.js +5 -0
- package/node_modules/lodash/fp/castArray.js +5 -0
- package/node_modules/lodash/fp/ceil.js +5 -0
- package/node_modules/lodash/fp/chain.js +5 -0
- package/node_modules/lodash/fp/chunk.js +5 -0
- package/node_modules/lodash/fp/clamp.js +5 -0
- package/node_modules/lodash/fp/clone.js +5 -0
- package/node_modules/lodash/fp/cloneDeep.js +5 -0
- package/node_modules/lodash/fp/cloneDeepWith.js +5 -0
- package/node_modules/lodash/fp/cloneWith.js +5 -0
- package/node_modules/lodash/fp/collection.js +2 -0
- package/node_modules/lodash/fp/commit.js +5 -0
- package/node_modules/lodash/fp/compact.js +5 -0
- package/node_modules/lodash/fp/complement.js +1 -0
- package/node_modules/lodash/fp/compose.js +1 -0
- package/node_modules/lodash/fp/concat.js +5 -0
- package/node_modules/lodash/fp/cond.js +5 -0
- package/node_modules/lodash/fp/conforms.js +1 -0
- package/node_modules/lodash/fp/conformsTo.js +5 -0
- package/node_modules/lodash/fp/constant.js +5 -0
- package/node_modules/lodash/fp/contains.js +1 -0
- package/node_modules/lodash/fp/convert.js +18 -0
- package/node_modules/lodash/fp/countBy.js +5 -0
- package/node_modules/lodash/fp/create.js +5 -0
- package/node_modules/lodash/fp/curry.js +5 -0
- package/node_modules/lodash/fp/curryN.js +5 -0
- package/node_modules/lodash/fp/curryRight.js +5 -0
- package/node_modules/lodash/fp/curryRightN.js +5 -0
- package/node_modules/lodash/fp/date.js +2 -0
- package/node_modules/lodash/fp/debounce.js +5 -0
- package/node_modules/lodash/fp/deburr.js +5 -0
- package/node_modules/lodash/fp/defaultTo.js +5 -0
- package/node_modules/lodash/fp/defaults.js +5 -0
- package/node_modules/lodash/fp/defaultsAll.js +5 -0
- package/node_modules/lodash/fp/defaultsDeep.js +5 -0
- package/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
- package/node_modules/lodash/fp/defer.js +5 -0
- package/node_modules/lodash/fp/delay.js +5 -0
- package/node_modules/lodash/fp/difference.js +5 -0
- package/node_modules/lodash/fp/differenceBy.js +5 -0
- package/node_modules/lodash/fp/differenceWith.js +5 -0
- package/node_modules/lodash/fp/dissoc.js +1 -0
- package/node_modules/lodash/fp/dissocPath.js +1 -0
- package/node_modules/lodash/fp/divide.js +5 -0
- package/node_modules/lodash/fp/drop.js +5 -0
- package/node_modules/lodash/fp/dropLast.js +1 -0
- package/node_modules/lodash/fp/dropLastWhile.js +1 -0
- package/node_modules/lodash/fp/dropRight.js +5 -0
- package/node_modules/lodash/fp/dropRightWhile.js +5 -0
- package/node_modules/lodash/fp/dropWhile.js +5 -0
- package/node_modules/lodash/fp/each.js +1 -0
- package/node_modules/lodash/fp/eachRight.js +1 -0
- package/node_modules/lodash/fp/endsWith.js +5 -0
- package/node_modules/lodash/fp/entries.js +1 -0
- package/node_modules/lodash/fp/entriesIn.js +1 -0
- package/node_modules/lodash/fp/eq.js +5 -0
- package/node_modules/lodash/fp/equals.js +1 -0
- package/node_modules/lodash/fp/escape.js +5 -0
- package/node_modules/lodash/fp/escapeRegExp.js +5 -0
- package/node_modules/lodash/fp/every.js +5 -0
- package/node_modules/lodash/fp/extend.js +1 -0
- package/node_modules/lodash/fp/extendAll.js +1 -0
- package/node_modules/lodash/fp/extendAllWith.js +1 -0
- package/node_modules/lodash/fp/extendWith.js +1 -0
- package/node_modules/lodash/fp/fill.js +5 -0
- package/node_modules/lodash/fp/filter.js +5 -0
- package/node_modules/lodash/fp/find.js +5 -0
- package/node_modules/lodash/fp/findFrom.js +5 -0
- package/node_modules/lodash/fp/findIndex.js +5 -0
- package/node_modules/lodash/fp/findIndexFrom.js +5 -0
- package/node_modules/lodash/fp/findKey.js +5 -0
- package/node_modules/lodash/fp/findLast.js +5 -0
- package/node_modules/lodash/fp/findLastFrom.js +5 -0
- package/node_modules/lodash/fp/findLastIndex.js +5 -0
- package/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
- package/node_modules/lodash/fp/findLastKey.js +5 -0
- package/node_modules/lodash/fp/first.js +1 -0
- package/node_modules/lodash/fp/flatMap.js +5 -0
- package/node_modules/lodash/fp/flatMapDeep.js +5 -0
- package/node_modules/lodash/fp/flatMapDepth.js +5 -0
- package/node_modules/lodash/fp/flatten.js +5 -0
- package/node_modules/lodash/fp/flattenDeep.js +5 -0
- package/node_modules/lodash/fp/flattenDepth.js +5 -0
- package/node_modules/lodash/fp/flip.js +5 -0
- package/node_modules/lodash/fp/floor.js +5 -0
- package/node_modules/lodash/fp/flow.js +5 -0
- package/node_modules/lodash/fp/flowRight.js +5 -0
- package/node_modules/lodash/fp/forEach.js +5 -0
- package/node_modules/lodash/fp/forEachRight.js +5 -0
- package/node_modules/lodash/fp/forIn.js +5 -0
- package/node_modules/lodash/fp/forInRight.js +5 -0
- package/node_modules/lodash/fp/forOwn.js +5 -0
- package/node_modules/lodash/fp/forOwnRight.js +5 -0
- package/node_modules/lodash/fp/fromPairs.js +5 -0
- package/node_modules/lodash/fp/function.js +2 -0
- package/node_modules/lodash/fp/functions.js +5 -0
- package/node_modules/lodash/fp/functionsIn.js +5 -0
- package/node_modules/lodash/fp/get.js +5 -0
- package/node_modules/lodash/fp/getOr.js +5 -0
- package/node_modules/lodash/fp/groupBy.js +5 -0
- package/node_modules/lodash/fp/gt.js +5 -0
- package/node_modules/lodash/fp/gte.js +5 -0
- package/node_modules/lodash/fp/has.js +5 -0
- package/node_modules/lodash/fp/hasIn.js +5 -0
- package/node_modules/lodash/fp/head.js +5 -0
- package/node_modules/lodash/fp/identical.js +1 -0
- package/node_modules/lodash/fp/identity.js +5 -0
- package/node_modules/lodash/fp/inRange.js +5 -0
- package/node_modules/lodash/fp/includes.js +5 -0
- package/node_modules/lodash/fp/includesFrom.js +5 -0
- package/node_modules/lodash/fp/indexBy.js +1 -0
- package/node_modules/lodash/fp/indexOf.js +5 -0
- package/node_modules/lodash/fp/indexOfFrom.js +5 -0
- package/node_modules/lodash/fp/init.js +1 -0
- package/node_modules/lodash/fp/initial.js +5 -0
- package/node_modules/lodash/fp/intersection.js +5 -0
- package/node_modules/lodash/fp/intersectionBy.js +5 -0
- package/node_modules/lodash/fp/intersectionWith.js +5 -0
- package/node_modules/lodash/fp/invert.js +5 -0
- package/node_modules/lodash/fp/invertBy.js +5 -0
- package/node_modules/lodash/fp/invertObj.js +1 -0
- package/node_modules/lodash/fp/invoke.js +5 -0
- package/node_modules/lodash/fp/invokeArgs.js +5 -0
- package/node_modules/lodash/fp/invokeArgsMap.js +5 -0
- package/node_modules/lodash/fp/invokeMap.js +5 -0
- package/node_modules/lodash/fp/isArguments.js +5 -0
- package/node_modules/lodash/fp/isArray.js +5 -0
- package/node_modules/lodash/fp/isArrayBuffer.js +5 -0
- package/node_modules/lodash/fp/isArrayLike.js +5 -0
- package/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
- package/node_modules/lodash/fp/isBoolean.js +5 -0
- package/node_modules/lodash/fp/isBuffer.js +5 -0
- package/node_modules/lodash/fp/isDate.js +5 -0
- package/node_modules/lodash/fp/isElement.js +5 -0
- package/node_modules/lodash/fp/isEmpty.js +5 -0
- package/node_modules/lodash/fp/isEqual.js +5 -0
- package/node_modules/lodash/fp/isEqualWith.js +5 -0
- package/node_modules/lodash/fp/isError.js +5 -0
- package/node_modules/lodash/fp/isFinite.js +5 -0
- package/node_modules/lodash/fp/isFunction.js +5 -0
- package/node_modules/lodash/fp/isInteger.js +5 -0
- package/node_modules/lodash/fp/isLength.js +5 -0
- package/node_modules/lodash/fp/isMap.js +5 -0
- package/node_modules/lodash/fp/isMatch.js +5 -0
- package/node_modules/lodash/fp/isMatchWith.js +5 -0
- package/node_modules/lodash/fp/isNaN.js +5 -0
- package/node_modules/lodash/fp/isNative.js +5 -0
- package/node_modules/lodash/fp/isNil.js +5 -0
- package/node_modules/lodash/fp/isNull.js +5 -0
- package/node_modules/lodash/fp/isNumber.js +5 -0
- package/node_modules/lodash/fp/isObject.js +5 -0
- package/node_modules/lodash/fp/isObjectLike.js +5 -0
- package/node_modules/lodash/fp/isPlainObject.js +5 -0
- package/node_modules/lodash/fp/isRegExp.js +5 -0
- package/node_modules/lodash/fp/isSafeInteger.js +5 -0
- package/node_modules/lodash/fp/isSet.js +5 -0
- package/node_modules/lodash/fp/isString.js +5 -0
- package/node_modules/lodash/fp/isSymbol.js +5 -0
- package/node_modules/lodash/fp/isTypedArray.js +5 -0
- package/node_modules/lodash/fp/isUndefined.js +5 -0
- package/node_modules/lodash/fp/isWeakMap.js +5 -0
- package/node_modules/lodash/fp/isWeakSet.js +5 -0
- package/node_modules/lodash/fp/iteratee.js +5 -0
- package/node_modules/lodash/fp/join.js +5 -0
- package/node_modules/lodash/fp/juxt.js +1 -0
- package/node_modules/lodash/fp/kebabCase.js +5 -0
- package/node_modules/lodash/fp/keyBy.js +5 -0
- package/node_modules/lodash/fp/keys.js +5 -0
- package/node_modules/lodash/fp/keysIn.js +5 -0
- package/node_modules/lodash/fp/lang.js +2 -0
- package/node_modules/lodash/fp/last.js +5 -0
- package/node_modules/lodash/fp/lastIndexOf.js +5 -0
- package/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
- package/node_modules/lodash/fp/lowerCase.js +5 -0
- package/node_modules/lodash/fp/lowerFirst.js +5 -0
- package/node_modules/lodash/fp/lt.js +5 -0
- package/node_modules/lodash/fp/lte.js +5 -0
- package/node_modules/lodash/fp/map.js +5 -0
- package/node_modules/lodash/fp/mapKeys.js +5 -0
- package/node_modules/lodash/fp/mapValues.js +5 -0
- package/node_modules/lodash/fp/matches.js +1 -0
- package/node_modules/lodash/fp/matchesProperty.js +5 -0
- package/node_modules/lodash/fp/math.js +2 -0
- package/node_modules/lodash/fp/max.js +5 -0
- package/node_modules/lodash/fp/maxBy.js +5 -0
- package/node_modules/lodash/fp/mean.js +5 -0
- package/node_modules/lodash/fp/meanBy.js +5 -0
- package/node_modules/lodash/fp/memoize.js +5 -0
- package/node_modules/lodash/fp/merge.js +5 -0
- package/node_modules/lodash/fp/mergeAll.js +5 -0
- package/node_modules/lodash/fp/mergeAllWith.js +5 -0
- package/node_modules/lodash/fp/mergeWith.js +5 -0
- package/node_modules/lodash/fp/method.js +5 -0
- package/node_modules/lodash/fp/methodOf.js +5 -0
- package/node_modules/lodash/fp/min.js +5 -0
- package/node_modules/lodash/fp/minBy.js +5 -0
- package/node_modules/lodash/fp/mixin.js +5 -0
- package/node_modules/lodash/fp/multiply.js +5 -0
- package/node_modules/lodash/fp/nAry.js +1 -0
- package/node_modules/lodash/fp/negate.js +5 -0
- package/node_modules/lodash/fp/next.js +5 -0
- package/node_modules/lodash/fp/noop.js +5 -0
- package/node_modules/lodash/fp/now.js +5 -0
- package/node_modules/lodash/fp/nth.js +5 -0
- package/node_modules/lodash/fp/nthArg.js +5 -0
- package/node_modules/lodash/fp/number.js +2 -0
- package/node_modules/lodash/fp/object.js +2 -0
- package/node_modules/lodash/fp/omit.js +5 -0
- package/node_modules/lodash/fp/omitAll.js +1 -0
- package/node_modules/lodash/fp/omitBy.js +5 -0
- package/node_modules/lodash/fp/once.js +5 -0
- package/node_modules/lodash/fp/orderBy.js +5 -0
- package/node_modules/lodash/fp/over.js +5 -0
- package/node_modules/lodash/fp/overArgs.js +5 -0
- package/node_modules/lodash/fp/overEvery.js +5 -0
- package/node_modules/lodash/fp/overSome.js +5 -0
- package/node_modules/lodash/fp/pad.js +5 -0
- package/node_modules/lodash/fp/padChars.js +5 -0
- package/node_modules/lodash/fp/padCharsEnd.js +5 -0
- package/node_modules/lodash/fp/padCharsStart.js +5 -0
- package/node_modules/lodash/fp/padEnd.js +5 -0
- package/node_modules/lodash/fp/padStart.js +5 -0
- package/node_modules/lodash/fp/parseInt.js +5 -0
- package/node_modules/lodash/fp/partial.js +5 -0
- package/node_modules/lodash/fp/partialRight.js +5 -0
- package/node_modules/lodash/fp/partition.js +5 -0
- package/node_modules/lodash/fp/path.js +1 -0
- package/node_modules/lodash/fp/pathEq.js +1 -0
- package/node_modules/lodash/fp/pathOr.js +1 -0
- package/node_modules/lodash/fp/paths.js +1 -0
- package/node_modules/lodash/fp/pick.js +5 -0
- package/node_modules/lodash/fp/pickAll.js +1 -0
- package/node_modules/lodash/fp/pickBy.js +5 -0
- package/node_modules/lodash/fp/pipe.js +1 -0
- package/node_modules/lodash/fp/placeholder.js +6 -0
- package/node_modules/lodash/fp/plant.js +5 -0
- package/node_modules/lodash/fp/pluck.js +1 -0
- package/node_modules/lodash/fp/prop.js +1 -0
- package/node_modules/lodash/fp/propEq.js +1 -0
- package/node_modules/lodash/fp/propOr.js +1 -0
- package/node_modules/lodash/fp/property.js +1 -0
- package/node_modules/lodash/fp/propertyOf.js +5 -0
- package/node_modules/lodash/fp/props.js +1 -0
- package/node_modules/lodash/fp/pull.js +5 -0
- package/node_modules/lodash/fp/pullAll.js +5 -0
- package/node_modules/lodash/fp/pullAllBy.js +5 -0
- package/node_modules/lodash/fp/pullAllWith.js +5 -0
- package/node_modules/lodash/fp/pullAt.js +5 -0
- package/node_modules/lodash/fp/random.js +5 -0
- package/node_modules/lodash/fp/range.js +5 -0
- package/node_modules/lodash/fp/rangeRight.js +5 -0
- package/node_modules/lodash/fp/rangeStep.js +5 -0
- package/node_modules/lodash/fp/rangeStepRight.js +5 -0
- package/node_modules/lodash/fp/rearg.js +5 -0
- package/node_modules/lodash/fp/reduce.js +5 -0
- package/node_modules/lodash/fp/reduceRight.js +5 -0
- package/node_modules/lodash/fp/reject.js +5 -0
- package/node_modules/lodash/fp/remove.js +5 -0
- package/node_modules/lodash/fp/repeat.js +5 -0
- package/node_modules/lodash/fp/replace.js +5 -0
- package/node_modules/lodash/fp/rest.js +5 -0
- package/node_modules/lodash/fp/restFrom.js +5 -0
- package/node_modules/lodash/fp/result.js +5 -0
- package/node_modules/lodash/fp/reverse.js +5 -0
- package/node_modules/lodash/fp/round.js +5 -0
- package/node_modules/lodash/fp/sample.js +5 -0
- package/node_modules/lodash/fp/sampleSize.js +5 -0
- package/node_modules/lodash/fp/seq.js +2 -0
- package/node_modules/lodash/fp/set.js +5 -0
- package/node_modules/lodash/fp/setWith.js +5 -0
- package/node_modules/lodash/fp/shuffle.js +5 -0
- package/node_modules/lodash/fp/size.js +5 -0
- package/node_modules/lodash/fp/slice.js +5 -0
- package/node_modules/lodash/fp/snakeCase.js +5 -0
- package/node_modules/lodash/fp/some.js +5 -0
- package/node_modules/lodash/fp/sortBy.js +5 -0
- package/node_modules/lodash/fp/sortedIndex.js +5 -0
- package/node_modules/lodash/fp/sortedIndexBy.js +5 -0
- package/node_modules/lodash/fp/sortedIndexOf.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndex.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
- package/node_modules/lodash/fp/sortedUniq.js +5 -0
- package/node_modules/lodash/fp/sortedUniqBy.js +5 -0
- package/node_modules/lodash/fp/split.js +5 -0
- package/node_modules/lodash/fp/spread.js +5 -0
- package/node_modules/lodash/fp/spreadFrom.js +5 -0
- package/node_modules/lodash/fp/startCase.js +5 -0
- package/node_modules/lodash/fp/startsWith.js +5 -0
- package/node_modules/lodash/fp/string.js +2 -0
- package/node_modules/lodash/fp/stubArray.js +5 -0
- package/node_modules/lodash/fp/stubFalse.js +5 -0
- package/node_modules/lodash/fp/stubObject.js +5 -0
- package/node_modules/lodash/fp/stubString.js +5 -0
- package/node_modules/lodash/fp/stubTrue.js +5 -0
- package/node_modules/lodash/fp/subtract.js +5 -0
- package/node_modules/lodash/fp/sum.js +5 -0
- package/node_modules/lodash/fp/sumBy.js +5 -0
- package/node_modules/lodash/fp/symmetricDifference.js +1 -0
- package/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
- package/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
- package/node_modules/lodash/fp/tail.js +5 -0
- package/node_modules/lodash/fp/take.js +5 -0
- package/node_modules/lodash/fp/takeLast.js +1 -0
- package/node_modules/lodash/fp/takeLastWhile.js +1 -0
- package/node_modules/lodash/fp/takeRight.js +5 -0
- package/node_modules/lodash/fp/takeRightWhile.js +5 -0
- package/node_modules/lodash/fp/takeWhile.js +5 -0
- package/node_modules/lodash/fp/tap.js +5 -0
- package/node_modules/lodash/fp/template.js +5 -0
- package/node_modules/lodash/fp/templateSettings.js +5 -0
- package/node_modules/lodash/fp/throttle.js +5 -0
- package/node_modules/lodash/fp/thru.js +5 -0
- package/node_modules/lodash/fp/times.js +5 -0
- package/node_modules/lodash/fp/toArray.js +5 -0
- package/node_modules/lodash/fp/toFinite.js +5 -0
- package/node_modules/lodash/fp/toInteger.js +5 -0
- package/node_modules/lodash/fp/toIterator.js +5 -0
- package/node_modules/lodash/fp/toJSON.js +5 -0
- package/node_modules/lodash/fp/toLength.js +5 -0
- package/node_modules/lodash/fp/toLower.js +5 -0
- package/node_modules/lodash/fp/toNumber.js +5 -0
- package/node_modules/lodash/fp/toPairs.js +5 -0
- package/node_modules/lodash/fp/toPairsIn.js +5 -0
- package/node_modules/lodash/fp/toPath.js +5 -0
- package/node_modules/lodash/fp/toPlainObject.js +5 -0
- package/node_modules/lodash/fp/toSafeInteger.js +5 -0
- package/node_modules/lodash/fp/toString.js +5 -0
- package/node_modules/lodash/fp/toUpper.js +5 -0
- package/node_modules/lodash/fp/transform.js +5 -0
- package/node_modules/lodash/fp/trim.js +5 -0
- package/node_modules/lodash/fp/trimChars.js +5 -0
- package/node_modules/lodash/fp/trimCharsEnd.js +5 -0
- package/node_modules/lodash/fp/trimCharsStart.js +5 -0
- package/node_modules/lodash/fp/trimEnd.js +5 -0
- package/node_modules/lodash/fp/trimStart.js +5 -0
- package/node_modules/lodash/fp/truncate.js +5 -0
- package/node_modules/lodash/fp/unapply.js +1 -0
- package/node_modules/lodash/fp/unary.js +5 -0
- package/node_modules/lodash/fp/unescape.js +5 -0
- package/node_modules/lodash/fp/union.js +5 -0
- package/node_modules/lodash/fp/unionBy.js +5 -0
- package/node_modules/lodash/fp/unionWith.js +5 -0
- package/node_modules/lodash/fp/uniq.js +5 -0
- package/node_modules/lodash/fp/uniqBy.js +5 -0
- package/node_modules/lodash/fp/uniqWith.js +5 -0
- package/node_modules/lodash/fp/uniqueId.js +5 -0
- package/node_modules/lodash/fp/unnest.js +1 -0
- package/node_modules/lodash/fp/unset.js +5 -0
- package/node_modules/lodash/fp/unzip.js +5 -0
- package/node_modules/lodash/fp/unzipWith.js +5 -0
- package/node_modules/lodash/fp/update.js +5 -0
- package/node_modules/lodash/fp/updateWith.js +5 -0
- package/node_modules/lodash/fp/upperCase.js +5 -0
- package/node_modules/lodash/fp/upperFirst.js +5 -0
- package/node_modules/lodash/fp/useWith.js +1 -0
- package/node_modules/lodash/fp/util.js +2 -0
- package/node_modules/lodash/fp/value.js +5 -0
- package/node_modules/lodash/fp/valueOf.js +5 -0
- package/node_modules/lodash/fp/values.js +5 -0
- package/node_modules/lodash/fp/valuesIn.js +5 -0
- package/node_modules/lodash/fp/where.js +1 -0
- package/node_modules/lodash/fp/whereEq.js +1 -0
- package/node_modules/lodash/fp/without.js +5 -0
- package/node_modules/lodash/fp/words.js +5 -0
- package/node_modules/lodash/fp/wrap.js +5 -0
- package/node_modules/lodash/fp/wrapperAt.js +5 -0
- package/node_modules/lodash/fp/wrapperChain.js +5 -0
- package/node_modules/lodash/fp/wrapperLodash.js +5 -0
- package/node_modules/lodash/fp/wrapperReverse.js +5 -0
- package/node_modules/lodash/fp/wrapperValue.js +5 -0
- package/node_modules/lodash/fp/xor.js +5 -0
- package/node_modules/lodash/fp/xorBy.js +5 -0
- package/node_modules/lodash/fp/xorWith.js +5 -0
- package/node_modules/lodash/fp/zip.js +5 -0
- package/node_modules/lodash/fp/zipAll.js +5 -0
- package/node_modules/lodash/fp/zipObj.js +1 -0
- package/node_modules/lodash/fp/zipObject.js +5 -0
- package/node_modules/lodash/fp/zipObjectDeep.js +5 -0
- package/node_modules/lodash/fp/zipWith.js +5 -0
- package/node_modules/lodash/fp.js +2 -0
- package/node_modules/lodash/fromPairs.js +28 -0
- package/node_modules/lodash/function.js +25 -0
- package/node_modules/lodash/functions.js +31 -0
- package/node_modules/lodash/functionsIn.js +31 -0
- package/node_modules/lodash/get.js +33 -0
- package/node_modules/lodash/groupBy.js +41 -0
- package/node_modules/lodash/gt.js +29 -0
- package/node_modules/lodash/gte.js +30 -0
- package/node_modules/lodash/has.js +35 -0
- package/node_modules/lodash/hasIn.js +34 -0
- package/node_modules/lodash/head.js +23 -0
- package/node_modules/lodash/identity.js +21 -0
- package/node_modules/lodash/inRange.js +55 -0
- package/node_modules/lodash/includes.js +53 -0
- package/node_modules/lodash/index.js +1 -0
- package/node_modules/lodash/indexOf.js +42 -0
- package/node_modules/lodash/initial.js +22 -0
- package/node_modules/lodash/intersection.js +30 -0
- package/node_modules/lodash/intersectionBy.js +45 -0
- package/node_modules/lodash/intersectionWith.js +41 -0
- package/node_modules/lodash/invert.js +42 -0
- package/node_modules/lodash/invertBy.js +56 -0
- package/node_modules/lodash/invoke.js +24 -0
- package/node_modules/lodash/invokeMap.js +41 -0
- package/node_modules/lodash/isArguments.js +36 -0
- package/node_modules/lodash/isArray.js +26 -0
- package/node_modules/lodash/isArrayBuffer.js +27 -0
- package/node_modules/lodash/isArrayLike.js +33 -0
- package/node_modules/lodash/isArrayLikeObject.js +33 -0
- package/node_modules/lodash/isBoolean.js +29 -0
- package/node_modules/lodash/isBuffer.js +38 -0
- package/node_modules/lodash/isDate.js +27 -0
- package/node_modules/lodash/isElement.js +25 -0
- package/node_modules/lodash/isEmpty.js +77 -0
- package/node_modules/lodash/isEqual.js +35 -0
- package/node_modules/lodash/isEqualWith.js +41 -0
- package/node_modules/lodash/isError.js +36 -0
- package/node_modules/lodash/isFinite.js +36 -0
- package/node_modules/lodash/isFunction.js +37 -0
- package/node_modules/lodash/isInteger.js +33 -0
- package/node_modules/lodash/isLength.js +35 -0
- package/node_modules/lodash/isMap.js +27 -0
- package/node_modules/lodash/isMatch.js +36 -0
- package/node_modules/lodash/isMatchWith.js +41 -0
- package/node_modules/lodash/isNaN.js +38 -0
- package/node_modules/lodash/isNative.js +40 -0
- package/node_modules/lodash/isNil.js +25 -0
- package/node_modules/lodash/isNull.js +22 -0
- package/node_modules/lodash/isNumber.js +38 -0
- package/node_modules/lodash/isObject.js +31 -0
- package/node_modules/lodash/isObjectLike.js +29 -0
- package/node_modules/lodash/isPlainObject.js +62 -0
- package/node_modules/lodash/isRegExp.js +27 -0
- package/node_modules/lodash/isSafeInteger.js +37 -0
- package/node_modules/lodash/isSet.js +27 -0
- package/node_modules/lodash/isString.js +30 -0
- package/node_modules/lodash/isSymbol.js +29 -0
- package/node_modules/lodash/isTypedArray.js +27 -0
- package/node_modules/lodash/isUndefined.js +22 -0
- package/node_modules/lodash/isWeakMap.js +28 -0
- package/node_modules/lodash/isWeakSet.js +28 -0
- package/node_modules/lodash/iteratee.js +53 -0
- package/node_modules/lodash/join.js +26 -0
- package/node_modules/lodash/kebabCase.js +28 -0
- package/node_modules/lodash/keyBy.js +36 -0
- package/node_modules/lodash/keys.js +37 -0
- package/node_modules/lodash/keysIn.js +32 -0
- package/node_modules/lodash/lang.js +58 -0
- package/node_modules/lodash/last.js +20 -0
- package/node_modules/lodash/lastIndexOf.js +46 -0
- package/node_modules/lodash/lodash.js +17209 -0
- package/node_modules/lodash/lodash.min.js +140 -0
- package/node_modules/lodash/lowerCase.js +27 -0
- package/node_modules/lodash/lowerFirst.js +22 -0
- package/node_modules/lodash/lt.js +29 -0
- package/node_modules/lodash/lte.js +30 -0
- package/node_modules/lodash/map.js +53 -0
- package/node_modules/lodash/mapKeys.js +36 -0
- package/node_modules/lodash/mapValues.js +43 -0
- package/node_modules/lodash/matches.js +46 -0
- package/node_modules/lodash/matchesProperty.js +44 -0
- package/node_modules/lodash/math.js +17 -0
- package/node_modules/lodash/max.js +29 -0
- package/node_modules/lodash/maxBy.js +34 -0
- package/node_modules/lodash/mean.js +22 -0
- package/node_modules/lodash/meanBy.js +31 -0
- package/node_modules/lodash/memoize.js +73 -0
- package/node_modules/lodash/merge.js +39 -0
- package/node_modules/lodash/mergeWith.js +39 -0
- package/node_modules/lodash/method.js +34 -0
- package/node_modules/lodash/methodOf.js +33 -0
- package/node_modules/lodash/min.js +29 -0
- package/node_modules/lodash/minBy.js +34 -0
- package/node_modules/lodash/mixin.js +74 -0
- package/node_modules/lodash/multiply.js +22 -0
- package/node_modules/lodash/negate.js +40 -0
- package/node_modules/lodash/next.js +35 -0
- package/node_modules/lodash/noop.js +17 -0
- package/node_modules/lodash/now.js +23 -0
- package/node_modules/lodash/nth.js +29 -0
- package/node_modules/lodash/nthArg.js +32 -0
- package/node_modules/lodash/number.js +5 -0
- package/node_modules/lodash/object.js +49 -0
- package/node_modules/lodash/omit.js +57 -0
- package/node_modules/lodash/omitBy.js +29 -0
- package/node_modules/lodash/once.js +25 -0
- package/node_modules/lodash/orderBy.js +47 -0
- package/node_modules/lodash/over.js +24 -0
- package/node_modules/lodash/overArgs.js +61 -0
- package/node_modules/lodash/overEvery.js +34 -0
- package/node_modules/lodash/overSome.js +37 -0
- package/node_modules/lodash/package.json +17 -0
- package/node_modules/lodash/pad.js +49 -0
- package/node_modules/lodash/padEnd.js +39 -0
- package/node_modules/lodash/padStart.js +39 -0
- package/node_modules/lodash/parseInt.js +43 -0
- package/node_modules/lodash/partial.js +50 -0
- package/node_modules/lodash/partialRight.js +49 -0
- package/node_modules/lodash/partition.js +43 -0
- package/node_modules/lodash/pick.js +25 -0
- package/node_modules/lodash/pickBy.js +37 -0
- package/node_modules/lodash/plant.js +48 -0
- package/node_modules/lodash/property.js +32 -0
- package/node_modules/lodash/propertyOf.js +30 -0
- package/node_modules/lodash/pull.js +29 -0
- package/node_modules/lodash/pullAll.js +29 -0
- package/node_modules/lodash/pullAllBy.js +33 -0
- package/node_modules/lodash/pullAllWith.js +32 -0
- package/node_modules/lodash/pullAt.js +43 -0
- package/node_modules/lodash/random.js +82 -0
- package/node_modules/lodash/range.js +46 -0
- package/node_modules/lodash/rangeRight.js +41 -0
- package/node_modules/lodash/rearg.js +33 -0
- package/node_modules/lodash/reduce.js +51 -0
- package/node_modules/lodash/reduceRight.js +36 -0
- package/node_modules/lodash/reject.js +46 -0
- package/node_modules/lodash/release.md +48 -0
- package/node_modules/lodash/remove.js +53 -0
- package/node_modules/lodash/repeat.js +37 -0
- package/node_modules/lodash/replace.js +29 -0
- package/node_modules/lodash/rest.js +40 -0
- package/node_modules/lodash/result.js +56 -0
- package/node_modules/lodash/reverse.js +34 -0
- package/node_modules/lodash/round.js +26 -0
- package/node_modules/lodash/sample.js +24 -0
- package/node_modules/lodash/sampleSize.js +37 -0
- package/node_modules/lodash/seq.js +16 -0
- package/node_modules/lodash/set.js +35 -0
- package/node_modules/lodash/setWith.js +32 -0
- package/node_modules/lodash/shuffle.js +25 -0
- package/node_modules/lodash/size.js +46 -0
- package/node_modules/lodash/slice.js +37 -0
- package/node_modules/lodash/snakeCase.js +28 -0
- package/node_modules/lodash/some.js +51 -0
- package/node_modules/lodash/sortBy.js +48 -0
- package/node_modules/lodash/sortedIndex.js +24 -0
- package/node_modules/lodash/sortedIndexBy.js +33 -0
- package/node_modules/lodash/sortedIndexOf.js +31 -0
- package/node_modules/lodash/sortedLastIndex.js +25 -0
- package/node_modules/lodash/sortedLastIndexBy.js +33 -0
- package/node_modules/lodash/sortedLastIndexOf.js +31 -0
- package/node_modules/lodash/sortedUniq.js +24 -0
- package/node_modules/lodash/sortedUniqBy.js +26 -0
- package/node_modules/lodash/split.js +52 -0
- package/node_modules/lodash/spread.js +63 -0
- package/node_modules/lodash/startCase.js +29 -0
- package/node_modules/lodash/startsWith.js +39 -0
- package/node_modules/lodash/string.js +33 -0
- package/node_modules/lodash/stubArray.js +23 -0
- package/node_modules/lodash/stubFalse.js +18 -0
- package/node_modules/lodash/stubObject.js +23 -0
- package/node_modules/lodash/stubString.js +18 -0
- package/node_modules/lodash/stubTrue.js +18 -0
- package/node_modules/lodash/subtract.js +22 -0
- package/node_modules/lodash/sum.js +24 -0
- package/node_modules/lodash/sumBy.js +33 -0
- package/node_modules/lodash/tail.js +22 -0
- package/node_modules/lodash/take.js +37 -0
- package/node_modules/lodash/takeRight.js +39 -0
- package/node_modules/lodash/takeRightWhile.js +45 -0
- package/node_modules/lodash/takeWhile.js +45 -0
- package/node_modules/lodash/tap.js +29 -0
- package/node_modules/lodash/template.js +272 -0
- package/node_modules/lodash/templateSettings.js +67 -0
- package/node_modules/lodash/throttle.js +69 -0
- package/node_modules/lodash/thru.js +28 -0
- package/node_modules/lodash/times.js +51 -0
- package/node_modules/lodash/toArray.js +58 -0
- package/node_modules/lodash/toFinite.js +42 -0
- package/node_modules/lodash/toInteger.js +36 -0
- package/node_modules/lodash/toIterator.js +23 -0
- package/node_modules/lodash/toJSON.js +1 -0
- package/node_modules/lodash/toLength.js +38 -0
- package/node_modules/lodash/toLower.js +28 -0
- package/node_modules/lodash/toNumber.js +64 -0
- package/node_modules/lodash/toPairs.js +30 -0
- package/node_modules/lodash/toPairsIn.js +30 -0
- package/node_modules/lodash/toPath.js +33 -0
- package/node_modules/lodash/toPlainObject.js +32 -0
- package/node_modules/lodash/toSafeInteger.js +37 -0
- package/node_modules/lodash/toString.js +28 -0
- package/node_modules/lodash/toUpper.js +28 -0
- package/node_modules/lodash/transform.js +65 -0
- package/node_modules/lodash/trim.js +47 -0
- package/node_modules/lodash/trimEnd.js +41 -0
- package/node_modules/lodash/trimStart.js +43 -0
- package/node_modules/lodash/truncate.js +111 -0
- package/node_modules/lodash/unary.js +22 -0
- package/node_modules/lodash/unescape.js +34 -0
- package/node_modules/lodash/union.js +26 -0
- package/node_modules/lodash/unionBy.js +39 -0
- package/node_modules/lodash/unionWith.js +34 -0
- package/node_modules/lodash/uniq.js +25 -0
- package/node_modules/lodash/uniqBy.js +31 -0
- package/node_modules/lodash/uniqWith.js +28 -0
- package/node_modules/lodash/uniqueId.js +28 -0
- package/node_modules/lodash/unset.js +34 -0
- package/node_modules/lodash/unzip.js +45 -0
- package/node_modules/lodash/unzipWith.js +39 -0
- package/node_modules/lodash/update.js +35 -0
- package/node_modules/lodash/updateWith.js +33 -0
- package/node_modules/lodash/upperCase.js +27 -0
- package/node_modules/lodash/upperFirst.js +22 -0
- package/node_modules/lodash/util.js +34 -0
- package/node_modules/lodash/value.js +1 -0
- package/node_modules/lodash/valueOf.js +1 -0
- package/node_modules/lodash/values.js +34 -0
- package/node_modules/lodash/valuesIn.js +32 -0
- package/node_modules/lodash/without.js +31 -0
- package/node_modules/lodash/words.js +35 -0
- package/node_modules/lodash/wrap.js +30 -0
- package/node_modules/lodash/wrapperAt.js +48 -0
- package/node_modules/lodash/wrapperChain.js +34 -0
- package/node_modules/lodash/wrapperLodash.js +147 -0
- package/node_modules/lodash/wrapperReverse.js +44 -0
- package/node_modules/lodash/wrapperValue.js +21 -0
- package/node_modules/lodash/xor.js +28 -0
- package/node_modules/lodash/xorBy.js +39 -0
- package/node_modules/lodash/xorWith.js +34 -0
- package/node_modules/lodash/zip.js +22 -0
- package/node_modules/lodash/zipObject.js +24 -0
- package/node_modules/lodash/zipObjectDeep.js +23 -0
- package/node_modules/lodash/zipWith.js +32 -0
- package/node_modules/lodash.find/LICENSE +47 -0
- package/node_modules/lodash.find/README.md +18 -0
- package/node_modules/lodash.find/index.js +2453 -0
- package/node_modules/lodash.find/package.json +17 -0
- package/node_modules/lodash.max/LICENSE +47 -0
- package/node_modules/lodash.max/README.md +18 -0
- package/node_modules/lodash.max/index.js +160 -0
- package/node_modules/lodash.max/package.json +17 -0
- package/node_modules/lodash.merge/LICENSE +47 -0
- package/node_modules/lodash.merge/README.md +18 -0
- package/node_modules/lodash.merge/index.js +1977 -0
- package/node_modules/lodash.merge/package.json +16 -0
- package/node_modules/lodash.padstart/LICENSE +47 -0
- package/node_modules/lodash.padstart/README.md +18 -0
- package/node_modules/lodash.padstart/index.js +554 -0
- package/node_modules/lodash.padstart/package.json +17 -0
- package/node_modules/lodash.repeat/LICENSE +47 -0
- package/node_modules/lodash.repeat/README.md +18 -0
- package/node_modules/lodash.repeat/index.js +523 -0
- package/node_modules/lodash.repeat/package.json +17 -0
- package/node_modules/minimatch/LICENSE +15 -0
- package/node_modules/minimatch/README.md +230 -0
- package/node_modules/minimatch/minimatch.js +947 -0
- package/node_modules/minimatch/package.json +33 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/path-is-absolute/index.js +20 -0
- package/node_modules/path-is-absolute/license +21 -0
- package/node_modules/path-is-absolute/package.json +43 -0
- package/node_modules/path-is-absolute/readme.md +59 -0
- package/node_modules/pend/LICENSE +23 -0
- package/node_modules/pend/README.md +41 -0
- package/node_modules/pend/index.js +55 -0
- package/node_modules/pend/package.json +18 -0
- package/node_modules/pend/test.js +137 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/sprintf-js/CHANGELOG.md +17 -0
- package/node_modules/sprintf-js/CONTRIBUTORS.md +25 -0
- package/node_modules/sprintf-js/LICENSE +24 -0
- package/node_modules/sprintf-js/README.md +143 -0
- package/node_modules/sprintf-js/dist/.gitattributes +4 -0
- package/node_modules/sprintf-js/dist/angular-sprintf.min.js +3 -0
- package/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +1 -0
- package/node_modules/sprintf-js/dist/sprintf.min.js +3 -0
- package/node_modules/sprintf-js/dist/sprintf.min.js.map +1 -0
- package/node_modules/sprintf-js/package.json +32 -0
- package/node_modules/sprintf-js/src/angular-sprintf.js +24 -0
- package/node_modules/sprintf-js/src/sprintf.js +231 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/yauzl/LICENSE +21 -0
- package/node_modules/yauzl/README.md +658 -0
- package/node_modules/yauzl/index.js +796 -0
- package/node_modules/yauzl/package.json +40 -0
- package/package.json +161 -154
- package/dist/assets/android-chrome-192x192.png +0 -0
- package/dist/assets/android-chrome-512x512.png +0 -0
- package/dist/assets/apple-touch-icon.png +0 -0
- package/dist/assets/browserconfig.xml +0 -9
- package/dist/assets/favicon-16x16.png +0 -0
- package/dist/assets/favicon-32x32.png +0 -0
- package/dist/assets/mstile-144x144.png +0 -0
- package/dist/assets/mstile-150x150.png +0 -0
- package/dist/assets/mstile-310x150.png +0 -0
- package/dist/assets/mstile-310x310.png +0 -0
- package/dist/assets/mstile-70x70.png +0 -0
- package/dist/assets/static/css/756.508b6bc040707a7791ff.css +0 -1
- package/dist/assets/static/css/main.e3594d74fd2d03ef4c1f.css +0 -1
- package/dist/assets/static/js/671.d4d57542.chunk.js +0 -1
- package/dist/assets/static/js/756.028ce540.chunk.js +0 -1
- package/dist/assets/static/js/786.8ff9bbce.chunk.js +0 -1
- package/dist/assets/static/js/842.21d7d9bf.chunk.js +0 -1
- package/dist/assets/static/js/about.0d7bcdef.chunk.js +0 -1
- package/dist/assets/static/js/flag1.ff7dc4e2.chunk.js +0 -1
- package/dist/assets/static/js/flag11.3593213f.chunk.js +0 -1
- package/dist/assets/static/js/flag2.4d65b7fb.chunk.js +0 -1
- package/dist/assets/static/js/flag3.9995e272.chunk.js +0 -1
- package/dist/assets/static/js/flag4.59abc641.chunk.js +0 -1
- package/dist/assets/static/js/i18n0.a99de596.chunk.js +0 -1
- package/dist/assets/static/js/i18n1.c9bc01a0.chunk.js +0 -1
- package/dist/assets/static/js/i18n10.275f3985.chunk.js +0 -1
- package/dist/assets/static/js/i18n11.211d7a61.chunk.js +0 -1
- package/dist/assets/static/js/i18n12.0e3517ec.chunk.js +0 -1
- package/dist/assets/static/js/i18n13.eb860ff5.chunk.js +0 -1
- package/dist/assets/static/js/i18n14.8d5b06d6.chunk.js +0 -1
- package/dist/assets/static/js/i18n15.afeb2abb.chunk.js +0 -1
- package/dist/assets/static/js/i18n16.0b4b5dfe.chunk.js +0 -1
- package/dist/assets/static/js/i18n17.f5ed53d3.chunk.js +0 -1
- package/dist/assets/static/js/i18n18.cb63201f.chunk.js +0 -1
- package/dist/assets/static/js/i18n19.e6be391e.chunk.js +0 -1
- package/dist/assets/static/js/i18n2.d40c67e5.chunk.js +0 -1
- package/dist/assets/static/js/i18n20.841f3584.chunk.js +0 -1
- package/dist/assets/static/js/i18n21.1ef038b8.chunk.js +0 -1
- package/dist/assets/static/js/i18n22.5a8d8b54.chunk.js +0 -1
- package/dist/assets/static/js/i18n23.ce59a5c4.chunk.js +0 -1
- package/dist/assets/static/js/i18n24.690d04ea.chunk.js +0 -1
- package/dist/assets/static/js/i18n25.c66c5584.chunk.js +0 -1
- package/dist/assets/static/js/i18n26.1e456867.chunk.js +0 -1
- package/dist/assets/static/js/i18n27.605786a6.chunk.js +0 -1
- package/dist/assets/static/js/i18n28.94a03c16.chunk.js +0 -1
- package/dist/assets/static/js/i18n3.c475a06a.chunk.js +0 -1
- package/dist/assets/static/js/i18n4.65fed3a2.chunk.js +0 -1
- package/dist/assets/static/js/i18n5.0ac94a14.chunk.js +0 -1
- package/dist/assets/static/js/i18n6.9c472163.chunk.js +0 -1
- package/dist/assets/static/js/i18n7.b0d3d053.chunk.js +0 -1
- package/dist/assets/static/js/i18n8.504cc291.chunk.js +0 -1
- package/dist/assets/static/js/i18n9.5a260eea.chunk.js +0 -1
- package/dist/assets/static/js/main.6a6c062d.js +0 -1
- package/dist/assets/static/media/Roboto-500.64e69384.woff +0 -0
- package/dist/assets/static/media/Roboto-500.7f8f0146.eot +0 -0
- package/dist/assets/static/media/Roboto-500.916656a2.ttf +0 -0
- package/dist/assets/static/media/Roboto-500.abd255e8.svg +0 -305
- package/dist/assets/static/media/Roboto-700.8d11d1e1.ttf +0 -0
- package/dist/assets/static/media/Roboto-700.9c9c164e.svg +0 -310
- package/dist/assets/static/media/Roboto-700.c65552c8.eot +0 -0
- package/dist/assets/static/media/Roboto-700.ee82bda2.woff +0 -0
- package/dist/assets/static/media/Roboto-700italic.1dc5bfed.eot +0 -0
- package/dist/assets/static/media/Roboto-700italic.686da014.woff +0 -0
- package/dist/assets/static/media/Roboto-700italic.896656dc.ttf +0 -0
- package/dist/assets/static/media/Roboto-700italic.cacb9681.svg +0 -325
- package/dist/assets/static/media/Roboto-italic.09ed2f27.svg +0 -323
- package/dist/assets/static/media/Roboto-italic.c1421604.woff +0 -0
- package/dist/assets/static/media/Roboto-italic.c38ecad2.ttf +0 -0
- package/dist/assets/static/media/Roboto-italic.f7677a07.eot +0 -0
- package/dist/assets/static/media/Roboto-regular.5107f918.eot +0 -0
- package/dist/assets/static/media/Roboto-regular.6a307cf2.woff +0 -0
- package/dist/assets/static/media/Roboto-regular.81dc9b21.ttf +0 -0
- package/dist/assets/static/media/Roboto-regular.bcf2ba9e.svg +0 -308
- /package/dist/assets/{safari-pinned-tab.svg → icon.svg} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunk_jesec_flood=globalThis.webpackChunk_jesec_flood||[]).push([[786],{8652:(e,t,s)=>{var i={"./ad.png":[2233,443],"./ae.png":[6443,458],"./af.png":[1715,849],"./ag.png":[6272,938],"./al.png":[8648,743],"./am.png":[2438,458],"./ao.png":[1246,849],"./ar.png":[9240,849],"./at.png":[1914,938],"./au.png":[1972,938],"./az.png":[194,743],"./ba.png":[8045,796],"./bb.png":[5069,796],"./bd.png":[8041,443],"./be.png":[8004,796],"./bf.png":[7759,743],"./bg.png":[4670,458],"./bh.png":[8951,458],"./bi.png":[48,443],"./bj.png":[6737,938],"./bn.png":[5154,443],"./bo.png":[530,796],"./br.png":[6022,443],"./bs.png":[1900,443],"./bt.png":[1826,849],"./bw.png":[7820,938],"./by.png":[9786,849],"./bz.png":[6996,743],"./ca.png":[1245,458],"./cd.png":[2720,443],"./cf.png":[3665,443],"./cg.png":[672,849],"./ch.png":[3514,796],"./ci.png":[9707,443],"./cl.png":[1951,849],"./cm.png":[4242,743],"./cn.png":[4447,443],"./co.png":[5206,443],"./cr.png":[2899,796],"./cu.png":[7921,458],"./cv.png":[1636,458],"./cw.png":[7610,849],"./cy.png":[7236,849],"./cz.png":[1591,443],"./de.png":[5294,443],"./dj.png":[9463,743],"./dk.png":[3066,458],"./dm.png":[1774,743],"./do.png":[5091,796],"./dz.png":[1487,938],"./ec.png":[3498,743],"./ee.png":[6414,938],"./eg.png":[6935,796],"./eh.png":[6139,743],"./er.png":[5119,796],"./es.png":[2921,458],"./et.png":[9854,743],"./fi.png":[8234,458],"./fj.png":[7709,458],"./fm.png":[636,849],"./fr.png":[4359,443],"./ga.png":[5940,796],"./gb.png":[1263,443],"./gd.png":[5865,938],"./ge.png":[912,849],"./gh.png":[6006,443],"./gm.png":[5218,458],"./gn.png":[8669,443],"./gq.png":[5896,849],"./gr.png":[8666,458],"./gt.png":[5669,458],"./gw.png":[994,938],"./gy.png":[2782,443],"./hk.png":[9680,458],"./hn.png":[8763,443],"./hr.png":[1521,796],"./ht.png":[4510,443],"./hu.png":[406,796],"./id.png":[9425,443],"./ie.png":[3368,458],"./il.png":[8010,743],"./in.png":[6683,849],"./iq.png":[5576,796],"./ir.png":[2042,938],"./is.png":[122,849],"./it.png":[4236,443],"./je.png":[4307,743],"./jm.png":[5152,743],"./jo.png":[8124,938],"./jp.png":[6114,743],"./ke.png":[4203,458],"./kg.png":[1642,443],"./kh.png":[7148,443],"./ki.png":[4544,938],"./km.png":[2308,443],"./kn.png":[746,743],"./kp.png":[319,743],"./kr.png":[5060,796],"./ks.png":[350,743],"./kw.png":[7443,443],"./kz.png":[4323,796],"./la.png":[151,849],"./lb.png":[413,849],"./lc.png":[6453,743],"./li.png":[2711,443],"./lk.png":[8746,849],"./lr.png":[5815,849],"./ls.png":[7167,443],"./lt.png":[7048,796],"./lu.png":[4849,458],"./lv.png":[1433,443],"./ly.png":[7753,796],"./ma.png":[8637,849],"./mc.png":[9403,443],"./md.png":[2390,743],"./me.png":[4122,938],"./mg.png":[3810,938],"./mh.png":[6562,743],"./mk.png":[6971,743],"./ml.png":[6170,443],"./mm.png":[3820,849],"./mn.png":[9038,458],"./mr.png":[6597,849],"./mt.png":[3491,849],"./mu.png":[9421,796],"./mv.png":[2859,743],"./mw.png":[5827,796],"./mx.png":[9394,849],"./my.png":[3984,443],"./mz.png":[6863,443],"./na.png":[6202,458],"./ne.png":[4973,849],"./ng.png":[6349,443],"./ni.png":[361,458],"./nl.png":[113,796],"./no.png":[8068,849],"./np.png":[1482,938],"./nr.png":[8048,743],"./nz.png":[8182,443],"./om.png":[3734,796],"./pa.png":[8085,443],"./pe.png":[3826,443],"./pg.png":[9357,458],"./ph.png":[4861,938],"./pk.png":[9295,849],"./pl.png":[4564,443],"./pt.png":[2121,743],"./pw.png":[3872,743],"./py.png":[8245,443],"./qa.png":[4880,938],"./ro.png":[8592,443],"./rs.png":[4022,796],"./ru.png":[3732,796],"./rw.png":[3920,458],"./sa.png":[2776,743],"./sb.png":[840,849],"./sc.png":[3812,443],"./sd.png":[4490,458],"./se.png":[1318,443],"./sg.png":[4084,938],"./si.png":[6124,796],"./sk.png":[354,743],"./sl.png":[9972,796],"./sm.png":[6095,743],"./sn.png":[25,743],"./so.png":[2798,743],"./sr.png":[3885,443],"./st.png":[7732,443],"./sv.png":[4373,796],"./sy.png":[6839,743],"./sz.png":[2881,796],"./td.png":[3724,938],"./tg.png":[7480,938],"./th.png":[3271,458],"./tj.png":[8608,458],"./tl.png":[1058,458],"./tm.png":[2765,458],"./tn.png":[7888,938],"./to.png":[6439,743],"./tr.png":[8579,938],"./tt.png":[4107,938],"./tv.png":[7678,743],"./tw.png":[4712,743],"./tz.png":[1163,938],"./ua.png":[8676,443],"./ug.png":[8475,796],"./us.png":[4342,458],"./uy.png":[9317,743],"./uz.png":[5248,849],"./va.png":[3,458],"./vc.png":[7093,938],"./ve.png":[1810,938],"./vn.png":[1582,458],"./vu.png":[1843,796],"./ws.png":[4381,443],"./ye.png":[4315,796],"./za.png":[9683,458],"./zm.png":[6146,796],"./zw.png":[9733,443]};function r(e){if(!s.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],r=t[0];return s.e(t[1]).then((()=>s(r)))}r.keys=()=>Object.keys(i),r.id=8652,e.exports=r},2786:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>ai});var i=s(5893),r=s(8983),n=s(4537),a=s(718),l=s(7739),o=s(6062),d=s(7294),c=s(8165),h=s(1493);const g=e=>{const{actions:t}=e,s=t.map(((e,t)=>{let s=()=>{};return e.triggerDismiss&&(s=()=>{h.Z.dismissModal()}),"checkbox"===e.type?(0,i.jsx)(c.XZ,{checked:e.checked,id:e.id,onChange:t=>{null!=e.clickHandler&&e.clickHandler(t),s()},children:e.content},t):(0,i.jsx)(c.zx,{isLoading:e.isLoading,onClick:t=>{null!=e.clickHandler&&e.clickHandler(t),s()},priority:e.type,type:e.submit?"submit":"button",children:e.content},t)})),r=(0,i.jsx)("div",{className:"modal__button-group",children:s});return(0,i.jsx)("div",{className:"modal__actions",children:r})};var u=s(879);const m=({isAddingTorrents:e,onAddTorrentsClick:t})=>{const s=(0,o.useIntl)();return(0,i.jsx)(g,{actions:[{checked:Boolean(u.Z.floodSettings.startTorrentsOnLoad),clickHandler:null,content:s.formatMessage({id:"torrents.add.start.label"}),id:"start",triggerDismiss:!1,type:"checkbox"},{clickHandler:null,content:s.formatMessage({id:"button.cancel"}),triggerDismiss:!0,type:"tertiary"},{clickHandler:t,content:s.formatMessage({id:"torrents.add.button.add"}),isLoading:e,submit:!0,triggerDismiss:!1,type:"primary"}]})};var p=s(3279),f=s.n(p),x=s(4656),j=s(1197);class _ extends j.Z{render(){return(0,i.jsx)("svg",{className:`icon icon--arrow ${this.props.className}`,viewBox:this.getViewBox(),children:(0,i.jsx)("path",{d:"M25.78,42.22V1.16h8.43V42.22L48,27.77l6.1,5.83L30,58.84,5.87,33.6,12,27.77Z"})})}}class b extends j.Z{render(){return(0,i.jsx)("svg",{className:`icon icon--file ${this.props.className}`,viewBox:this.getViewBox(),children:(0,i.jsx)("g",{style:{transform:"translate(8px, 0)"},children:(0,i.jsx)("path",{d:"M48.14,19.89V56a3,3,0,0,1-3,3H3a3,3,0,0,1-3-3V5.84a3,3,0,0,1,3-3H31.09A8.41,8.41,0,0,1,36.23,5L46,14.75A8.4,8.4,0,0,1,48.14,19.89Zm-4,3h-13a3,3,0,0,1-3-3v-13H4V55H44.13V22.89Zm-12-4H43.88a4,4,0,0,0-.69-1.29L33.38,7.79a4,4,0,0,0-1.28-.69V18.88Z"})})})}}var v=s(956),y=s(5051);function M(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function w(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?M(Object(s),!0).forEach((function(t){S(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):M(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function S(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const C=(0,o.defineMessages)({EACCES:{id:"filesystem.error.eacces"},ENOENT:{id:"filesystem.error.enoent"},emptyDirectory:{id:"filesystem.empty.directory"},fetching:{id:"filesystem.fetching"},unknownError:{id:"filesystem.error.unknown"}});class k extends d.PureComponent{constructor(e){super(e),S(this,"fetchDirectoryListForCurrentDirectory",(()=>{const{directory:e}=this.props;y.Z.fetchDirectoryList({path:e}).then((e=>{this.setState(w(w({},e),{},{errorResponse:null}))})).catch((e=>{this.setState({errorResponse:e.response})}))})),S(this,"handleItemClick",((e,t=!0)=>{this.props.onItemSelection&&this.props.onItemSelection(this.getNewDestination(e),t)})),S(this,"handleParentDirectoryClick",(()=>{const{separator:e}=this.state;let{directory:t}=this.props;t.endsWith(e)&&(t=t.substring(0,t.length-1));const s=t.split(e);s.pop(),t=s.join(e),this.props.onItemSelection&&this.props.onItemSelection(t)})),this.state={errorResponse:null,separator:"/"}}componentDidMount(){this.fetchDirectoryListForCurrentDirectory()}componentDidUpdate(e){const{directory:t}=this.props;e.directory!==t&&this.fetchDirectoryListForCurrentDirectory()}getNewDestination(e){const{separator:t}=this.state,{directory:s}=this.props;return null!=s&&s.endsWith(t)?`${s}${e}`:`${s}${t}${e}`}render(){const{intl:e,selectable:t}=this.props,{directories:s,errorResponse:r,files:n}=this.state;let a=null,l=null,o=null,d=!0;if((null==s&&"directories"===t||null==n&&"files"===t)&&(d=!1,a=(0,i.jsx)("div",{className:"filesystem__directory-list__item filesystem__directory-list__item--message",children:(0,i.jsx)("em",{children:e.formatMessage(C.fetching)})})),r&&r.data&&r.data.code){d=!1;const t=C[r.data.code]||C.unknownError;a=(0,i.jsx)("div",{className:"filesystem__directory-list__item filesystem__directory-list__item--message",children:(0,i.jsx)("em",{children:e.formatMessage(t)})})}if(o=(0,i.jsxs)("li",{className:"filesystem__directory-list__item filesystem__directory-list__item--parent",onClick:this.handleParentDirectoryClick,children:[(0,i.jsx)(_,{}),e.formatMessage({id:"filesystem.parent.directory"})]}),d){const e=null!=s?s.map(((e,s)=>(0,i.jsxs)("li",{className:`${"filesystem__directory-list__item filesystem__directory-list__item--directory".concat("files"!==t?" filesystem__directory-list__item--selectable":"")}`,onClick:"files"!==t?()=>this.handleItemClick(e):void 0,children:[(0,i.jsx)(v.Z,{}),e]},s))):[],r=null!=n?n.map(((e,s)=>(0,i.jsxs)("li",{className:`${"filesystem__directory-list__item filesystem__directory-list__item--file".concat("directories"!==t?" filesystem__directory-list__item--selectable":"")}`,onClick:"directories"!==t?()=>this.handleItemClick(e,!1):void 0,children:[(0,i.jsx)(b,{}),e]},`file.${s}`))):[];l=e.concat(r)}return l&&0!==l.length||a||(a=(0,i.jsx)("div",{className:"filesystem__directory-list__item filesystem__directory-list__item--message",children:(0,i.jsx)("em",{children:e.formatMessage(C.emptyDirectory)})})),(0,i.jsxs)("div",{className:"filesystem__directory-list context-menu__items__padding-surrogate",children:[o,a,l]})}}const F=k;var N=s(3626);const O=(0,d.forwardRef)((({id:e,label:t,selectable:s,suggested:r,showBasePathToggle:n,showCompletedToggle:a,onChange:l},h)=>{var g,m;const[p,j]=(0,d.useState)(r??(null===(g=u.Z.floodSettings.torrentDestinations)||void 0===g?void 0:g[""])??(null===(m=u.Z.clientSettings)||void 0===m?void 0:m.directoryDefault)??""),[_,b]=(0,d.useState)(!1),v=(0,d.useRef)(null),y=(0,x.Z)(h),M=(0,o.useIntl)();(0,d.useEffect)((()=>{const e=()=>{b(!1)},t=t=>{var s;null!==(s=v.current)&&void 0!==s&&s.contains(t.target)||e()};return document.addEventListener("click",t),window.addEventListener("resize",e),()=>{document.removeEventListener("click",t),window.removeEventListener("resize",e)}}),[]);const w=[];return n&&w.push((0,i.jsx)(c.XZ,{grow:!1,id:"isBasePath",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.destination.base_path"})},"isBasePath")),a&&w.push((0,i.jsx)(c.XZ,{grow:!1,id:"isCompleted",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.destination.completed"})},"isCompleted")),(0,i.jsxs)(c.y1,{ref:v,children:[(0,i.jsx)(c.p7,{children:(0,i.jsxs)(c.fE,{autoComplete:_?"off":void 0,addonPlacement:"after",defaultValue:p,id:e,label:t,onChange:f()((()=>{if(null==y.current)return;const e=y.current.value;l&&l(e),j(e)}),100,{leading:!0}),onClick:e=>e.nativeEvent.stopImmediatePropagation(),placeholder:M.formatMessage({id:"torrents.add.destination.placeholder"}),ref:y,children:[(0,i.jsx)(c.G5,{onClick:()=>{null!=y.current&&j(y.current.value),b(!_)},children:(0,i.jsx)(N.Z,{})}),(0,i.jsx)(c.h_,{children:(0,i.jsx)(c.xV,{isIn:_,onClick:e=>e.nativeEvent.stopImmediatePropagation(),overlayProps:{isInteractive:!1},padding:!1,triggerRef:y,children:(0,i.jsx)(F,{directory:p,intl:M,selectable:s,onItemSelection:(e,t=!0)=>{null!=y.current&&(y.current.value=e),j(e),b(t)}})})})]})}),w.length>0?(0,i.jsx)(c.p7,{children:w}):null]})}));O.defaultProps={label:void 0,selectable:void 0,suggested:void 0,showBasePathToggle:!1,showCompletedToggle:!1,onChange:void 0};const D=O;var Z=s(1540);const P=({start:e,destination:t,tags:s,tab:i})=>{const r={};null!=e&&(r.startTorrentsOnLoad=e),null!=t&&""!==t&&(null==r.torrentDestinations&&(r.torrentDestinations=u.Z.floodSettings.torrentDestinations||{}),"string"==typeof(null==s?void 0:s[0])?r.torrentDestinations[s[0]]=t:r.torrentDestinations[""]=t),null!=i&&(r.UITorrentsAddTab=i),Z.Z.saveSettings(r)};var I=s(4184),E=s.n(I),T=s(3991),R=s(1967);const L=({defaultValue:e,placeholder:t,id:s,label:r,onTagSelected:n})=>{const[a,h]=(0,d.useState)(!1),[g,m]=(0,d.useState)(e??[]),p=(0,d.useRef)(null),f=(0,d.useRef)(null),x=(0,d.useRef)(null),j=E()("select form__element",{"select--is-open":a});return(0,l.Z)("Escape",(e=>{e.preventDefault(),h(!1)})),(0,d.useEffect)((()=>{const e=e=>{var t;null!==(t=p.current)&&void 0!==t&&t.contains(e.target)||h(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[]),(0,d.useEffect)((()=>{null!=x.current&&(x.current.value=g.join()),n&&n(g)}),[g,n]),(0,i.jsxs)(c.U2,{ref:p,children:[(0,i.jsx)("label",{className:"form__element__label",children:r}),(0,i.jsx)("div",{className:j,children:(0,i.jsxs)(c.fE,{autoComplete:a?"off":void 0,id:s||"tags",addonPlacement:"after",defaultValue:e,onChange:()=>{if(null!=x.current){let e=x.current.value.split(",").map((e=>e.trim())).filter((e=>e.length>0));x.current.value.trimEnd().endsWith(",")&&(e.push(""),e=[...new Set(e)]),m(e)}},placeholder:t,ref:x,children:[(0,i.jsx)(c.G5,{onClick:()=>{h(!a)},className:"select__indicator",children:(0,i.jsx)(T.Z,{})}),(0,i.jsx)(c.h_,{children:(0,i.jsx)(c.xV,{isIn:a,onClick:e=>{"single"!==u.Z.floodSettings.UITagSelectorMode&&e.nativeEvent.stopImmediatePropagation()},overlayProps:{isInteractive:!1},ref:f,triggerRef:x,children:[...new Set([...Object.keys(R.Z.taxonomy.tagCounts),...g])].reduce(((e,t)=>(""===t||e.push((0,i.jsx)(c.Ql,{id:t,isSelected:g.includes(t),onClick:()=>{"untagged"===t?m([]):g.includes(t)?m(g.filter((e=>e!==t&&""!==e))):m([...g.filter((e=>""!==e)),t])},children:"untagged"===t?(0,i.jsx)(o.FormattedMessage,{id:"filter.untagged"}):t},t)),e)),[])})})]})})]})};L.defaultProps={id:"tags",label:void 0,defaultValue:void 0,placeholder:void 0,onTagSelected:void 0};const V=L;class z extends j.Z{render(){return(0,i.jsx)("svg",{className:`icon icon--addmini ${this.props.className}`,viewBox:this.getViewBox(),children:(0,i.jsx)("polygon",{points:"8,3.5 4.5,3.5 4.5,0 3.5,0 3.5,3.5 0,3.5 0,4.5 3.5,4.5 3.5,8 4.5,8 4.5,4.5 8,4.5"})})}}class U extends j.Z{render(){return(0,i.jsx)("svg",{className:`icon icon--remove-mini ${this.props.className}`,viewBox:this.getViewBox(),children:(0,i.jsx)("rect",{y:"3.5",width:"8",height:"1"})})}}const A=(e,t)=>Object.keys(e).reduce(((s,i)=>{if(i.startsWith(t)){const t=e[i];null!=t&&s.push(t)}return s}),[]),$=({defaultValues:e,id:t,label:s,placeholder:r})=>{const n=(0,d.useRef)(0),[a,l]=(0,d.useState)(e??[{id:0,value:""}]);return(0,i.jsx)(c.y1,{children:a.map(((e,o)=>{let d=null;return o>0&&(d=(0,i.jsx)(c.G5,{onClick:()=>{const e=a.slice();e.splice(o,1),l(e)},children:(0,i.jsx)(U,{size:"mini"})})),(0,i.jsx)(c.p7,{children:(0,i.jsxs)(c.fE,{addonPlacement:"after",id:`${t}-${e.id}`,defaultValue:e.value,label:0===o&&s,placeholder:r,wrapperClassName:"textbox-repeater",children:[(0,i.jsx)(c.G5,{onClick:()=>{n.current+=1;const e=a.slice();e.splice(o+1,0,{id:n.current,value:""}),l(e)},children:(0,i.jsx)(z,{size:"mini"})}),d]})},e.id)}))})};$.defaultProps={defaultValues:void 0,label:void 0,placeholder:void 0};const H=$;var B=s(9335),X=s(3529);const G=()=>{const e=(0,d.useRef)(null),t=(0,o.useIntl)(),[s,r]=(0,d.useState)(!1);return(0,i.jsxs)(c.l0,{className:"inverse",ref:e,children:[(0,i.jsx)(D,{id:"sourcePath",label:t.formatMessage({id:"torrents.create.source.path.label"})}),(0,i.jsx)(H,{id:"trackers",label:t.formatMessage({id:"torrents.create.trackers.label"}),placeholder:t.formatMessage({id:"torrents.create.tracker.input.placeholder"}),defaultValues:[{id:0,value:""}]}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.fE,{id:"name",label:t.formatMessage({id:"torrents.create.base.name.label"}),placeholder:t.formatMessage({id:"torrents.create.base.name.input.placeholder"})})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.fE,{id:"comment",label:t.formatMessage({id:"torrents.create.comment.label"}),placeholder:t.formatMessage({id:"torrents.create.comment.input.placeholder"})})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.fE,{id:"infoSource",label:t.formatMessage({id:"torrents.create.info.source.label"}),placeholder:t.formatMessage({id:"torrents.create.info.source.input.placeholder"})})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.XZ,{grow:!1,id:"isPrivate",children:t.formatMessage({id:"torrents.create.is.private.label"})})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(V,{id:"tags",label:t.formatMessage({id:"torrents.add.tags"}),placeholder:t.formatMessage({id:"torrents.create.tags.input.placeholder"})})}),(0,i.jsx)(m,{onAddTorrentsClick:()=>{if(null==e.current)return;const t=e.current.getFormData();r(!0),null!=t.sourcePath&&(B.Z.createTorrent({name:t.name,sourcePath:t.sourcePath,trackers:A(t,"trackers"),comment:t.comment,infoSource:t.infoSource,isPrivate:t.isPrivate||!1,start:t.start||!1,tags:null!=t.tags?t.tags.split(","):void 0}).then((()=>{X.Z.dismissModal()})),P({start:t.start,destination:t.sourcePath,tab:"by-creation"}))},isAddingTorrents:s})]})};var Q=s(463),W=s(5469),q=s(7013);function Y(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function J(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(s),!0).forEach((function(t){K(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Y(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function K(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const ee=({onFilesChanged:e})=>{const[t,s]=(0,d.useState)([]);return(0,d.useEffect)((()=>{e(t)}),[t,e]),(0,i.jsxs)(c.U2,{children:[(0,i.jsx)("label",{className:"form__element__label",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.add.torrents.label"})}),t.length>0?(0,i.jsx)("ul",{className:"dropzone__selected-files interactive-list",onClick:e=>{e.stopPropagation()},children:t.map(((e,r)=>(0,i.jsxs)("li",{className:"dropzone__selected-files__file interactive-list__item",title:e.name,children:[(0,i.jsx)("span",{className:"interactive-list__icon",children:(0,i.jsx)(b,{})}),(0,i.jsx)("span",{className:"interactive-list__label",children:e.name}),(0,i.jsx)("span",{className:"interactive-list__icon interactive-list__icon--action interactive-list__icon--action--warning",onClick:()=>{const e=t.slice();e.splice(r,1),s(e)},children:(0,i.jsx)(W.Z,{})})]},e.name)))}):null,(0,i.jsx)(Q.Z,{onDrop:e=>{const i=[];e.forEach((r=>{const n=new FileReader;n.onload=n=>{var a;null!=(null===(a=n.target)||void 0===a?void 0:a.result)&&"string"==typeof n.target.result&&i.push({name:r.name,data:n.target.result.split("base64,")[1]}),i.length===e.length&&s(t.concat(i))},n.readAsDataURL(r)}))},children:({getRootProps:e,getInputProps:t,isDragActive:s})=>(0,i.jsxs)("div",J(J({},e()),{},{className:"form__dropzone dropzone interactive-list "+(s?"dropzone--is-dragging":""),children:[(0,i.jsx)("input",J({},t())),(0,i.jsxs)("div",{className:"dropzone__copy",children:[(0,i.jsx)("div",{className:"dropzone__icon",children:(0,i.jsx)(q.Z,{})}),(0,i.jsx)(o.FormattedMessage,{id:"torrents.add.tab.file.drop"})," ",(0,i.jsx)("span",{className:"dropzone__browse-button",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.add.tab.file.browse"})}),"."]})]}))})]})},te=()=>{const e=(0,d.useRef)([]),t=(0,d.useRef)(null),s=(0,d.useRef)(null),[r,n]=(0,d.useState)(!1),a=(0,o.useIntl)();return(0,i.jsxs)(c.l0,{className:"inverse",ref:t,children:[(0,i.jsx)(c.p7,{children:(0,i.jsx)(ee,{onFilesChanged:t=>{e.current=t}})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(V,{label:a.formatMessage({id:"torrents.add.tags"}),id:"tags",onTagSelected:e=>{if(null!=s.current){var t;const i=null===(t=u.Z.floodSettings.torrentDestinations)||void 0===t?void 0:t[e[0]];"string"==typeof i&&null!=s.current&&(s.current.value=i,s.current.dispatchEvent(new Event("input",{bubbles:!0})))}}})}),(0,i.jsx)(D,{id:"destination",label:a.formatMessage({id:"torrents.add.destination.label"}),ref:s,selectable:"directories",showBasePathToggle:!0,showCompletedToggle:!0}),(0,i.jsx)(m,{onAddTorrentsClick:()=>{var s;if(null==t.current)return;const i=null===(s=t.current)||void 0===s?void 0:s.getFormData();n(!0);const{destination:r,start:a,tags:l,isBasePath:o,isCompleted:d}=i,c=[];if(e.current.forEach((e=>{c.push(e.data)})),0===c.length||null==r)return void n(!1);const h=null!=l?l.split(",").filter((e=>e.length>0)):void 0;B.Z.addTorrentsByFiles({files:c,destination:r,tags:h,isBasePath:o,isCompleted:d,start:a}).then((()=>{X.Z.dismissModal()})),P({start:a,destination:r,tags:h,tab:"by-file"})},isAddingTorrents:r})]})},se=()=>{var e,t;const s=(0,d.useRef)(null),r=(0,d.useRef)(null),[n,a]=(0,d.useState)(!1),l=(0,o.useIntl)();return(0,i.jsxs)(c.l0,{className:"inverse",ref:s,children:[(0,i.jsx)(H,{id:"urls",label:l.formatMessage({id:"torrents.add.torrents.label"}),placeholder:l.formatMessage({id:"torrents.add.tab.url.input.placeholder"}),defaultValues:"add-torrents"===(null===(e=X.Z.activeModal)||void 0===e?void 0:e.id)&&(null===(t=X.Z.activeModal)||void 0===t?void 0:t.initialURLs)||[{id:0,value:""}]}),(0,i.jsx)(H,{id:"cookies",label:l.formatMessage({id:"torrents.add.cookies.label"}),placeholder:l.formatMessage({id:"torrents.add.cookies.input.placeholder"})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(V,{id:"tags",label:l.formatMessage({id:"torrents.add.tags"}),onTagSelected:e=>{if(null!=r.current){var t;const s=null===(t=u.Z.floodSettings.torrentDestinations)||void 0===t?void 0:t[e[0]];"string"==typeof s&&null!=r.current&&(r.current.value=s,r.current.dispatchEvent(new Event("input",{bubbles:!0})))}}})}),(0,i.jsx)(D,{id:"destination",label:l.formatMessage({id:"torrents.add.destination.label"}),ref:r,selectable:"directories",showBasePathToggle:!0,showCompletedToggle:!0}),(0,i.jsx)(m,{onAddTorrentsClick:()=>{if(null==s.current)return;const e=s.current.getFormData();a(!0);const t=A(e,"urls").filter((e=>""!==e));if(0===t.length||null==e.destination)return void a(!1);const i=A(e,"cookies"),r=t[0].startsWith("http")&&t[0].split("/")[2],n=r?{[r]:i}:void 0,l=null!=e.tags?e.tags.split(",").filter((e=>e.length>0)):void 0;B.Z.addTorrentsByUrls({urls:t,cookies:n,destination:e.destination,isBasePath:e.isBasePath,isCompleted:e.isCompleted,start:e.start,tags:l}).then((()=>{X.Z.dismissModal()})),P({start:e.start,destination:e.destination,tags:l,tab:"by-url"})},isAddingTorrents:n})]})},ie=e=>{const{activeTabId:t,tabs:s={},onTabChange:r}=e,n=Object.keys(s).map((e=>{const n=s[e];n.id=e;const a=E()("modal__tab",{"is-active":e===t});return(0,i.jsx)("li",{className:a,onClick:()=>{r&&r(n)},children:n.label},e)}));return(0,i.jsx)("ul",{className:"modal__tabs",children:n})};ie.defaultProps={tabs:{}};const re=ie;function ne(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function ae(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(s),!0).forEach((function(t){le(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):ne(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function le(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const oe=e=>{const{alignment:t,size:s,orientation:r,tabsInBody:n,inverse:a,initialTabId:l,className:o,content:c,heading:h,tabs:u,actions:m}=e,p=E()("modal__content__wrapper",`modal--align-${t}`,`modal--size-${s}`,{"modal--horizontal":"horizontal"===r,"modal--vertical":"vertical"===r,"modal--tabs-in-header":!n,"modal--tabs-in-body":n,inverse:a},o);let f=c;const x=h,j=E()("modal__header",{"has-tabs":u});let _,b,v;const[y,M]=(0,d.useState)(l??Object.keys(u||{})[0]);if(u){const e=u[y],t=E()("modal__content",e.modalContentClasses),s=e.content,r=e.props,a=(0,i.jsx)(re,{activeTabId:y,onTabChange:e=>{null!=e.id&&M(e.id)},tabs:u},"modal-tabs");n?_=a:v=a,f=[_,(0,i.jsx)("div",{className:t,children:(0,i.jsx)(s,ae({},r))},"modal-content")]}return m&&(b=(0,i.jsx)("div",{className:"modal__footer",children:(0,i.jsx)(g,{actions:m})})),(0,i.jsxs)("div",{className:p,children:[(0,i.jsxs)("div",{className:j,children:[x,v]}),(0,i.jsxs)("div",{className:"modal__body",children:[f,b]})]})};oe.defaultProps={alignment:"left",className:null,inverse:!0,size:"medium",orientation:"horizontal",tabsInBody:!1,content:void 0,actions:void 0,tabs:void 0,initialTabId:void 0};const de=oe,ce=()=>{const e=(0,o.useIntl)(),t={"by-url":{content:se,label:e.formatMessage({id:"torrents.add.tab.url.title"})},"by-file":{content:te,label:e.formatMessage({id:"torrents.add.tab.file.title"})},"by-creation":{content:G,label:e.formatMessage({id:"torrents.add.tab.create.title"})}};return(0,i.jsx)(de,{heading:e.formatMessage({id:"torrents.add.heading"}),tabs:t,initialTabId:u.Z.floodSettings.UITorrentsAddTab})},he=(0,a.Pi)((()=>{var e;if("confirm"!==(null===(e=X.Z.activeModal)||void 0===e?void 0:e.id))return null;const{actions:t,content:s,heading:r}=X.Z.activeModal||{};return(0,i.jsx)(de,{actions:t,content:(0,i.jsx)("div",{className:"modal__content",children:s}),heading:r})}));var ge=s(3493),ue=s.n(ge),me=s(6782);class pe extends j.Z{render(){return(0,i.jsx)("svg",{className:`icon icon--edit ${this.props.className}`,style:{width:"80%"},viewBox:this.getViewBox(),children:(0,i.jsx)("path",{d:"M12,38.79l10.84,11H12Zm19-21.54L41.75,28.09,25.44,47.17l-10.78-11Zm5.65-6c1.69-1.69,4.94-1.19,7.26,1.13l2.1,2.1c2.32,2.32,2.82,5.57,1.13,7.26L43.7,25.08,33.21,14.59Z"})})}}var fe=s(9669),xe=s.n(fe),je=s(4355),_e=s(8949);function be(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const ve=new class{constructor(){be(this,"feeds",[]),be(this,"rules",[]),be(this,"items",[]),(0,_e.ky)(this)}setFeeds(e){this.feeds=null!=e?[...e].sort(((e,t)=>e.label.localeCompare(t.label))):[]}setRules(e){this.rules=null!=e?[...e].sort(((e,t)=>e.label.localeCompare(t.label))):[]}handleFeedMonitorsFetchSuccess(e){this.setFeeds(e.feeds),this.setRules(e.rules)}handleItemsFetchSuccess(e){this.items=e}},{baseURI:ye}=je.Z,Me={addFeed:e=>xe().put(`${ye}api/feed-monitor/feeds`,e).then((e=>e.data)).then((()=>{Me.fetchFeedMonitors()}),(()=>{})),modifyFeed:(e,t)=>xe().patch(`${ye}api/feed-monitor/feeds/${e}`,t).then((e=>e.data)).then((()=>{Me.fetchFeedMonitors()}),(()=>{})),addRule:e=>xe().put(`${ye}api/feed-monitor/rules`,e).then((e=>e.data)).then((()=>{Me.fetchFeedMonitors()}),(()=>{})),fetchFeedMonitors:()=>xe().get(`${ye}api/feed-monitor`).then((e=>e.data)).then((e=>{ve.handleFeedMonitorsFetchSuccess(e)}),(()=>{})),fetchItems:({id:e,search:t})=>xe().get(`${ye}api/feed-monitor/feeds/${e}/items`,{params:{search:t}}).then((e=>e.data)).then((e=>{ve.handleItemsFetchSuccess(e)}),(()=>{})),removeFeedMonitor:e=>xe().delete(`${ye}api/feed-monitor/${e}`).then((e=>e.data)).then((()=>{Me.fetchFeedMonitors()}),(()=>{}))},we=Me,Se=({children:e})=>(0,i.jsx)("h2",{className:"h4",children:e}),Ce={url:/^(?:https?|ftp):\/\/.{1,}\.{1}.{1,}/,domainName:/(?:https?|udp):\/\/(?:www\.)?([-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,18}\b)*(\/[/\d\w.-]*)*(?:[?])*(.+)*/i,cdata:/<!\[CDATA\[(.*?)\]\]>/},ke=e=>null!=e&&""!==e,Fe=e=>{try{new RegExp(e)}catch(e){return!1}return!0},Ne=e=>null!=e&&""!==e&&null!==e.match(Ce.url),Oe=e=>{if(null===e||""===e)return!1;const t=parseInt(`${e}`,10);return!Number.isNaN(t)&&t>0};var De;function Ze(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function Pe(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(s),!0).forEach((function(t){Ie(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Ze(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function Ie(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const Ee=(0,o.defineMessages)({mustSpecifyDestination:{id:"feeds.validation.must.specify.destination"},mustSelectFeed:{id:"feeds.validation.must.select.feed"},mustSpecifyLabel:{id:"feeds.validation.must.specify.label"},invalidRegularExpression:{id:"feeds.validation.invalid.regular.expression"},url:{id:"feeds.url"},label:{id:"feeds.label"},regEx:{id:"feeds.regEx"},tags:{id:"feeds.tags"},check:{id:"feeds.check"}}),Te={label:"",feedIDs:[""],match:"",exclude:"",tags:[],destination:"",startOnLoad:!1};let Re=(0,a.Pi)(De=class extends d.Component{constructor(e){super(e),Ie(this,"formRef",null),Ie(this,"validatedFields",{destination:{isValid:ke,error:this.props.intl.formatMessage(Ee.mustSpecifyDestination)},feedID:{isValid:ke,error:this.props.intl.formatMessage(Ee.mustSelectFeed)},label:{isValid:ke,error:this.props.intl.formatMessage(Ee.mustSpecifyLabel)},match:{isValid:e=>ke(e)&&Fe(e),error:this.props.intl.formatMessage(Ee.invalidRegularExpression)},exclude:{isValid:e=>!ke(e)||Fe(e),error:this.props.intl.formatMessage(Ee.invalidRegularExpression)}}),Ie(this,"checkFieldValidity",ue()(((e,t)=>{const{errors:s}=this.state;null!=s&&s[e]&&this.validatedFields[e].isValid(t)&&(delete s[e],this.setState({errors:s}))}),150)),Ie(this,"handleFormChange",(({event:e,formData:t})=>{const s=e.target.name,i=t;this.checkFieldValidity(s,i[s]),this.checkMatchingPattern(null!=i.match?i.match:Te.match,null!=i.exclude?i.exclude:Te.exclude,null!=i.check?i.check:""),this.setState({isFormChanged:!0})})),Ie(this,"handleFormSubmit",(async()=>{const{errors:e,isValid:t}=this.validateForm();if(this.setState({isSubmitting:!0}),t){const e=this.state.currentlyEditingRule,t=this.getAmendedFormData();null!=t&&this.state.isFormChanged&&(null!==e&&e!==Te&&null!=e._id&&await we.removeFeedMonitor(e._id),await we.addRule(t)),null!=this.formRef&&this.formRef.resetForm(),this.setState({currentlyEditingRule:null})}else this.setState({errors:e});this.setState({isSubmitting:!1})})),Ie(this,"handleAddRuleClick",(()=>{this.setState({currentlyEditingRule:Te})})),this.state={errors:{},isSubmitting:!1,isFormChanged:!1,currentlyEditingRule:null,doesPatternMatchTest:!1}}getAmendedFormData(){if(null==this.formRef)return null;const e=this.formRef.getFormData();if(null==e)return null;const t=[e.feedID||""];return delete e.feedID,delete e.check,Pe(Pe(Pe({},Te),e),{},{feedIDs:t},null!=e.tags?{tags:e.tags.split(",")}:{tags:[]})}getModifyRuleForm(e){var t;const{doesPatternMatchTest:s,currentlyEditingRule:r}=this.state,{feeds:n}=ve;return(0,i.jsxs)(c.y1,{children:[(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.fE,{id:"label",label:this.props.intl.formatMessage({id:"feeds.label"}),defaultValue:e.label}),(0,i.jsx)(c.Ph,{disabled:!n.length,id:"feedID",label:this.props.intl.formatMessage({id:"feeds.applicable.feed"}),defaultID:null===(t=e.feedIDs)||void 0===t?void 0:t[0],children:0===n.length?[(0,i.jsx)(c.Ql,{id:"placeholder",placeholder:!0,children:(0,i.jsx)("em",{children:(0,i.jsx)(o.FormattedMessage,{id:"feeds.no.feeds.available"})})},"empty")]:n.reduce(((e,t)=>e.concat((0,i.jsx)(c.Ql,{id:`${t._id}`,children:t.label},t._id))),[(0,i.jsx)(c.Ql,{id:"placeholder",placeholder:!0,children:(0,i.jsx)("em",{children:(0,i.jsx)(o.FormattedMessage,{id:"feeds.select.feed"})})},"select-feed")])})]}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.fE,{id:"match",label:this.props.intl.formatMessage({id:"feeds.match.pattern"}),placeholder:this.props.intl.formatMessage(Ee.regEx),defaultValue:e.match,width:"three-eighths"}),(0,i.jsx)(c.fE,{id:"exclude",label:this.props.intl.formatMessage({id:"feeds.exclude.pattern"}),placeholder:this.props.intl.formatMessage(Ee.regEx),defaultValue:e.exclude,width:"three-eighths"})]}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.fE,{addonPlacement:"after",id:"check",label:this.props.intl.formatMessage({id:"feeds.test.match"}),placeholder:this.props.intl.formatMessage(Ee.check),children:s&&(0,i.jsx)(c.G5,{children:(0,i.jsx)(me.Z,{})})})}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.U2,{children:(0,i.jsx)(D,{id:"destination",label:this.props.intl.formatMessage({id:"feeds.torrent.destination"}),selectable:"directories",suggested:e.destination,showBasePathToggle:!0})}),(0,i.jsx)(V,{id:"tags",label:this.props.intl.formatMessage({id:"feeds.apply.tags"}),placeholder:this.props.intl.formatMessage(Ee.tags),defaultValue:e.tags})]}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)("br",{}),(0,i.jsx)(c.XZ,{id:"startOnLoad",checked:e.startOnLoad,matchTextboxHeight:!0,children:(0,i.jsx)(o.FormattedMessage,{id:"feeds.start.on.load"})}),(0,i.jsx)(c.zx,{onClick:()=>this.setState({currentlyEditingRule:null}),children:(0,i.jsx)(o.FormattedMessage,{id:"button.cancel"})}),(0,i.jsx)(c.zx,{type:"submit",isLoading:this.state.isSubmitting,children:(0,i.jsx)(o.FormattedMessage,{id:"button.save.feed"})})]})]},null==r?"default":r._id)}getRulesListItem(e){const t=e.count||0;let s=null,r=null;if(e.exclude&&(s=(0,i.jsxs)("li",{className:"interactive-list__detail-list__item interactive-list__detail interactive-list__detail--tertiary",children:[(0,i.jsx)(o.FormattedMessage,{id:"feeds.exclude"}),": ",e.exclude]})),e.tags&&e.tags.length>0){const t=e.tags.map((e=>(0,i.jsx)("span",{className:"tag",children:e},e)));r=(0,i.jsxs)("li",{className:"interactive-list__detail-list__item interactive-list__detail interactive-list__detail--tertiary",children:[(0,i.jsx)(o.FormattedMessage,{id:"feeds.tags"}),": ",t]})}return(0,i.jsxs)("li",{className:"interactive-list__item interactive-list__item--stacked-content",children:[(0,i.jsxs)("div",{className:"interactive-list__label",children:[(0,i.jsxs)("ul",{className:"interactive-list__detail-list",children:[(0,i.jsx)("li",{className:"interactive-list__detail-list__item interactive-list__detail--primary",children:e.label}),(0,i.jsx)("li",{className:"interactive-list__detail-list__item interactive-list__detail-list__item--overflow interactive-list__detail interactive-list__detail--secondary",children:(0,i.jsx)(o.FormattedMessage,{id:"feeds.match.count",values:{count:t}})}),e===this.state.currentlyEditingRule&&(0,i.jsx)("li",{className:"interactive-list__detail-list__item interactive-list__detail--primary",children:"Modifying"})]}),(0,i.jsxs)("ul",{className:"interactive-list__detail-list",children:[(0,i.jsxs)("li",{className:"interactive-list__detail-list__item interactive-list__detail interactive-list__detail--tertiary",style:{maxWidth:"50%",overflow:"hidden",textOverflow:"ellipsis"},children:[(0,i.jsx)(o.FormattedMessage,{id:"feeds.match"}),": ",e.match]}),(0,i.jsx)("div",{style:{width:"100%"}}),s,r]})]}),(0,i.jsx)("span",{className:"interactive-list__icon interactive-list__icon--action",onClick:()=>this.handleModifyRuleClick(e),children:(0,i.jsx)(pe,{})}),(0,i.jsx)("span",{className:"interactive-list__icon interactive-list__icon--action interactive-list__icon--action--warning",onClick:()=>this.handleRemoveRuleClick(e),children:(0,i.jsx)(W.Z,{})})]},e._id)}getRulesList(){const{rules:e}=ve;if(0===e.length)return[(0,i.jsx)("ul",{className:"interactive-list",children:(0,i.jsx)("li",{className:"interactive-list__item",children:(0,i.jsx)(o.FormattedMessage,{id:"feeds.no.rules.defined"})})},"before-editing"),null];const t=e.map((e=>this.getRulesListItem(e)));if(null==this.state.currentlyEditingRule||this.state.currentlyEditingRule===Te)return[(0,i.jsx)("ul",{className:"interactive-list",children:t},"before-editing"),null];const s=e.indexOf(this.state.currentlyEditingRule);return[(0,i.jsx)("ul",{className:"interactive-list",children:t.slice(0,s+1)},"before-editing"),(0,i.jsx)("ul",{className:"interactive-list",children:t.slice(s+1)},"after-editing")]}handleRemoveRuleClick(e){null!=e._id&&we.removeFeedMonitor(e._id),e===this.state.currentlyEditingRule&&this.setState({currentlyEditingRule:null})}handleModifyRuleClick(e){this.setState({currentlyEditingRule:e})}checkMatchingPattern(e,t,s){let i=!1;if(ke(s)&&Fe(e)&&Fe(t)){const r=new RegExp(e,"gi").test(s),n=""!==t&&new RegExp(t,"gi").test(s);i=r&&!n}this.setState({doesPatternMatchTest:i})}validateForm(){const e=this.getAmendedFormData();if(null==e)return{isValid:!1};const t=Object.keys(this.validatedFields).reduce(((t,s)=>{const i=s,r="feedID"===i?e.feedIDs[0]:e[i];return this.validatedFields[i].isValid(r)||null==t||(t[i]=this.validatedFields[i].error),t}),{});return null==t?{isValid:!0}:{errors:t,isValid:!Object.keys(t).length}}render(){let e=null;null!=this.state.errors&&(e=Object.keys(this.state.errors).map((e=>{var t;const s=e;return null==(null===(t=this.state.errors)||void 0===t?void 0:t[s])?null:(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.Xq,{children:this.state.errors[s]})},s)})));const[t,s]=this.getRulesList();return(0,i.jsxs)(c.l0,{className:"inverse",onChange:this.handleFormChange,onSubmit:this.handleFormSubmit,ref:e=>{this.formRef=e},children:[(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"feeds.existing.rules"})}),e,null==s?(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.U2,{children:t})}):(0,i.jsxs)(c.y1,{children:[(0,i.jsx)(c.p7,{children:t}),this.getModifyRuleForm(this.state.currentlyEditingRule),(0,i.jsx)(c.p7,{children:s})]}),this.state.currentlyEditingRule&&null==s?this.getModifyRuleForm(this.state.currentlyEditingRule):(0,i.jsxs)(c.p7,{children:[(0,i.jsx)("br",{}),(0,i.jsx)(c.zx,{onClick:this.handleAddRuleClick,children:(0,i.jsx)(o.FormattedMessage,{id:"button.new"})})]})]})}})||De;const Le=(0,o.injectIntl)(Re);var Ve;function ze(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function Ue(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(s),!0).forEach((function(t){Ae(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):ze(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function Ae(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const $e=(0,o.defineMessages)({mustSpecifyURL:{id:"feeds.validation.must.specify.valid.feed.url"},mustSpecifyLabel:{id:"feeds.validation.must.specify.label"},intervalNotPositive:{id:"feeds.validation.interval.not.positive"},min:{id:"feeds.time.min"},hr:{id:"feeds.time.hr"},day:{id:"feeds.time.day"},url:{id:"feeds.url"},label:{id:"feeds.label"},interval:{id:"feeds.interval"},tags:{id:"feeds.tags"},search:{id:"feeds.search"}}),He=[{message:$e.min,value:1},{message:$e.hr,value:60},{message:$e.day,value:1440}],Be={label:"",interval:5,url:""};let Xe=(0,a.Pi)(Ve=class extends d.Component{constructor(e){super(e),Ae(this,"formRef",null),Ae(this,"manualAddingFormRef",null),Ae(this,"validatedFields",{url:{isValid:Ne,error:this.props.intl.formatMessage($e.mustSpecifyURL)},label:{isValid:ke,error:this.props.intl.formatMessage($e.mustSpecifyLabel)},interval:{isValid:Oe,error:this.props.intl.formatMessage($e.intervalNotPositive)}}),Ae(this,"checkFieldValidity",ue()(((e,t)=>{const{errors:s}=this.state;null!=s&&s[e]&&this.validatedFields[e].isValid(t)&&(delete s[e],this.setState({errors:s}))}),150)),Ae(this,"handleFormSubmit",(()=>{const{errors:e,isValid:t}=this.validateForm();if(t){const e=this.state.currentlyEditingFeed,t=this.getAmendedFormData();null!=t&&(e===Be?we.addFeed(t):null!=(null==e?void 0:e._id)&&we.modifyFeed(e._id,t)),null!=this.formRef&&this.formRef.resetForm(),this.setState({currentlyEditingFeed:null})}else this.setState({errors:e})})),Ae(this,"handleFormChange",(({event:e,formData:t})=>{const s=e.target.name,i=t;this.checkFieldValidity(s,i[s])})),Ae(this,"handleRemoveFeedClick",(e=>{null!=e._id&&we.removeFeedMonitor(e._id),e===this.state.currentlyEditingFeed&&this.setState({currentlyEditingFeed:null})})),Ae(this,"handleAddFeedClick",(()=>{this.setState({currentlyEditingFeed:Be})})),Ae(this,"handleModifyFeedClick",(e=>{this.setState({currentlyEditingFeed:e})})),Ae(this,"handleBrowseFeedChange",(e=>{const t=e.formData;"checkbox"!==e.event.target.type&&(this.setState({selectedFeedID:t.feedID}),we.fetchItems({id:t.feedID,search:t.search}))})),Ae(this,"handleBrowseFeedSubmit",(()=>{if(null==this.manualAddingFormRef)return;const e=this.manualAddingFormRef.getFormData(),t=ve.items.filter(((t,s)=>e[s])).map(((e,t)=>({id:t,value:e.urls[0]})));h.Z.displayModal({id:"add-torrents",initialURLs:t})})),Ae(this,"renderSearchField",(()=>{const{selectedFeedID:e}=this.state;return null==e?null:(0,i.jsx)(c.fE,{id:"search",label:this.props.intl.formatMessage({id:"feeds.search.term"}),placeholder:this.props.intl.formatMessage($e.search)})})),Ae(this,"renderDownloadButton",(()=>{const{selectedFeedID:e}=this.state;return null==e?null:(0,i.jsx)(c.zx,{type:"submit",labelOffset:!0,children:(0,i.jsx)(o.FormattedMessage,{id:"button.download"})},"button")})),this.state={errors:{},currentlyEditingFeed:null,selectedFeedID:null}}getAmendedFormData(){if(null==this.formRef)return null;const e=this.formRef.getFormData(),{url:t,label:s}=e;if(null==t||null==s)return null;let{interval:i}=Be;return null!=e.interval&&null!=e.intervalMultiplier&&(i=e.interval*e.intervalMultiplier),{url:t,label:s,interval:i}}getIntervalSelectOptions(){return He.map((e=>(0,i.jsx)(c.Ql,{id:e.value,children:this.props.intl.formatMessage(e.message)},e.value)))}getModifyFeedForm(e){const t=e.interval||Be.interval;let s=t,r=1;return He.forEach((e=>{const i=e.value;t%i==0&&(s=t/i,r=i)})),(0,i.jsxs)(c.y1,{children:[(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.fE,{id:"label",label:this.props.intl.formatMessage($e.label),placeholder:this.props.intl.formatMessage($e.label),defaultValue:e.label}),(0,i.jsx)(c.fE,{id:"interval",label:this.props.intl.formatMessage({id:"feeds.select.interval"}),placeholder:this.props.intl.formatMessage($e.interval),defaultValue:s,width:"one-eighth"}),(0,i.jsx)(c.Ph,{labelOffset:!0,defaultID:r,id:"intervalMultiplier",width:"one-eighth",children:this.getIntervalSelectOptions()})]}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.fE,{id:"url",label:this.props.intl.formatMessage({id:"feeds.url"}),placeholder:this.props.intl.formatMessage($e.url),defaultValue:e.url}),(0,i.jsx)(c.zx,{labelOffset:!0,onClick:()=>this.setState({currentlyEditingFeed:null}),children:(0,i.jsx)(o.FormattedMessage,{id:"button.cancel"})}),(0,i.jsx)(c.zx,{labelOffset:!0,type:"submit",children:(0,i.jsx)(o.FormattedMessage,{id:"button.save.feed"})})]})]})}getFeedsListItem(e){const{intl:t}=this.props,s=e.count||0;let r=`${e.interval}`,n=He[0].message;return He.forEach((t=>{e.interval%t.value==0&&(r=""+e.interval/t.value,n=t.message)})),(0,i.jsxs)("li",{className:"interactive-list__item interactive-list__item--stacked-content feed-list__feed",children:[(0,i.jsxs)("div",{className:"interactive-list__label",children:[(0,i.jsxs)("ul",{className:"interactive-list__detail-list",children:[(0,i.jsx)("li",{className:"interactive-list__detail-list__item interactive-list__detail--primary",children:e.label}),(0,i.jsx)("li",{className:"interactive-list__detail-list__item interactive-list__detail-list__item--overflow interactive-list__detail interactive-list__detail--secondary",children:(0,i.jsx)(o.FormattedMessage,{id:"feeds.match.count",values:{count:s}})}),e===this.state.currentlyEditingFeed&&(0,i.jsx)("li",{className:"interactive-list__detail-list__item interactive-list__detail--primary",children:"Modifying"})]}),(0,i.jsxs)("ul",{className:"interactive-list__detail-list",children:[(0,i.jsx)("li",{className:"interactive-list__detail-list__item interactive-list__detail interactive-list__detail--tertiary",children:`${r} ${t.formatMessage(n)}`}),(0,i.jsx)("li",{className:"interactive-list__detail-list__item interactive-list__detail-list__item--overflow interactive-list__detail interactive-list__detail--tertiary",children:(0,i.jsx)("a",{href:e.url,rel:"noopener noreferrer",target:"_blank",children:e.url})})]})]}),(0,i.jsx)("span",{className:"interactive-list__icon interactive-list__icon--action",onClick:()=>this.handleModifyFeedClick(e),children:(0,i.jsx)(pe,{})}),(0,i.jsx)("span",{className:"interactive-list__icon interactive-list__icon--action interactive-list__icon--action--warning",onClick:()=>this.handleRemoveFeedClick(e),children:(0,i.jsx)(W.Z,{})})]},e._id)}getFeedAddForm(e){return(0,i.jsxs)(c.l0,{className:"inverse",onChange:this.handleFormChange,onSubmit:this.handleFormSubmit,ref:e=>{this.formRef=e},children:[(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"feeds.existing.feeds"})}),e,(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.U2,{children:this.getFeedsList()})}),this.state.currentlyEditingFeed?this.getModifyFeedForm(this.state.currentlyEditingFeed):(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.U2,{width:"auto",children:null}),(0,i.jsx)(c.zx,{onClick:()=>this.handleAddFeedClick(),children:(0,i.jsx)(o.FormattedMessage,{id:"button.new"})})]})]})}getFeedsList(){const{feeds:e}=ve;if(0===e.length)return(0,i.jsx)("ul",{className:"interactive-list",children:(0,i.jsx)("li",{className:"interactive-list__item",children:(0,i.jsx)(o.FormattedMessage,{id:"feeds.no.feeds.defined"})})});const t=e.map((e=>this.getFeedsListItem(e)));return(0,i.jsx)("ul",{className:"interactive-list feed-list",children:t})}getFeedItemsForm(){const{feeds:e,items:t}=ve,s=[];if(this.state.selectedFeedID){const e={};t.forEach(((t,r)=>{let{title:n}=t;const a=e[n];null==a?e[n]=2:(n=`${n} #${a}`,e[n]+=1),s.push((0,i.jsxs)("li",{className:"interactive-list__item interactive-list__item--stacked-content feed-list__feed",children:[(0,i.jsx)("div",{className:"interactive-list__label feed-list__feed-label",children:n}),(0,i.jsx)(c.XZ,{id:`${r}`})]},n))}))}return(0,i.jsxs)(c.l0,{className:"inverse",onChange:this.handleBrowseFeedChange,onSubmit:this.handleBrowseFeedSubmit,ref:e=>{this.manualAddingFormRef=e},children:[(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"feeds.browse.feeds"})}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.Ph,{disabled:!e.length,grow:!1,id:"feedID",label:this.props.intl.formatMessage({id:"feeds.select.feed"}),width:"three-eighths",children:e.length?e.reduce(((e,t)=>null==t._id?e:e.concat((0,i.jsx)(c.Ql,{id:t._id,children:t.label},t._id))),[(0,i.jsx)(c.Ql,{id:"placeholder",placeholder:!0,children:(0,i.jsx)("em",{children:(0,i.jsx)(o.FormattedMessage,{id:"feeds.select.feed"})})},"select-feed")]):[(0,i.jsx)(c.Ql,{id:"placeholder",placeholder:!0,children:(0,i.jsx)("em",{children:(0,i.jsx)(o.FormattedMessage,{id:"feeds.no.feeds.available"})})},"empty")]}),this.renderSearchField(),this.renderDownloadButton()]}),this.state.selectedFeedID?(0,i.jsx)(c.p7,{children:0===s.length?(0,i.jsx)("ul",{className:"interactive-list",children:(0,i.jsx)("li",{className:"interactive-list__item",children:(0,i.jsx)("div",{className:"interactive-list__label",children:(0,i.jsx)(o.FormattedMessage,{id:"feeds.no.items.matching"})})})}):(0,i.jsx)("ul",{className:"interactive-list feed-list",children:s})}):null]})}validateForm(){if(null==this.formRef)return{isValid:!1};const e=this.formRef.getFormData(),t=Object.keys(this.validatedFields).reduce(((t,s)=>{const i=s,r=`${e[i]}`;return Ue(Ue({},t),this.validatedFields[i].isValid(r)||null==t?{}:{fieldName:this.validatedFields[i].error})}),{});return null==t?{isValid:!0}:{errors:t,isValid:!Object.keys(t).length}}render(){let e=null;return null!=this.state.errors&&(e=Object.keys(this.state.errors).map((e=>{var t;const s=e;return null==(null===(t=this.state.errors)||void 0===t?void 0:t[s])?null:(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.Xq,{children:this.state.errors[s]})},s)}))),(0,i.jsxs)("div",{children:[this.getFeedAddForm(e),this.getFeedItemsForm()]})}})||Ve;const Ge=(0,o.injectIntl)(Xe);class Qe extends d.Component{componentDidMount(){we.fetchFeedMonitors()}render(){const e={feeds:{content:Ge,props:{feedStore:ve},label:this.props.intl.formatMessage({id:"feeds.tabs.feeds"})},downloadRules:{content:Le,props:{feedStore:ve},label:this.props.intl.formatMessage({id:"feeds.tabs.download.rules"})}};return(0,i.jsx)(de,{heading:this.props.intl.formatMessage({id:"feeds.tabs.heading"}),orientation:"horizontal",size:"large",tabs:e})}}const We=(0,o.injectIntl)(Qe);var qe=s(6739);const Ye=e=>{const t=e[0];if(!e.some((e=>!e.includes(t))))return t},Je=()=>{const e=(0,o.useIntl)(),[t,s]=(0,d.useState)(!1);return(0,i.jsx)(de,{heading:e.formatMessage({id:"torrents.move.heading"}),content:(0,i.jsx)("div",{className:"modal__content",children:(0,i.jsxs)(c.l0,{className:"inverse",onSubmit:({formData:e})=>{const t=qe.Z.selectedTorrents;t.length>0&&(s(!0),B.Z.moveTorrents({hashes:t,destination:e.destination,isBasePath:e.isBasePath,moveFiles:e.moveFiles,isCheckHash:e.isCheckHash}).then((()=>{X.Z.dismissModal(),s(!1)})))},children:[(0,i.jsx)(D,{id:"destination",selectable:"directories",suggested:Ye(qe.Z.selectedTorrents.map((e=>qe.Z.torrents[e].directory))),showBasePathToggle:!0}),(0,i.jsx)(g,{actions:[{checked:!0,content:e.formatMessage({id:"torrents.move.data.label"}),id:"moveFiles",type:"checkbox"},{checked:!1,content:e.formatMessage({id:"torrents.move.check_hash.label"}),id:"isCheckHash",type:"checkbox"},{content:e.formatMessage({id:"button.cancel"}),triggerDismiss:!0,type:"tertiary"},{content:e.formatMessage({id:"torrents.move.button.set.location"}),isLoading:t,submit:!0,type:"primary"}]})]})})})},Ke=()=>{const e=(0,o.useIntl)(),[t,s]=(0,d.useState)(!1),{selectedTorrents:r}=qe.Z;return 0===r.length?(0,i.jsx)(de,{heading:e.formatMessage({id:"torrents.remove"}),content:(0,i.jsx)("div",{className:"modal__content inverse",children:(0,i.jsx)(c.l0,{children:(0,i.jsx)(c.p7,{children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.remove.error.no.torrents.selected"})})})}),actions:[{clickHandler:null,content:e.formatMessage({id:"button.ok"}),triggerDismiss:!0,type:"primary"}]}):(0,i.jsx)(de,{heading:e.formatMessage({id:"torrents.remove"}),content:(0,i.jsx)("div",{className:"modal__content",children:(0,i.jsxs)(c.l0,{className:"inverse",onSubmit:({formData:e})=>{s(!0);const t=e.deleteData;B.Z.deleteTorrents({hashes:qe.Z.selectedTorrents,deleteData:t}).then((()=>{s(!1),(({deleteData:e})=>{null!=e&&Z.Z.saveSetting("deleteTorrentData",e)})({deleteData:t}),X.Z.dismissModal()}))},children:[(0,i.jsx)(c.p7,{children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.remove.are.you.sure",values:{count:r.length}})}),(0,i.jsx)(g,{actions:[{checked:u.Z.floodSettings.deleteTorrentData,content:e.formatMessage({id:"torrents.remove.delete.data"}),id:"deleteData",type:"checkbox"},{content:e.formatMessage({id:"button.no"}),triggerDismiss:!0,type:"tertiary"},{content:e.formatMessage({id:"button.yes"}),isLoading:t,submit:!0,type:"primary"}]})]})})})},et=()=>{const e=(0,d.useRef)(null),t=(0,o.useIntl)(),[s,r]=(0,d.useState)(!1);return(0,i.jsx)(de,{heading:t.formatMessage({id:"torrents.set.tags.heading"}),content:(0,i.jsx)("div",{className:"modal__content inverse",children:(0,i.jsx)(c.l0,{ref:e,children:(0,i.jsx)(c.p7,{children:(0,i.jsx)(V,{defaultValue:qe.Z.selectedTorrents.map((e=>qe.Z.torrents[e].tags))[0].slice(),id:"tags",placeholder:t.formatMessage({id:"torrents.set.tags.enter.tags"})})})})}),actions:[{content:t.formatMessage({id:"button.cancel"}),clickHandler:null,triggerDismiss:!0,type:"tertiary"},{content:t.formatMessage({id:"torrents.set.tags.button.set"}),clickHandler:()=>{if(null==e.current)return;const t=e.current.getFormData(),s=t.tags?t.tags.split(","):[];r(!0),B.Z.setTags({hashes:qe.Z.selectedTorrents,tags:s})},isLoading:s,triggerDismiss:!1,type:"primary"}]})};let tt;!function(e){e[e.HTTP=1]="HTTP",e[e.UDP=2]="UDP",e[e.DHT=3]="DHT"}(tt||(tt={}));const st=()=>{const e=(0,d.useRef)(null),t=(0,o.useIntl)(),[s,r]=(0,d.useState)(!1),[n,a]=(0,d.useState)({isLoadingTrackers:!0,trackerURLs:[]});return(0,d.useEffect)((()=>{B.Z.fetchTorrentTrackers(qe.Z.selectedTorrents[0]).then((e=>{null!=e&&a({isLoadingTrackers:!1,trackerURLs:e.filter((e=>e.type!==tt.DHT)).map((e=>e.url))})}))}),[]),(0,i.jsx)(de,{heading:t.formatMessage({id:"torrents.set.trackers.heading"}),content:(0,i.jsx)("div",{className:"modal__content inverse",children:(0,i.jsx)(c.l0,{ref:e,children:n.isLoadingTrackers?(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.fE,{id:"loading",placeholder:t.formatMessage({id:"torrents.set.trackers.loading.trackers"})})}):(0,i.jsx)(H,{id:"trackers",placeholder:t.formatMessage({id:"torrents.set.trackers.enter.tracker"}),defaultValues:0===n.trackerURLs.length?void 0:n.trackerURLs.map(((e,t)=>({id:t,value:e})))})})}),actions:[{clickHandler:null,content:t.formatMessage({id:"button.cancel"}),triggerDismiss:!0,type:"tertiary"},{clickHandler:()=>{if(null==e.current||s||n.isLoadingTrackers)return;r(!0);const t=e.current.getFormData(),i=A(t,"trackers").filter((e=>""!==e));B.Z.setTrackers({hashes:qe.Z.selectedTorrents,trackers:i}).then((()=>{r(!1),X.Z.dismissModal()}))},content:t.formatMessage({id:"torrents.set.trackers.button.set"}),isLoading:s||n.isLoadingTrackers,triggerDismiss:!1,type:"primary"}]})};var it=s(4829);const rt=JSON.parse('{"i8":"0.0.0-master.a99a64f"}'),nt=(0,d.lazy)((()=>s.e(443).then(s.t.bind(s,2138,23)).then((e=>({default:e.react}))))),at="https://github.com/jesec/flood",lt=()=>(0,i.jsx)(d.Suspense,{fallback:null,children:(0,i.jsx)(nt,{FloodVersion:()=>rt.i8,CommitBadge:()=>rt.i8.length>8?(0,i.jsx)("a",{href:at,children:(0,i.jsx)("img",{alt:"Latest version of rolling build",src:"https://img.shields.io/npm/v/@jesec/flood?label=HEAD"})}):(0,i.jsx)("a",{href:at,children:(0,i.jsx)("img",{alt:"Commits since user's version",src:`https://img.shields.io/github/commits-since/jesec/flood/v${rt.i8}`})})})});var ot,dt=s(2809),ct=s(8111),ht=s(2552),gt=s(2869);function ut(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}let mt=(0,a.Pi)(ot=class extends d.Component{constructor(e){super(e),ut(this,"formData",void 0),ut(this,"formRef",null),ut(this,"settingsFormRef",d.createRef()),ut(this,"handleFormChange",(({formData:e})=>{this.formData=e})),ut(this,"handleFormSubmit",(()=>{if(null!=this.formData&&null!=this.settingsFormRef.current)if(null==this.formData.username||""===this.formData.username)this.setState({addUserError:this.props.intl.formatMessage({id:"auth.error.username.empty"})});else if(null==this.formData.password||""===this.formData.password)this.setState({addUserError:this.props.intl.formatMessage({id:"auth.error.password.empty"})});else{this.setState({isAddingUser:!0});const e=this.settingsFormRef.current.getConnectionSettings();if(null==e)return void this.setState({addUserError:this.props.intl.formatMessage({id:"connection.settings.error.empty"}),isAddingUser:!1});ct.Z.createUser({username:this.formData.username,password:this.formData.password,client:e,level:!0===this.formData.isAdmin?dt.u.ADMINISTRATOR:dt.u.USER}).then(ct.Z.fetchUsers,(e=>{this.setState({addUserError:e.response.data.message,isAddingUser:!1})})).then((()=>{null!=this.formRef&&this.formRef.resetForm(),this.setState({addUserError:null,isAddingUser:!1})}))}})),this.state={addUserError:null,hasFetchedUserList:!1,isAddingUser:!1}}componentDidMount(){ht.Z.currentUser.isAdmin&&ct.Z.fetchUsers().then((()=>{this.setState({hasFetchedUserList:!0})}))}render(){const{addUserError:e,hasFetchedUserList:t}=this.state;if(!ht.Z.currentUser.isAdmin)return(0,i.jsxs)(c.l0,{children:[(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"auth.user.accounts"})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.Xq,{children:(0,i.jsx)(o.FormattedMessage,{id:"auth.message.not.admin"})})})]});const s=!t&&0===ht.Z.users.length,a=E()("interactive-list",{"interactive-list--loading":s});let l=null,d=null;return e&&(l=(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.Xq,{children:e})})),s&&(d=(0,i.jsx)(r.Z,{classNames:"interactive-list__loading-indicator",timeout:{enter:250,exit:250},children:(0,i.jsx)("div",{className:"interactive-list__loading-indicator",children:(0,i.jsx)(c.$z,{})},"loading-indicator")})),(0,i.jsxs)(c.l0,{onChange:this.handleFormChange,onSubmit:this.handleFormSubmit,ref:e=>{this.formRef=e},children:[(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"auth.user.accounts"})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.U2,{children:(0,i.jsxs)("ul",{className:a,children:[(0,i.jsx)(n.Z,{children:d}),ht.Z.users.slice().sort(((e,t)=>e.username.localeCompare(t.username))).map((e=>{const t=e.username===ht.Z.currentUser.username;let s=null,r=null;t?s=(0,i.jsx)("span",{className:"interactive-list__label__tag tag",children:(0,i.jsx)(o.FormattedMessage,{id:"auth.current.user"})}):r=(0,i.jsx)("span",{className:"interactive-list__icon interactive-list__icon--action interactive-list__icon--action--warning",onClick:()=>ct.Z.deleteUser(e.username).then(ct.Z.fetchUsers),children:(0,i.jsx)(W.Z,{})});const n=E()("interactive-list__item",{"interactive-list__item--disabled":t});return(0,i.jsxs)("li",{className:n,children:[(0,i.jsxs)("span",{className:"interactive-list__label",children:[(0,i.jsx)("div",{className:"interactive-list__label__text",children:e.username}),s]}),r]},e.username)}))]})})}),(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"auth.add.user"})}),l,(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.fE,{id:"username",label:(0,i.jsx)(o.FormattedMessage,{id:"auth.username"}),placeholder:this.props.intl.formatMessage({id:"auth.username"}),autoComplete:"username"}),(0,i.jsx)(c.fE,{id:"password",label:(0,i.jsx)(o.FormattedMessage,{id:"auth.password"}),placeholder:this.props.intl.formatMessage({id:"auth.password"}),autoComplete:"new-password"}),(0,i.jsx)(c.XZ,{grow:!1,id:"isAdmin",labelOffset:!0,matchTextboxHeight:!0,children:(0,i.jsx)(o.FormattedMessage,{id:"auth.admin"})})]}),(0,i.jsx)(gt.Z,{ref:this.settingsFormRef}),(0,i.jsx)("p",{}),(0,i.jsx)(c.p7,{justify:"end",children:(0,i.jsx)(c.zx,{isLoading:this.state.isAddingUser,priority:"primary",type:"submit",children:(0,i.jsx)(o.FormattedMessage,{id:"button.add"})})})]})}})||ot;const pt=(0,o.injectIntl)(mt);function ft(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function xt(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(s),!0).forEach((function(t){jt(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):ft(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function jt(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class _t extends d.Component{constructor(e){super(e),this.state={changedClientSettings:{}}}getChangedClientSetting(e){var t;return null!=this.state.changedClientSettings[e]?this.state.changedClientSettings[e]:null===(t=u.Z.clientSettings)||void 0===t?void 0:t[e]}handleClientSettingChange(e){const t=e.target,s=t.name,{value:i,type:r,checked:n}=t;let a={};a="checkbox"===r?{[s]:n}:{[s]:i},this.setState((e=>({changedClientSettings:xt(xt({},e.changedClientSettings),{},{changedClientSetting:a})}))),this.props.onClientSettingsChange(a)}}const bt=_t;const vt=e=>{if(e&&0!==e.length)return e.join(", ")},yt=(e="")=>""===e?[]:e.replace(/\s/g,"").split(",").map((e=>Number(e)));class Mt extends bt{constructor(...e){var t,s,i;super(...e),i=({event:e,formData:t})=>{const s=e.target;"dropdownPresetDownload"!==s.name&&"dropdownPresetUpload"!==s.name?this.handleClientSettingChange(e):this.props.onSettingsChange({speedLimits:{download:yt(t.dropdownPresetDownload),upload:yt(t.dropdownPresetUpload)}})},(s="handleFormChange")in(t=this)?Object.defineProperty(t,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[s]=i}render(){return(0,i.jsxs)(c.l0,{onChange:this.handleFormChange,children:[(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"settings.bandwidth.transferrate.heading"})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.fE,{defaultValue:null!=u.Z.floodSettings.speedLimits?vt(u.Z.floodSettings.speedLimits.download):0,label:(0,i.jsx)(o.FormattedMessage,{id:"settings.bandwidth.transferrate.dropdown.preset.download.label"}),id:"dropdownPresetDownload"})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.fE,{defaultValue:null!=u.Z.floodSettings.speedLimits?vt(u.Z.floodSettings.speedLimits.upload):0,label:(0,i.jsx)(o.FormattedMessage,{id:"settings.bandwidth.transferrate.dropdown.preset.upload.label"}),id:"dropdownPresetUpload"})}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("throttleGlobalDownSpeed"),label:(0,i.jsx)(o.FormattedMessage,{id:"settings.bandwidth.transferrate.global.throttle.download"}),id:"throttleGlobalDownSpeed"}),(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("throttleGlobalUpSpeed"),label:(0,i.jsx)(o.FormattedMessage,{id:"settings.bandwidth.transferrate.global.throttle.upload"}),id:"throttleGlobalUpSpeed"})]}),(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"settings.bandwidth.slots.heading"})}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("throttleMaxUploads"),label:(0,i.jsx)(o.FormattedMessage,{id:"settings.bandwidth.slots.upload.label"}),id:"throttleMaxUploads"}),(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("throttleMaxUploadsGlobal"),label:(0,i.jsx)(o.FormattedMessage,{id:"settings.bandwidth.slots.upload.global.label"}),id:"throttleMaxUploadsGlobal"})]}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("throttleMaxDownloads"),label:(0,i.jsx)(o.FormattedMessage,{id:"settings.bandwidth.slots.download.label"}),id:"throttleMaxDownloads"}),(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("throttleMaxDownloadsGlobal"),label:(0,i.jsx)(o.FormattedMessage,{id:"settings.bandwidth.slots.download.global.label"}),id:"throttleMaxDownloadsGlobal"})]})]})}}class wt extends bt{render(){return(0,i.jsxs)(c.l0,{onChange:({event:e})=>this.handleClientSettingChange(e),children:[(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.incoming.heading"})}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("networkPortRange"),id:"networkPortRange",label:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.port.range.label"}),width:"one-quarter"}),(0,i.jsx)(c.XZ,{checked:this.getChangedClientSetting("networkPortRandom"),grow:!1,id:"networkPortRandom",labelOffset:!0,matchTextboxHeight:!0,children:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.port.randomize.label"})}),(0,i.jsx)(c.XZ,{checked:this.getChangedClientSetting("networkPortOpen"),grow:!1,id:"networkPortOpen",labelOffset:!0,matchTextboxHeight:!0,children:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.port.open.label"})})]}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("networkLocalAddress"),id:"networkLocalAddress",label:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.ip.hostname.label"})}),(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("networkHttpMaxOpen"),id:"networkHttpMaxOpen",label:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.max.http.connections"})})]}),(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.dpd.heading"})}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("dhtPort"),id:"dhtPort",label:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.dht.port.label"}),width:"one-quarter"}),(0,i.jsx)(c.XZ,{checked:this.getChangedClientSetting("dht"),grow:!1,id:"dht",labelOffset:!0,matchTextboxHeight:!0,children:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.dht.label"})}),(0,i.jsx)(c.XZ,{checked:this.getChangedClientSetting("protocolPex"),grow:!1,id:"protocolPex",labelOffset:!0,matchTextboxHeight:!0,children:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.peer.exchange.label"})})]}),(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.peers.heading"})}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("throttleMinPeersNormal"),id:"throttleMinPeersNormal",label:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.peers.min.label"})}),(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("throttleMaxPeersNormal"),id:"throttleMaxPeersNormal",label:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.peers.max.label"})})]}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("throttleMinPeersSeed"),id:"throttleMinPeersSeed",label:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.peers.seeding.min.label"})}),(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("throttleMaxPeersSeed"),id:"throttleMaxPeersSeed",label:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.peers.seeding.max.label"})})]}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("trackersNumWant"),id:"trackersNumWant",label:(0,i.jsx)(o.FormattedMessage,{id:"settings.connectivity.peers.desired.label"}),width:"one-half"})})]})}}var St=s(5181),Ct=s(8826),kt=s(4560),Ft=s(5355),Nt=s(4785),Ot=s(9242),Dt=s.n(Ot),Zt=s(6408),Pt=s(8367);const It=Dt()([(0,Nt.DragSource)("globally-draggable-item",{beginDrag:({list:e,id:t,index:s,isVisible:i})=>({list:e,id:t,index:s,isVisible:i}),canDrag:({isLocked:e,isDraggable:t})=>null!=t?t:!e},((e,t)=>({connectDragPreview:e.dragPreview(),connectDragSource:e.dragSource(),isDragging:t.isDragging()}))),(0,Nt.DropTarget)("globally-draggable-item",{drop({onDrop:e}){e&&e()},hover(e,t){const s=t.getItem();e.isLocked||s.index===e.index||s.list===e.list&&(e.onMove(s.index,e.index),s.index=e.index)}},(e=>({connectDropTarget:e.dropTarget()})))])((e=>{const{children:t,isDragging:s,isLocked:r,connectDragPreview:n,connectDragSource:a,connectDropTarget:l}=e;(0,d.useEffect)((()=>{n((0,Zt.r)(),{captureDraggingState:!0})}));let o=null;r&&(o=(0,i.jsx)(Pt.Z,{}));const c=E()("sortable-list__item",{"sortable-list__item--is-dragging":s,"sortable-list__item--is-locked":r});return a(l((0,i.jsxs)("div",{className:c,children:[o,t]})))}));function Et(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class Tt extends d.Component{constructor(e){super(e),Et(this,"sortableListRef",null),Et(this,"handleDrop",(()=>{const{onDrop:e}=this.props;e&&e(this.state.items)})),Et(this,"handleMouseDown",(e=>{const{onMouseDown:t}=this.props;t&&t(e)})),Et(this,"handleMove",((e,t)=>{const{onMove:s}=this.props,{items:i}=this.state,r=i[e];i.splice(e,1),i.splice(t,0,r),this.setState({items:i}),s&&s(i)})),this.state={items:e.items}}static getDerivedStateFromProps(e){return{items:e.items}}getItemList(){const{handleDrop:e,handleMove:t,state:{items:s},props:{id:r,lockedIDs:n,isDraggable:a,renderItem:l}}=this;return s.map(((s,o)=>{const{id:d,visible:c}=s;return(0,i.jsx)(It,{list:r,id:d,index:o,isLocked:n.includes(d),isDraggable:a,isVisible:c,onDrop:e,onMove:t,children:l(s,o)},d)}))}render(){const{className:e}=this.props,t=E()("sortable-list",e);return(0,i.jsx)(kt.WG,{options:Ft.Z,children:(0,i.jsx)("ul",{className:t,onMouseDown:this.handleMouseDown,ref:e=>{this.sortableListRef=e},children:this.getItemList()})})}}const Rt=(0,o.injectIntl)(Tt);function Lt(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function Vt(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(s),!0).forEach((function(t){zt(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Lt(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function zt(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class Ut extends d.Component{constructor(e){super(e),zt(this,"updateSettings",(e=>{this.props.onSettingsChange({mountPoints:e.filter((e=>e.visible)).map((e=>e.id))})})),zt(this,"handleCheckboxValueChange",((e,t)=>{const{diskItems:s}=this.state,i=s.map((s=>s.id===e?Vt(Vt({},s),{},{visible:t}):s));this.setState({diskItems:i}),this.updateSettings(i)})),zt(this,"handleMouseDown",(()=>{})),zt(this,"handleMove",(e=>{this.setState({diskItems:e}),this.updateSettings(e)})),zt(this,"renderItem",(e=>{const{id:t,visible:s}=e,r=(0,i.jsx)("span",{className:"sortable-list__content sortable-list__content--secondary",children:(0,i.jsx)(c.XZ,{checked:s,onChange:e=>this.handleCheckboxValueChange(t,e.target.checked),children:(0,i.jsx)(o.FormattedMessage,{id:"settings.diskusage.show"})})});return(0,i.jsxs)("div",{className:"sortable-list__content sortable-list__content__wrapper",children:[(0,i.jsx)("span",{className:"sortable-list__content sortable-list__content--primary",children:(0,i.jsx)("div",{children:t})}),r]})}));const{mountPoints:t}=u.Z.floodSettings,s=Object.assign({},...Ct.Z.disks.map((e=>({[e.target]:e})))),r=t.filter((e=>e in s)).map((e=>({id:e,visible:!0}))).concat(Object.keys(s).filter((e=>!t.includes(e))).map((e=>({id:e,visible:!1}))));this.state={diskItems:r}}render(){const{diskItems:e}=this.state;return(0,i.jsx)(Rt,{id:"disks",className:"sortable-list--disks",items:e.slice(),lockedIDs:[],onMouseDown:this.handleMouseDown,onDrop:this.handleMove,renderItem:this.renderItem})}}const At=Ut,$t=e=>(0,i.jsxs)(c.l0,{children:[(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"settings.diskusage.mount.points"})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(At,{onSettingsChange:e.onSettingsChange})})]});class Ht extends bt{render(){return(0,i.jsxs)(c.l0,{onChange:({event:e})=>this.handleClientSettingChange(e),children:[(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"settings.resources.disk.heading"})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("directoryDefault"),id:"directoryDefault",label:(0,i.jsx)(o.FormattedMessage,{id:"settings.resources.disk.download.location.label"})})}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("networkMaxOpenFiles"),id:"networkMaxOpenFiles",label:(0,i.jsx)(o.FormattedMessage,{id:"settings.resources.max.open.files"}),width:"one-half"}),(0,i.jsx)(c.XZ,{checked:this.getChangedClientSetting("piecesHashOnCompletion"),grow:!1,id:"piecesHashOnCompletion",labelOffset:!0,matchTextboxHeight:!0,children:(0,i.jsx)(o.FormattedMessage,{id:"settings.resources.disk.check.hash.label"})})]}),(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"settings.resources.memory.heading"})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.fE,{defaultValue:this.getChangedClientSetting("piecesMemoryMax"),id:"piecesMemoryMax",label:(0,i.jsxs)("div",{children:[(0,i.jsx)(o.FormattedMessage,{id:"settings.resources.memory.max.label"})," ",(0,i.jsx)("em",{className:"unit",children:"(MB)"})]}),width:"one-half"})})]})}}var Bt=s(7731),Xt=s(8737);function Gt(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const Qt=["start","stop","setTaxonomy","torrentDetails"];class Wt extends d.Component{constructor(e){super(e),Gt(this,"tooltipRef",null),Gt(this,"updateSettings",(e=>{this.props.onSettingsChange({torrentContextMenuActions:e})})),Gt(this,"handleCheckboxValueChange",((e,t)=>{let{torrentContextMenuActions:s}=this.state;s=s.map((s=>({id:s.id,visible:s.id===e?t:s.visible}))),this.props.onSettingsChange({torrentContextMenuActions:s}),this.setState({torrentContextMenuActions:s})})),Gt(this,"handleMouseDown",(()=>{null!=this.tooltipRef&&this.tooltipRef.dismissTooltip()})),Gt(this,"handleMove",(()=>{})),Gt(this,"renderItem",(e=>{const{id:t,visible:s}=e;let r=null;Qt.includes(t)||(r=(0,i.jsx)("span",{className:"sortable-list__content sortable-list__content--secondary",children:(0,i.jsx)(c.XZ,{checked:s,onChange:e=>this.handleCheckboxValueChange(t,e.target.checked),children:(0,i.jsx)(o.FormattedMessage,{id:"settings.ui.torrent.context.menu.items.show"})})}));return(0,i.jsxs)("div",{className:"sortable-list__content sortable-list__content__wrapper",children:[(0,i.jsx)("span",{className:"sortable-list__content sortable-list__content--primary",children:(0,i.jsx)(o.FormattedMessage,{id:Xt.Z[t].id})}),r]})})),this.state={torrentContextMenuActions:u.Z.floodSettings.torrentContextMenuActions}}render(){const e=Object.keys(Xt.Z).map((e=>({id:e,visible:this.state.torrentContextMenuActions.some((t=>t.id===e&&t.visible))})));return(0,i.jsx)(Rt,{id:"torrent-context-menu-items",className:"sortable-list--torrent-context-menu-items",items:e,lockedIDs:Qt,isDraggable:!1,onMouseDown:this.handleMouseDown,onDrop:this.handleMove,renderItem:this.renderItem})}}const qt=Wt;var Yt=s(4991),Jt=s(9097),Kt=s(882);function es(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class ts extends d.Component{constructor(e){super(e),es(this,"tooltipRef",null),es(this,"handleCheckboxValueChange",((e,t)=>{const{torrentListColumns:s}=this.state,i=s.map((s=>({id:s.id,visible:s.id===e?t:s.visible})));this.props.onSettingsChange({torrentListColumns:i}),this.setState({torrentListColumns:i})})),es(this,"handleMouseDown",(()=>{null!=this.tooltipRef&&this.tooltipRef.dismissTooltip()})),es(this,"handleMove",(e=>{const t=e.slice();this.setState({torrentListColumns:t}),this.props.onSettingsChange({torrentListColumns:t})})),es(this,"renderItem",((e,t)=>{const{id:s,visible:r}=e;let n=null,a=null;if(this.getLockedIDs().includes(s)||(n=(0,i.jsx)("span",{className:"sortable-list__content sortable-list__content--secondary",children:(0,i.jsx)(c.XZ,{checked:r,onChange:e=>this.handleCheckboxValueChange(s,e.target.checked),children:(0,i.jsx)(o.FormattedMessage,{id:"settings.ui.torrent.details.enabled"})})})),"tags"===s&&"expanded"===this.props.torrentListViewSize&&t<this.state.torrentListColumns.length-1){const e=(0,i.jsx)(o.FormattedMessage,{id:"settings.ui.torrent.details.tags.placement"});a=(0,i.jsx)(Jt.Z,{className:"tooltip tooltip--is-error",content:e,offset:-5,ref:e=>{this.tooltipRef=e},width:200,wrapperClassName:"sortable-list__content sortable-list__content--secondary tooltip__wrapper",wrapText:!0,children:(0,i.jsx)(Yt.Z,{})})}return(0,i.jsxs)("div",{className:"sortable-list__content sortable-list__content__wrapper",children:[a,(0,i.jsx)("span",{className:"sortable-list__content sortable-list__content--primary",children:(0,i.jsx)(o.FormattedMessage,{id:Kt.Z[s].id})}),n]})})),this.state={torrentListColumns:u.Z.floodSettings.torrentListColumns}}getLockedIDs(){return"expanded"===this.props.torrentListViewSize?["name","eta","downRate","percentComplete","downTotal","upRate"]:[]}render(){const e=this.getLockedIDs(),t=this.state.torrentListColumns.filter((e=>null!=Kt.Z[e.id])).slice(),s=Object.keys(Kt.Z).filter((e=>this.state.torrentListColumns.every((t=>t.id!==e)))).map((e=>({id:e,visible:!1})));return(0,i.jsx)(Rt,{id:"torrent-details",className:"sortable-list--torrent-details",items:t.concat(s),lockedIDs:e,onMouseDown:this.handleMouseDown,onDrop:this.handleMove,renderItem:this.renderItem})}}const ss=ts;function is(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const rs=(0,o.injectIntl)(class extends bt{constructor(...e){super(...e),is(this,"torrentListViewSize",u.Z.floodSettings.torrentListViewSize),is(this,"selectedLanguage",u.Z.floodSettings.language),is(this,"UITagSelectorMode",u.Z.floodSettings.UITagSelectorMode),is(this,"handleFormChange",(({event:e,formData:t})=>{const s=e.target;"radio"===s.type&&(this.torrentListViewSize=t["ui-torrent-size"],this.UITagSelectorMode=t["ui-tag-selector-mode"],this.props.onSettingsChange({torrentListViewSize:this.torrentListViewSize,UITagSelectorMode:this.UITagSelectorMode})),"language"===s.name&&(this.selectedLanguage=t.language,"translate"===this.selectedLanguage?u.Z.saveFloodSettings({language:"translate"}):this.props.onSettingsChange({language:this.selectedLanguage}))}))}getLanguageSelectOptions(){return Object.keys(Bt.Z).map((e=>(0,i.jsx)(c.Ql,{id:e,children:null!=Bt.Z[e].id?this.props.intl.formatMessage({id:Bt.Z[e].id}):Bt.Z[e]},e)))}render(){return(0,i.jsxs)(c.l0,{onChange:this.handleFormChange,children:[(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"settings.ui.language"})},"locale-header"),(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.Ph,{disabled:"translate"===this.selectedLanguage,defaultID:this.selectedLanguage,id:"language",children:this.getLanguageSelectOptions()})},"locale-selection"),(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"settings.ui.tag.selector.mode"})}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.Y8,{checked:"single"===this.UITagSelectorMode,groupID:"ui-tag-selector-mode",id:"single",width:"auto",children:(0,i.jsx)(o.FormattedMessage,{id:"settings.ui.tag.selector.mode.single"})}),(0,i.jsx)(c.Y8,{checked:"multi"===this.UITagSelectorMode,groupID:"ui-tag-selector-mode",id:"multi",width:"auto",children:(0,i.jsx)(o.FormattedMessage,{id:"settings.ui.tag.selector.mode.multi"})})]}),(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"settings.ui.torrent.list"})}),(0,i.jsxs)(c.p7,{children:[(0,i.jsx)(c.Y8,{checked:"expanded"===this.torrentListViewSize,groupID:"ui-torrent-size",id:"expanded",width:"auto",children:(0,i.jsx)(o.FormattedMessage,{id:"settings.ui.torrent.size.expanded"})}),(0,i.jsx)(c.Y8,{checked:"condensed"===this.torrentListViewSize,groupID:"ui-torrent-size",id:"condensed",width:"auto",children:(0,i.jsx)(o.FormattedMessage,{id:"settings.ui.torrent.size.condensed"})})]}),(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"settings.ui.displayed.details"})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(ss,{torrentListViewSize:this.torrentListViewSize,onSettingsChange:this.props.onSettingsChange})}),(0,i.jsx)(Se,{children:(0,i.jsx)(o.FormattedMessage,{id:"settings.ui.displayed.context.menu.items"})}),(0,i.jsx)(c.p7,{children:(0,i.jsx)(qt,{onSettingsChange:this.props.onSettingsChange})})]})}});function ns(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function as(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(s),!0).forEach((function(t){ls(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):ns(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function ls(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const os=()=>{const e=(0,o.useIntl)(),t=(0,it.Z)("(max-width: 720px)"),[s,r]=(0,d.useState)({}),[n,a]=(0,d.useState)({}),[l,c]=(0,d.useState)(!1),h=e=>{r(as(as({},s),e))},g=e=>{a(as(as({},n),e))},u=as(as({bandwidth:{content:Mt,props:{onClientSettingsChange:h,onSettingsChange:g},label:e.formatMessage({id:"settings.tabs.bandwidth"})},connectivity:{content:wt,props:{onClientSettingsChange:h},label:e.formatMessage({id:"settings.tabs.connectivity"})},resources:{content:Ht,props:{onClientSettingsChange:h},label:e.formatMessage({id:"settings.tabs.resources"})}},"none"!==je.Z.authMethod?{authentication:{content:pt,label:e.formatMessage({id:"settings.tabs.authentication"})}}:{}),{},{ui:{content:rs,label:e.formatMessage({id:"settings.tabs.userinterface"}),props:{onSettingsChange:g}},diskusage:{content:$t,label:e.formatMessage({id:"settings.tabs.diskusage"}),props:{onSettingsChange:g}},about:{content:lt,label:e.formatMessage({id:"settings.tabs.about"})}});return(0,i.jsx)(de,{actions:[{clickHandler:null,content:e.formatMessage({id:"button.cancel"}),triggerDismiss:!0,type:"tertiary"},{clickHandler:()=>{c(!0),Promise.all([Z.Z.saveSettings(n,{alert:!0}),St.Z.saveSettings(s,{alert:!0})]).then((()=>{c(!1),X.Z.dismissModal()}))},isLoading:l,content:e.formatMessage({id:"button.save"}),triggerDismiss:!1,type:"primary"}],size:"large",heading:e.formatMessage({id:"settings.tabs.heading"}),orientation:t?"horizontal":"vertical",tabs:u})};var ds=s(2152),cs=s.n(ds);class hs extends j.Z{render(){return(0,i.jsxs)("svg",{className:`icon icon--clipboard ${this.props.className}`,viewBox:this.getViewBox(),children:[(0,i.jsx)("path",{d:"M40.23,8.2H35.3v-2a2.46,2.46,0,0,0-2.47-2.47H27.91a2.47,2.47,0,0,0-2.47,2.47v2H20.51A2.47,2.47,0,0,0,18,10.66v4.27H42.7V10.66A2.47,2.47,0,0,0,40.23,8.2Z"}),(0,i.jsx)("rect",{x:"18.05",y:"31.07",width:"24.65",height:"5.19"}),(0,i.jsx)("rect",{x:"18.05",y:"20.69",width:"24.65",height:"5.19"}),(0,i.jsx)("rect",{x:"18.05",y:"41.45",width:"24.65",height:"5.19"}),(0,i.jsx)("polygon",{points:"43.93 11.47 43.93 13.94 47.63 13.94 47.63 53.38 13.12 53.38 13.12 13.94 16.81 13.94 16.81 11.47 10.65 11.47 10.65 55.85 50.1 55.85 50.1 11.47 43.93 11.47"})]})}}function gs(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const us=(0,o.defineMessages)({copy:{id:"general.clipboard.copy"},copied:{id:"general.clipboard.copied"},execError:{id:"mediainfo.execError"},fetching:{id:"mediainfo.fetching"},heading:{id:"mediainfo.heading"}});class ms extends d.Component{constructor(e){var t,i;(super(e),gs(this,"mediainfo",null),gs(this,"isFetchingMediainfo",!0),gs(this,"fetchMediainfoError",null),gs(this,"cancelToken",xe().CancelToken.source()),gs(this,"clipboard",null),gs(this,"copyButtonRef",null),gs(this,"timeoutId",null),gs(this,"handleCopyButtonMouseLeave",(()=>{this.timeoutId=s.g.setTimeout((()=>{this.setState({copiedToClipboard:!1})}),500)})),gs(this,"handleCopySuccess",(()=>{this.setState({copiedToClipboard:!0})})),this.state={copiedToClipboard:!1},"torrent-details"===(null===(t=X.Z.activeModal)||void 0===t?void 0:t.id))&&B.Z.fetchMediainfo(null===(i=X.Z.activeModal)||void 0===i?void 0:i.hash,this.cancelToken.token).then((e=>{this.fetchMediainfoError=null,this.mediainfo=e.output,this.isFetchingMediainfo=!1,this.forceUpdate()}),(e=>{xe().isCancel(e)||(this.fetchMediainfoError=e.response.data,this.isFetchingMediainfo=!1,this.forceUpdate())}))}componentDidUpdate(){null!==this.mediainfo&&this.copyButtonRef&&null==this.clipboard&&(this.clipboard=new(cs())(this.copyButtonRef,{text:()=>this.mediainfo}),this.clipboard.on("success",this.handleCopySuccess))}componentWillUnmount(){this.cancelToken.cancel(),null!=this.timeoutId&&s.g.clearTimeout(this.timeoutId)}render(){const{intl:e}=this.props;let t=us.heading;this.isFetchingMediainfo?t=us.fetching:this.fetchMediainfoError&&(t=us.execError);let s=us.copy;return this.state.copiedToClipboard&&(s=us.copied),(0,i.jsxs)("div",{className:"torrent-details__section mediainfo modal__content--nested-scroll__content",children:[(0,i.jsxs)("div",{className:"mediainfo__toolbar",children:[(0,i.jsx)("div",{className:"mediainfo__toolbar__item",children:(0,i.jsx)("span",{className:"torrent-details__table__heading--tertiary",children:(0,i.jsx)(o.FormattedMessage,{id:t.id})})}),this.isFetchingMediainfo||this.fetchMediainfoError?null:(0,i.jsx)(Jt.Z,{content:e.formatMessage(s),onMouseLeave:this.handleCopyButtonMouseLeave,wrapperClassName:"tooltip__wrapper mediainfo__toolbar__item",children:(0,i.jsx)(c.zx,{priority:"tertiary",buttonRef:e=>{this.copyButtonRef=e},children:(0,i.jsx)(hs,{})})})]}),this.fetchMediainfoError?(0,i.jsx)("pre",{className:"mediainfo__output mediainfo__output--error",children:this.fetchMediainfoError.message}):(0,i.jsx)("pre",{className:"mediainfo__output",children:this.mediainfo})]})}}const ps=(0,o.injectIntl)(ms);class fs extends j.Z{render(){return(0,i.jsx)("svg",{className:`icon icon--disk ${this.props.className}`,viewBox:this.getViewBox(),children:(0,i.jsx)("path",{d:"M40.57,42.43a3.11,3.11,0,1,0-3.11,3.11A3.12,3.12,0,0,0,40.57,42.43Zm9.95,0a3.11,3.11,0,1,0-3.11,3.11A3.12,3.12,0,0,0,50.51,42.43Zm4.35,6.22a1.28,1.28,0,0,1-1.24,1.24H6.38a1.28,1.28,0,0,1-1.24-1.24V36.22A1.28,1.28,0,0,1,6.38,35H53.62a1.28,1.28,0,0,1,1.24,1.24V48.65ZM7.08,30l6.1-18.73a1.77,1.77,0,0,1,1.63-1.17H45.19a1.77,1.77,0,0,1,1.63,1.17L52.92,30H7.08Zm52.76,6.22a9.28,9.28,0,0,0-.62-2.91L51.56,9.76a6.77,6.77,0,0,0-6.37-4.62H14.81A6.77,6.77,0,0,0,8.44,9.76L0.78,33.3a9.31,9.31,0,0,0-.62,2.91V48.65a6.23,6.23,0,0,0,6.22,6.22H53.62a6.24,6.24,0,0,0,6.22-6.22V36.22Z"})})}}var xs=s(2036),js=s(2104);function _s(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class bs extends d.Component{constructor(...e){super(...e),_s(this,"handlePriorityChange",((e,t)=>{const{hash:s}=this.props;B.Z.setFilePriority(s,{indices:[Number(e)],priority:t})})),_s(this,"handleFileSelect",((e,t)=>{const{depth:s,onItemSelect:i}=this.props;i({type:"file",depth:s,path:this.getCurrentPath(e),select:!t})}))}getCurrentPath(e){const{path:t}=this.props;return[...t,e.filename]}getIcon(e,t){return(0,i.jsxs)("div",{className:"file__checkbox directory-tree__checkbox",children:[(0,i.jsx)("div",{className:"directory-tree__checkbox__item directory-tree__checkbox__item--checkbox",children:(0,i.jsx)(c.XZ,{checked:t,id:`${e.index}`,onChange:()=>this.handleFileSelect(e,t),useProps:!0})}),(0,i.jsx)("div",{className:"directory-tree__checkbox__item directory-tree__checkbox__item--icon",children:(0,i.jsx)(b,{})})]})}render(){const{items:e,hash:t}=this.props;if(null==e)return null;const s=Object.values(e).sort(((e,t)=>e.filename.localeCompare(t.filename))).map((s=>{const r=e&&e[s.filename]&&e[s.filename].isSelected||!1,n=E()("directory-tree__node file","directory-tree__node--file directory-tree__node--selectable",{"directory-tree__node--selected":r});return(0,i.jsxs)("div",{className:n,title:s.filename,children:[(0,i.jsxs)("div",{className:"file__label file__detail",children:[this.getIcon(s,r),(0,i.jsx)("div",{className:"file__name",children:(0,i.jsx)("a",{href:`${je.Z.baseURI}api/torrents/${t}/contents/${s.index}/data`,style:{textDecoration:"none"},target:"_blank",rel:"noreferrer",children:s.filename})})]}),(0,i.jsx)("div",{className:"file__detail file__detail--secondary",children:(0,i.jsx)(js.Z,{value:s.sizeBytes,precision:1})}),(0,i.jsxs)("div",{className:"file__detail file__detail--secondary",children:[Math.trunc(s.percentComplete),"%"]}),(0,i.jsx)("div",{className:"file__detail file__detail--secondary file__detail--priority",children:(0,i.jsx)(xs.Z,{level:s.priority,id:s.index,maxLevel:2,onChange:this.handlePriorityChange,priorityType:"file"},`${s.index}-${s.filename}`)})]},s.filename)}));return(0,i.jsx)("div",{className:"directory-tree__node directory-tree__node--file-list",children:s})}}_s(bs,"defaultProps",{path:[],items:{}});const vs=bs;class ys extends j.Z{render(){return(0,i.jsx)("svg",{className:`icon icon--folder ${this.props.className}`,viewBox:this.getViewBox(),children:(0,i.jsx)("path",{d:"M58.61,33.58c0-1.3-1.47-1.62-2.51-1.62H21.84a11.36,11.36,0,0,0-7.62,3.52L4.52,46.92a3.09,3.09,0,0,0-.89,1.9c0,1.3,1.47,1.62,2.51,1.62H40.4A11.35,11.35,0,0,0,48,46.92l9.7-11.43A3.09,3.09,0,0,0,58.61,33.58Zm-9.9-10.3a6.49,6.49,0,0,0-6.47-6.47H23.14V15.89a6.49,6.49,0,0,0-6.47-6.46H8a6.49,6.49,0,0,0-6.47,6.46V44c0,0.23,0,.49,0,0.72l0.14-.17,9.73-11.43a15,15,0,0,1,10.42-4.82H48.71v-5Z"})})}}function Ms(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class ws extends d.Component{constructor(e){super(e),Ms(this,"handleDirectoryClick",(()=>{this.setState((e=>({expanded:!e.expanded})))})),Ms(this,"handleDirectorySelection",(()=>{const{depth:e,isSelected:t,onItemSelect:s}=this.props;s({type:"directory",depth:e,path:this.getCurrentPath(),select:!t})})),this.state={expanded:!1}}getCurrentPath(){const{path:e,directoryName:t}=this.props;return[...e,t]}getIcon(){const{id:e,isSelected:t}=this.props,{expanded:s}=this.state;let r=null;return r=s?(0,i.jsx)(ys,{}):(0,i.jsx)(v.Z,{}),(0,i.jsxs)("div",{className:"file__checkbox directory-tree__checkbox",children:[(0,i.jsx)("div",{className:"directory-tree__checkbox__item directory-tree__checkbox__item--checkbox",children:(0,i.jsx)(c.XZ,{checked:t,id:e,onChange:this.handleDirectorySelection,useProps:!0})}),(0,i.jsx)("div",{className:"directory-tree__checkbox__item directory-tree__checkbox__item--icon",children:r})]})}getSubTree(){const{depth:e,itemsTree:t,hash:s,onItemSelect:r}=this.props,{expanded:n}=this.state;return n?(0,i.jsx)("div",{className:"directory-tree__node directory-tree__node--group",children:(0,i.jsx)(ks,{depth:e,hash:s,onItemSelect:r,path:this.getCurrentPath(),itemsTree:t},`${n}-${e}`)}):null}render(){const{depth:e,directoryName:t,isSelected:s}=this.props,{expanded:r}=this.state,n=E()("directory-tree__branch",`directory-tree__branch--depth-${e}`,{"directory-tree__node--selected":s}),a=E()("directory-tree__node","directory-tree__node--selectable directory-tree__node--directory",{"is-expanded":r});return(0,i.jsxs)("div",{className:n,children:[(0,i.jsx)("div",{className:a,onClick:this.handleDirectoryClick,title:t,children:(0,i.jsxs)("div",{className:"file__label",children:[this.getIcon(),(0,i.jsx)("div",{className:"file__name",children:t})]})}),this.getSubTree()]})}}Ms(ws,"defaultProps",{path:[],selectedItems:{}});const Ss=ws,Cs=e=>{const{depth:t=0,itemsTree:s,hash:r,path:n,onItemSelect:a}=e,{files:l,directories:o}=s,d=t+1,c=null!=o?Object.keys(o).sort(((e,t)=>e.localeCompare(t))).map(((e,t)=>{const l=s.directories&&s.directories[e],o=`${t}${d}${e}`,c=l&&l.isSelected||!1;return null==l?null:(0,i.jsx)(Ss,{depth:d,directoryName:e,hash:r,id:o,isSelected:c,itemsTree:l,onItemSelect:a,path:n},o)})):[],h=null!=l&&Object.keys(l).length>0?(0,i.jsx)(vs,{depth:d,hash:r,onItemSelect:a,path:n,items:s.files},`files-${d}`):null;return(0,i.jsx)("div",{className:"directory-tree__tree",children:c.concat(h)})};Cs.defaultProps={depth:0,path:[]};const ks=Cs;function Fs(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function Ns(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Fs(Object(s),!0).forEach((function(t){Os(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Fs(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function Os(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const Ds=(e,t)=>Ns(Ns(Ns(Ns({},e),null!=e.directories?{directories:Object.assign({},...Object.keys(e.directories).map((s=>null!=e.directories?{[s]:Ds(e.directories[s],t)}:{})))}:{}),null!=e.files?{files:Object.assign({},...Object.keys(e.files).map((s=>null!=e.files?{[s]:Ns(Ns({},e.files[s]),{},{isSelected:t})}:{})))}:{}),{},{isSelected:t}),Zs=(e,t,s=0)=>{const{depth:i,path:r,select:n,type:a}=t,l=r[s];if(s===i-1){var o;if("file"===a&&null!=(null===(o=e.files)||void 0===o?void 0:o[l])){const t=Ns(Ns({},e.files),{},{[l]:Ns(Ns({},e.files[l]),{},{isSelected:n})});return Ns(Ns({},e),{},{files:t,isSelected:Object.values(t).every((({isSelected:e})=>e))&&(null==e.directories||Object.values(e.directories).every((({isSelected:e})=>e)))})}if("directory"===a&&null!=e.directories){const t=Ns(Ns({},e.directories),{},{[l]:Ds(e.directories[l],n)});return Ns(Ns({},e),{},{directories:t,isSelected:Object.values(t).every((({isSelected:e})=>e))&&(null==e.files||Object.values(e.files).every((({isSelected:e})=>e)))})}return e}if(null!=e.directories){const i=e.directories;return Object.keys(i).forEach((e=>{e===l&&(i[e]=Zs(i[e],t,s+1))})),Ns(Ns({},e),{},{directories:i,isSelected:Object.values(i).every((({isSelected:e})=>e))})}return e},Ps=e=>{const t=[];if(null!=e.files){const{files:s}=e;Object.keys(s).forEach((e=>{const i=s[e];i.isSelected&&t.push(i.index)}))}if(null!=e.directories){const{directories:s}=e;Object.keys(s).forEach((e=>{t.push(...Ps(s[e]))}))}return t},Is={selectAll:Ds,applySelection:Zs,getSelectedItems:Ps,getSelectionTree:(e,t=!1)=>{const s={isSelected:t};return e.forEach((e=>{const i=e.path.split("/");let r=s;for(;i.length-1;){const e=i.shift();null==r.directories&&(r.directories={}),null==r.directories[e]&&(r.directories[e]={isSelected:t}),r=r.directories[e]}null==r.files&&(r.files={}),r.files[e.filename]=Ns(Ns({},e),{},{isSelected:t})})),s}};var Es;function Ts(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}let Rs=(0,a.Pi)(Es=class extends d.Component{constructor(e){super(e),Ts(this,"contents",_e.LO.array([])),Ts(this,"itemsTree",_e.LO.object({})),Ts(this,"selectedIndices",_e.LO.array([])),Ts(this,"polling",setInterval((()=>{}),je.Z.pollInterval)),Ts(this,"fetchTorrentContents",((e=!1)=>{var t,s;"torrent-details"===(null===(t=X.Z.activeModal)||void 0===t?void 0:t.id)&&B.Z.fetchTorrentContents(null===(s=X.Z.activeModal)||void 0===s?void 0:s.hash).then((t=>{null!=t&&(0,_e.z)((()=>{this.contents.replace(t),e&&(this.itemsTree=Is.getSelectionTree(this.contents))}))}))})),Ts(this,"handleDownloadButtonClick",((e,t)=>{t.preventDefault();const{baseURI:s}=je.Z,i=document.createElement("a");i.download="",i.href=`${s}api/torrents/${e}/contents/${this.selectedIndices.join(",")}/data`,i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i)})),Ts(this,"handleFormChange",((e,{event:t})=>{if(null!=t.target&&"file-priority"===t.target.name){const s=t.target;"file-priority"===s.name&&B.Z.setFilePriority(e,{indices:this.selectedIndices,priority:Number(s.value)})}})),Ts(this,"handleItemSelect",(e=>{(0,_e.z)((()=>{this.itemsTree=Is.applySelection(this.itemsTree,e),this.selectedIndices.replace(Is.getSelectedItems(this.itemsTree))}))})),Ts(this,"handleSelectAllClick",(()=>{(0,_e.z)((()=>{this.itemsTree=Is.getSelectionTree(this.contents,this.selectedIndices.length<this.contents.length),this.selectedIndices.replace(Is.getSelectedItems(this.itemsTree))}))})),this.fetchTorrentContents(!0)}componentWillUnmount(){clearInterval(this.polling)}render(){var e,t,s;if("torrent-details"!==(null===(e=X.Z.activeModal)||void 0===e?void 0:e.id))return null;const{hash:r}=null===X.Z||void 0===X.Z?void 0:X.Z.activeModal;let n=null,a=null,l=!1;(null===(t=this.contents)||void 0===t?void 0:t.length)>0?(l=this.selectedIndices.length>=this.contents.length,n=(0,i.jsxs)("div",{className:"file__checkbox directory-tree__checkbox",children:[(0,i.jsx)("div",{className:"directory-tree__checkbox__item directory-tree__checkbox__item--checkbox",children:(0,i.jsx)(c.p7,{children:(0,i.jsx)(c.XZ,{checked:l,onChange:this.handleSelectAllClick,useProps:!0})})}),(0,i.jsx)("div",{className:"directory-tree__checkbox__item directory-tree__checkbox__item--icon",children:(0,i.jsx)(fs,{})})]}),a=(0,i.jsx)(ks,{depth:0,onItemSelect:this.handleItemSelect,hash:r,itemsTree:this.itemsTree})):(n=(0,i.jsx)(fs,{}),a=(0,i.jsx)("div",{className:"directory-tree__node directory-tree__node--file",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.files.loading"})}));const d=E()("directory-tree__node","directory-tree__parent-directory torrent-details__section__heading",{"directory-tree__node--selected":l}),h=(0,i.jsx)("div",{className:d,children:(0,i.jsxs)("div",{className:"file__label",children:[n,(0,i.jsx)("div",{className:"file__name",children:null===(s=qe.Z.torrents)||void 0===s?void 0:s[r].directory})]})}),g=E()("inverse directory-tree__wrapper",{"directory-tree__wrapper--toolbar-visible":this.selectedIndices.length>0});return(0,i.jsxs)(c.l0,{className:g,onChange:e=>this.handleFormChange(r,e),children:[(0,i.jsx)("div",{className:"directory-tree__selection-toolbar",children:(0,i.jsxs)(c.p7,{align:"center",children:[(0,i.jsx)(c.U2,{width:"one-quarter",grow:!1,shrink:!1,children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.selected.files",values:{count:this.selectedIndices.length,countElement:(0,i.jsx)("span",{className:"directory-tree__selection-toolbar__item-count",children:this.selectedIndices.length})}})}),(0,i.jsx)(c.zx,{onClick:e=>this.handleDownloadButtonClick(r,e),grow:!1,shrink:!1,children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.files.download.file",values:{count:this.selectedIndices.length}})}),(0,i.jsxs)(c.Ph,{id:"file-priority",persistentPlaceholder:!0,shrink:!1,defaultID:"",children:[(0,i.jsx)(c.Ql,{placeholder:!0,children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.selected.files.set.priority"})}),(0,i.jsx)(c.Ql,{id:0,children:this.props.intl.formatMessage({id:"priority.dont.download"})}),(0,i.jsx)(c.Ql,{id:1,children:this.props.intl.formatMessage({id:"priority.normal"})}),(0,i.jsx)(c.Ql,{id:2,children:this.props.intl.formatMessage({id:"priority.high"})})]})]})}),(0,i.jsxs)("div",{className:"directory-tree torrent-details__section torrent-details__section--file-tree modal__content--nested-scroll__content",children:[h,a]})]})}})||Es;const Ls=(0,o.injectIntl)(Rs),Vs=(0,a.Pi)((()=>{var e,t;const s=(0,o.useIntl)();if("torrent-details"!==(null===(e=X.Z.activeModal)||void 0===e?void 0:e.id))return null;const r=qe.Z.torrents[null===X.Z||void 0===X.Z||null===(t=X.Z.activeModal)||void 0===t?void 0:t.hash];if(null==r)return null;let n=null;r.dateAdded&&(n=new Date(1e3*r.dateAdded));let a=null;r.dateCreated&&(a=new Date(1e3*r.dateCreated));const l=(0,i.jsx)("span",{className:"not-available",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.none"})});return(0,i.jsx)("div",{className:"torrent-details__section torrent-details__section--general",children:(0,i.jsx)("table",{className:"torrent-details__table table",children:(0,i.jsxs)("tbody",{children:[(0,i.jsx)("tr",{className:"torrent-details__table__heading",children:(0,i.jsx)("td",{className:"torrent-details__table__heading--tertiary",colSpan:2,children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.heading.general"})})}),(0,i.jsxs)("tr",{className:"torrent-details__detail torrent-details__detail--dateAdded",children:[(0,i.jsx)("td",{className:"torrent-details__detail__label",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.date.added"})}),(0,i.jsx)("td",{className:"torrent-details__detail__value",children:n?`${s.formatDate(n,{year:"numeric",month:"long",day:"2-digit"})} ${s.formatTime(n)}`:l})]}),(0,i.jsxs)("tr",{className:"torrent-details__detail torrent-details__detail--location",children:[(0,i.jsx)("td",{className:"torrent-details__detail__label",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.location"})}),(0,i.jsx)("td",{className:"torrent-details__detail__value",children:r.directory})]}),(0,i.jsxs)("tr",{className:"torrent-details__detail torrent-details__detail--tags",children:[(0,i.jsx)("td",{className:"torrent-details__detail__label",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.tags"})}),(0,i.jsx)("td",{className:"torrent-details__detail__value",children:r.tags.length?(d=r.tags,d.map((e=>(0,i.jsx)("span",{className:"tag",children:e},e)))):l})]}),(0,i.jsx)("tr",{className:"torrent-details__table__heading",children:(0,i.jsx)("td",{className:"torrent-details__table__heading--tertiary",colSpan:2,children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.heading.transfer"})})}),(0,i.jsxs)("tr",{className:"torrent-details__detail torrent-details__detail--downloaded",children:[(0,i.jsx)("td",{className:"torrent-details__detail__label",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.downloaded"})}),(0,i.jsxs)("td",{className:"torrent-details__detail__value",children:[(0,i.jsx)(o.FormattedNumber,{value:r.percentComplete}),(0,i.jsx)("em",{className:"unit",children:"%"})]})]}),(0,i.jsxs)("tr",{className:"torrent-details__detail torrent-details__detail--peers",children:[(0,i.jsx)("td",{className:"torrent-details__detail__label",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.peers"})}),(0,i.jsx)("td",{className:"torrent-details__detail__value",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.connected",values:{connectedCount:r.peersConnected,connected:(0,i.jsx)(o.FormattedNumber,{value:r.peersConnected}),total:(0,i.jsx)(o.FormattedNumber,{value:r.peersTotal})}})})]}),(0,i.jsxs)("tr",{className:"torrent-details__detail torrent-details__detail--seeds",children:[(0,i.jsx)("td",{className:"torrent-details__detail__label",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.seeds"})}),(0,i.jsx)("td",{className:"torrent-details__detail__value",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.connected",values:{connectedCount:r.seedsConnected,connected:(0,i.jsx)(o.FormattedNumber,{value:r.seedsConnected}),total:(0,i.jsx)(o.FormattedNumber,{value:r.seedsTotal})}})})]}),(0,i.jsx)("tr",{className:"torrent-details__table__heading",children:(0,i.jsx)("td",{className:"torrent-details__table__heading--tertiary",colSpan:2,children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.heading.torrent"})})}),(0,i.jsxs)("tr",{className:"torrent-details__detail torrent-details__detail--created",children:[(0,i.jsx)("td",{className:"torrent-details__detail__label",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.date.created"})}),(0,i.jsx)("td",{className:"torrent-details__detail__value",children:a?`${s.formatDate(a,{year:"numeric",month:"long",day:"2-digit"})} ${s.formatTime(a)}`:l})]}),(0,i.jsxs)("tr",{className:"torrent-details__detail torrent-details__detail--hash",children:[(0,i.jsx)("td",{className:"torrent-details__detail__label",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.hash"})}),(0,i.jsx)("td",{className:"torrent-details__detail__value",children:r.hash})]}),(0,i.jsxs)("tr",{className:"torrent-details__detail torrent-details__detail--size",children:[(0,i.jsx)("td",{className:"torrent-details__detail__label",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.size"})}),(0,i.jsx)("td",{className:"torrent-details__detail__value",children:(0,i.jsx)(js.Z,{value:r.sizeBytes})})]}),(0,i.jsxs)("tr",{className:"torrent-details__detail torrent-details__detail--type",children:[(0,i.jsx)("td",{className:"torrent-details__detail__label",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.type"})}),(0,i.jsx)("td",{className:"torrent-details__detail__value",children:r.isPrivate?s.formatMessage({id:"torrents.details.general.type.private"}):s.formatMessage({id:"torrents.details.general.type.public"})})]}),(0,i.jsx)("tr",{className:"torrent-details__table__heading",children:(0,i.jsx)("td",{className:"torrent-details__table__heading--tertiary",colSpan:2,children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.heading.tracker"})})}),(0,i.jsxs)("tr",{className:"torrent-details__detail torrent-details__detail--tracker-message",children:[(0,i.jsx)("td",{className:"torrent-details__detail__label",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.general.tracker.message"})}),(0,i.jsx)("td",{className:"torrent-details__detail__value",children:r.message?r.message:l})]})]})})});var d}));var zs=s(9657),Us=s(4605),As=s(228),$s=s(369),Hs=s(5498),Bs=s(3152),Xs=s(2058),Gs=s(3006),Qs=s(8501),Ws=s(9072);const qs=(0,a.Pi)((()=>{var e;const t="torrent-details"===(null===(e=X.Z.activeModal)||void 0===e?void 0:e.id)?qe.Z.torrents[X.Z.activeModal.hash]:void 0,[s,r]=(0,d.useState)("stop");if((0,d.useEffect)((()=>{null!=t&&t.status.includes("stopped")?r("stop"):r("start")}),[null==t?void 0:t.status]),null==t)return null;const n=(0,Gs.Z)({status:t.status,upRate:t.upRate,downRate:t.downRate},"torrent-details__header"),a=(0,Qs.Z)(t.status);return(0,i.jsxs)("div",{className:n,children:[(0,i.jsx)("h1",{className:"torrent-details__heading torrent-details--name",children:t.name}),(0,i.jsxs)("div",{className:"torrent-details__sub-heading",children:[(0,i.jsxs)("ul",{className:"torrent-details__sub-heading__secondary",children:[(0,i.jsxs)("li",{className:"torrent-details__sub-heading__tertiary torrent-details__sub-heading__tertiary--download",children:[(0,i.jsx)(Us.Z,{}),(0,i.jsx)(js.Z,{value:t.downRate,isSpeed:!0})," — ",(0,i.jsx)(js.Z,{value:t.bytesDone})]}),(0,i.jsxs)("li",{className:"torrent-details__sub-heading__tertiary torrent-details__sub-heading__tertiary--upload",children:[(0,i.jsx)(Ws.Z,{}),(0,i.jsx)(js.Z,{value:t.upRate,isSpeed:!0})," — ",(0,i.jsx)(js.Z,{value:t.upTotal})]}),(0,i.jsxs)("li",{className:"torrent-details__sub-heading__tertiary",children:[(0,i.jsx)(Hs.Z,{}),(0,i.jsx)(o.FormattedNumber,{value:t.ratio})]}),(0,i.jsxs)("li",{className:"torrent-details__sub-heading__tertiary",children:[(0,i.jsx)(zs.Z,{}),(0,i.jsx)(As.Z,{value:t.eta})]})]}),(0,i.jsxs)("ul",{className:"torrent-details__sub-heading__secondary",children:[(0,i.jsx)("li",{className:"torrent-details__sub-heading__tertiary",children:(0,i.jsx)(xs.Z,{id:t.hash,level:t.priority,maxLevel:3,priorityType:"torrent",onChange:(e,t)=>{B.Z.setPriority({hashes:[`${e}`],priority:t})}})},"priority-meter"),(0,i.jsxs)("li",{className:E()("torrent-details__sub-heading__tertiary","torrent-details__action",{"is-active":"start"===s}),onClick:()=>{r("start"),B.Z.startTorrents({hashes:[t.hash]})},children:[(0,i.jsx)(Bs.Z,{}),(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.actions.start"})]},"start"),(0,i.jsxs)("li",{className:E()("torrent-details__sub-heading__tertiary","torrent-details__action",{"is-active":"stop"===s}),onClick:()=>{r("stop"),B.Z.stopTorrents({hashes:[t.hash]})},children:[(0,i.jsx)(Xs.Z,{}),(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.actions.stop"})]},"stop")]})]}),(0,i.jsx)($s.Z,{percent:Math.ceil(t.percentComplete),icon:a})]})}));var Ys=s(3337),Js=s(8447);const Ks={},ei=({countryCode:e})=>{const t=(e=>{if(null==e)return null;if(void 0!==Ks[e])return Ks[e];throw(async()=>{let t=null;return await s(8652)(`./${e.toLowerCase()}.png`).then((({default:e})=>{t=e}),(()=>{t=null})).finally((()=>{Ks[e]=t})),t})()})(e);return null==t?null:(0,i.jsx)("img",{alt:e,className:"peers-list__flag__image",src:t})};var ti=s(990);const si=()=>{const[e,t]=(0,d.useState)([]),[s,r]=(0,d.useState)(null),n=()=>{var e,s;(r(null),"torrent-details"===(null===(e=X.Z.activeModal)||void 0===e?void 0:e.id))&&B.Z.fetchTorrentPeers(null===(s=X.Z.activeModal)||void 0===s?void 0:s.hash).then((e=>{null!=e&&t(e)}));r(je.Z.pollInterval)};return(0,d.useEffect)((()=>n()),[]),(0,Ys.Z)((()=>n()),s),(0,i.jsx)("div",{className:"torrent-details__section torrent-details__section--peers",children:(0,i.jsxs)("table",{className:"torrent-details__table table",children:[(0,i.jsx)("thead",{className:"torrent-details__table__heading",children:(0,i.jsxs)("tr",{children:[(0,i.jsxs)("th",{className:"torrent-details__table__heading--primary",children:[(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.peers"}),(0,i.jsx)(Js.Z,{children:e.length})]}),(0,i.jsx)("th",{className:"torrent-details__table__heading--secondary",children:"DL"}),(0,i.jsx)("th",{className:"torrent-details__table__heading--secondary",children:"UL"}),(0,i.jsx)("th",{className:"torrent-details__table__heading--secondary",children:"%"}),(0,i.jsx)("th",{className:"torrent-details__table__heading--secondary",children:"Client"}),(0,i.jsx)("th",{className:"torrent-details__table__heading--secondary",children:"Enc"}),(0,i.jsx)("th",{className:"torrent-details__table__heading--secondary",children:"In"})]})}),(0,i.jsx)("tbody",{children:e.map((e=>{const{country:t}=e,s=e.isEncrypted?(0,i.jsx)(Pt.Z,{}):null,r=e.isIncoming?(0,i.jsx)(me.Z,{}):null;return(0,i.jsxs)("tr",{children:[(0,i.jsxs)("td",{children:[(0,i.jsxs)("span",{className:"peers-list__flag",children:[(0,i.jsx)(d.Suspense,{fallback:(0,i.jsx)(ti.Z,{}),children:(0,i.jsx)(ei,{countryCode:t})}),(0,i.jsx)("span",{className:"peers-list__flag__text",children:t})]}),e.address]}),(0,i.jsx)("td",{children:(0,i.jsx)(js.Z,{value:e.downloadRate,isSpeed:!0})}),(0,i.jsx)("td",{children:(0,i.jsx)(js.Z,{value:e.uploadRate,isSpeed:!0})}),(0,i.jsx)("td",{children:`${Math.ceil(e.completedPercent)}%`}),(0,i.jsx)("td",{children:e.clientVersion}),(0,i.jsx)("td",{className:"peers-list__encryption",children:s}),(0,i.jsx)("td",{className:"peers-list__incoming",children:r})]},e.address)}))})]})})},ii=()=>{const[e,t]=(0,d.useState)([]),s=e.length,r=["http","udp","dht"],n=e.map((e=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e.url}),(0,i.jsx)("td",{children:r[e.type-1]})]},e.url)));return(0,d.useEffect)((()=>{var e,s;"torrent-details"===(null===(e=X.Z.activeModal)||void 0===e?void 0:e.id)&&B.Z.fetchTorrentTrackers(null===(s=X.Z.activeModal)||void 0===s?void 0:s.hash).then((e=>{null!=e&&t(e)}))}),[]),(0,i.jsx)("div",{className:"torrent-details__trackers torrent-details__section",children:(0,i.jsxs)("table",{className:"torrent-details__table table",children:[(0,i.jsx)("thead",{className:"torrent-details__table__heading",children:(0,i.jsxs)("tr",{children:[(0,i.jsxs)("th",{className:"torrent-details__table__heading--primary",children:[(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.trackers"}),(0,i.jsx)(Js.Z,{children:s})]}),(0,i.jsx)("th",{className:"torrent-details__table__heading--secondary",children:(0,i.jsx)(o.FormattedMessage,{id:"torrents.details.trackers.type"})})]})}),(0,i.jsx)("tbody",{children:n})]})})},ri=()=>{const e=(0,o.useIntl)(),t=(0,it.Z)("(max-width: 720px)"),s={"torrent-details":{content:Vs,label:e.formatMessage({id:"torrents.details.details"})},"torrent-contents":{content:Ls,label:e.formatMessage({id:"torrents.details.files"}),modalContentClasses:"modal__content--nested-scroll"},"torrent-peers":{content:si,label:e.formatMessage({id:"torrents.details.peers"})},"torrent-trackers":{content:ii,label:e.formatMessage({id:"torrents.details.trackers"})},"torrent-mediainfo":{content:ps,label:e.formatMessage({id:"torrents.details.mediainfo"}),modalContentClasses:"modal__content--nested-scroll"}};return(0,i.jsx)(de,{heading:(0,i.jsx)(qs,{},"torrent-heading"),size:"large",tabs:s,orientation:t?"horizontal":"vertical",tabsInBody:!t})},ni=e=>{switch(e){case"add-torrents":return(0,i.jsx)(ce,{});case"confirm":return(0,i.jsx)(he,{});case"feeds":return(0,i.jsx)(We,{});case"move-torrents":return(0,i.jsx)(Je,{});case"remove-torrents":return(0,i.jsx)(Ke,{});case"set-taxonomy":return(0,i.jsx)(et,{});case"set-trackers":return(0,i.jsx)(st,{});case"settings":return(0,i.jsx)(os,{});case"torrent-details":return(0,i.jsx)(ri,{});default:return null}},ai=(0,a.Pi)((()=>{const{id:e}=X.Z.activeModal||{};let t;return(0,l.Z)("Escape",(()=>h.Z.dismissModal())),null!=e&&(t=(0,i.jsx)(r.Z,{classNames:"modal__animation",timeout:{enter:500,exit:500},children:(0,i.jsxs)("div",{className:"modal",children:[(0,i.jsx)("div",{className:"modal__overlay",onClick:()=>{h.Z.dismissModal()}}),ni(e)]})},e)),(0,i.jsx)(n.Z,{children:t})}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunk_jesec_flood=globalThis.webpackChunk_jesec_flood||[]).push([[842],{8195:(e,t,r)=>{"use strict";function n(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return n[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}r.d(t,{k:()=>n})},5047:(e,t,r)=>{"use strict";function n(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var c=i[s];if(!u(c))return!1;var l=e[c],f=t[c];if(!1===(o=r?r.call(n,l,f,c):void 0)||void 0===o&&l!==f)return!1}return!0}r.d(t,{w:()=>n})},2152:function(e){var t;t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var r=e.hasAttribute("readonly");r||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),r||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),o=document.createRange();o.selectNodeContents(e),n.removeAllRanges(),n.addRange(o),t=n.toString()}return t}},function(e,t){function r(){}r.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function o(){n.off(e,o),t.apply(r,arguments)}return o._=t,this.on(e,o,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,o=r.length;n<o;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],o=[];if(n&&t)for(var i=0,a=n.length;i<a;i++)n[i].fn!==t&&n[i].fn._!==t&&o.push(n[i]);return o.length?r[e]=o:delete r[e],this}},e.exports=r,e.exports.TinyEmitter=r},function(e,t,r){var n=r(3),o=r(4);e.exports=function(e,t,r){if(!e&&!t&&!r)throw new Error("Missing required arguments");if(!n.string(t))throw new TypeError("Second argument must be a String");if(!n.fn(r))throw new TypeError("Third argument must be a Function");if(n.node(e))return function(e,t,r){return e.addEventListener(t,r),{destroy:function(){e.removeEventListener(t,r)}}}(e,t,r);if(n.nodeList(e))return function(e,t,r){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,r)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,r)}))}}}(e,t,r);if(n.string(e))return function(e,t,r){return o(document.body,e,t,r)}(e,t,r);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var r=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===r||"[object HTMLCollection]"===r)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,r){var n=r(5);function o(e,t,r,n,o){var a=i.apply(this,arguments);return e.addEventListener(r,a,o),{destroy:function(){e.removeEventListener(r,a,o)}}}function i(e,t,r,o){return function(r){r.delegateTarget=n(r.target,t),r.delegateTarget&&o.call(e,r)}}e.exports=function(e,t,r,n,i){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof r?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,r,n,i)})))}},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return a(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=r+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=o()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),s=r(1),c=r.n(s),l=r(2),f=r.n(l),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.resolveOptions(r),n.listenClick(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),h(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=f()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new u({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return g("action",e)}},{key:"defaultTarget",value:function(e){var t=g("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return g("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,r=!!document.queryCommandSupported;return t.forEach((function(e){r=r&&!!document.queryCommandSupported(e)})),r}}]),t}(c.a);function g(e,t){var r="data-clipboard-"+e;if(t.hasAttribute(r))return t.getAttribute(r)}t.default=p}]).default},e.exports=t()},8460:(e,t,r)=>{"use strict";r.d(t,{RY:()=>i,R:()=>o,ZP:()=>d});const n=function(e,t){return{_isMBTransition:!0,event:e,check:t}};var o=n("touchstart",(function(e){return null!=e.touches})),i=(n("dragstart",(function(e){return!!e.type&&(-1!==e.type.indexOf("drag")||-1!==e.type.indexOf("drop"))})),n("mousedown",(function(e){return!!e.type&&(-1===e.type.indexOf("touch")&&-1!==e.type.indexOf("mouse"))})));function a(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){t.previews.push(e)},this.unregister=function(e){for(var r;-1!==(r=t.previews.indexOf(e));)t.previews.splice(r,1)},this.backendChanged=function(e){var r,n=a(t.previews);try{for(n.s();!(r=n.n()).done;){r.value.backendChanged(e)}}catch(e){n.e(e)}finally{n.f()}},this.previews=[]};function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var f=function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setup=function(){if("undefined"!=typeof window){if(o.constructor.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");o.constructor.isSetUp=!0,o.addEventListeners(window),o.backends[o.current].instance.setup()}},this.teardown=function(){"undefined"!=typeof window&&(o.constructor.isSetUp=!1,o.removeEventListeners(window),o.backends[o.current].instance.teardown())},this.connectDragSource=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.connectBackend("connectDragSource",t)},this.connectDragPreview=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.connectBackend("connectDragPreview",t)},this.connectDropTarget=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.connectBackend("connectDropTarget",t)},this.previewEnabled=function(){return o.backends[o.current].preview},this.addEventListeners=function(e){o.backends.forEach((function(t){t.transition&&e.addEventListener(t.transition.event,o.backendSwitcher,!0)}))},this.removeEventListeners=function(e){o.backends.forEach((function(t){t.transition&&e.removeEventListener(t.transition.event,o.backendSwitcher,!0)}))},this.backendSwitcher=function(e){var t=o.current,r=0;if(o.backends.some((function(t){return r!==o.current&&t.transition&&t.transition.check(e)?(o.current=r,!0):(r+=1,!1)})),o.current!==t){o.backends[t].instance.teardown(),Object.keys(o.nodes).forEach((function(e){var t=o.nodes[e];t.handler(),t.handler=o.callBackend(t.func,t.args)})),o.previews.backendChanged(o);var n=o.backends[o.current];if(n.instance.setup(),n.skipDispatchOnTransition)return;var i=null;try{i=new e.constructor(e.type,e)}catch(t){(i=document.createEvent("Event")).initEvent(e.type,e.bubbles,e.cancelable)}e.target.dispatchEvent(i)}},this.callBackend=function(e,t){var r;return(r=o.backends[o.current].instance)[e].apply(r,c(t))},this.connectBackend=function(e,t){var r="".concat(e,"_").concat(t[0]),n=o.callBackend(e,t);return o.nodes[r]={func:e,args:t,handler:n},function(){var e,t=(e=o.nodes[r]).handler.apply(e,arguments);return delete o.nodes[r],t}};var i=Object.assign({backends:[]},n||{});if(i.backends.length<1)throw new Error("You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)\n see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx");this.current=0,this.previews=new s,this.backends=[],i.backends.forEach((function(e){if(!e.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(e));var n=e.transition;if(n&&!n._isMBTransition)throw new Error("You must specify a valid 'transition' property (either undefined or the return of 'createTransition') in your Backend entry: ".concat(e));o.backends.push({instance:e.backend(t,r,e.options),preview:e.preview||!1,transition:n,skipDispatchOnTransition:Boolean(e.skipDispatchOnTransition)})})),this.nodes={}};const d=function(e,t,r){return new f(e,t,r)}},6425:(e,t,r)=>{var n=r(3118),o=r(9435);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=n(o.prototype),i.prototype.constructor=i,e.exports=i},7548:(e,t,r)=>{var n=r(3118),o=r(9435);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=n(o.prototype),i.prototype.constructor=i,e.exports=i},577:(e,t,r)=>{var n=r(852)(r(5639),"WeakMap");e.exports=n},6874:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},2488:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},3118:(e,t,r)=>{var n=r(3218),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},1078:(e,t,r)=>{var n=r(2488),o=r(7285);e.exports=function e(t,r,i,a,u){var s=-1,c=t.length;for(i||(i=o),u||(u=[]);++s<c;){var l=t[s];r>0&&i(l)?r>1?e(l,r-1,i,a,u):n(u,l):a||(u[u.length]=l)}return u}},9454:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},8458:(e,t,r)=>{var n=r(3560),o=r(5346),i=r(3218),a=r(346),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?d:u).test(a(e))}},9435:e=>{e.exports=function(){}},6560:(e,t,r)=>{var n=r(5703),o=r(8777),i=r(6557),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},278:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},3468:(e,t,r)=>{var n=r(7548),o=r(9021),i=r(6833),a=r(7658),u=r(1469),s=r(6528);e.exports=function(e){return o((function(t){var r=t.length,o=r,c=n.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if("function"!=typeof l)throw new TypeError("Expected a function");if(c&&!f&&"wrapper"==a(l))var f=new n([],!0)}for(o=f?o:r;++o<r;){l=t[o];var d=a(l),h="wrapper"==d?i(l):void 0;f=h&&s(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?f[a(h[0])].apply(f,h[3]):1==l.length&&s(l)?f[d]():f.thru(l)}return function(){var e=arguments,n=e[0];if(f&&1==e.length&&u(n))return f.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}},8777:(e,t,r)=>{var n=r(852),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},9021:(e,t,r)=>{var n=r(5564),o=r(5357),i=r(61);e.exports=function(e){return i(o(e,void 0,n),e+"")}},6833:(e,t,r)=>{var n=r(9250),o=r(308),i=n?function(e){return n.get(e)}:o;e.exports=i},7658:(e,t,r)=>{var n=r(2060),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],i=o.call(n,t)?r.length:0;i--;){var a=r[i],u=a.func;if(null==u||u==e)return a.name}return t}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},7285:(e,t,r)=>{var n=r(2705),o=r(1025),i=r(1469),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},6528:(e,t,r)=>{var n=r(6425),o=r(6833),i=r(7658),a=r(2170);e.exports=function(e){var t=i(e),r=a[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var u=o(r);return!!u&&e===u[0]}},5346:(e,t,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},9250:(e,t,r)=>{var n=r(577),o=n&&new n;e.exports=o},5357:(e,t,r)=>{var n=r(6874),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,u=o(i.length-t,0),s=Array(u);++a<u;)s[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=r(s),n(e,this,c)}}},2060:e=>{e.exports={}},61:(e,t,r)=>{var n=r(6560),o=r(1275)(n);e.exports=o},1275:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1913:(e,t,r)=>{var n=r(6425),o=r(7548),i=r(278);e.exports=function(e){if(e instanceof n)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},5703:e=>{e.exports=function(e){return function(){return e}}},5564:(e,t,r)=>{var n=r(1078);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},9242:(e,t,r)=>{var n=r(3468)();e.exports=n},1025:(e,t,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!u.call(e,"callee")};e.exports=s},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3493:(e,t,r)=>{var n=r(3279),o=r(3218);e.exports=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:i,maxWait:t,trailing:a})}},2170:(e,t,r)=>{var n=r(6425),o=r(7548),i=r(9435),a=r(1469),u=r(7005),s=r(1913),c=Object.prototype.hasOwnProperty;function l(e){if(u(e)&&!a(e)&&!(e instanceof n)){if(e instanceof o)return e;if(c.call(e,"__wrapped__"))return s(e)}return new o(e)}l.prototype=i.prototype,l.prototype.constructor=l,e.exports=l},6408:(e,t,r)=>{"use strict";var n;function o(){return n||((n=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n}r.d(t,{r:()=>o})},5355:(e,t,r)=>{"use strict";r.d(t,{Z:()=>K});var n={};function o(e){var t=null;return function(){return null==t&&(t=e()),t}}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r.r(n),r.d(n,{FILE:()=>g,TEXT:()=>y,URL:()=>v});var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,r,n;return t=e,(r=[{key:"enter",value:function(e){var t=this,r=this.entered.length;return this.entered=function(e,t){var r=new Set,n=function(e){return r.add(e)};e.forEach(n),t.forEach(n);var o=[];return r.forEach((function(e){return o.push(e)})),o}(this.entered.filter((function(r){return t.isNodeInDocument(r)&&(!r.contains||r.contains(e))})),[e]),0===r&&this.entered.length>0}},{key:"leave",value:function(e){var t,r,n=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),r=e,t.filter((function(e){return e!==r}))),n>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&i(t.prototype,r),n&&i(t,n),e}(),u=o((function(){return/firefox/i.test(navigator.userAgent)})),s=o((function(){return Boolean(window.safari)}));function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=t.length,o=[],i=0;i<n;i++)o.push(i);o.sort((function(e,r){return t[e]<t[r]?-1:1}));for(var a,u,s=[],c=[],l=[],f=0;f<n-1;f++)a=t[f+1]-t[f],u=r[f+1]-r[f],c.push(a),s.push(u),l.push(u/a);for(var d=[l[0]],h=0;h<c.length-1;h++){var p=l[h],g=l[h+1];if(p*g<=0)d.push(0);else{a=c[h];var v=c[h+1],y=a+v;d.push(3*y/((y+v)/p+(y+a)/g))}}d.push(l[l.length-1]);for(var b,m=[],w=[],O=0;O<d.length-1;O++){b=l[O];var S=d[O],D=1/c[O],k=S+d[O+1]-b-b;m.push((b-S-k)*D),w.push(k*D*D)}this.xs=t,this.ys=r,this.c1s=d,this.c2s=m,this.c3s=w}var t,r,n;return t=e,(r=[{key:"interpolate",value:function(e){var t=this.xs,r=this.ys,n=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return r[a];for(var u,s=0,c=i.length-1;s<=c;){var l=t[u=Math.floor(.5*(s+c))];if(l<e)s=u+1;else{if(!(l>e))return r[u];c=u-1}}var f=e-t[a=Math.max(0,c)],d=f*f;return r[a]+n[a]*f+o[a]*d+i[a]*f*d}}])&&c(t.prototype,r),n&&c(t,n),e}();function f(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}function d(e){return{x:e.clientX,y:e.clientY}}function h(e,t,r,n,o){var i,a,c,d="IMG"===(i=t).nodeName&&(u()||!(null===(a=document.documentElement)||void 0===a?void 0:a.contains(i))),h=f(d?e:t),p={x:r.x-h.x,y:r.y-h.y},g=e.offsetWidth,v=e.offsetHeight,y=n.anchorX,b=n.anchorY,m=function(e,t,r,n){var o=e?t.width:r,i=e?t.height:n;return s()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(d,t,g,v),w=m.dragPreviewWidth,O=m.dragPreviewHeight,S=o.offsetX,D=o.offsetY,k=0===D||D;return{x:0===S||S?S:new l([0,.5,1],[p.x,p.x/g*w,p.x+w-g]).interpolate(y),y:k?D:(c=new l([0,.5,1],[p.y,p.y/v*O,p.y+O-v]).interpolate(b),s()&&d&&(c+=(window.devicePixelRatio-1)*O),c)}}var p,g="__NATIVE_FILE__",v="__NATIVE_URL__",y="__NATIVE_TEXT__";function b(e,t,r){var n=t.reduce((function(t,r){return t||e.getData(r)}),"");return null!=n?n:r}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=(m(p={},g,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),m(p,v,{exposeProperties:{urls:function(e,t){return b(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),m(p,y,{exposeProperties:{text:function(e,t){return b(e,t,"")}},matchesTypes:["Text","text/plain"]}),p);function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var S=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,r,n;return t=e,(r=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var r={};Object.keys(this.config.exposeProperties).forEach((function(n){r[n]={value:t.config.exposeProperties[n](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,r)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&O(t.prototype,r),n&&O(t,n),e}();function D(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(w).filter((function(e){return w[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var T=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,r,n;return t=e,(r=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&k(t.prototype,r),n&&k(t,n),e}();function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var P,j=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){var t=n.sourceNodes.get(e);return t&&f(t)||null},this.endDragNativeItem=function(){n.isDraggingNativeItem()&&(n.actions.endDrag(),n.currentNativeHandle&&n.registry.removeSource(n.currentNativeHandle),n.currentNativeHandle=null,n.currentNativeSource=null)},this.isNodeInDocument=function(e){return Boolean(e&&n.document&&n.document.body&&document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=n.currentDragSourceNode;n.isNodeInDocument(e)||n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragStartCapture=function(){n.clearCurrentDragSourceNode(),n.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=n.dragStartSourceIds;n.dragStartSourceIds=null;var r=d(e);n.monitor.isDragging()&&n.actions.endDrag(),n.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:n.getSourceClientOffset,clientOffset:r});var o=e.dataTransfer,i=D(o);if(n.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var a=n.monitor.getSourceId(),u=n.sourceNodes.get(a),s=n.sourcePreviewNodes.get(a)||u;if(s){var c=n.getCurrentSourcePreviewNodeOptions(),l=h(u,s,r,{anchorX:c.anchorX,anchorY:c.anchorY},{offsetX:c.offsetX,offsetY:c.offsetY});o.setDragImage(s,l.x,l.y)}}try{null==o||o.setData("application/json",{})}catch(e){}n.setCurrentDragSourceNode(e.target),n.getCurrentSourcePreviewNodeOptions().captureDraggingState?n.actions.publishDragSource():setTimeout((function(){return n.actions.publishDragSource()}),0)}else if(i)n.beginDragNativeItem(i);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(n.dragEnterTargetIds=[],n.enterLeaveCounter.enter(e.target)&&!n.monitor.isDragging()){var t=e.dataTransfer,r=D(t);r&&n.beginDragNativeItem(r,t)}},this.handleTopDragEnter=function(e){var t=n.dragEnterTargetIds;(n.dragEnterTargetIds=[],n.monitor.isDragging())&&(n.altKeyPressed=e.altKey,u()||n.actions.hover(t,{clientOffset:d(e)}),t.some((function(e){return n.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=n.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){n.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=n.dragOverTargetIds;if(n.dragOverTargetIds=[],!n.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));n.altKeyPressed=e.altKey,n.actions.hover(t||[],{clientOffset:d(e)}),(t||[]).some((function(e){return n.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=n.getCurrentDropEffect())):n.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){n.isDraggingNativeItem()&&e.preventDefault(),n.enterLeaveCounter.leave(e.target)&&n.isDraggingNativeItem()&&n.endDragNativeItem()},this.handleTopDropCapture=function(e){var t;(n.dropTargetIds=[],e.preventDefault(),n.isDraggingNativeItem())&&(null===(t=n.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));n.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=n.dropTargetIds;n.dropTargetIds=[],n.actions.hover(t,{clientOffset:d(e)}),n.actions.drop({dropEffect:n.getCurrentDropEffect()}),n.isDraggingNativeItem()?n.endDragNativeItem():n.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new T(r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new a(this.isNodeInDocument)}var t,r,o;return t=e,(r=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,r){var n=this;return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),function(){n.sourcePreviewNodes.delete(e),n.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,r){var n=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);var o=function(t){return n.handleDragStart(t,e)},i=function(e){return n.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){n.sourceNodes.delete(e),n.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var r=this,n=function(t){return r.handleDragEnter(t,e)},o=function(t){return r.handleDragOver(t,e)},i=function(t){return r.handleDrop(t,e)};return t.addEventListener("dragenter",n),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",n),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return I({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return I({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(n).some((function(t){return n[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var r=new S(w[e]);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&x(t.prototype,r),o&&x(t,o),e}(),_=r(8195);!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(P||(P={}));var N=1,A=0;function M(e){return void 0===e.button||e.button===A}function R(e){return!!e.targetTouches}function L(e,t){return R(e)?function(e,t){return 1===e.targetTouches.length?L(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?L(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}var H=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();function U(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var F,B=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.enableTouchEvents=!0,this.enableMouseEvents=!1,this.enableKeyboardEvents=!1,this.ignoreContextMenu=!1,this.enableHoverOutsideTarget=!1,this.touchSlop=0,this.scrollAngleRanges=void 0,this.context=r,this.delayTouchStart=t.delayTouchStart||t.delay||0,this.delayMouseStart=t.delayMouseStart||t.delay||0,Object.keys(t).forEach((function(e){null!=t[e]&&(n[e]=t[e])}))}var t,r,n;return t=e,(r=[{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&U(t.prototype,r),n&&U(t,n),e}();function Y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function G(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var W=(G(F={},P.mouse,{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"}),G(F,P.touch,{start:"touchstart",move:"touchmove",end:"touchend"}),G(F,P.keyboard,{keydown:"keydown"}),F),X=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getSourceClientOffset=function(e){var t=o.sourceNodes.get(e);return t&&function(e){var t=1===e.nodeType?e:e.parentElement;if(t){var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}}(t)},this.handleTopMoveStartCapture=function(e){M(e)&&(o.moveStartSourceIds=[])},this.handleMoveStart=function(e){Array.isArray(o.moveStartSourceIds)&&o.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=function(e){if(M(e)){var t=L(e);t&&(R(e)&&(o.lastTargetTouchFallback=e.targetTouches[0]),o._mouseClientOffset=t),o.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(e){if(M(e)){var t=e.type===W.touch.start?o.options.delayTouchStart:o.options.delayMouseStart;o.timeout=setTimeout(o.handleTopMoveStart.bind(o,e),t),o.waitingForDelay=!0}},this.handleTopMoveCapture=function(){o.dragOverTargetIds=[]},this.handleMove=function(e,t){o.dragOverTargetIds&&o.dragOverTargetIds.unshift(t)},this.handleTopMove=function(e){if(o.timeout&&clearTimeout(o.timeout),o.document&&!o.waitingForDelay){var t,r,n,i,a=o.moveStartSourceIds,u=o.dragOverTargetIds,s=o.options.enableHoverOutsideTarget,c=L(e,o.lastTargetTouchFallback);if(c)if(o._isScrolling||!o.monitor.isDragging()&&function(e,t,r,n,o){if(!o)return!1;for(var i=180*Math.atan2(n-t,r-e)/Math.PI+180,a=0;a<o.length;++a)if((null==o[a].start||i>=o[a].start)&&(null==o[a].end||i<=o[a].end))return!0;return!1}(o._mouseClientOffset.x||0,o._mouseClientOffset.y||0,c.x,c.y,o.options.scrollAngleRanges))o._isScrolling=!0;else if(!o.monitor.isDragging()&&o._mouseClientOffset.hasOwnProperty("x")&&a&&(t=o._mouseClientOffset.x||0,r=o._mouseClientOffset.y||0,n=c.x,i=c.y,Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(i-r),2))>(o.options.touchSlop?o.options.touchSlop:0))&&(o.moveStartSourceIds=void 0,o.actions.beginDrag(a,{clientOffset:o._mouseClientOffset,getSourceClientOffset:o.getSourceClientOffset,publishSource:!1})),o.monitor.isDragging()){var l=o.sourceNodes.get(o.monitor.getSourceId());o.installSourceNodeRemovalObserver(l),o.actions.publishDragSource(),e.cancelable&&e.preventDefault();var f=(u||[]).map((function(e){return o.targetNodes.get(e)})).filter((function(e){return!!e})),d=o.options.getDropTargetElementsAtPoint?o.options.getDropTargetElementsAtPoint(c.x,c.y,f):o.document.elementsFromPoint(c.x,c.y),h=[];for(var p in d)if(d.hasOwnProperty(p)){var g=d[p];for(h.push(g);g;)(g=g.parentElement)&&-1===h.indexOf(g)&&h.push(g)}var v=h.filter((function(e){return f.indexOf(e)>-1})).map((function(e){return o._getDropTargetId(e)})).filter((function(e){return!!e})).filter((function(e,t,r){return r.indexOf(e)===t}));if(s)for(var y in o.targetNodes){var b=o.targetNodes.get(y);if(l&&b&&b.contains(l)&&-1===v.indexOf(y)){v.unshift(y);break}}v.reverse(),o.actions.hover(v,{clientOffset:c})}}},this._getDropTargetId=function(e){for(var t=o.targetNodes.keys(),r=t.next();!1===r.done;){var n=r.value;if(e===o.targetNodes.get(n))return n;r=t.next()}},this.handleTopMoveEndCapture=function(e){o._isScrolling=!1,o.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||0==(e.buttons&N)}(e)&&(o.monitor.isDragging()&&!o.monitor.didDrop()?(e.cancelable&&e.preventDefault(),o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.drop(),o.actions.endDrag()):o.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&o.monitor.isDragging()&&(o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.endDrag())},this.options=new B(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(P.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(P.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(P.keyboard)}var t,r,n;return t=e,(r=[{key:"profile",value:function(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"setup",value:function(){this.window&&((0,_.k)(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(this.window,"start",this.getTopMoveStartHandler()),this.addEventListener(this.window,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(this.window,"move",this.handleTopMove),this.addEventListener(this.window,"move",this.handleTopMoveCapture,!0),this.addEventListener(this.window,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(this.window,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(this.window,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){this.window&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(this.window,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(this.window,"start",this.handleTopMoveStart),this.removeEventListener(this.window,"move",this.handleTopMoveCapture,!0),this.removeEventListener(this.window,"move",this.handleTopMove),this.removeEventListener(this.window,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(this.window,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(this.window,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"addEventListener",value:function(e,t,r,n){var o=H?{capture:n,passive:!1}:n;this.listenerTypes.forEach((function(n){var i=W[n][t];i&&e.addEventListener(i,r,o)}))}},{key:"removeEventListener",value:function(e,t,r,n){var o=H?{capture:n,passive:!1}:n;this.listenerTypes.forEach((function(n){var i=W[n][t];i&&e.removeEventListener(i,r,o)}))}},{key:"connectDragSource",value:function(e,t){var r=this,n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",n),function(){r.sourceNodes.delete(e),r.removeEventListener(t,"start",n)}}},{key:"connectDragPreview",value:function(e,t,r){var n=this;return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),function(){n.sourcePreviewNodes.delete(e),n.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDropTarget",value:function(e,t){var r=this;if(!this.document)return function(){};var n=function(n){if(r.document&&r.monitor.isDragging()){var o;switch(n.type){case W.mouse.move:o={x:n.clientX,y:n.clientY};break;case W.touch.move:o={x:n.touches[0].clientX,y:n.touches[0].clientY}}var i=null!=o?r.document.elementFromPoint(o.x,o.y):void 0,a=i&&t.contains(i);return i===t||a?r.handleMove(n,e):void 0}};return this.addEventListener(this.document.body,"move",n),this.targetNodes.set(e,t),function(){r.document&&(r.targetNodes.delete(e),r.removeEventListener(r.document.body,"move",n))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){e&&!e.parentElement&&(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&Y(t.prototype,r),n&&Y(t,n),e}(),$=r(8460);const K={backends:[{backend:function(e,t){return new j(e,t)},transition:$.RY},{backend:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new X(e,t,r)},options:{enableMouseEvents:!0},preview:!0,transition:$.R}]}},4560:(e,t,r)=>{"use strict";r.d(t,{WG:()=>y});var n=r(8460),o=r(7294),i=r(5697),a=r.n(i),u=r(6657);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var f=0,d=(0,o.memo)((function(e){var t=e.children,r=s(function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=t;o[h]||(o[h]=(0,u.W)(e,t,r,n));return o[h]}(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}(l(e,["children"])),2),n=r[0],i=r[1];return o.useEffect((function(){return i&&f++,function(){i&&(0===--f&&(p()[h]=null))}}),[]),o.createElement(u.L.Provider,{value:n},t)}));d.displayName="DndProvider";var h=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function p(){return void 0!==r.g?r.g:window}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var v=o.createContext(null),y=function(e){var t=(0,o.useRef)();return o.createElement(v.Provider,{value:t.current},o.createElement(d,g({backend:n.ZP},e)),o.createElement("div",{ref:t}))};y.propTypes={manager:a().any,context:a().any,options:a().any,debugMode:a().bool};var b=r(3935),m=r(4785),w=o.createContext();function O(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var S=function(e){var t,r,n,i,a=(n=(0,m.useDragLayer)((function(e){return{currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging(),itemType:e.getItemType(),item:e.getItem()}}))).isDragging&&null!==n.currentOffset?{display:!0,itemType:n.itemType,item:n.item,style:(t=n.currentOffset,r="translate(".concat(t.x,"px, ").concat(t.y,"px)"),{pointerEvents:"none",position:"fixed",top:0,left:0,transform:r,WebkitTransform:r})}:{display:!1},u=a.display,s=O(a,["display"]);return u?(i=e.children&&"function"==typeof e.children?e.children(s):e.children?e.children:e.generator(s),o.createElement(w.Provider,{value:s},i)):null};S.propTypes={generator:a().func,children:a().oneOfType([a().node,a().func])};const D=S;function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var E=function(e){var t=function(){var e=k((0,o.useState)(!1),2),t=e[0],r=e[1],n=(0,o.useContext)(u.L);return(0,o.useEffect)((function(){var e=n.dragDropManager.getBackend(),t={backendChanged:function(e){r(e.previewEnabled())}};return r(e.previewEnabled()),e.previews.register(t),function(){e.previews.unregister(t)}}),[n,r]),t}(),r=(0,o.useContext)(v);if(!t)return null;var n=o.createElement(D,e);return r?b.createPortal(n,r):n};E.Context=w,E.propTypes=D.propTypes},6657:(e,t,r)=>{"use strict";r.d(t,{L:()=>Ze,W:()=>Qe});var n=r(7294),o=r(7121),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function u(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var i=e,c=t,l=[],f=l,d=!1;function h(){f===l&&(f=l.slice())}function p(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function g(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return h(),f.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,h();var r=f.indexOf(e);f.splice(r,1),l=null}}}function v(e){if(!u(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,c=i(c,e)}finally{d=!1}for(var t=l=f,r=0;r<t.length;r++){(0,t[r])()}return e}function y(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,v({type:a.REPLACE})}function b(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(p())}return r(),{unsubscribe:t(r)}}})[o.Z]=function(){return this},e}return v({type:a.INIT}),(n={dispatch:v,subscribe:g,getState:p,replaceReducer:y})[o.Z]=b,n}var c="dnd-core/INIT_COORDS",l="dnd-core/BEGIN_DRAG",f="dnd-core/PUBLISH_DRAG_SOURCE",d="dnd-core/HOVER",h="dnd-core/DROP",p="dnd-core/END_DRAG",g=function(e,t){return e===t};function v(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)}function y(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case c:case l:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case d:return v(e.clientOffset,r.clientOffset)?e:m(m({},e),{},{clientOffset:r.clientOffset});case p:case h:return O;default:return e}}var D="dnd-core/ADD_SOURCE",k="dnd-core/ADD_TARGET",T="dnd-core/REMOVE_SOURCE",E="dnd-core/REMOVE_TARGET";function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t,r){return t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:r||null}),e)}function x(e,t){return e.filter((function(e){return e!==t}))}function P(e){return"object"===I(e)}function j(e,t){var r=new Map,n=function(e){r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);var o=[];return r.forEach((function(e,t){1===e&&o.push(t)})),o}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var M={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case l:return N(N({},e),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case f:return N(N({},e),{},{isSourcePublic:!0});case d:return N(N({},e),{},{targetIds:r.targetIds});case E:return-1===e.targetIds.indexOf(r.targetId)?e:N(N({},e),{},{targetIds:x(e.targetIds,r.targetId)});case h:return N(N({},e),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case p:return N(N({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case D:case k:return e+1;case T:case E:return e-1;default:return e}}var H=[],U=[];function F(e,t){return e!==H&&(e===U||void 0===t||(r=e,t.filter((function(e){return r.indexOf(e)>-1}))).length>0);var r}function B(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case d:break;case D:case k:case E:case T:return H;case l:case f:case p:case h:default:return U}var t=e.payload,r=t.targetIds,n=void 0===r?[]:r,o=t.prevTargetIds,i=void 0===o?[]:o,a=j(n,i),u=a.length>0||!y(n,i);if(!u)return H;var s=i[i.length-1],c=n[n.length-1];return s!==c&&(s&&a.push(s),c&&a.push(c)),a}function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){X(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function X(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:B(e.dirtyHandlerIds,{type:t.type,payload:W(W({},t.payload),{},{prevTargetIds:C(e,"dragOperation.targetIds",[])})}),dragOffset:S(e.dragOffset,t),refCount:L(e.refCount,t),dragOperation:R(e.dragOperation,t),stateId:Y(e.stateId)}}H.__IS_NONE__=!0,U.__IS_ALL__=!0;var K=r(8195);function q(e,t){return{type:c,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var z={type:c,payload:{clientOffset:null,sourceClientOffset:null}};function V(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},n=r.publishSource,o=void 0===n||n,i=r.clientOffset,a=r.getSourceClientOffset,u=e.getMonitor(),s=e.getRegistry();e.dispatch(q(i)),Z(t,u,s);var c=ee(t,u);if(null!==c){var f=null;if(i){if(!a)throw new Error("getSourceClientOffset must be defined");Q(a),f=a(c)}e.dispatch(q(i,f));var d=s.getSource(c),h=d.beginDrag(u,c);J(h),s.pinSource(c);var p=s.getSourceType(c);return{type:l,payload:{itemType:p,item:h,sourceId:c,clientOffset:i||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}e.dispatch(z)}}function Z(e,t,r){(0,K.k)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,K.k)(r.getSource(e),"Expected sourceIds to be registered.")}))}function Q(e){(0,K.k)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function J(e){(0,K.k)(P(e),"Item must be an object.")}function ee(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function te(e){return function(){if(e.getMonitor().isDragging())return{type:f}}}function re(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function ne(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.clientOffset;oe(t);var o=t.slice(0),i=e.getMonitor(),a=e.getRegistry();ie(o,i,a);var u=i.getItemType();return ae(o,a,u),ue(o,i,a),{type:d,payload:{targetIds:o,clientOffset:n||null}}}}function oe(e){(0,K.k)(Array.isArray(e),"Expected targetIds to be an array.")}function ie(e,t,r){(0,K.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,K.k)(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var o=e[n];(0,K.k)(e.lastIndexOf(o)===n,"Expected targetIds to be unique in the passed array.");var i=r.getTarget(o);(0,K.k)(i,"Expected targetIds to be registered.")}}function ae(e,t,r){for(var n=e.length-1;n>=0;n--){var o=e[n];re(t.getTargetType(o),r)||e.splice(n,1)}}function ue(e,t,r){e.forEach((function(e){r.getTarget(e).hover(t,e)}))}function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach((function(t){le(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fe(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.getMonitor(),n=e.getRegistry();de(r);var o=pe(r);o.forEach((function(o,i){var a=he(o,i,n,r),u={type:h,payload:{dropResult:ce(ce({},t),a)}};e.dispatch(u)}))}}function de(e){(0,K.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,K.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function he(e,t,r,n){var o=r.getTarget(e),i=o?o.drop(n,e):void 0;return function(e){(0,K.k)(void 0===e||P(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:n.getDropResult()),i}function pe(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function ge(e){return function(){var t=e.getMonitor(),r=e.getRegistry();!function(e){(0,K.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var n=t.getSourceId();null!=n&&(r.getSource(n,!0).endDrag(t,n),r.unpinSource());return{type:p}}}function ve(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var be,me=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=r}var t,r,n;return t=e,(r=[{key:"subscribeToStateChange",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},n=r.handlerIds;(0,K.k)("function"==typeof e,"listener must be a function."),(0,K.k)(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var o=this.store.getState().stateId,i=function(){var r=t.store.getState(),i=r.stateId;try{i===o||i===o+1&&!F(r.dirtyHandlerIds,n)||e()}finally{o=i}};return this.store.subscribe(i)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,K.k)("function"==typeof e,"listener must be a function.");var r=this.store.getState().dragOffset;return this.store.subscribe((function(){var n=t.store.getState().dragOffset;n!==r&&(r=n,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return(0,K.k)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return(0,K.k)(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&re(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return(0,K.k)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var r=t.shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),o=this.getItemType();if(o&&!re(n,o))return!1;var i=this.getTargetIds();if(!i.length)return!1;var a=i.indexOf(e);return r?a===i.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,n=e.clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset,n&&o&&i?ve((r=i,{x:(t=n).x+r.x,y:t.y+r.y}),o):null;var e,t,r,n,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,r=e.initialClientOffset,t&&r?ve(t,r):null;var e,t,r}}])&&ye(t.prototype,r),n&&ye(t,n),e}(),we=0;function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){t&&Array.isArray(e)?e.forEach((function(e){return Se(e,!1)})):(0,K.k)("string"==typeof e||"symbol"===Oe(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function De(e){Te.length||(ke(),!0),Te[Te.length]=e}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(be||(be={}));var ke,Te=[],Ee=0;function Ie(){for(;Ee<Te.length;){var e=Ee;if(Ee+=1,Te[e].call(),Ee>1024){for(var t=0,r=Te.length-Ee;t<r;t++)Te[t]=Te[t+Ee];Te.length-=Ee,Ee=0}}Te.length=0,Ee=0,!1}var Ce,xe,Pe,je=void 0!==r.g?r.g:self,_e=je.MutationObserver||je.WebKitMutationObserver;function Ne(e){return function(){var t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}"function"==typeof _e?(Ce=1,xe=new _e(Ie),Pe=document.createTextNode(""),xe.observe(Pe,{characterData:!0}),ke=function(){Ce=-Ce,Pe.data=Ce}):ke=Ne(Ie),De.requestFlush=ke,De.makeRequestCallFromTimer=Ne;var Ae=[],Me=[],Re=De.makeRequestCallFromTimer((function(){if(Me.length)throw Me.shift()}));function Le(e){var t;(t=Ae.length?Ae.pop():new He).task=e,De(t)}var He=function(){function e(){}return e.prototype.call=function(){try{this.task.call()}catch(e){Le.onerror?Le.onerror(e):(Me.push(e),Re())}finally{this.task=null,Ae[Ae.length]=this}},e}();function Ue(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Be(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Be(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ye(e){var t=(we++).toString();switch(e){case be.SOURCE:return"S".concat(t);case be.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function Ge(e){switch(e[0]){case"S":return be.SOURCE;case"T":return be.TARGET;default:(0,K.k)(!1,"Cannot parse handler ID: ".concat(e))}}function We(e,t){var r=e.entries(),n=!1;do{var o=r.next(),i=o.done;if(Fe(o.value,2)[1]===t)return!0;n=!!i}while(!n);return!1}var Xe=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,r,n;return t=e,(r=[{key:"addSource",value:function(e,t){Se(e),function(e){(0,K.k)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,K.k)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,K.k)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var r=this.addHandler(be.SOURCE,e,t);return this.store.dispatch(function(e){return{type:D,payload:{sourceId:e}}}(r)),r}},{key:"addTarget",value:function(e,t){Se(e,!0),function(e){(0,K.k)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,K.k)("function"==typeof e.hover,"Expected hover to be a function."),(0,K.k)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var r=this.addHandler(be.TARGET,e,t);return this.store.dispatch(function(e){return{type:k,payload:{targetId:e}}}(r)),r}},{key:"containsHandler",value:function(e){return We(this.dragSources,e)||We(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,K.k)(this.isSourceId(e),"Expected a valid source ID.");var r=t&&e===this.pinnedSourceId,n=r?this.pinnedSource:this.dragSources.get(e);return n}},{key:"getTarget",value:function(e){return(0,K.k)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return(0,K.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return(0,K.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return Ge(e)===be.SOURCE}},{key:"isTargetId",value:function(e){return Ge(e)===be.TARGET}},{key:"removeSource",value:function(e){var t=this;(0,K.k)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:T,payload:{sourceId:e}}}(e)),Le((function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){(0,K.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:E,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,K.k)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,K.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,r){var n=Ye(e);return this.types.set(n,t),e===be.SOURCE?this.dragSources.set(n,r):e===be.TARGET&&this.dropTargets.set(n,r),n}}])&&Ue(t.prototype,r),n&&Ue(t,n),e}();function $e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ke(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qe(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return s($,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var ze=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];$e(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var n=qe(r);this.store=n,this.monitor=new me(n,new Xe(n)),n.subscribe(this.handleRefCountChange)}var t,r,n;return t=e,(r=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,r=function(e){return{beginDrag:V(e),publishDragSource:te(e),hover:ne(e),drop:fe(e),endDrag:ge(e)}}(this);return Object.keys(r).reduce((function(n,o){var i,a=r[o];return n[o]=(i=a,function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var a=i.apply(e,n);void 0!==a&&t(a)}),n}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}])&&Ke(t.prototype,r),n&&Ke(t,n),e}();function Ve(e,t,r,n){var o=new ze(n),i=e(o,t,r);return o.receiveBackend(i),o}var Ze=n.createContext({dragDropManager:void 0});function Qe(e,t,r,n){return{dragDropManager:Ve(e,t,r,n)}}},9090:(e,t,r)=>{"use strict";r.d(t,{Ej:()=>V,GR:()=>ae});var n=r(8195);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return"function"==typeof e}function a(){}function u(e){if(!function(e){return"object"===o(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}var c=r(7294),l=r(5047),f=r(8679),d=r.n(f),h=r(6657);function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}var y=function(){var e=function(){function e(t){p(this,e),this.isDisposed=!1,this.action=i(t)?t:a}return v(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&i(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();return e.empty={dispose:a},e}(),b=function(){function e(){p(this,e),this.isDisposed=!1;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this.disposables=r}return v(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var r=this.disposables.indexOf(e);-1!==r&&(t=!0,this.disposables.splice(r,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var n=0;n<e;n++)t[n].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var n=0;n<e;n++)t[n].dispose()}}}]),e}(),m=function(){function e(){p(this,e),this.isDisposed=!1}return v(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var r=this.current;this.current=e,r&&r.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}();function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=I(e);if(t){var o=I(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return E(this,r)}}function E(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e){var t=e.DecoratedComponent,r=e.createHandler,o=e.createMonitor,i=e.createConnector,a=e.registerHandler,u=e.containerDisplayName,s=e.getType,f=e.collect,p=e.options.arePropsEqual,g=void 0===p?l.w:p,v=t,w=t.displayName||t.name||"Component",S=function(){var e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&k(e,t)}(S,e);var t,u,d,p=T(S);function S(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,S),(t=p.call(this,e)).decoratedRef=c.createRef(),t.handleChange=function(){var e=t.getCurrentState();(0,l.w)(e,t.state)||t.setState(e)},t.disposable=new m,t.receiveProps(e),t.dispose(),t}return t=S,(u=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return(0,n.k)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!g(e,this.props)||!(0,l.w)(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new m,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){g(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(s(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=O(a(e,this.handler,this.manager),2),r=t[0],n=t[1];this.handlerId=r,this.handlerMonitor.receiveHandlerId(r),this.handlerConnector.receiveHandlerId(r);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[r]});this.disposable.setDisposable(new b(new y(o),new y(n)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?f(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return c.createElement(h.L.Consumer,null,(function(t){var r,n,o=t.dragDropManager;return e.receiveDragDropManager(o),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()})),c.createElement(v,Object.assign({},e.props,e.getCurrentState(),{ref:(r=v,(n=r)&&n.prototype&&"function"==typeof n.prototype.render||function(e){var t,r=e;return"Symbol(react.forward_ref)"===(null==r||null===(t=r.$$typeof)||void 0===t?void 0:t.toString())}(r)?e.decoratedRef:null)}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&((0,n.k)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",w,w),void 0!==e&&(this.manager=e,this.handlerMonitor=o(e),this.handlerConnector=i(e.getBackend()),this.handler=r(this.handlerMonitor,this.decoratedRef)))}}])&&D(t.prototype,u),d&&D(t,d),S}(c.Component);return e.DecoratedComponent=t,e.displayName="".concat(u,"(").concat(w,")"),e}();return d()(S,t)}function x(e,t,r){var n=r.getRegistry(),o=n.addTarget(e,t);return[o,function(){return n.removeTarget(o)}]}function P(e,t,r){var n=r.getRegistry(),o=n.addSource(e,t);return[o,function(){return n.removeSource(o)}]}function j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var _=!1,N=!1,A=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,r,o;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){(0,n.k)(!_,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return _=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{_=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;(0,n.k)(!N,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return N=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{N=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&j(t.prototype,r),o&&j(t,o),e}();function M(e,t){"function"==typeof e?e(t):e.current=t}function R(e,t){var r=e.ref;return(0,n.k)("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),r?(0,c.cloneElement)(e,{ref:function(e){M(r,e),M(t,e)}}):(0,c.cloneElement)(e,{ref:t})}function L(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function H(e){var t={};return Object.keys(e).forEach((function(r){var n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var o=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,c.isValidElement)(t)){var n=t;return e(n,r),n}var o=t;return L(o),R(o,r?function(t){return e(t,r)}:e)}}(n);t[r]=function(){return o}}})),t}function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function F(e){return null!==e&&"object"===U(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function B(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Y=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=H({dragSource:function(e,t){r.clearDragSource(),r.dragSourceOptions=t||null,F(e)?r.dragSourceRef=e:r.dragSourceNode=e,r.reconnectDragSource()},dragPreview:function(e,t){r.clearDragPreview(),r.dragPreviewOptions=t||null,F(e)?r.dragPreviewRef=e:r.dragPreviewNode=e,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,r,n;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!(0,l.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!(0,l.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&B(t.prototype,r),n&&B(t,n),e}();function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t){return"string"==typeof e||"symbol"===G(e)||!!t&&Array.isArray(e)&&e.every((function(e){return W(e,!1)}))}function X(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var $=["canDrag","beginDrag","isDragging","endDrag"],K=["beginDrag"],q=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=t,this.monitor=r,this.ref=n}var t,r,n;return t=e,(r=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,s(this.ref))}}])&&X(t.prototype,r),n&&X(t,n),e}();function z(e){return Object.keys(e).forEach((function(t){(0,n.k)($.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',$.join(", "),t),(0,n.k)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),K.forEach((function(t){(0,n.k)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,r){return new q(e,t,r)}}function V(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e;"function"!=typeof e&&((0,n.k)(W(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),i=function(){return e}),(0,n.k)(u(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var a=z(t);return(0,n.k)("function"==typeof r,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),(0,n.k)(u(o),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),function(e){return C({containerDisplayName:"DragSource",createHandler:a,registerHandler:P,createConnector:function(e){return new Y(e)},createMonitor:function(e){return new A(e)},DecoratedComponent:e,getType:i,collect:r,options:o})}}function Z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Q=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=H({dropTarget:function(e,t){r.clearDropTarget(),r.dropTargetOptions=t,F(e)?r.dropTargetRef=e:r.dropTargetNode=e,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,r,n;return t=e,(r=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!(0,l.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&Z(t.prototype,r),n&&Z(t,n),e}();function J(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ee=!1,te=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,r,o;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;(0,n.k)(!ee,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return ee=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{ee=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&J(t.prototype,r),o&&J(t,o),e}();function re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ne=["canDrop","hover","drop"],oe=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=r,this.ref=n}var t,r,n;return t=e,(r=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,s(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&re(t.prototype,r),n&&re(t,n),e}();function ie(e){return Object.keys(e).forEach((function(t){(0,n.k)(ne.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',ne.join(", "),t),(0,n.k)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,r){return new oe(e,t,r)}}function ae(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e;"function"!=typeof e&&((0,n.k)(W(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),i=function(){return e}),(0,n.k)(u(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var a=ie(t);return(0,n.k)("function"==typeof r,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),(0,n.k)(u(o),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),function(e){return C({containerDisplayName:"DropTarget",createHandler:a,registerHandler:x,createMonitor:function(e){return new te(e)},createConnector:function(e){return new Q(e)},DecoratedComponent:e,getType:i,collect:r,options:o})}}},3604:(e,t,r)=>{"use strict";r.d(t,{f$:()=>d});var n=r(7294),o=r(8195),i=r(6657);var a=r(5047),u="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e){var t=function(){var e=(0,n.useContext)(i.L).dragDropManager;return(0,o.k)(null!=e,"Expected drag drop context"),e}().getMonitor(),r=l(function(e,t,r){var o=s((0,n.useState)((function(){return t(e)})),2),i=o[0],c=o[1],l=(0,n.useCallback)((function(){var n=t(e);(0,a.w)(i,n)||(c(n),r&&r())}),[i,e,r]);return u(l,[]),[i,l]}(t,e),2),c=r[0],f=r[1];return(0,n.useEffect)((function(){return t.subscribeToOffsetChange(f)})),(0,n.useEffect)((function(){return t.subscribeToStateChange(f)})),c}},4785:(e,t,r)=>{"use strict";r.d(t,{useDragLayer:()=>o.f$,DragSource:()=>i.Ej,DropTarget:()=>i.GR});var n=r(1388);r.o(n,"DragSource")&&r.d(t,{DragSource:function(){return n.DragSource}}),r.o(n,"DropTarget")&&r.d(t,{DropTarget:function(){return n.DropTarget}}),r.o(n,"useDragLayer")&&r.d(t,{useDragLayer:function(){return n.useDragLayer}});var o=r(3604),i=r(9090)},3897:()=>{},8058:()=>{},1388:(e,t,r)=>{"use strict";var n=r(5253);r.o(n,"DragSource")&&r.d(t,{DragSource:function(){return n.DragSource}}),r.o(n,"DropTarget")&&r.d(t,{DropTarget:function(){return n.DropTarget}}),r.o(n,"useDragLayer")&&r.d(t,{useDragLayer:function(){return n.useDragLayer}});var o=r(8058);r.o(o,"DragSource")&&r.d(t,{DragSource:function(){return o.DragSource}}),r.o(o,"DropTarget")&&r.d(t,{DropTarget:function(){return o.DropTarget}}),r.o(o,"useDragLayer")&&r.d(t,{useDragLayer:function(){return o.useDragLayer}});var i=r(2105);r.o(i,"DragSource")&&r.d(t,{DragSource:function(){return i.DragSource}}),r.o(i,"DropTarget")&&r.d(t,{DropTarget:function(){return i.DropTarget}}),r.o(i,"useDragLayer")&&r.d(t,{useDragLayer:function(){return i.useDragLayer}});var a=r(3897);r.o(a,"DragSource")&&r.d(t,{DragSource:function(){return a.DragSource}}),r.o(a,"DropTarget")&&r.d(t,{DropTarget:function(){return a.DropTarget}}),r.o(a,"useDragLayer")&&r.d(t,{useDragLayer:function(){return a.useDragLayer}})},5253:()=>{},2105:()=>{},3337:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(7294);const o=function(e,t){var r=(0,n.useRef)((function(){}));(0,n.useEffect)((function(){r.current=e})),(0,n.useEffect)((function(){if(null!==t){var e=setInterval((function(){return r.current()}),t||0);return function(){return clearInterval(e)}}}),[t])}},7121:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n}),e=r.hmd(e);const n=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:e)}}]);
|